├── static └── favicon.ico ├── plugins └── vue-agile.js ├── .editorconfig ├── README.md ├── package.json ├── nuxt.config.js ├── components ├── Logo.vue └── Carousel.vue ├── layouts └── default.vue ├── .gitignore └── pages └── index.vue /static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukaszflorczak/nuxt-agile/HEAD/static/favicon.ico -------------------------------------------------------------------------------- /plugins/vue-agile.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import VueAgile from 'vue-agile' 3 | 4 | Vue.use(VueAgile) 5 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | [*.md] 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # nuxt-agile 2 | 3 | > Demo of vue-agile carousel component with Nuxt.js and SSR 4 | 5 | For detailed explanation on how component works and bug/feature/help request visit main [vue-agile repository](https://github.com/lukaszflorczak/vue-agile). 6 | 7 | ![](https://muuteam.com/nuxt-agile.png) 8 | 9 | ## Run demo 10 | 11 | ```bash 12 | # install dependencies 13 | $ yarn install 14 | 15 | # serve with hot reload at localhost:3000 16 | $ yarn dev 17 | ``` 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nuxt-agile", 3 | "version": "1.0.0", 4 | "description": "Nuxt app with vue-agile SSR demo", 5 | "author": "Łukasz Florczak", 6 | "private": true, 7 | "scripts": { 8 | "dev": "nuxt", 9 | "build": "nuxt build", 10 | "start": "nuxt start", 11 | "generate": "nuxt generate" 12 | }, 13 | "dependencies": { 14 | "nuxt": "^2.0.0", 15 | "vue-agile": "^1.1.0" 16 | }, 17 | "devDependencies": { 18 | "node-sass": "^4.13.1", 19 | "sass-loader": "^8.0.2" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /nuxt.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | mode: 'universal', 3 | /* 4 | ** Headers of the page 5 | */ 6 | head: { 7 | title: process.env.npm_package_name || '', 8 | meta: [ 9 | { charset: 'utf-8' }, 10 | { name: 'viewport', content: 'width=device-width, initial-scale=1' }, 11 | { hid: 'description', name: 'description', content: process.env.npm_package_description || '' } 12 | ], 13 | link: [ 14 | { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } 15 | ] 16 | }, 17 | /* 18 | ** Customize the progress-bar color 19 | */ 20 | loading: { color: '#fff' }, 21 | /* 22 | ** Global CSS 23 | */ 24 | css: [], 25 | /* 26 | ** Plugins to load before mounting the App 27 | */ 28 | plugins: ['~/plugins/vue-agile'], 29 | /* 30 | ** Nuxt.js dev-modules 31 | */ 32 | buildModules: [], 33 | /* 34 | ** Nuxt.js modules 35 | */ 36 | modules: [], 37 | /* 38 | ** Build configuration 39 | */ 40 | build: { 41 | transpile: ['vue-agile'] 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /components/Logo.vue: -------------------------------------------------------------------------------- 1 | 20 | 35 | -------------------------------------------------------------------------------- /layouts/default.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 56 | -------------------------------------------------------------------------------- /components/Carousel.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 12 | 13 | 74 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Created by .ignore support plugin (hsz.mobi) 2 | ### Node template 3 | # Logs 4 | /logs 5 | *.log 6 | npm-debug.log* 7 | yarn-debug.log* 8 | yarn-error.log* 9 | 10 | # Runtime data 11 | pids 12 | *.pid 13 | *.seed 14 | *.pid.lock 15 | 16 | # Directory for instrumented libs generated by jscoverage/JSCover 17 | lib-cov 18 | 19 | # Coverage directory used by tools like istanbul 20 | coverage 21 | 22 | # nyc test coverage 23 | .nyc_output 24 | 25 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 26 | .grunt 27 | 28 | # Bower dependency directory (https://bower.io/) 29 | bower_components 30 | 31 | # node-waf configuration 32 | .lock-wscript 33 | 34 | # Compiled binary addons (https://nodejs.org/api/addons.html) 35 | build/Release 36 | 37 | # Dependency directories 38 | node_modules/ 39 | jspm_packages/ 40 | 41 | # TypeScript v1 declaration files 42 | typings/ 43 | 44 | # Optional npm cache directory 45 | .npm 46 | 47 | # Optional eslint cache 48 | .eslintcache 49 | 50 | # Optional REPL history 51 | .node_repl_history 52 | 53 | # Output of 'npm pack' 54 | *.tgz 55 | 56 | # Yarn Integrity file 57 | .yarn-integrity 58 | 59 | # dotenv environment variables file 60 | .env 61 | 62 | # parcel-bundler cache (https://parceljs.org/) 63 | .cache 64 | 65 | # next.js build output 66 | .next 67 | 68 | # nuxt.js build output 69 | .nuxt 70 | 71 | # Nuxt generate 72 | dist 73 | 74 | # vuepress build output 75 | .vuepress/dist 76 | 77 | # Serverless directories 78 | .serverless 79 | 80 | # IDE / Editor 81 | .idea 82 | 83 | # Service worker 84 | sw.* 85 | 86 | # macOS 87 | .DS_Store 88 | 89 | # Vim swap files 90 | *.swp 91 | -------------------------------------------------------------------------------- /pages/index.vue: -------------------------------------------------------------------------------- 1 | 26 | 27 | 38 | 39 | 91 | --------------------------------------------------------------------------------