├── .circleci └── config.yml ├── .editorconfig ├── .eslintrc.js ├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── example ├── nuxt.config.js └── pages │ └── index.vue ├── lib ├── module.js └── plugin.js ├── package-lock.json ├── package.json └── test └── module.test.js /.circleci/config.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | jobs: 3 | build: 4 | working_directory: /usr/src/app 5 | docker: 6 | - image: banian/node 7 | steps: 8 | # Checkout repository 9 | - checkout 10 | 11 | # Restore cache 12 | - restore_cache: 13 | key: yarn-{{ checksum "yarn.lock" }} 14 | 15 | # Install dependencies 16 | - run: 17 | name: Install Dependencies 18 | command: NODE_ENV=dev yarn 19 | 20 | # Keep cache 21 | - save_cache: 22 | key: yarn-{{ checksum "yarn.lock" }} 23 | paths: 24 | - "node_modules" 25 | 26 | # Test 27 | - run: 28 | name: Tests 29 | command: yarn test 30 | 31 | # Coverage 32 | - run: 33 | name: Coverage 34 | command: yarn codecov 35 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_size = 2 6 | indent_style = space 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 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | parserOptions: { 4 | parser: 'babel-eslint' 5 | }, 6 | env: { 7 | browser: true, 8 | node: true, 9 | jest: true 10 | }, 11 | extends: [ 12 | 'standard', 13 | 'plugin:vue/recommended' 14 | ], 15 | plugins: [ 16 | 'jest', 17 | 'vue' 18 | ], 19 | rules: { 20 | 'indent': 'off', 21 | 'vue/script-indent': ['warn', 2, { 22 | 'baseIndent': 1 23 | }], 24 | // Allow paren-less arrow functions 25 | 'arrow-parens': 0, 26 | // Allow async-await 27 | 'generator-star-spacing': 0, 28 | }, 29 | globals: { 30 | 'jest/globals': true, 31 | jasmine: true 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.iml 3 | .idea 4 | *.log* 5 | .nuxt 6 | .vscode 7 | .DS_Store 8 | coverage 9 | dist 10 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. 4 | 5 | ### [0.0.3](https://github.com/vaso2/fullpage-nuxt/compare/v0.0.2...v0.0.3) (2019-05-19) 6 | 7 | 8 | 9 | 10 | ## [0.0.2](https://github.com/vaso2/fullpage-nuxt/compare/v0.0.1...v0.0.2) (2018-12-23) 11 | 12 | 13 | 14 | 15 | ## 0.0.1 (2018-12-23) 16 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) GALSD Web Development
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 | # fullpage-nuxt 2 | 3 | [![npm version][npm-version-src]][npm-version-href] 4 | [](https://npmjs.com/package/fullpage-nuxt) 5 | 6 | > Nuxt module for [fullpage-vue](https://www.npmjs.com/package/fullpage-vue) plugin. 7 | A by-page scroll, support horizontal scroll and vertical scroll, support all the animation instructions of animate.css. 8 | 9 | [📖 **Release Notes**](./CHANGELOG.md) 10 | 11 | ## Setup 12 | 13 | - Add `fullpage-nuxt` dependency using yarn or npm to your project 14 | - Add `fullpage-nuxt` to `modules` section of `nuxt.config.js` 15 | 16 | ```js 17 | { 18 | modules: [ 19 | // Simple usage 20 | 'fullpage-nuxt', 21 | 22 | // With options 23 | ['fullpage-nuxt', { /* module options */ }], 24 | ] 25 | } 26 | ``` 27 | You can find more details under `example` folder. 28 | Usage instructions in the fullpage-vue [docs](https://www.npmjs.com/package/fullpage-vue) 29 | ## Options 30 | 31 | - `animate: false` (default). Will import [animate.css](https://daneden.github.io/animate.css/) if true. 32 | 33 | ## License 34 | 35 | MIT, made by [GALSD Web Development](https://galsd.com/) 36 | 37 | 38 | [npm-version-src]: https://img.shields.io/npm/v/fullpage-nuxt.svg?style=flat-square 39 | [npm-version-href]: https://npmjs.com/package/fullpage-nuxt 40 | [npm-downloads-src]: https://img.shields.io/npm/dt/fullpage-nuxt/latest.svg?style=flat-square 41 | [npm-downloads-href]: https://npmjs.com/package/fullpage-nuxt 42 | -------------------------------------------------------------------------------- /example/nuxt.config.js: -------------------------------------------------------------------------------- 1 | const { resolve } = require('path') 2 | 3 | module.exports = { 4 | rootDir: resolve(__dirname, '..'), 5 | buildDIr: resolve(__dirname, '.nuxt'), 6 | srcDir: __dirname, 7 | render: { 8 | resourceHints: false 9 | }, 10 | modules: [ 11 | '@@' 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /example/pages/index.vue: -------------------------------------------------------------------------------- 1 | 2 |vue-fullpage
17 |vue-fullpage
26 |vue-fullpage
27 |vue-fullpage
28 |vue-fullpage
29 |