├── .browserslistrc ├── .eslintrc.js ├── .gitignore ├── LICENSE ├── README.md ├── babel.config.js ├── package.json ├── postcss.config.js ├── public ├── favicon.ico └── index.html └── src ├── App.vue ├── components ├── GithubCorner.vue ├── HorizontalCollapse.vue └── HorizontalCollapseItem.vue └── main.js /.browserslistrc: -------------------------------------------------------------------------------- 1 | > 1% 2 | last 2 versions 3 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { 4 | node: true 5 | }, 6 | extends: ["plugin:vue/essential", "@vue/prettier"], 7 | rules: { 8 | "no-console": process.env.NODE_ENV === "production" ? "error" : "off", 9 | "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off" 10 | }, 11 | parserOptions: { 12 | parser: "babel-eslint" 13 | } 14 | }; 15 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | 9 | # Log files 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | 14 | # Editor directories and files 15 | .idea 16 | .vscode 17 | *.suo 18 | *.ntvs* 19 | *.njsproj 20 | *.sln 21 | *.sw? 22 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Yasin ATEŞ 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 |

4 |
5 | Vue Horizontal Collapse 6 |
7 | Vue Horizontal Collapse 8 |
9 |

10 |
11 |

Vue js version of accordion component developed with jquery on codepen.io 😋

12 | 13 |

14 | · View Demo 15 | · View jQuery Version 16 |

17 |

18 | 19 | ## 📖 About 20 | 21 | Vue Horizontal Collapse 22 | 23 | Vue js version of accordion component developed with jquery on codepen.io 😋 24 | 25 | 26 | ### 📚Tech Stack 27 | 28 | 29 | 30 | 33 | 34 | 35 | 36 | 39 | 40 | 41 | 42 | 45 | 46 | 47 | 48 | 51 | 52 | 53 |
31 | Vue.js 32 | I develop the component
37 | SASS 38 | The most mature, stable, and powerful professional grade CSS extension language in the world
43 | Eslint 44 | Find and fix problems in your JavaScript code
49 | Github Corner 50 | Redirect to my Github repository
54 | 55 | 56 | ## Getting Started 57 | 58 | ### ⚙️ How To Use 59 | 60 | 1. Clone this repository 61 | 62 | ```bash 63 | git clone https://github.com/yasinatesim/vue-horizontal-collapse.git 64 | ``` 65 | 66 | 2. Install the project dependencies 67 | ```bash 68 | npm install 69 | ``` 70 | 71 | **For Development** 72 | 73 | ```bash 74 | npm run serve 75 | ``` 76 | 77 | **For Production Build** 78 | 79 | ```bash 80 | npm run build 81 | ``` 82 | 83 | **For Linting** 84 | 85 | ```bash 86 | npm run lint 87 | ``` 88 | 89 | ## 🔑 License 90 | * Copyright © 2020 - MIT License. 91 | See `LICENSE` for more information. 92 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@vue/app"] 3 | }; 4 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-horizontal-collapse", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "serve": "vue-cli-service serve", 7 | "build": "vue-cli-service build", 8 | "lint": "vue-cli-service lint", 9 | "surge" : "npm run build && surge --project ./dist --domain base-tricks.vue-horizontal-collapse.surge.sh" 10 | }, 11 | "dependencies": { 12 | "core-js": "^2.6.5", 13 | "vue": "^2.6.10", 14 | "vue-clickaway": "^2.2.2" 15 | }, 16 | "devDependencies": { 17 | "@vue/cli-plugin-babel": "^3.9.0", 18 | "@vue/cli-plugin-eslint": "^3.9.0", 19 | "@vue/cli-service": "^3.9.0", 20 | "@vue/eslint-config-prettier": "^4.0.1", 21 | "babel-eslint": "^10.0.1", 22 | "eslint": "^5.16.0", 23 | "eslint-plugin-vue": "^5.0.0", 24 | "node-sass": "^4.9.0", 25 | "sass-loader": "^7.1.0", 26 | "vue-template-compiler": "^2.6.10" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | autoprefixer: {} 4 | } 5 | }; 6 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yasinatesim/vue-horizontal-collapse/2e66aa1d6904ef4d0d7b3f76367bdf4e2d0c66bb/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Vue Horizontal Collapse 9 | 10 | 11 | 14 |
15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 20 | -------------------------------------------------------------------------------- /src/components/GithubCorner.vue: -------------------------------------------------------------------------------- 1 | 27 | 28 | 55 | -------------------------------------------------------------------------------- /src/components/HorizontalCollapse.vue: -------------------------------------------------------------------------------- 1 | 96 | 97 | 107 | 108 | 227 | -------------------------------------------------------------------------------- /src/components/HorizontalCollapseItem.vue: -------------------------------------------------------------------------------- 1 | 23 | 24 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from "vue"; 2 | import App from "./App.vue"; 3 | 4 | Vue.config.productionTip = false; 5 | 6 | new Vue({ 7 | render: h => h(App) 8 | }).$mount("#app"); 9 | --------------------------------------------------------------------------------