expeditaea 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.all-contributorsrc +135 -0
- package/.editorconfig +13 -0
- package/.eslintignore +16 -0
- package/.eslintrc.js +92 -0
- package/.github/FUNDING.yml +7 -0
- package/.github/ISSUE_TEMPLATE/bug-report.md +47 -0
- package/.github/ISSUE_TEMPLATE/config.yml +6 -0
- package/.github/ISSUE_TEMPLATE/feature-request.md +26 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +24 -0
- package/.github/lock.yml +9 -0
- package/.github/nuxt.png +0 -0
- package/.github/stale.yml +24 -0
- package/.github/workflows/nightly.yml +49 -0
- package/.github/workflows/test.yml +355 -0
- package/.github/workflows/windows.yml +165 -0
- package/.gitpod.yml +6 -0
- package/.ls-lint.yml +8 -0
- package/.yarnrc +1 -0
- package/babel.config.js +18 -0
- package/benchmarks/README.md +29 -0
- package/benchmarks/package.json +10 -0
- package/benchmarks/pages/stateless-big.vue +7 -0
- package/benchmarks/pages/stateless.vue +3 -0
- package/distributions/nuxt/README.md +153 -0
- package/distributions/nuxt/bin/nuxt.js +10 -0
- package/distributions/nuxt/package.js +29 -0
- package/distributions/nuxt/package.json +54 -0
- package/distributions/nuxt/src/index.js +5 -0
- package/distributions/nuxt/webpack.config.js +4 -0
- package/distributions/nuxt-start/README.md +42 -0
- package/distributions/nuxt-start/bin/nuxt-start.js +14 -0
- package/distributions/nuxt-start/package.js +42 -0
- package/distributions/nuxt-start/package.json +44 -0
- package/distributions/nuxt-start/src/index.js +1 -0
- package/examples/async-component-injection/README.md +3 -0
- package/examples/async-component-injection/assets/css/common.css +69 -0
- package/examples/async-component-injection/assets/css/index.css +57 -0
- package/examples/async-component-injection/assets/css/post.css +307 -0
- package/examples/async-component-injection/assets/img/github.png +0 -0
- package/examples/async-component-injection/assets/img/swimmer.jpg +0 -0
- package/examples/async-component-injection/assets/img/twitter.png +0 -0
- package/examples/async-component-injection/layouts/default.vue +20 -0
- package/examples/async-component-injection/nuxt.config.js +22 -0
- package/examples/async-component-injection/package.json +12 -0
- package/examples/async-component-injection/pages/_slug.vue +21 -0
- package/examples/async-component-injection/pages/index.vue +30 -0
- package/examples/async-component-injection/posts/404.vue +5 -0
- package/examples/async-component-injection/posts/deep-dive-into-ocean.vue +19 -0
- package/examples/async-component-injection/posts/welcome-to-my-blog.vue +12 -0
- package/examples/async-component-injection/static/favicon.ico +0 -0
- package/examples/async-data/README.md +3 -0
- package/examples/async-data/nuxt.config.js +15 -0
- package/examples/async-data/package.json +13 -0
- package/examples/async-data/pages/index.vue +35 -0
- package/examples/async-data/pages/posts/_id.vue +55 -0
- package/examples/async-data/pages/posts/index.vue +64 -0
- package/examples/auth-jwt/README.md +3 -0
- package/examples/auth-jwt/middleware/authenticated.js +6 -0
- package/examples/auth-jwt/middleware/notAuthenticated.js +6 -0
- package/examples/auth-jwt/package.json +14 -0
- package/examples/auth-jwt/pages/index.vue +34 -0
- package/examples/auth-jwt/pages/login.vue +37 -0
- package/examples/auth-jwt/pages/secret.vue +14 -0
- package/examples/auth-jwt/store/index.js +26 -0
- package/examples/auth-routes/README.md +3 -0
- package/examples/auth-routes/api/index.js +36 -0
- package/examples/auth-routes/middleware/auth.js +8 -0
- package/examples/auth-routes/nuxt.config.js +32 -0
- package/examples/auth-routes/package.json +16 -0
- package/examples/auth-routes/pages/index.vue +72 -0
- package/examples/auth-routes/pages/secret.vue +15 -0
- package/examples/auth-routes/store/index.js +37 -0
- package/examples/axios/README.md +38 -0
- package/examples/axios/nuxt.config.js +9 -0
- package/examples/axios/package.json +15 -0
- package/examples/axios/pages/index.vue +17 -0
- package/examples/cached-components/README.md +1 -0
- package/examples/cached-components/nuxt.config.js +10 -0
- package/examples/cached-components/package.json +13 -0
- package/examples/cached-components/pages/index.vue +20 -0
- package/examples/coffeescript/README.md +22 -0
- package/examples/coffeescript/components/Logo.vue +79 -0
- package/examples/coffeescript/layouts/default.vue +52 -0
- package/examples/coffeescript/modules/coffeescript.js +17 -0
- package/examples/coffeescript/nuxt.config.js +24 -0
- package/examples/coffeescript/package.json +20 -0
- package/examples/coffeescript/pages/README.md +7 -0
- package/examples/coffeescript/pages/index.vue +58 -0
- package/examples/coffeescript/static/favicon.ico +0 -0
- package/examples/coffeescript/store/index.coffee +2 -0
- package/examples/custom-build/README.md +1 -0
- package/examples/custom-build/assets/nuxt.png +0 -0
- package/examples/custom-build/nuxt.config.js +26 -0
- package/examples/custom-build/package.json +13 -0
- package/examples/custom-build/pages/index.vue +15 -0
- package/examples/custom-layouts/README.md +5 -0
- package/examples/custom-layouts/layouts/dark.vue +24 -0
- package/examples/custom-layouts/layouts/default.vue +15 -0
- package/examples/custom-layouts/layouts/error.vue +35 -0
- package/examples/custom-layouts/package.json +12 -0
- package/examples/custom-layouts/pages/about.vue +19 -0
- package/examples/custom-layouts/pages/index.vue +8 -0
- package/examples/custom-layouts/static/logo.png +0 -0
- package/examples/custom-loading/README.md +3 -0
- package/examples/custom-loading/components/loading.vue +36 -0
- package/examples/custom-loading/nuxt.config.js +3 -0
- package/examples/custom-loading/package.json +12 -0
- package/examples/custom-loading/pages/about.vue +28 -0
- package/examples/custom-loading/pages/index.vue +28 -0
- package/examples/custom-page-loading/README.md +5 -0
- package/examples/custom-page-loading/package.json +12 -0
- package/examples/custom-page-loading/pages/about.vue +53 -0
- package/examples/custom-page-loading/pages/final.vue +21 -0
- package/examples/custom-page-loading/pages/index.vue +28 -0
- package/examples/custom-port-host/README.md +3 -0
- package/examples/custom-port-host/nuxt.config.js +6 -0
- package/examples/custom-port-host/package.json +12 -0
- package/examples/custom-port-host/pages/index.vue +3 -0
- package/examples/custom-routes/README.md +3 -0
- package/examples/custom-routes/nuxt.config.js +2 -0
- package/examples/custom-routes/package.json +13 -0
- package/examples/custom-routes/pages/index.vue +46 -0
- package/examples/custom-routes/pages/users/_id.vue +38 -0
- package/examples/custom-server/README.md +3 -0
- package/examples/custom-server/nuxt.config.js +1 -0
- package/examples/custom-server/package.json +13 -0
- package/examples/custom-server/pages/index.vue +7 -0
- package/examples/custom-server/server.js +25 -0
- package/examples/custom-template/app.html +13 -0
- package/examples/custom-template/nuxt.config.js +5 -0
- package/examples/custom-template/package.json +12 -0
- package/examples/custom-template/pages/index.vue +5 -0
- package/examples/docker-build/.dockerignore +84 -0
- package/examples/docker-build/.yarnclean +5 -0
- package/examples/docker-build/Dockerfile +31 -0
- package/examples/docker-build/README.md +12 -0
- package/examples/docker-build/assets/README.md +1 -0
- package/examples/docker-build/components/README.md +1 -0
- package/examples/docker-build/layouts/README.md +1 -0
- package/examples/docker-build/layouts/default.vue +8 -0
- package/examples/docker-build/middleware/README.md +1 -0
- package/examples/docker-build/nuxt.config.js +54 -0
- package/examples/docker-build/package.json +15 -0
- package/examples/docker-build/pages/README.md +1 -0
- package/examples/docker-build/pages/index.vue +12 -0
- package/examples/docker-build/plugins/README.md +1 -0
- package/examples/docker-build/static/README.md +1 -0
- package/examples/docker-build/static/favicon.ico +0 -0
- package/examples/docker-build/store/README.md +1 -0
- package/examples/dynamic-components/README.md +5 -0
- package/examples/dynamic-components/components/chart.js +9 -0
- package/examples/dynamic-components/components/code.vue +23 -0
- package/examples/dynamic-components/components/image.vue +71 -0
- package/examples/dynamic-components/components/text.vue +22 -0
- package/examples/dynamic-components/js/messages.js +27 -0
- package/examples/dynamic-components/nuxt.config.js +9 -0
- package/examples/dynamic-components/package.json +15 -0
- package/examples/dynamic-components/pages/index.vue +71 -0
- package/examples/dynamic-components/pages/ssr.vue +63 -0
- package/examples/dynamic-layouts/README.md +3 -0
- package/examples/dynamic-layouts/layouts/error.vue +36 -0
- package/examples/dynamic-layouts/layouts/mobile.vue +39 -0
- package/examples/dynamic-layouts/middleware/mobile.js +4 -0
- package/examples/dynamic-layouts/nuxt.config.js +10 -0
- package/examples/dynamic-layouts/package.json +12 -0
- package/examples/dynamic-layouts/pages/about.vue +19 -0
- package/examples/dynamic-layouts/pages/index.vue +14 -0
- package/examples/dynamic-layouts/static/logo.png +0 -0
- package/examples/global-css/README.md +3 -0
- package/examples/global-css/assets/roboto.woff2 +0 -0
- package/examples/global-css/css/main.css +22 -0
- package/examples/global-css/nuxt.config.js +20 -0
- package/examples/global-css/package.json +13 -0
- package/examples/global-css/pages/about.vue +17 -0
- package/examples/global-css/pages/index.vue +17 -0
- package/examples/hello-world/README.md +3 -0
- package/examples/hello-world/nuxt.config.js +0 -0
- package/examples/hello-world/package.json +12 -0
- package/examples/hello-world/pages/about.vue +21 -0
- package/examples/hello-world/pages/index.vue +16 -0
- package/examples/i18n/README.md +5 -0
- package/examples/i18n/layouts/default.vue +95 -0
- package/examples/i18n/locales/en.json +16 -0
- package/examples/i18n/locales/fr.json +16 -0
- package/examples/i18n/middleware/i18n.js +21 -0
- package/examples/i18n/nuxt.config.js +10 -0
- package/examples/i18n/package.json +14 -0
- package/examples/i18n/pages/_lang/about.vue +18 -0
- package/examples/i18n/pages/_lang/index.vue +18 -0
- package/examples/i18n/pages/about.vue +4 -0
- package/examples/i18n/pages/index.vue +4 -0
- package/examples/i18n/plugins/i18n.js +25 -0
- package/examples/i18n/store/index.js +12 -0
- package/examples/jest-puppeteer/README.md +43 -0
- package/examples/jest-puppeteer/jest-puppeteer.config.js +10 -0
- package/examples/jest-puppeteer/jest.config.js +4 -0
- package/examples/jest-puppeteer/package.json +19 -0
- package/examples/jest-puppeteer/pages/about.vue +23 -0
- package/examples/jest-puppeteer/pages/index.vue +16 -0
- package/examples/jest-puppeteer/test/__snapshots__/index.spec.js.snap +5 -0
- package/examples/jest-puppeteer/test/index.spec.js +32 -0
- package/examples/jest-vtu-example/.eslintignore +1 -0
- package/examples/jest-vtu-example/README.md +13 -0
- package/examples/jest-vtu-example/babel.config.js +7 -0
- package/examples/jest-vtu-example/components/Btn/Btn.spec.js +34 -0
- package/examples/jest-vtu-example/components/Btn/Btn.vue +25 -0
- package/examples/jest-vtu-example/components/Btn/__snapshots__/Btn.spec.js.snap +7 -0
- package/examples/jest-vtu-example/layouts/default.vue +5 -0
- package/examples/jest-vtu-example/nuxt.config.js +3 -0
- package/examples/jest-vtu-example/package.json +47 -0
- package/examples/jest-vtu-example/pages/__snapshots__/index.spec.js.snap +12 -0
- package/examples/jest-vtu-example/pages/index.spec.js +14 -0
- package/examples/jest-vtu-example/pages/index.vue +20 -0
- package/examples/jsx/README.md +7 -0
- package/examples/jsx/components/test.vue +22 -0
- package/examples/jsx/package.json +12 -0
- package/examples/jsx/pages/about.js +21 -0
- package/examples/jsx/pages/index.js +20 -0
- package/examples/layout-transitions/README.md +3 -0
- package/examples/layout-transitions/assets/main.css +52 -0
- package/examples/layout-transitions/layouts/secondary.vue +6 -0
- package/examples/layout-transitions/nuxt.config.js +7 -0
- package/examples/layout-transitions/package.json +12 -0
- package/examples/layout-transitions/pages/about.vue +18 -0
- package/examples/layout-transitions/pages/index.vue +28 -0
- package/examples/layout-transitions/pages/users-2.vue +104 -0
- package/examples/layout-transitions/pages/users.vue +89 -0
- package/examples/markdownit/README.md +5 -0
- package/examples/markdownit/nuxt.config.js +8 -0
- package/examples/markdownit/package.json +18 -0
- package/examples/markdownit/pages/about.vue +6 -0
- package/examples/markdownit/pages/index.vue +19 -0
- package/examples/markdownit/pages/pug.vue +20 -0
- package/examples/markdownit/plugins/md-it.js +5 -0
- package/examples/meta-info/README.md +13 -0
- package/examples/meta-info/components/twitter-head-card.vue +22 -0
- package/examples/meta-info/nuxt.config.js +13 -0
- package/examples/meta-info/package.json +12 -0
- package/examples/meta-info/pages/about.vue +36 -0
- package/examples/meta-info/pages/index.vue +36 -0
- package/examples/meta-info/static/about.js +1 -0
- package/examples/meta-info/static/body.js +1 -0
- package/examples/meta-info/static/defer.js +1 -0
- package/examples/meta-info/static/head.js +1 -0
- package/examples/middleware/README.md +6 -0
- package/examples/middleware/components/Visits.vue +42 -0
- package/examples/middleware/layouts/default.vue +14 -0
- package/examples/middleware/middleware/user-agent.js +3 -0
- package/examples/middleware/middleware/visits.js +3 -0
- package/examples/middleware/nuxt.config.js +5 -0
- package/examples/middleware/package.json +12 -0
- package/examples/middleware/pages/_slug.vue +33 -0
- package/examples/middleware/store/index.js +12 -0
- package/examples/minimal-features/README.md +3 -0
- package/examples/minimal-features/nuxt.config.js +28 -0
- package/examples/minimal-features/package.json +12 -0
- package/examples/minimal-features/pages/about.vue +21 -0
- package/examples/minimal-features/pages/index.vue +16 -0
- package/examples/named-views/README.md +1 -0
- package/examples/named-views/components/childLeft.vue +15 -0
- package/examples/named-views/components/mainTop.vue +19 -0
- package/examples/named-views/layouts/default.vue +6 -0
- package/examples/named-views/nuxt.config.js +30 -0
- package/examples/named-views/package.json +12 -0
- package/examples/named-views/pages/index/child/_id/index.vue +24 -0
- package/examples/named-views/pages/index/section.vue +16 -0
- package/examples/named-views/pages/index.vue +73 -0
- package/examples/named-views/pages/main.vue +50 -0
- package/examples/nested-components/README.md +1 -0
- package/examples/nested-components/components/paragraph.vue +12 -0
- package/examples/nested-components/components/post.vue +32 -0
- package/examples/nested-components/package.json +12 -0
- package/examples/nested-components/pages/index.vue +54 -0
- package/examples/nested-routes/README.md +3 -0
- package/examples/nested-routes/nuxt.config.js +29 -0
- package/examples/nested-routes/package.json +13 -0
- package/examples/nested-routes/pages/index/_id.vue +34 -0
- package/examples/nested-routes/pages/index/index.vue +19 -0
- package/examples/nested-routes/pages/index.vue +77 -0
- package/examples/new-fetch/README.md +5 -0
- package/examples/new-fetch/components/Author.vue +30 -0
- package/examples/new-fetch/layouts/default.vue +28 -0
- package/examples/new-fetch/nuxt.config.js +18 -0
- package/examples/new-fetch/package.json +18 -0
- package/examples/new-fetch/pages/index.vue +43 -0
- package/examples/new-fetch/pages/posts/_id.vue +54 -0
- package/examples/new-fetch/plugins/vue-placeholders.js +4 -0
- package/examples/no-ssr/README.md +3 -0
- package/examples/no-ssr/package.json +12 -0
- package/examples/no-ssr/pages/index.vue +17 -0
- package/examples/nuxt-prefetch/README.md +3 -0
- package/examples/nuxt-prefetch/assets/check.svg +1 -0
- package/examples/nuxt-prefetch/layouts/default.vue +57 -0
- package/examples/nuxt-prefetch/nuxt.config.js +22 -0
- package/examples/nuxt-prefetch/package.json +12 -0
- package/examples/nuxt-prefetch/pages/accelerated.vue +17 -0
- package/examples/nuxt-prefetch/pages/active.vue +17 -0
- package/examples/nuxt-prefetch/pages/agile.vue +17 -0
- package/examples/nuxt-prefetch/pages/brisk.vue +17 -0
- package/examples/nuxt-prefetch/pages/dashing.vue +17 -0
- package/examples/nuxt-prefetch/pages/electric.vue +17 -0
- package/examples/nuxt-prefetch/pages/flashing.vue +17 -0
- package/examples/nuxt-prefetch/pages/fleet.vue +17 -0
- package/examples/nuxt-prefetch/pages/fleeting.vue +17 -0
- package/examples/nuxt-prefetch/pages/flying.vue +17 -0
- package/examples/nuxt-prefetch/pages/hot.vue +17 -0
- package/examples/nuxt-prefetch/pages/hurried.vue +17 -0
- package/examples/nuxt-prefetch/pages/index.vue +17 -0
- package/examples/nuxt-prefetch/pages/nimble.vue +17 -0
- package/examples/nuxt-prefetch/pages/quick.vue +17 -0
- package/examples/nuxt-prefetch/pages/racing.vue +17 -0
- package/examples/nuxt-prefetch/pages/rapid.vue +17 -0
- package/examples/nuxt-prefetch/pages/ready.vue +17 -0
- package/examples/nuxt-prefetch/pages/snap.vue +17 -0
- package/examples/nuxt-prefetch/pages/swift.vue +17 -0
- package/examples/nuxt-prefetch/pages/winged.vue +17 -0
- package/examples/nuxt-prefetch/store/index.js +25 -0
- package/examples/plugins-vendor/README.md +3 -0
- package/examples/plugins-vendor/nuxt.config.js +6 -0
- package/examples/plugins-vendor/package.json +15 -0
- package/examples/plugins-vendor/pages/about.vue +29 -0
- package/examples/plugins-vendor/pages/index.vue +42 -0
- package/examples/plugins-vendor/plugins/vue-notifications.js +23 -0
- package/examples/programmatic/nuxt.config.js +5 -0
- package/examples/programmatic/package.json +12 -0
- package/examples/programmatic/pages/index.vue +5 -0
- package/examples/programmatic/scripts/build.js +8 -0
- package/examples/programmatic/scripts/dev.js +9 -0
- package/examples/programmatic/scripts/start.js +8 -0
- package/examples/pug/README.md +3 -0
- package/examples/pug/package.json +14 -0
- package/examples/pug/pages/about.vue +18 -0
- package/examples/pug/pages/index.vue +13 -0
- package/examples/pug-stylus-coffee/README.md +20 -0
- package/examples/pug-stylus-coffee/components/Logo.vue +66 -0
- package/examples/pug-stylus-coffee/components/README.md +7 -0
- package/examples/pug-stylus-coffee/layouts/README.md +7 -0
- package/examples/pug-stylus-coffee/layouts/default.vue +46 -0
- package/examples/pug-stylus-coffee/middleware/README.md +8 -0
- package/examples/pug-stylus-coffee/modules/coffeescript.js +17 -0
- package/examples/pug-stylus-coffee/nuxt.config.coffee +48 -0
- package/examples/pug-stylus-coffee/nuxt.config.js +2 -0
- package/examples/pug-stylus-coffee/package.json +25 -0
- package/examples/pug-stylus-coffee/pages/README.md +7 -0
- package/examples/pug-stylus-coffee/pages/index.vue +55 -0
- package/examples/pug-stylus-coffee/plugins/README.md +7 -0
- package/examples/pug-stylus-coffee/static/README.md +10 -0
- package/examples/pug-stylus-coffee/static/favicon.ico +0 -0
- package/examples/pug-stylus-coffee/store/README.md +10 -0
- package/examples/pug-stylus-coffee/store/index.coffee +3 -0
- package/examples/routes-meta/README.md +5 -0
- package/examples/routes-meta/layouts/default.vue +73 -0
- package/examples/routes-meta/middleware/theme.js +5 -0
- package/examples/routes-meta/nuxt.config.js +6 -0
- package/examples/routes-meta/package.json +13 -0
- package/examples/routes-meta/pages/about.vue +32 -0
- package/examples/routes-meta/pages/index.vue +22 -0
- package/examples/routes-meta/pages/parent/blue.vue +20 -0
- package/examples/routes-meta/pages/parent.vue +18 -0
- package/examples/routes-meta/store/index.js +9 -0
- package/examples/routes-transitions/README.md +3 -0
- package/examples/routes-transitions/assets/main.css +45 -0
- package/examples/routes-transitions/nuxt.config.js +3 -0
- package/examples/routes-transitions/package.json +12 -0
- package/examples/routes-transitions/pages/about.vue +14 -0
- package/examples/routes-transitions/pages/index.vue +15 -0
- package/examples/routes-transitions/pages/users.vue +87 -0
- package/examples/scroll-behavior/README.md +3 -0
- package/examples/scroll-behavior/assets/main.css +69 -0
- package/examples/scroll-behavior/layouts/default2.vue +3 -0
- package/examples/scroll-behavior/nuxt.config.js +4 -0
- package/examples/scroll-behavior/package.json +14 -0
- package/examples/scroll-behavior/pages/about/contact.vue +13 -0
- package/examples/scroll-behavior/pages/about/profile.vue +12 -0
- package/examples/scroll-behavior/pages/about.vue +27 -0
- package/examples/scroll-behavior/pages/another-long.vue +16 -0
- package/examples/scroll-behavior/pages/index.vue +31 -0
- package/examples/scroll-behavior/pages/long.vue +42 -0
- package/examples/scroll-behavior/pages/users.vue +87 -0
- package/examples/spa/README.md +2 -0
- package/examples/spa/assets/main.css +6 -0
- package/examples/spa/nuxt.config.js +41 -0
- package/examples/spa/package.json +12 -0
- package/examples/spa/pages/about.vue +18 -0
- package/examples/spa/pages/index.vue +8 -0
- package/examples/spa/static/favicon.ico +0 -0
- package/examples/static-images/README.md +3 -0
- package/examples/static-images/package.json +12 -0
- package/examples/static-images/pages/about.vue +40 -0
- package/examples/static-images/pages/index.vue +19 -0
- package/examples/static-images/static/nuxt-black.png +0 -0
- package/examples/static-images/static/nuxt.png +0 -0
- package/examples/storybook/.storybook/addons.js +5 -0
- package/examples/storybook/.storybook/config.js +21 -0
- package/examples/storybook/.storybook/webpack.config.js +14 -0
- package/examples/storybook/README.md +44 -0
- package/examples/storybook/components/Button.vue +36 -0
- package/examples/storybook/components/Layout.vue +92 -0
- package/examples/storybook/components/LineChart.js +9 -0
- package/examples/storybook/components/Logo.vue +79 -0
- package/examples/storybook/components/VuetifyLogo.vue +16 -0
- package/examples/storybook/components/Welcome.vue +124 -0
- package/examples/storybook/layouts/default.vue +102 -0
- package/examples/storybook/nuxt.config.js +40 -0
- package/examples/storybook/package.json +35 -0
- package/examples/storybook/pages/index.vue +63 -0
- package/examples/storybook/pages/inspire.vue +15 -0
- package/examples/storybook/plugins/vuetify.js +15 -0
- package/examples/storybook/static/favicon.ico +0 -0
- package/examples/storybook/static/v.png +0 -0
- package/examples/storybook/store/README.md +10 -0
- package/examples/storybook/stories/LineChart.story.js +92 -0
- package/examples/storybook/stories/Logo.story.js +45 -0
- package/examples/storybook/stories/MyButton.story.js +14 -0
- package/examples/storybook/stories/Welcome.story.js +14 -0
- package/examples/storybook/stories/collection.story.js +227 -0
- package/examples/storybook/stories/storybase.js +82 -0
- package/examples/storybook/stories/vuetify.story.js +110 -0
- package/examples/style-resources/README.md +56 -0
- package/examples/style-resources/assets/resources.less +1 -0
- package/examples/style-resources/assets/variables.scss +1 -0
- package/examples/style-resources/nuxt.config.js +9 -0
- package/examples/style-resources/package.json +18 -0
- package/examples/style-resources/pages/index.vue +18 -0
- package/examples/style-resources/pages/less.vue +21 -0
- package/examples/styled-vue/README.md +5 -0
- package/examples/styled-vue/nuxt.config.js +5 -0
- package/examples/styled-vue/package.json +16 -0
- package/examples/styled-vue/pages/index.vue +35 -0
- package/examples/tailwindcss/README.md +5 -0
- package/examples/tailwindcss/assets/css/tailwind.css +57 -0
- package/examples/tailwindcss/layouts/default.vue +14 -0
- package/examples/tailwindcss/nuxt.config.js +3 -0
- package/examples/tailwindcss/package.json +17 -0
- package/examples/tailwindcss/pages/about.vue +21 -0
- package/examples/tailwindcss/pages/index.vue +29 -0
- package/examples/tailwindcss/postcss.config.js +6 -0
- package/examples/tailwindcss/tailwind.js +744 -0
- package/examples/tailwindcss-purgecss/.github/demo.png +0 -0
- package/examples/tailwindcss-purgecss/.github/pagespeed-desktop.png +0 -0
- package/examples/tailwindcss-purgecss/.github/pagespeed-mobile.png +0 -0
- package/examples/tailwindcss-purgecss/.github/tailwind-default.png +0 -0
- package/examples/tailwindcss-purgecss/.github/tailwind-purgecss.png +0 -0
- package/examples/tailwindcss-purgecss/README.md +27 -0
- package/examples/tailwindcss-purgecss/assets/css/tailwind.css +63 -0
- package/examples/tailwindcss-purgecss/components/MyComponent.vue +7 -0
- package/examples/tailwindcss-purgecss/layouts/default.vue +8 -0
- package/examples/tailwindcss-purgecss/nuxt.config.js +25 -0
- package/examples/tailwindcss-purgecss/package.json +25 -0
- package/examples/tailwindcss-purgecss/pages/index.vue +21 -0
- package/examples/tailwindcss-purgecss/tailwind.config.js +20 -0
- package/examples/uikit/README.md +7 -0
- package/examples/uikit/layouts/default.vue +5 -0
- package/examples/uikit/nuxt.config.js +6 -0
- package/examples/uikit/package.json +14 -0
- package/examples/uikit/pages/about.vue +21 -0
- package/examples/uikit/pages/index.vue +22 -0
- package/examples/uikit/plugins/uikit.js +5 -0
- package/examples/vue-apollo/README.md +9 -0
- package/examples/vue-apollo/apollo/queries/allCars.gql +8 -0
- package/examples/vue-apollo/apollo/queries/car.gql +8 -0
- package/examples/vue-apollo/nuxt.config.js +10 -0
- package/examples/vue-apollo/package.json +16 -0
- package/examples/vue-apollo/pages/car/_id.vue +49 -0
- package/examples/vue-apollo/pages/index.vue +44 -0
- package/examples/vue-chartjs/README.md +7 -0
- package/examples/vue-chartjs/components/bar-chart.js +9 -0
- package/examples/vue-chartjs/components/doughnut-chart.js +9 -0
- package/examples/vue-chartjs/layouts/default.vue +62 -0
- package/examples/vue-chartjs/nuxt.config.js +16 -0
- package/examples/vue-chartjs/package.json +16 -0
- package/examples/vue-chartjs/pages/contributors.vue +57 -0
- package/examples/vue-chartjs/pages/index.vue +44 -0
- package/examples/vue-class-component/README.md +3 -0
- package/examples/vue-class-component/components/Base.vue +49 -0
- package/examples/vue-class-component/components/Child.vue +30 -0
- package/examples/vue-class-component/package.json +13 -0
- package/examples/vue-class-component/pages/about.vue +10 -0
- package/examples/vue-class-component/pages/index.vue +19 -0
- package/examples/vuex-persistedstate/README.md +4 -0
- package/examples/vuex-persistedstate/nuxt.config.js +6 -0
- package/examples/vuex-persistedstate/package.json +13 -0
- package/examples/vuex-persistedstate/pages/index.vue +26 -0
- package/examples/vuex-persistedstate/store/index.js +14 -0
- package/examples/vuex-store/README.md +7 -0
- package/examples/vuex-store/package.json +12 -0
- package/examples/vuex-store/pages/about.vue +12 -0
- package/examples/vuex-store/pages/index.vue +44 -0
- package/examples/vuex-store/pages/todos.vue +45 -0
- package/examples/vuex-store/pages/website.vue +35 -0
- package/examples/vuex-store/store/articles/comments/mutations.js +5 -0
- package/examples/vuex-store/store/articles/comments.js +13 -0
- package/examples/vuex-store/store/articles.js +19 -0
- package/examples/vuex-store/store/index.js +9 -0
- package/examples/vuex-store/store/todos/getters.js +5 -0
- package/examples/vuex-store/store/todos/mutations.js +12 -0
- package/examples/vuex-store/store/todos/state.js +3 -0
- package/examples/web-worker/.eslintrc.js +19 -0
- package/examples/web-worker/README.md +26 -0
- package/examples/web-worker/assets/README.md +8 -0
- package/examples/web-worker/assets/js/Example.worker.js +19 -0
- package/examples/web-worker/components/AppLogo.vue +79 -0
- package/examples/web-worker/components/README.md +6 -0
- package/examples/web-worker/layouts/README.md +8 -0
- package/examples/web-worker/layouts/default.vue +58 -0
- package/examples/web-worker/nuxt.config.js +52 -0
- package/examples/web-worker/package.json +24 -0
- package/examples/web-worker/pages/README.md +7 -0
- package/examples/web-worker/pages/index.vue +185 -0
- package/examples/web-worker/plugins/README.md +8 -0
- package/examples/web-worker/plugins/inject-ww.js +9 -0
- package/examples/web-worker/static/README.md +11 -0
- package/examples/web-worker/static/favicon.ico +0 -0
- package/examples/with-amp/README.md +3 -0
- package/examples/with-amp/app.html +11 -0
- package/examples/with-amp/assets/main.css +23 -0
- package/examples/with-amp/components/Byline.vue +16 -0
- package/examples/with-amp/nuxt.config.js +39 -0
- package/examples/with-amp/package.json +14 -0
- package/examples/with-amp/pages/dog.vue +36 -0
- package/examples/with-amp/pages/index.vue +36 -0
- package/examples/with-amp/static/cat.jpg +0 -0
- package/examples/with-amp/static/dog.jpg +0 -0
- package/examples/with-ava/Readme.md +7 -0
- package/examples/with-ava/package.json +17 -0
- package/examples/with-ava/pages/index.vue +19 -0
- package/examples/with-ava/test/index.test.js +43 -0
- package/examples/with-buefy/README.md +3 -0
- package/examples/with-buefy/components/card.vue +42 -0
- package/examples/with-buefy/nuxt.config.js +12 -0
- package/examples/with-buefy/package.json +16 -0
- package/examples/with-buefy/pages/index.vue +43 -0
- package/examples/with-cookies/README.md +5 -0
- package/examples/with-cookies/nuxt.config.js +9 -0
- package/examples/with-cookies/package.json +14 -0
- package/examples/with-cookies/pages/index.vue +85 -0
- package/examples/with-cookies/plugins/cookies.js +34 -0
- package/examples/with-element-ui/README.md +3 -0
- package/examples/with-element-ui/layouts/default.vue +10 -0
- package/examples/with-element-ui/nuxt.config.js +15 -0
- package/examples/with-element-ui/package.json +19 -0
- package/examples/with-element-ui/pages/index.vue +108 -0
- package/examples/with-element-ui/plugins/element-ui.js +7 -0
- package/examples/with-feathers/.editorconfig +13 -0
- package/examples/with-feathers/.eslintrc.js +42 -0
- package/examples/with-feathers/.jshintrc +29 -0
- package/examples/with-feathers/LICENSE +22 -0
- package/examples/with-feathers/README.md +50 -0
- package/examples/with-feathers/config/default.json +11 -0
- package/examples/with-feathers/config/production.json +11 -0
- package/examples/with-feathers/nuxt.config.js +5 -0
- package/examples/with-feathers/package.json +47 -0
- package/examples/with-feathers/pages/about.vue +18 -0
- package/examples/with-feathers/pages/index.vue +8 -0
- package/examples/with-feathers/src/app.js +28 -0
- package/examples/with-feathers/src/hooks/index.js +11 -0
- package/examples/with-feathers/src/index.js +14 -0
- package/examples/with-feathers/src/middleware/index.js +10 -0
- package/examples/with-feathers/src/middleware/nuxt.js +23 -0
- package/examples/with-feathers/src/services/authentication/index.js +9 -0
- package/examples/with-feathers/src/services/index.js +9 -0
- package/examples/with-feathers/src/services/user/hooks/index.js +50 -0
- package/examples/with-feathers/src/services/user/index.js +33 -0
- package/examples/with-feathers/static/favicon.ico +0 -0
- package/examples/with-feathers/test/app.test.js +36 -0
- package/examples/with-feathers/test/services/user/index.test.js +8 -0
- package/examples/with-firebase/README.md +29 -0
- package/examples/with-firebase/layouts/default.vue +29 -0
- package/examples/with-firebase/nuxt.config.js +11 -0
- package/examples/with-firebase/package.json +21 -0
- package/examples/with-firebase/pages/index.vue +41 -0
- package/examples/with-firebase/pages/users/_key.vue +31 -0
- package/examples/with-firebase/plugins/axios.js +5 -0
- package/examples/with-keep-alive/README.md +15 -0
- package/examples/with-keep-alive/layouts/default.vue +3 -0
- package/examples/with-keep-alive/package.json +12 -0
- package/examples/with-keep-alive/pages/about.vue +21 -0
- package/examples/with-keep-alive/pages/index.vue +16 -0
- package/examples/with-museui/README.md +3 -0
- package/examples/with-museui/nuxt.config.js +26 -0
- package/examples/with-museui/package.json +13 -0
- package/examples/with-museui/pages/index.vue +43 -0
- package/examples/with-museui/plugins/museui.js +4 -0
- package/examples/with-purgecss/README.md +6 -0
- package/examples/with-purgecss/assets/css/tailwind.css +57 -0
- package/examples/with-purgecss/layouts/default.vue +14 -0
- package/examples/with-purgecss/nuxt.config.js +44 -0
- package/examples/with-purgecss/package.json +18 -0
- package/examples/with-purgecss/pages/about.vue +21 -0
- package/examples/with-purgecss/pages/index.vue +29 -0
- package/examples/with-purgecss/tailwind.js +744 -0
- package/examples/with-sockets/README.md +12 -0
- package/examples/with-sockets/io/index.js +26 -0
- package/examples/with-sockets/nuxt.config.js +12 -0
- package/examples/with-sockets/package.json +18 -0
- package/examples/with-sockets/pages/index.vue +157 -0
- package/examples/with-sockets/plugins/socket.io.js +4 -0
- package/examples/with-sockets/server.js +36 -0
- package/examples/with-tape/README.md +3 -0
- package/examples/with-tape/package.json +22 -0
- package/examples/with-tape/pages/index.vue +35 -0
- package/examples/with-tape/test/index.test.js +43 -0
- package/examples/with-tape/test/setup.js +14 -0
- package/examples/with-vue-material/README.md +9 -0
- package/examples/with-vue-material/nuxt.config.js +25 -0
- package/examples/with-vue-material/package.json +15 -0
- package/examples/with-vue-material/pages/index.vue +132 -0
- package/examples/with-vue-material/plugins/vue-material.js +4 -0
- package/examples/with-vuetify/README.md +11 -0
- package/examples/with-vuetify/assets/variabales.scss +1 -0
- package/examples/with-vuetify/layouts/default.vue +103 -0
- package/examples/with-vuetify/nuxt.config.js +25 -0
- package/examples/with-vuetify/package.json +16 -0
- package/examples/with-vuetify/pages/about.vue +18 -0
- package/examples/with-vuetify/pages/index.vue +11 -0
- package/examples/with-vuetify/vuetify.options.js +13 -0
- package/examples/with-vuikit/README.md +3 -0
- package/examples/with-vuikit/layouts/default.vue +5 -0
- package/examples/with-vuikit/nuxt.config.js +6 -0
- package/examples/with-vuikit/package.json +15 -0
- package/examples/with-vuikit/pages/index.vue +19 -0
- package/examples/with-vuikit/plugins/vuikit.js +6 -0
- package/examples/with-vux/README.md +3 -0
- package/examples/with-vux/layouts/default.vue +9 -0
- package/examples/with-vux/nuxt.config.js +40 -0
- package/examples/with-vux/package.json +20 -0
- package/examples/with-vux/pages/index.vue +22 -0
- package/examples/with-vux/plugins/vux-components.js +5 -0
- package/examples/with-vux/plugins/vux-plugins.js +12 -0
- package/examples/with-vux/styles/theme.less +1 -0
- package/jest.config.js +61 -0
- package/lerna.json +28 -0
- package/package.json +66 -0
- package/packages/babel-preset-app/README.md +120 -0
- package/packages/babel-preset-app/package.json +33 -0
- package/packages/babel-preset-app/src/index.js +187 -0
- package/packages/babel-preset-app/src/polyfills-plugin.js +37 -0
- package/packages/builder/package.js +7 -0
- package/packages/builder/package.json +30 -0
- package/packages/builder/src/builder.js +795 -0
- package/packages/builder/src/context/build.js +16 -0
- package/packages/builder/src/context/template.js +82 -0
- package/packages/builder/src/ignore.js +59 -0
- package/packages/builder/src/index.js +10 -0
- package/packages/builder/test/__utils__/index.js +24 -0
- package/packages/builder/test/builder.build.test.js +209 -0
- package/packages/builder/test/builder.common.test.js +59 -0
- package/packages/builder/test/builder.ctor.test.js +116 -0
- package/packages/builder/test/builder.generate.test.js +710 -0
- package/packages/builder/test/builder.plugin.test.js +189 -0
- package/packages/builder/test/builder.watch.test.js +435 -0
- package/packages/builder/test/context/__snapshots__/template.test.js.snap +117 -0
- package/packages/builder/test/context/build.test.js +38 -0
- package/packages/builder/test/context/template.test.js +87 -0
- package/packages/builder/test/ignore.test.js +147 -0
- package/packages/builder/test/index.test.js +9 -0
- package/packages/cli/bin/nuxt-cli.js +7 -0
- package/packages/cli/package.js +5 -0
- package/packages/cli/package.json +43 -0
- package/packages/cli/src/command.js +239 -0
- package/packages/cli/src/commands/build.js +92 -0
- package/packages/cli/src/commands/dev.js +116 -0
- package/packages/cli/src/commands/export.js +10 -0
- package/packages/cli/src/commands/generate.js +121 -0
- package/packages/cli/src/commands/help.js +29 -0
- package/packages/cli/src/commands/index.js +17 -0
- package/packages/cli/src/commands/serve.js +10 -0
- package/packages/cli/src/commands/start.js +27 -0
- package/packages/cli/src/commands/webpack.js +116 -0
- package/packages/cli/src/imports.js +18 -0
- package/packages/cli/src/index.js +16 -0
- package/packages/cli/src/list.js +35 -0
- package/packages/cli/src/options/common.js +68 -0
- package/packages/cli/src/options/index.js +9 -0
- package/packages/cli/src/options/locking.js +7 -0
- package/packages/cli/src/options/server.js +29 -0
- package/packages/cli/src/run.js +56 -0
- package/packages/cli/src/setup.js +41 -0
- package/packages/cli/src/utils/banner.js +60 -0
- package/packages/cli/src/utils/config.js +34 -0
- package/packages/cli/src/utils/constants.js +8 -0
- package/packages/cli/src/utils/dependencies.js +35 -0
- package/packages/cli/src/utils/dir.js +11 -0
- package/packages/cli/src/utils/formatting.js +69 -0
- package/packages/cli/src/utils/generate.js +185 -0
- package/packages/cli/src/utils/index.js +64 -0
- package/packages/cli/src/utils/memory.js +18 -0
- package/packages/cli/src/utils/serve.js +78 -0
- package/packages/cli/src/utils/webpack.js +11 -0
- package/packages/cli/test/fixtures/nuxt.async-config.js +9 -0
- package/packages/cli/test/fixtures/nuxt.async-error.js +1 -0
- package/packages/cli/test/fixtures/nuxt.config.js +10 -0
- package/packages/cli/test/fixtures/nuxt.fn-config.js +3 -0
- package/packages/cli/test/unit/__snapshots__/command.test.js.snap +46 -0
- package/packages/cli/test/unit/__snapshots__/webpack.test.js.snap +726 -0
- package/packages/cli/test/unit/build.test.js +148 -0
- package/packages/cli/test/unit/cli.test.js +47 -0
- package/packages/cli/test/unit/command.test.js +173 -0
- package/packages/cli/test/unit/dependencies.test.js +24 -0
- package/packages/cli/test/unit/dev.test.js +141 -0
- package/packages/cli/test/unit/export.test.js +118 -0
- package/packages/cli/test/unit/generate.test.js +162 -0
- package/packages/cli/test/unit/hooks.test.js +52 -0
- package/packages/cli/test/unit/imports.test.js +19 -0
- package/packages/cli/test/unit/list.test.js +57 -0
- package/packages/cli/test/unit/run-edge.test.js +18 -0
- package/packages/cli/test/unit/run.test.js +75 -0
- package/packages/cli/test/unit/serve.test.js +38 -0
- package/packages/cli/test/unit/start.test.js +68 -0
- package/packages/cli/test/unit/utils-minimalcli.test.js +33 -0
- package/packages/cli/test/unit/utils.test.js +273 -0
- package/packages/cli/test/unit/webpack.test.js +50 -0
- package/packages/cli/test/utils/index.js +14 -0
- package/packages/cli/test/utils/mocking.js +121 -0
- package/packages/config/index.d.ts +3 -0
- package/packages/config/package.js +3 -0
- package/packages/config/package.json +26 -0
- package/packages/config/src/config/_app.js +75 -0
- package/packages/config/src/config/_common.js +93 -0
- package/packages/config/src/config/build.js +136 -0
- package/packages/config/src/config/cli.js +4 -0
- package/packages/config/src/config/generate.js +23 -0
- package/packages/config/src/config/index.js +33 -0
- package/packages/config/src/config/messages.js +12 -0
- package/packages/config/src/config/modes.js +20 -0
- package/packages/config/src/config/render.js +45 -0
- package/packages/config/src/config/router.js +18 -0
- package/packages/config/src/config/server.js +14 -0
- package/packages/config/src/index.js +3 -0
- package/packages/config/src/load.js +189 -0
- package/packages/config/src/options.js +529 -0
- package/packages/config/test/__snapshots__/options.test.js.snap +432 -0
- package/packages/config/test/config/__snapshots__/index.test.js.snap +777 -0
- package/packages/config/test/config/_common.test.js +14 -0
- package/packages/config/test/config/build.test.js +32 -0
- package/packages/config/test/config/index.test.js +28 -0
- package/packages/config/test/config/render.test.js +19 -0
- package/packages/config/test/config/server.test.js +45 -0
- package/packages/config/test/fixtures/app.html +0 -0
- package/packages/config/test/fixtures/nuxtrc/.nuxtrc +1 -0
- package/packages/config/test/fixtures/store/index.js +0 -0
- package/packages/config/test/index.test.js +16 -0
- package/packages/config/test/load.test.js +10 -0
- package/packages/config/test/options.test.js +329 -0
- package/packages/core/package.js +3 -0
- package/packages/core/package.json +23 -0
- package/packages/core/src/index.js +5 -0
- package/packages/core/src/load.js +40 -0
- package/packages/core/src/module.js +219 -0
- package/packages/core/src/nuxt.js +125 -0
- package/packages/core/src/resolver.js +165 -0
- package/packages/core/test/__modules__/__resolver__.js +0 -0
- package/packages/core/test/index.test.js +17 -0
- package/packages/core/test/module.test.js +477 -0
- package/packages/core/test/nuxt.test.js +179 -0
- package/packages/core/test/resolver.test.js +424 -0
- package/packages/generator/package.js +3 -0
- package/packages/generator/package.json +24 -0
- package/packages/generator/src/generator.js +443 -0
- package/packages/generator/src/index.js +6 -0
- package/packages/generator/test/__utils__/index.js +27 -0
- package/packages/generator/test/generator.gen.test.js +201 -0
- package/packages/generator/test/generator.init.test.js +234 -0
- package/packages/generator/test/generator.route.test.js +245 -0
- package/packages/generator/test/index.test.js +11 -0
- package/packages/server/package.js +4 -0
- package/packages/server/package.json +32 -0
- package/packages/server/src/context.js +8 -0
- package/packages/server/src/index.js +2 -0
- package/packages/server/src/jsdom.js +75 -0
- package/packages/server/src/listener.js +120 -0
- package/packages/server/src/middleware/error.js +129 -0
- package/packages/server/src/middleware/nuxt.js +156 -0
- package/packages/server/src/middleware/timing.js +56 -0
- package/packages/server/src/server.js +427 -0
- package/packages/server/test/contest.test.js +17 -0
- package/packages/server/test/index.test.js +14 -0
- package/packages/server/test/listener.test.js +428 -0
- package/packages/server/test/middleware/error.test.js +221 -0
- package/packages/server/test/middleware/nuxt.test.js +352 -0
- package/packages/server/test/middleware/timing.test.js +103 -0
- package/packages/server/test/server.test.js +546 -0
- package/packages/types/README.md +8 -0
- package/packages/types/app/index.d.ts +179 -0
- package/packages/types/app/vue.d.ts +44 -0
- package/packages/types/app/vuex.d.ts +10 -0
- package/packages/types/cli/index.d.ts +8 -0
- package/packages/types/config/build.d.ts +185 -0
- package/packages/types/config/cli.d.ts +14 -0
- package/packages/types/config/env.d.ts +6 -0
- package/packages/types/config/features.d.ts +19 -0
- package/packages/types/config/fetch.d.ts +9 -0
- package/packages/types/config/generate.d.ts +28 -0
- package/packages/types/config/globals.d.ts +7 -0
- package/packages/types/config/head.d.ts +9 -0
- package/packages/types/config/hooks.d.ts +53 -0
- package/packages/types/config/index.d.ts +77 -0
- package/packages/types/config/loading.d.ts +27 -0
- package/packages/types/config/module.d.ts +31 -0
- package/packages/types/config/plugin.d.ts +7 -0
- package/packages/types/config/render.d.ts +76 -0
- package/packages/types/config/router.d.ts +27 -0
- package/packages/types/config/runtime.d.ts +15 -0
- package/packages/types/config/server-middleware.d.ts +10 -0
- package/packages/types/config/server.d.ts +15 -0
- package/packages/types/config/vue-configuration.d.ts +9 -0
- package/packages/types/config/watchers.d.ts +14 -0
- package/packages/types/index.d.ts +11 -0
- package/packages/types/index.js +1 -0
- package/packages/types/package.js +3 -0
- package/packages/types/package.json +37 -0
- package/packages/types/process.d.ts +14 -0
- package/packages/types/test/index.ts +2 -0
- package/packages/types/test/process.ts +17 -0
- package/packages/types/test/tsconfig.json +13 -0
- package/packages/types/test/vue.ts +112 -0
- package/packages/utils/package.js +3 -0
- package/packages/utils/package.json +27 -0
- package/packages/utils/src/cjs.js +98 -0
- package/packages/utils/src/constants.js +9 -0
- package/packages/utils/src/context.js +21 -0
- package/packages/utils/src/index.js +11 -0
- package/packages/utils/src/lang.js +40 -0
- package/packages/utils/src/locking.js +102 -0
- package/packages/utils/src/modern.js +61 -0
- package/packages/utils/src/resolve.js +110 -0
- package/packages/utils/src/route.js +280 -0
- package/packages/utils/src/serialize.js +52 -0
- package/packages/utils/src/task.js +40 -0
- package/packages/utils/src/timer.js +65 -0
- package/packages/utils/test/__snapshots__/route.test.js.snap +261 -0
- package/packages/utils/test/cjs.test.js +14 -0
- package/packages/utils/test/context.test.js +24 -0
- package/packages/utils/test/index.test.js +30 -0
- package/packages/utils/test/lang.test.js +55 -0
- package/packages/utils/test/locking.test.js +223 -0
- package/packages/utils/test/modern.test.js +60 -0
- package/packages/utils/test/resolve.posix.test.js +85 -0
- package/packages/utils/test/resolve.win.test.js +90 -0
- package/packages/utils/test/route.test.js +240 -0
- package/packages/utils/test/serialize.test.input.js +41 -0
- package/packages/utils/test/serialize.test.js +69 -0
- package/packages/utils/test/task.test.js +117 -0
- package/packages/utils/test/timer.test.js +165 -0
- package/packages/vue-app/index.d.ts +3 -0
- package/packages/vue-app/package.js +16 -0
- package/packages/vue-app/package.json +31 -0
- package/packages/vue-app/src/index.js +28 -0
- package/packages/vue-app/template/.eslintignore +3 -0
- package/packages/vue-app/template/App.js +347 -0
- package/packages/vue-app/template/client.js +951 -0
- package/packages/vue-app/template/components/nuxt-build-indicator.vue +143 -0
- package/packages/vue-app/template/components/nuxt-child.js +128 -0
- package/packages/vue-app/template/components/nuxt-error.vue +99 -0
- package/packages/vue-app/template/components/nuxt-link.client.js +128 -0
- package/packages/vue-app/template/components/nuxt-link.server.js +17 -0
- package/packages/vue-app/template/components/nuxt-loading.vue +177 -0
- package/packages/vue-app/template/components/nuxt.js +109 -0
- package/packages/vue-app/template/empty.js +1 -0
- package/packages/vue-app/template/index.js +298 -0
- package/packages/vue-app/template/jsonp.js +83 -0
- package/packages/vue-app/template/layouts/default.vue +3 -0
- package/packages/vue-app/template/middleware.js +12 -0
- package/packages/vue-app/template/mixins/fetch.client.js +134 -0
- package/packages/vue-app/template/mixins/fetch.server.js +70 -0
- package/packages/vue-app/template/pages/index.vue +108 -0
- package/packages/vue-app/template/router.js +123 -0
- package/packages/vue-app/template/router.scrollBehavior.js +82 -0
- package/packages/vue-app/template/routes.json +1 -0
- package/packages/vue-app/template/server.js +351 -0
- package/packages/vue-app/template/store.js +158 -0
- package/packages/vue-app/template/utils.js +639 -0
- package/packages/vue-app/template/views/app.template.html +9 -0
- package/packages/vue-app/template/views/error.html +23 -0
- package/packages/vue-app/template/views/loading/chasing-dots.html +67 -0
- package/packages/vue-app/template/views/loading/circle.html +150 -0
- package/packages/vue-app/template/views/loading/cube-grid.html +87 -0
- package/packages/vue-app/template/views/loading/default.html +110 -0
- package/packages/vue-app/template/views/loading/fading-circle.html +164 -0
- package/packages/vue-app/template/views/loading/folding-cube.html +108 -0
- package/packages/vue-app/template/views/loading/nuxt.html +59 -0
- package/packages/vue-app/template/views/loading/pulse.html +48 -0
- package/packages/vue-app/template/views/loading/rectangle-bounce.html +74 -0
- package/packages/vue-app/template/views/loading/rotating-plane.html +44 -0
- package/packages/vue-app/template/views/loading/three-bounce.html +61 -0
- package/packages/vue-app/template/views/loading/wandering-cubes.html +68 -0
- package/packages/vue-app/test/__utils__/index.js +73 -0
- package/packages/vue-app/test/nuxt-link.client.prefetch.test.js +153 -0
- package/packages/vue-app/test/nuxt-loading.test.js +189 -0
- package/packages/vue-app/vetur/nuxt-attributes.json +38 -0
- package/packages/vue-app/vetur/nuxt-tags.json +47 -0
- package/packages/vue-app/web-types/web-types.json +251 -0
- package/packages/vue-renderer/package.js +3 -0
- package/packages/vue-renderer/package.json +26 -0
- package/packages/vue-renderer/src/index.js +1 -0
- package/packages/vue-renderer/src/renderer.js +390 -0
- package/packages/vue-renderer/src/renderers/base.js +25 -0
- package/packages/vue-renderer/src/renderers/modern.js +124 -0
- package/packages/vue-renderer/src/renderers/spa.js +214 -0
- package/packages/vue-renderer/src/renderers/ssr.js +307 -0
- package/packages/webpack/package.js +21 -0
- package/packages/webpack/package.json +60 -0
- package/packages/webpack/src/builder.js +257 -0
- package/packages/webpack/src/config/base.js +538 -0
- package/packages/webpack/src/config/client.js +221 -0
- package/packages/webpack/src/config/index.js +3 -0
- package/packages/webpack/src/config/modern.js +15 -0
- package/packages/webpack/src/config/server.js +147 -0
- package/packages/webpack/src/index.js +1 -0
- package/packages/webpack/src/plugins/vue/client.js +111 -0
- package/packages/webpack/src/plugins/vue/cors.js +25 -0
- package/packages/webpack/src/plugins/vue/modern.js +121 -0
- package/packages/webpack/src/plugins/vue/server.js +71 -0
- package/packages/webpack/src/plugins/vue/util.js +31 -0
- package/packages/webpack/src/plugins/warning-ignore.js +11 -0
- package/packages/webpack/src/utils/async-mfs.js +24 -0
- package/packages/webpack/src/utils/index.js +3 -0
- package/packages/webpack/src/utils/perf-loader.js +66 -0
- package/packages/webpack/src/utils/postcss-v8.js +208 -0
- package/packages/webpack/src/utils/postcss.js +193 -0
- package/packages/webpack/src/utils/reserved-tags.js +23 -0
- package/packages/webpack/src/utils/style-loader.js +157 -0
- package/packages/webpack/test/index.test.js +23 -0
- package/renovate.json +27 -0
- package/scripts/builtins.js +22 -0
- package/scripts/changelog.js +154 -0
- package/scripts/dev.js +39 -0
- package/scripts/link.js +28 -0
- package/scripts/package.js +382 -0
- package/scripts/pkg.js +55 -0
- package/scripts/release-publish +14 -0
- package/scripts/release-version +4 -0
- package/scripts/rollup.config.js +67 -0
- package/scripts/workspace-run +10 -0
- package/test/dev/async-config.size-limit.test.js +45 -0
- package/test/dev/async-config.test.js +21 -0
- package/test/dev/basic.config.defaults.test.js +73 -0
- package/test/dev/basic.dev.test.js +204 -0
- package/test/dev/basic.dynamic.test.js +77 -0
- package/test/dev/basic.fail.generate.test.js +33 -0
- package/test/dev/basic.generate.test.js +286 -0
- package/test/dev/basic.plugins.test.js +51 -0
- package/test/dev/basic.relative.test.js +41 -0
- package/test/dev/basic.ssr.csp.test.js +477 -0
- package/test/dev/basic.ssr.test.js +426 -0
- package/test/dev/children.test.js +56 -0
- package/test/dev/cli.test.js +82 -0
- package/test/dev/custom-app-template.test.js +57 -0
- package/test/dev/custom-dirs.test.js +55 -0
- package/test/dev/dist-options.test.js +35 -0
- package/test/dev/dynamic-routes.test.js +90 -0
- package/test/dev/encoding.test.js +76 -0
- package/test/dev/error.test.js +83 -0
- package/test/dev/express.test.js +42 -0
- package/test/dev/extract-css.test.js +36 -0
- package/test/dev/fallback.test.js +44 -0
- package/test/dev/filenames-query-part.test.js +55 -0
- package/test/dev/full-static.test.js +89 -0
- package/test/dev/generator.test.js +86 -0
- package/test/dev/https.test.js +24 -0
- package/test/dev/modern.client.test.js +53 -0
- package/test/dev/modern.server.test.js +79 -0
- package/test/dev/modern.spa.test.js +75 -0
- package/test/dev/module.test.js +97 -0
- package/test/dev/named-views.test.js +43 -0
- package/test/dev/nuxt.test.js +66 -0
- package/test/dev/renderer.test.js +51 -0
- package/test/dev/route-name-splitter.test.js +20 -0
- package/test/dev/runtime-config.test.js +45 -0
- package/test/dev/server.listen.test.js +79 -0
- package/test/dev/sockets.test.js +16 -0
- package/test/dev/spa.test.js +174 -0
- package/test/dev/ssr.test.js +130 -0
- package/test/dev/trailing-slash-payload.test.js +64 -0
- package/test/dev/trailing-slash.test.js +92 -0
- package/test/dev/with-config.test.js +235 -0
- package/test/dev/wp.config.test.js +42 -0
- package/test/e2e/basic.browser.test.js +338 -0
- package/test/e2e/basic.vue-config.test.js +58 -0
- package/test/e2e/children.patch.browser.test.js +166 -0
- package/test/e2e/error.test.js +71 -0
- package/test/e2e/fetch.browser.test.js +216 -0
- package/test/e2e/page-transitions.browser.test.js +112 -0
- package/test/e2e/spa-base.browser.test.js +71 -0
- package/test/e2e/split-layouts-error.test.js +51 -0
- package/test/fixtures/async-config/async-config.test.js +3 -0
- package/test/fixtures/async-config/nuxt.config.js +15 -0
- package/test/fixtures/async-config/pages/index.vue +3 -0
- package/test/fixtures/basic/assets/app.css +1 -0
- package/test/fixtures/basic/assets/import.css +1 -0
- package/test/fixtures/basic/assets/test.svg +98 -0
- package/test/fixtures/basic/basic.test.js +3 -0
- package/test/fixtures/basic/components/MyComponent.vue +3 -0
- package/test/fixtures/basic/layouts/custom.js +10 -0
- package/test/fixtures/basic/layouts/default.vue +5 -0
- package/test/fixtures/basic/middleware/-ignored.js +3 -0
- package/test/fixtures/basic/middleware/error.js +3 -0
- package/test/fixtures/basic/middleware/ignored.test.js +3 -0
- package/test/fixtures/basic/middleware/meta.js +3 -0
- package/test/fixtures/basic/middleware/redirect.js +3 -0
- package/test/fixtures/basic/nuxt.config.js +104 -0
- package/test/fixtures/basic/pages/-ignored.vue +13 -0
- package/test/fixtures/basic/pages/async-data.vue +13 -0
- package/test/fixtures/basic/pages/await-async-data.vue +18 -0
- package/test/fixtures/basic/pages/callback-async-data.vue +13 -0
- package/test/fixtures/basic/pages/client-only.vue +7 -0
- package/test/fixtures/basic/pages/components.vue +5 -0
- package/test/fixtures/basic/pages/config.vue +29 -0
- package/test/fixtures/basic/pages/css.vue +15 -0
- package/test/fixtures/basic/pages/custom.js +6 -0
- package/test/fixtures/basic/pages/error-midd.vue +13 -0
- package/test/fixtures/basic/pages/error-object.vue +8 -0
- package/test/fixtures/basic/pages/error-string.vue +8 -0
- package/test/fixtures/basic/pages/error.vue +11 -0
- package/test/fixtures/basic/pages/error2.vue +11 -0
- package/test/fixtures/basic/pages/extractCSS.vue +9 -0
- package/test/fixtures/basic/pages/fetch.vue +50 -0
- package/test/fixtures/basic/pages/fn-midd.vue +17 -0
- package/test/fixtures/basic/pages/head.vue +28 -0
- package/test/fixtures/basic/pages/ignored.test.vue +13 -0
- package/test/fixtures/basic/pages/index.vue +6 -0
- package/test/fixtures/basic/pages/js-link.js +2 -0
- package/test/fixtures/basic/pages/js-link.vue +5 -0
- package/test/fixtures/basic/pages/jsx-link.js +5 -0
- package/test/fixtures/basic/pages/jsx-link2.jsx +5 -0
- package/test/fixtures/basic/pages/jsx.js +7 -0
- package/test/fixtures/basic/pages/meta.vue +12 -0
- package/test/fixtures/basic/pages/no-ssr.vue +7 -0
- package/test/fixtures/basic/pages/noloading.vue +27 -0
- package/test/fixtures/basic/pages/postcss.vue +15 -0
- package/test/fixtures/basic/pages/redirect-external-no-slash.vue +11 -0
- package/test/fixtures/basic/pages/redirect-external-root.vue +11 -0
- package/test/fixtures/basic/pages/redirect-external.vue +11 -0
- package/test/fixtures/basic/pages/redirect-middleware.vue +8 -0
- package/test/fixtures/basic/pages/redirect-name.vue +11 -0
- package/test/fixtures/basic/pages/redirect.vue +11 -0
- package/test/fixtures/basic/pages/redirection/_slug.vue +18 -0
- package/test/fixtures/basic/pages/refresh-page-data.vue +15 -0
- package/test/fixtures/basic/pages/router-guard-error.vue +3 -0
- package/test/fixtures/basic/pages/router-guard.vue +11 -0
- package/test/fixtures/basic/pages/scroll-to-top/index.vue +24 -0
- package/test/fixtures/basic/pages/scroll-to-top/scroll-to-top-false.vue +13 -0
- package/test/fixtures/basic/pages/scroll-to-top/scroll-to-top-true.vue +13 -0
- package/test/fixtures/basic/pages/scroll-to-top/watch-query-array.vue +19 -0
- package/test/fixtures/basic/pages/scroll-to-top/watch-query-fn.vue +24 -0
- package/test/fixtures/basic/pages/scroll-to-top/watch-query-true.vue +19 -0
- package/test/fixtures/basic/pages/skip-on-fail/fail.vue +11 -0
- package/test/fixtures/basic/pages/skip-on-fail/success.vue +8 -0
- package/test/fixtures/basic/pages/special-state.vue +15 -0
- package/test/fixtures/basic/pages/stateful.vue +16 -0
- package/test/fixtures/basic/pages/stateless.vue +3 -0
- package/test/fixtures/basic/pages/store-module.vue +11 -0
- package/test/fixtures/basic/pages/store.vue +27 -0
- package/test/fixtures/basic/pages/style.vue +18 -0
- package/test/fixtures/basic/pages/symlink/deep/nested-symlinked.vue +3 -0
- package/test/fixtures/basic/pages/symlink/symlinked.vue +3 -0
- package/test/fixtures/basic/pages/users/_id.vue +12 -0
- package/test/fixtures/basic/pages/validate-async.vue +21 -0
- package/test/fixtures/basic/pages/validate.vue +17 -0
- package/test/fixtures/basic/pages//321/202/320/265/321/201/321/202/351/233/250.vue +3 -0
- package/test/fixtures/basic/pages2/deep/nested-symlinked.vue +3 -0
- package/test/fixtures/basic/pages2/symlinked.vue +3 -0
- package/test/fixtures/basic/plugins/dir-plugin/index.js +3 -0
- package/test/fixtures/basic/plugins/inject.js +17 -0
- package/test/fixtures/basic/plugins/router-guard.js +17 -0
- package/test/fixtures/basic/plugins/tailwind.js +6 -0
- package/test/fixtures/basic/plugins/vuex-module.js +27 -0
- package/test/fixtures/basic/static/body.js +2 -0
- package/test/fixtures/basic/store/-ignored.js +1 -0
- package/test/fixtures/basic/store/bab/index.js +9 -0
- package/test/fixtures/basic/store/foo/bar.js +9 -0
- package/test/fixtures/basic/store/foo/blarg/getters.js +5 -0
- package/test/fixtures/basic/store/foo/blarg/index.js +9 -0
- package/test/fixtures/basic/store/foo/blarg/state.js +3 -0
- package/test/fixtures/basic/store/foo/blarg.js +9 -0
- package/test/fixtures/basic/store/ignored.test.js +1 -0
- package/test/fixtures/basic/store/index.js +13 -0
- package/test/fixtures/children/children.test.js +3 -0
- package/test/fixtures/children/layouts/patch.vue +62 -0
- package/test/fixtures/children/pages/parent/_id.vue +20 -0
- package/test/fixtures/children/pages/parent/child.vue +3 -0
- package/test/fixtures/children/pages/parent/validate-child.vue +11 -0
- package/test/fixtures/children/pages/parent.vue +23 -0
- package/test/fixtures/children/pages/patch/_id/child/_slug.vue +62 -0
- package/test/fixtures/children/pages/patch/_id/child.vue +20 -0
- package/test/fixtures/children/pages/patch/_id/index.vue +3 -0
- package/test/fixtures/children/pages/patch/_id/reuse/_slug.vue +20 -0
- package/test/fixtures/children/pages/patch/_id.vue +20 -0
- package/test/fixtures/children/pages/patch/index.vue +3 -0
- package/test/fixtures/children/pages/patch.vue +21 -0
- package/test/fixtures/cli/cli.build.config.js +17 -0
- package/test/fixtures/cli/cli.build.test.js +20 -0
- package/test/fixtures/cli/cli.gen.config.js +21 -0
- package/test/fixtures/cli/cli.gen.test.js +20 -0
- package/test/fixtures/cli/custom.file +1 -0
- package/test/fixtures/cli/middleware.js +1 -0
- package/test/fixtures/cli/nuxt.config.js +12 -0
- package/test/fixtures/cli/pages/index.vue +3 -0
- package/test/fixtures/config-explicit/config-explicit.test.js +3 -0
- package/test/fixtures/config-explicit/nuxt.config.js +13 -0
- package/test/fixtures/config-explicit/pages/config.vue +29 -0
- package/test/fixtures/custom-app-template/basic.test.js +3 -0
- package/test/fixtures/custom-app-template/nuxt.config.js +6 -0
- package/test/fixtures/custom-app-template/pages/index.vue +3 -0
- package/test/fixtures/custom-app-template/test/mytemplate.html +15 -0
- package/test/fixtures/custom-dirs/custom-assets/app.css +3 -0
- package/test/fixtures/custom-dirs/custom-dirs.test.js +3 -0
- package/test/fixtures/custom-dirs/custom-layouts/layouts/default.vue +6 -0
- package/test/fixtures/custom-dirs/custom-middleware/user-agent.js +3 -0
- package/test/fixtures/custom-dirs/custom-pages/index.vue +5 -0
- package/test/fixtures/custom-dirs/custom-pages/user-agent.vue +12 -0
- package/test/fixtures/custom-dirs/custom-static/test.txt +1 -0
- package/test/fixtures/custom-dirs/custom-store/index.js +17 -0
- package/test/fixtures/custom-dirs/nuxt.config.js +31 -0
- package/test/fixtures/dynamic-routes/dynamic-routes.test.js +3 -0
- package/test/fixtures/dynamic-routes/pages/_/_.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/_/index.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/_/p/_.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/_key/_id.vue +3 -0
- package/test/fixtures/dynamic-routes/pages/_slug.vue +3 -0
- package/test/fixtures/dynamic-routes/pages/index.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/parent/child.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/parent/index.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/parent/teub.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/parent.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/posts/_id.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/posts.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/test/_.vue +3 -0
- package/test/fixtures/dynamic-routes/pages/test/index.vue +3 -0
- package/test/fixtures/dynamic-routes/pages/test/projects/_category.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/test/projects/index.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/test/songs/_id.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/test/songs/toto.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/test/users/_id.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/test/users/_index/teub.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/test/users/index.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/test/users/projects/_category.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/test/users/projects/index.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/test/users.vue +0 -0
- package/test/fixtures/dynamic-routes/pages/users/_id.vue +0 -0
- package/test/fixtures/empty/empty.test.js +3 -0
- package/test/fixtures/empty/pages/.gitkeep +0 -0
- package/test/fixtures/encoding/encoding.test.js +3 -0
- package/test/fixtures/encoding/layouts/default.vue +51 -0
- package/test/fixtures/encoding/nuxt.config.js +12 -0
- package/test/fixtures/encoding/pages/@about.vue +5 -0
- package/test/fixtures/encoding/pages/dynamic/_id.vue +17 -0
- package/test/fixtures/encoding/pages/index.vue +5 -0
- package/test/fixtures/encoding/pages/redirect.vue +13 -0
- package/test/fixtures/encoding/pages//321/202/320/265/321/201/321/202.vue +3 -0
- package/test/fixtures/error/error.test.js +3 -0
- package/test/fixtures/error/layouts/error-layout.vue +12 -0
- package/test/fixtures/error/layouts/error.vue +18 -0
- package/test/fixtures/error/pages/about.vue +24 -0
- package/test/fixtures/error/pages/error.vue +10 -0
- package/test/fixtures/error/pages/index.vue +14 -0
- package/test/fixtures/error/pages/info.vue +19 -0
- package/test/fixtures/extract-css/assets/global.css +15 -0
- package/test/fixtures/extract-css/extract-css.test.js +3 -0
- package/test/fixtures/extract-css/layouts/default.vue +15 -0
- package/test/fixtures/extract-css/nuxt.config.js +25 -0
- package/test/fixtures/extract-css/pages/about.vue +13 -0
- package/test/fixtures/extract-css/pages/index.vue +36 -0
- package/test/fixtures/fetch/components/Team.vue +27 -0
- package/test/fixtures/fetch/fetch.test.js +3 -0
- package/test/fixtures/fetch/layouts/default.vue +80 -0
- package/test/fixtures/fetch/nuxt.config.js +1 -0
- package/test/fixtures/fetch/pages/fetch-button.vue +26 -0
- package/test/fixtures/fetch/pages/fetch-client.vue +22 -0
- package/test/fixtures/fetch/pages/fetch-component.vue +13 -0
- package/test/fixtures/fetch/pages/fetch-conditional.vue +29 -0
- package/test/fixtures/fetch/pages/fetch-deep.vue +35 -0
- package/test/fixtures/fetch/pages/fetch-delay.vue +24 -0
- package/test/fixtures/fetch/pages/fetch-error.vue +24 -0
- package/test/fixtures/fetch/pages/fetch-root.vue +21 -0
- package/test/fixtures/fetch/pages/index.vue +23 -0
- package/test/fixtures/fetch/pages/nested/_slug.vue +13 -0
- package/test/fixtures/fetch/pages/nested/index.vue +26 -0
- package/test/fixtures/fetch/pages/nested.vue +22 -0
- package/test/fixtures/fetch/pages/old-fetch.vue +18 -0
- package/test/fixtures/fetch/static/team.json +11 -0
- package/test/fixtures/fetch/store/index.js +9 -0
- package/test/fixtures/filenames-query-part/filenames-query-part.test.js +3 -0
- package/test/fixtures/filenames-query-part/nuxt.config.js +8 -0
- package/test/fixtures/filenames-query-part/pages/index.vue +5 -0
- package/test/fixtures/full-static/full-static.test.js +3 -0
- package/test/fixtures/full-static/layouts/default.vue +40 -0
- package/test/fixtures/full-static/nuxt.config.js +30 -0
- package/test/fixtures/full-static/pages/dynamic/_name.vue +10 -0
- package/test/fixtures/full-static/pages/encoding//344/270/255/346/226/207.vue +5 -0
- package/test/fixtures/full-static/pages/index.vue +5 -0
- package/test/fixtures/full-static/pages/pagination/_i.vue +21 -0
- package/test/fixtures/full-static/pages/payload.vue +13 -0
- package/test/fixtures/full-static/pages/store.vue +18 -0
- package/test/fixtures/full-static/store/auth.js +17 -0
- package/test/fixtures/full-static/store/index.js +9 -0
- package/test/fixtures/https/https.test.js +3 -0
- package/test/fixtures/https/nuxt.config.js +11 -0
- package/test/fixtures/https/pages/index.vue +3 -0
- package/test/fixtures/https/server.crt +19 -0
- package/test/fixtures/https/server.key +15 -0
- package/test/fixtures/missing-pages-dir/missing-pages-dir.test.js +10 -0
- package/test/fixtures/missing-plugin/nuxt.config.js +3 -0
- package/test/fixtures/missing-style-resource/nuxt.config.js +7 -0
- package/test/fixtures/modern/modern.test.js +3 -0
- package/test/fixtures/modern/nuxt.config.js +16 -0
- package/test/fixtures/modern/pages/index.vue +18 -0
- package/test/fixtures/module/layouts/layout.vue +6 -0
- package/test/fixtures/module/module.test.js +3 -0
- package/test/fixtures/module/modules/basic/index.js +30 -0
- package/test/fixtures/module/modules/basic/layout.vue +6 -0
- package/test/fixtures/module/modules/basic/reverse.js +14 -0
- package/test/fixtures/module/modules/empty/index.js +7 -0
- package/test/fixtures/module/modules/hooks/index.js +28 -0
- package/test/fixtures/module/modules/layout/index.js +6 -0
- package/test/fixtures/module/modules/layout/some-error.vue +3 -0
- package/test/fixtures/module/modules/middleware/index.js +21 -0
- package/test/fixtures/module/modules/middleware/log.js +5 -0
- package/test/fixtures/module/modules/middleware/midd1.js +4 -0
- package/test/fixtures/module/modules/middleware/midd2.js +4 -0
- package/test/fixtures/module/modules/middleware/midd3.js +7 -0
- package/test/fixtures/module/modules/middleware/use-middleware.js +3 -0
- package/test/fixtures/module/modules/template/index.js +12 -0
- package/test/fixtures/module/nuxt.config.js +34 -0
- package/test/fixtures/module/router.js +31 -0
- package/test/fixtures/module/views/about.vue +8 -0
- package/test/fixtures/module/views/index.vue +8 -0
- package/test/fixtures/module/views/layout.vue +10 -0
- package/test/fixtures/named-views/components/childLeft.vue +13 -0
- package/test/fixtures/named-views/components/mainTop.vue +13 -0
- package/test/fixtures/named-views/layouts/default.vue +6 -0
- package/test/fixtures/named-views/named-views.test.js +3 -0
- package/test/fixtures/named-views/nuxt.config.js +32 -0
- package/test/fixtures/named-views/pages/another.vue +6 -0
- package/test/fixtures/named-views/pages/index/child/_id/index.vue +21 -0
- package/test/fixtures/named-views/pages/index/section.vue +13 -0
- package/test/fixtures/named-views/pages/index.vue +16 -0
- package/test/fixtures/named-views/pages/main.vue +16 -0
- package/test/fixtures/page-transitions/layouts/default.vue +6 -0
- package/test/fixtures/page-transitions/page-transitions.test.js +3 -0
- package/test/fixtures/page-transitions/pages/callbacks/child.vue +11 -0
- package/test/fixtures/page-transitions/pages/callbacks.vue +12 -0
- package/test/fixtures/page-transitions/pages/index.vue +11 -0
- package/test/fixtures/page-transitions/pages/transition-properties/child.vue +18 -0
- package/test/fixtures/page-transitions/pages/transition-properties.vue +18 -0
- package/test/fixtures/page-transitions/utils/transition-properties.js +34 -0
- package/test/fixtures/route-name-splitter/nuxt.config.js +5 -0
- package/test/fixtures/route-name-splitter/pages/_/_.vue +0 -0
- package/test/fixtures/route-name-splitter/pages/_/index.vue +0 -0
- package/test/fixtures/route-name-splitter/pages/_/p/_.vue +0 -0
- package/test/fixtures/route-name-splitter/pages/index.vue +0 -0
- package/test/fixtures/route-name-splitter/pages/parent/child.vue +0 -0
- package/test/fixtures/route-name-splitter/pages/parent/index.vue +0 -0
- package/test/fixtures/route-name-splitter/pages/posts/_id.vue +0 -0
- package/test/fixtures/route-name-splitter/pages/posts.vue +0 -0
- package/test/fixtures/route-name-splitter/route-name-splitter.test.js +3 -0
- package/test/fixtures/runtime-config/.env +8 -0
- package/test/fixtures/runtime-config/nuxt.config.js +27 -0
- package/test/fixtures/runtime-config/pages/index.vue +30 -0
- package/test/fixtures/runtime-config/runtime-config.test.js +3 -0
- package/test/fixtures/shared-chunk/components/lazy.vue +13 -0
- package/test/fixtures/shared-chunk/components/shared-vendor.vue +9 -0
- package/test/fixtures/shared-chunk/components/shared.vue +5 -0
- package/test/fixtures/shared-chunk/nuxt.config.js +3 -0
- package/test/fixtures/shared-chunk/pages/_cat/_id/_sub.vue +6 -0
- package/test/fixtures/shared-chunk/pages/index.vue +14 -0
- package/test/fixtures/shared-chunk/pages/product/_identifier.vue +6 -0
- package/test/fixtures/sockets/nuxt.config.js +7 -0
- package/test/fixtures/sockets/pages/index.vue +3 -0
- package/test/fixtures/sockets/sockets.test.js +5 -0
- package/test/fixtures/spa/layouts/custom.vue +7 -0
- package/test/fixtures/spa/layouts/default.vue +7 -0
- package/test/fixtures/spa/middleware/middleware.js +14 -0
- package/test/fixtures/spa/nuxt.config.js +37 -0
- package/test/fixtures/spa/pages/async.vue +20 -0
- package/test/fixtures/spa/pages/custom.vue +15 -0
- package/test/fixtures/spa/pages/error-handler-async.vue +9 -0
- package/test/fixtures/spa/pages/error-handler-object.vue +8 -0
- package/test/fixtures/spa/pages/error-handler-string.vue +8 -0
- package/test/fixtures/spa/pages/error-handler.vue +8 -0
- package/test/fixtures/spa/pages/index.vue +12 -0
- package/test/fixtures/spa/pages/mounted.vue +20 -0
- package/test/fixtures/spa/pages/redirect-done.vue +17 -0
- package/test/fixtures/spa/pages/route-path.vue +3 -0
- package/test/fixtures/spa/pages//321/202/320/265/321/201/321/202/351/233/250.vue +11 -0
- package/test/fixtures/spa/plugins/error.js +5 -0
- package/test/fixtures/spa/plugins/path.js +4 -0
- package/test/fixtures/spa/spa.test.js +7 -0
- package/test/fixtures/spa-base/nuxt.config.js +13 -0
- package/test/fixtures/spa-hash/nuxt.config.js +13 -0
- package/test/fixtures/split-layouts-error/layouts/error-layout.vue +12 -0
- package/test/fixtures/split-layouts-error/layouts/error.vue +18 -0
- package/test/fixtures/split-layouts-error/nuxt.config.js +7 -0
- package/test/fixtures/split-layouts-error/pages/about.vue +8 -0
- package/test/fixtures/split-layouts-error/pages/error.vue +12 -0
- package/test/fixtures/split-layouts-error/pages/index.vue +14 -0
- package/test/fixtures/split-layouts-error/pages/info.vue +24 -0
- package/test/fixtures/split-layouts-error/split-layouts-error.test.js +3 -0
- package/test/fixtures/ssr/components/test.vue +15 -0
- package/test/fixtures/ssr/lib/db.js +4 -0
- package/test/fixtures/ssr/nuxt.config.js +8 -0
- package/test/fixtures/ssr/pages/asyncComponent.vue +15 -0
- package/test/fixtures/ssr/pages/asyncData.vue +15 -0
- package/test/fixtures/ssr/pages/component.vue +15 -0
- package/test/fixtures/ssr/pages/context/_id.vue +6 -0
- package/test/fixtures/ssr/pages/context.vue +10 -0
- package/test/fixtures/ssr/pages/data.vue +15 -0
- package/test/fixtures/ssr/pages/fetch.vue +14 -0
- package/test/fixtures/ssr/pages/store.vue +3 -0
- package/test/fixtures/ssr/ssr.test.js +3 -0
- package/test/fixtures/ssr/store/index.js +23 -0
- package/test/fixtures/trailing-slash/pages/index.vue +5 -0
- package/test/fixtures/trailing-slash/pages/posts/_slug.vue +16 -0
- package/test/fixtures/trailing-slash/pages/posts/index.vue +5 -0
- package/test/fixtures/trailing-slash/pages/posts.vue +6 -0
- package/test/fixtures/trailing-slash/trailing-slash.test.js +5 -0
- package/test/fixtures/trailing-slash/with-default/nuxt.config.js +10 -0
- package/test/fixtures/trailing-slash/with-false/nuxt.config.js +10 -0
- package/test/fixtures/trailing-slash/with-true/nuxt.config.js +10 -0
- package/test/fixtures/with-config/.nuxtignore +4 -0
- package/test/fixtures/with-config/app.html +10 -0
- package/test/fixtures/with-config/assets/app.pcss +10 -0
- package/test/fixtures/with-config/assets/app.sass +2 -0
- package/test/fixtures/with-config/assets/pre-process.css +3 -0
- package/test/fixtures/with-config/assets/roboto.woff2 +0 -0
- package/test/fixtures/with-config/components/loading.vue +36 -0
- package/test/fixtures/with-config/layouts/custom-env.vue +6 -0
- package/test/fixtures/with-config/layouts/custom.vue +6 -0
- package/test/fixtures/with-config/layouts/default.vue +6 -0
- package/test/fixtures/with-config/layouts/desktop/default.vue +6 -0
- package/test/fixtures/with-config/layouts/error.vue +9 -0
- package/test/fixtures/with-config/layouts/mobile/default.vue +6 -0
- package/test/fixtures/with-config/layouts/test-ignore.vue +1 -0
- package/test/fixtures/with-config/middleware/noop.js +3 -0
- package/test/fixtures/with-config/middleware/test-ignore.js +1 -0
- package/test/fixtures/with-config/middleware/user-agent.js +3 -0
- package/test/fixtures/with-config/nuxt.config.js +118 -0
- package/test/fixtures/with-config/pages/about.vue +18 -0
- package/test/fixtures/with-config/pages/desktop.vue +11 -0
- package/test/fixtures/with-config/pages/env.vue +23 -0
- package/test/fixtures/with-config/pages/error.vue +11 -0
- package/test/fixtures/with-config/pages/head.vue +13 -0
- package/test/fixtures/with-config/pages/index.vue +21 -0
- package/test/fixtures/with-config/pages/mobile.vue +11 -0
- package/test/fixtures/with-config/pages/test-ignore.vue +0 -0
- package/test/fixtures/with-config/pages/user-agent.vue +12 -0
- package/test/fixtures/with-config/plugins/doubled/index.js +1 -0
- package/test/fixtures/with-config/plugins/only-client.js +1 -0
- package/test/fixtures/with-config/plugins/test.client.js +1 -0
- package/test/fixtures/with-config/plugins/test.js +7 -0
- package/test/fixtures/with-config/plugins/test.json +0 -0
- package/test/fixtures/with-config/plugins/test.plugin.js +5 -0
- package/test/fixtures/with-config/plugins/test.server.js +1 -0
- package/test/fixtures/with-config/postcss.config.js +14 -0
- package/test/fixtures/with-config/static/test.txt +1 -0
- package/test/fixtures/with-config/store/index.js +17 -0
- package/test/fixtures/with-config/store/test-ignore.js +1 -0
- package/test/fixtures/with-config/with-config.test.js +38 -0
- package/test/utils/browser.js +110 -0
- package/test/utils/build.js +21 -0
- package/test/utils/index.js +30 -0
- package/test/utils/nuxt.js +35 -0
- package/test/utils/resource-size.js +35 -0
- package/test/utils/setup-env.js +35 -0
- package/test/utils/setup.js +6 -0
@@ -0,0 +1,40 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="container">
|
3
|
+
<img src="~static/nuxt-black.png">
|
4
|
+
<h2>Thank you for testing nuxt</h2>
|
5
|
+
<p>Loaded from the {{ name }}</p>
|
6
|
+
<p>
|
7
|
+
<NuxtLink to="/">
|
8
|
+
Back home
|
9
|
+
</NuxtLink>
|
10
|
+
</p>
|
11
|
+
</div>
|
12
|
+
</template>
|
13
|
+
|
14
|
+
<script>
|
15
|
+
export default {
|
16
|
+
asyncData ({ req }) {
|
17
|
+
return {
|
18
|
+
name: req ? 'server' : 'client'
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
</script>
|
23
|
+
|
24
|
+
<style scoped>
|
25
|
+
.container {
|
26
|
+
position: absolute;
|
27
|
+
top: 0;
|
28
|
+
left: 0;
|
29
|
+
height: 100%;
|
30
|
+
width: 100%;
|
31
|
+
background: black;
|
32
|
+
color: white;
|
33
|
+
font-family: "Lucida Console", Monaco, monospace;
|
34
|
+
padding-top: 130px;
|
35
|
+
text-align: center;
|
36
|
+
}
|
37
|
+
a {
|
38
|
+
color: silver;
|
39
|
+
}
|
40
|
+
</style>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="container">
|
3
|
+
<img src="nuxt.png">
|
4
|
+
<h2>Hello World.</h2>
|
5
|
+
<p>
|
6
|
+
<NuxtLink to="/about">
|
7
|
+
About
|
8
|
+
</NuxtLink>
|
9
|
+
</p>
|
10
|
+
</div>
|
11
|
+
</template>
|
12
|
+
|
13
|
+
<style scoped>
|
14
|
+
.container {
|
15
|
+
font-family: sans-serif;
|
16
|
+
margin-top: 200px;
|
17
|
+
text-align: center;
|
18
|
+
}
|
19
|
+
</style>
|
Binary file
|
Binary file
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import 'vuetify/dist/vuetify.css'
|
2
|
+
|
3
|
+
import { configure } from '@storybook/vue'
|
4
|
+
import Vue from 'vue'
|
5
|
+
import Vuex from 'vuex'
|
6
|
+
import Vuetify from 'vuetify'
|
7
|
+
import MyButton from '../components/Button.vue'
|
8
|
+
|
9
|
+
Vue.use(Vuex)
|
10
|
+
Vue.use(Vuetify)
|
11
|
+
|
12
|
+
Vue.component('my-button', MyButton)
|
13
|
+
|
14
|
+
// Automatically import all files ending in *.stories.js
|
15
|
+
const req = require.context('../stories', true, /.story.js$/)
|
16
|
+
|
17
|
+
function loadStories() {
|
18
|
+
req.keys().forEach(req)
|
19
|
+
}
|
20
|
+
|
21
|
+
configure(loadStories, module)
|
@@ -0,0 +1,14 @@
|
|
1
|
+
const path = require('path')
|
2
|
+
const nuxtConf = require('../nuxt.config')
|
3
|
+
|
4
|
+
module.exports = (sBaseConfig, configType, defaultConfig) => {
|
5
|
+
const srcDir = `../${nuxtConf.srcDir || ''}`
|
6
|
+
const rootDir = `../${nuxtConf.rootDir || ''}`
|
7
|
+
|
8
|
+
Object.assign(defaultConfig.resolve.alias, {
|
9
|
+
'~~': path.resolve(__dirname, rootDir),
|
10
|
+
'~': path.resolve(__dirname, srcDir)
|
11
|
+
})
|
12
|
+
|
13
|
+
return defaultConfig
|
14
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# Storybook demo for Nuxt
|
2
|
+
|
3
|
+
Demo showcasing [Storybook](https://storybook.js.org/) usage with Nuxt, [Vuetify](https://vuetifyjs.com) and [Vue-Charts](http://vue-chartjs.org/)
|
4
|
+
|
5
|
+
## Features
|
6
|
+
|
7
|
+
* Supports `~` and `~~` Nuxt aliases
|
8
|
+
* Contains `storybase.js` with helper classes
|
9
|
+
* Integrates most of addons
|
10
|
+
* Real life examples with Vuetify and Vue-Charts
|
11
|
+
|
12
|
+
## Description
|
13
|
+
|
14
|
+
This demo aims to integrate all the above mentioned technologies with best practices in mind.
|
15
|
+
|
16
|
+
Points of interest
|
17
|
+
|
18
|
+
* `.storybook` folder contains storybook configuration
|
19
|
+
* `stories` folder has number of stories corresponding to `components`
|
20
|
+
* Note, Storybook is configured to understand Nuxt aliases `~` and `~~`
|
21
|
+
* Number of helpers in `storybase.js` to simplify storybook usahe
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
To run locally in dev mode
|
26
|
+
|
27
|
+
```
|
28
|
+
npm run storybook
|
29
|
+
```
|
30
|
+
|
31
|
+
and then access the storybook from [localhost:9001](http://localhost:9001)
|
32
|
+
|
33
|
+
To build static storybook to `.out` folder
|
34
|
+
|
35
|
+
```
|
36
|
+
npm run storybookoutput
|
37
|
+
```
|
38
|
+
|
39
|
+
## More reading
|
40
|
+
|
41
|
+
* [Using Storybook with Nuxt](https://davidwalsh.name/storybook-nuxt) by David Walsh
|
42
|
+
* [StoryBook for Vue](https://github.com/storybooks/storybook/tree/master/app/vue)
|
43
|
+
* [Vue Kitchen sink Storybook demo](https://github.com/storybooks/storybook/tree/master/examples/vue-kitchen-sink)
|
44
|
+
* [Vuetify Storybook boilerplate](https://github.com/white-rabbit-japan/vuetify-storyboard-boilerplate)
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<template>
|
2
|
+
<button :style="{color: color, borderColor: color}" :class="{rounded: rounded}" class="wr-button" @click="handleClick">
|
3
|
+
<slot />!
|
4
|
+
</button>
|
5
|
+
</template>
|
6
|
+
|
7
|
+
<script>
|
8
|
+
export default {
|
9
|
+
props: {
|
10
|
+
rounded: {
|
11
|
+
type: Boolean,
|
12
|
+
default: false
|
13
|
+
},
|
14
|
+
handleClick: {
|
15
|
+
type: Function,
|
16
|
+
default: () => () => null
|
17
|
+
},
|
18
|
+
color: {
|
19
|
+
type: String,
|
20
|
+
default: '#42b983'
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
</script>
|
25
|
+
|
26
|
+
<style>
|
27
|
+
.rounded {
|
28
|
+
border-radius: 10px;
|
29
|
+
}
|
30
|
+
.wr-button {
|
31
|
+
border: 3px solid;
|
32
|
+
padding: 10px 20px;
|
33
|
+
background-color: white;
|
34
|
+
outline: none;
|
35
|
+
}
|
36
|
+
</style>
|
@@ -0,0 +1,92 @@
|
|
1
|
+
<template>
|
2
|
+
<v-app id="inspire" dark>
|
3
|
+
<v-navigation-drawer
|
4
|
+
v-model="drawer"
|
5
|
+
clipped
|
6
|
+
fixed
|
7
|
+
app
|
8
|
+
>
|
9
|
+
<v-list dense>
|
10
|
+
<v-list-group v-for="item in items" :key="item.title" :value="item.active">
|
11
|
+
<v-list-tile slot="item">
|
12
|
+
<v-list-tile-action>
|
13
|
+
<v-icon>{{ item.action }}</v-icon>
|
14
|
+
</v-list-tile-action>
|
15
|
+
<v-list-tile-content>
|
16
|
+
<v-list-tile-title>{{ item.title }}</v-list-tile-title>
|
17
|
+
</v-list-tile-content>
|
18
|
+
<v-list-tile-action>
|
19
|
+
<v-icon v-if="item.items">
|
20
|
+
keyboard_arrow_down
|
21
|
+
</v-icon>
|
22
|
+
</v-list-tile-action>
|
23
|
+
</v-list-tile>
|
24
|
+
<v-list-tile v-for="subItem in item.items" :key="subItem.title">
|
25
|
+
<v-list-tile-content>
|
26
|
+
<v-list-tile-title>{{ subItem.title }}</v-list-tile-title>
|
27
|
+
</v-list-tile-content>
|
28
|
+
<v-list-tile-action>
|
29
|
+
<v-icon>{{ subItem.action }}</v-icon>
|
30
|
+
</v-list-tile-action>
|
31
|
+
</v-list-tile>
|
32
|
+
</v-list-group>
|
33
|
+
</v-list>
|
34
|
+
</v-navigation-drawer>
|
35
|
+
<v-toolbar app fixed clipped-left>
|
36
|
+
<v-toolbar-side-icon @click.stop="drawer = !drawer" />
|
37
|
+
<v-toolbar-title>Application</v-toolbar-title>
|
38
|
+
</v-toolbar>
|
39
|
+
<v-content>
|
40
|
+
<v-container grid-list-md text-xs-center>
|
41
|
+
<v-layout row wrap>
|
42
|
+
<v-flex xs12>
|
43
|
+
<v-card dark color="primary">
|
44
|
+
<v-card-text class="px-0">
|
45
|
+
<slot />
|
46
|
+
</v-card-text>
|
47
|
+
</v-card>
|
48
|
+
</v-flex>
|
49
|
+
</v-layout>
|
50
|
+
</v-container>
|
51
|
+
|
52
|
+
<v-container fluid fill-height>
|
53
|
+
<v-layout justify-center align-center>
|
54
|
+
<v-tooltip right>
|
55
|
+
<v-btn slot="activator" :href="source" icon large target="_blank">
|
56
|
+
<v-icon large>
|
57
|
+
code
|
58
|
+
</v-icon>
|
59
|
+
</v-btn>
|
60
|
+
<span>Source</span>
|
61
|
+
</v-tooltip>
|
62
|
+
</v-layout>
|
63
|
+
</v-container>
|
64
|
+
</v-content>
|
65
|
+
<v-footer app fixed>
|
66
|
+
<span>© 2017</span>
|
67
|
+
</v-footer>
|
68
|
+
</v-app>
|
69
|
+
</template>
|
70
|
+
|
71
|
+
<script>
|
72
|
+
export default {
|
73
|
+
name: 'Layout',
|
74
|
+
props: {
|
75
|
+
items: {
|
76
|
+
type: Array,
|
77
|
+
default: () => []
|
78
|
+
},
|
79
|
+
source: {
|
80
|
+
type: String,
|
81
|
+
default: ''
|
82
|
+
}
|
83
|
+
},
|
84
|
+
data: () => ({
|
85
|
+
drawer: null
|
86
|
+
})
|
87
|
+
}
|
88
|
+
</script>
|
89
|
+
|
90
|
+
<style type="text/css">
|
91
|
+
@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons");
|
92
|
+
</style>
|
@@ -0,0 +1,79 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="VueToNuxtLogo">
|
3
|
+
<div class="Triangle Triangle--two" />
|
4
|
+
<div class="Triangle Triangle--one" />
|
5
|
+
<div class="Triangle Triangle--three" />
|
6
|
+
<div class="Triangle Triangle--four" />
|
7
|
+
</div>
|
8
|
+
</template>
|
9
|
+
|
10
|
+
<style>
|
11
|
+
.VueToNuxtLogo {
|
12
|
+
display: inline-block;
|
13
|
+
animation: turn 2s linear forwards 1s;
|
14
|
+
transform: rotateX(180deg);
|
15
|
+
position: relative;
|
16
|
+
overflow: hidden;
|
17
|
+
height: 180px;
|
18
|
+
width: 245px;
|
19
|
+
}
|
20
|
+
|
21
|
+
.Triangle {
|
22
|
+
position: absolute;
|
23
|
+
top: 0;
|
24
|
+
left: 0;
|
25
|
+
width: 0;
|
26
|
+
height: 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
.Triangle--one {
|
30
|
+
border-left: 105px solid transparent;
|
31
|
+
border-right: 105px solid transparent;
|
32
|
+
border-bottom: 180px solid #41B883;
|
33
|
+
}
|
34
|
+
|
35
|
+
.Triangle--two {
|
36
|
+
top: 30px;
|
37
|
+
left: 35px;
|
38
|
+
animation: goright 0.5s linear forwards 3.5s;
|
39
|
+
border-left: 87.5px solid transparent;
|
40
|
+
border-right: 87.5px solid transparent;
|
41
|
+
border-bottom: 150px solid #3B8070;
|
42
|
+
}
|
43
|
+
|
44
|
+
.Triangle--three {
|
45
|
+
top: 60px;
|
46
|
+
left: 35px;
|
47
|
+
animation: goright 0.5s linear forwards 3.5s;
|
48
|
+
border-left: 70px solid transparent;
|
49
|
+
border-right: 70px solid transparent;
|
50
|
+
border-bottom: 120px solid #35495E;
|
51
|
+
}
|
52
|
+
|
53
|
+
.Triangle--four {
|
54
|
+
top: 120px;
|
55
|
+
left: 70px;
|
56
|
+
animation: godown 0.5s linear forwards 3s;
|
57
|
+
border-left: 35px solid transparent;
|
58
|
+
border-right: 35px solid transparent;
|
59
|
+
border-bottom: 60px solid #fff;
|
60
|
+
}
|
61
|
+
|
62
|
+
@keyframes turn {
|
63
|
+
100% {
|
64
|
+
transform: rotateX(0deg);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
@keyframes godown {
|
69
|
+
100% {
|
70
|
+
top: 180px;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
@keyframes goright {
|
75
|
+
100% {
|
76
|
+
left: 70px;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
</style>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<template>
|
2
|
+
<img class="VuetifyLogo" alt="Vuetify Logo" src="data:image/png;base64,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">
|
3
|
+
</template>
|
4
|
+
|
5
|
+
<style>
|
6
|
+
.VuetifyLogo {
|
7
|
+
width: 180px;
|
8
|
+
transform: rotateY(560deg);
|
9
|
+
animation: turn 3.5s ease-out forwards 1s;
|
10
|
+
}
|
11
|
+
@keyframes turn {
|
12
|
+
100% {
|
13
|
+
transform: rotateY(0deg);
|
14
|
+
}
|
15
|
+
}
|
16
|
+
</style>
|
@@ -0,0 +1,124 @@
|
|
1
|
+
<template>
|
2
|
+
<v-app>
|
3
|
+
<v-container fluid>
|
4
|
+
<div class="main">
|
5
|
+
<h1>Welcome to STORYBOOK</h1>
|
6
|
+
<p>
|
7
|
+
This is a UI component dev environment for your app.
|
8
|
+
</p>
|
9
|
+
|
10
|
+
<p>
|
11
|
+
The repo for this project exists here
|
12
|
+
<a
|
13
|
+
class="link"
|
14
|
+
href="https://github.com/white-rabbit-japan/vuetify-storyboard-boilerplate"
|
15
|
+
target="_blank"
|
16
|
+
rel="noopener noreferrer"
|
17
|
+
>
|
18
|
+
vuetify-storyboard-boilerplate
|
19
|
+
</a>
|
20
|
+
</p>
|
21
|
+
|
22
|
+
<p>
|
23
|
+
We've added some basic stories inside the
|
24
|
+
|
25
|
+
<code class="code">
|
26
|
+
src/stories
|
27
|
+
</code>
|
28
|
+
directory.
|
29
|
+
A story is a single state of one or more UI components. You can have as many stories as you want.
|
30
|
+
(Basically a story is like a visual test case.)
|
31
|
+
</p>
|
32
|
+
<p>
|
33
|
+
See these sample
|
34
|
+
|
35
|
+
<a class="link" role="button" tabIndex="0" @click.prevent="showApp">
|
36
|
+
stories
|
37
|
+
</a>
|
38
|
+
for a component called
|
39
|
+
|
40
|
+
<code class="code">
|
41
|
+
Button
|
42
|
+
</code> .
|
43
|
+
</p>
|
44
|
+
<p>
|
45
|
+
Just like that, you can add your own components as stories.
|
46
|
+
You can also edit those components and see changes right away.
|
47
|
+
(Try editing the
|
48
|
+
<code class="code">
|
49
|
+
Button
|
50
|
+
</code> component located at
|
51
|
+
<code class="code">
|
52
|
+
src/stories/Button.js
|
53
|
+
</code>.)
|
54
|
+
</p>
|
55
|
+
<p>
|
56
|
+
This is just one thing you can do with Storybook.
|
57
|
+
Have a look at the
|
58
|
+
|
59
|
+
<a class="link" href="https://github.com/storybooks/storybook" target="_blank" rel="noopener noreferrer">
|
60
|
+
Storybook
|
61
|
+
</a>
|
62
|
+
repo for more information.
|
63
|
+
</p>
|
64
|
+
<p class="note">
|
65
|
+
<b>NOTE:</b>
|
66
|
+
Have a look at the
|
67
|
+
|
68
|
+
<code class="code">
|
69
|
+
.storybook/webpack.config.js
|
70
|
+
</code>
|
71
|
+
to add webpack loaders and plugins you are using in this project.
|
72
|
+
</p>
|
73
|
+
</div>
|
74
|
+
</v-container>
|
75
|
+
</v-app>
|
76
|
+
</template>
|
77
|
+
|
78
|
+
<script>
|
79
|
+
export default {
|
80
|
+
name: 'Welcome',
|
81
|
+
|
82
|
+
props: {
|
83
|
+
showApp: {
|
84
|
+
type: Function,
|
85
|
+
default: () => console.log('Welcome to storybook!') // eslint-disable-line
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
</script>
|
90
|
+
|
91
|
+
<style>
|
92
|
+
.main {
|
93
|
+
margin: 15px;
|
94
|
+
max-width: 600px;
|
95
|
+
line-height: 1.4;
|
96
|
+
font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans,
|
97
|
+
sans-serif;
|
98
|
+
}
|
99
|
+
|
100
|
+
.logo {
|
101
|
+
width: 200px;
|
102
|
+
}
|
103
|
+
|
104
|
+
.link {
|
105
|
+
color: #1474f3;
|
106
|
+
text-decoration: none;
|
107
|
+
border-bottom: 1px solid #1474f3;
|
108
|
+
padding-bottom: 2px;
|
109
|
+
}
|
110
|
+
|
111
|
+
.code {
|
112
|
+
font-size: 15px;
|
113
|
+
font-weight: 600;
|
114
|
+
padding: 2px 5px;
|
115
|
+
border: 1px solid #eae9e9;
|
116
|
+
border-radius: 4px;
|
117
|
+
background-color: #f3f2f2;
|
118
|
+
color: #3a3a3a;
|
119
|
+
}
|
120
|
+
|
121
|
+
.note {
|
122
|
+
opacity: 0.5;
|
123
|
+
}
|
124
|
+
</style>
|
@@ -0,0 +1,102 @@
|
|
1
|
+
<template>
|
2
|
+
<v-app dark>
|
3
|
+
<v-navigation-drawer
|
4
|
+
v-model="drawer"
|
5
|
+
:mini-variant="miniVariant"
|
6
|
+
:clipped="clipped"
|
7
|
+
fixed
|
8
|
+
app
|
9
|
+
>
|
10
|
+
<v-list>
|
11
|
+
<v-list-tile
|
12
|
+
v-for="(item, i) in items"
|
13
|
+
:key="i"
|
14
|
+
:to="item.to"
|
15
|
+
router
|
16
|
+
exact
|
17
|
+
>
|
18
|
+
<v-list-tile-action>
|
19
|
+
<v-icon>{{ item.icon }}</v-icon>
|
20
|
+
</v-list-tile-action>
|
21
|
+
<v-list-tile-content>
|
22
|
+
<v-list-tile-title v-text="item.title" />
|
23
|
+
</v-list-tile-content>
|
24
|
+
</v-list-tile>
|
25
|
+
</v-list>
|
26
|
+
</v-navigation-drawer>
|
27
|
+
<v-toolbar :clipped-left="clipped" fixed app>
|
28
|
+
<v-toolbar-side-icon @click="drawer = !drawer" />
|
29
|
+
<v-btn
|
30
|
+
icon
|
31
|
+
@click.stop="miniVariant = !miniVariant"
|
32
|
+
>
|
33
|
+
<v-icon>{{ miniVariant ? 'chevron_right' : 'chevron_left' }}</v-icon>
|
34
|
+
</v-btn>
|
35
|
+
<v-btn
|
36
|
+
icon
|
37
|
+
@click.stop="clipped = !clipped"
|
38
|
+
>
|
39
|
+
<v-icon>web</v-icon>
|
40
|
+
</v-btn>
|
41
|
+
<v-btn
|
42
|
+
icon
|
43
|
+
@click.stop="fixed = !fixed"
|
44
|
+
>
|
45
|
+
<v-icon>remove</v-icon>
|
46
|
+
</v-btn>
|
47
|
+
<v-toolbar-title v-text="title" />
|
48
|
+
<v-spacer />
|
49
|
+
<v-btn
|
50
|
+
icon
|
51
|
+
@click.stop="rightDrawer = !rightDrawer"
|
52
|
+
>
|
53
|
+
<v-icon>menu</v-icon>
|
54
|
+
</v-btn>
|
55
|
+
</v-toolbar>
|
56
|
+
<v-content>
|
57
|
+
<v-container>
|
58
|
+
<nuxt />
|
59
|
+
</v-container>
|
60
|
+
</v-content>
|
61
|
+
<v-navigation-drawer
|
62
|
+
v-model="rightDrawer"
|
63
|
+
:right="right"
|
64
|
+
temporary
|
65
|
+
fixed
|
66
|
+
>
|
67
|
+
<v-list>
|
68
|
+
<v-list-tile @click.native="right = !right">
|
69
|
+
<v-list-tile-action>
|
70
|
+
<v-icon light>
|
71
|
+
compare_arrows
|
72
|
+
</v-icon>
|
73
|
+
</v-list-tile-action>
|
74
|
+
<v-list-tile-title>Switch drawer (click me)</v-list-tile-title>
|
75
|
+
</v-list-tile>
|
76
|
+
</v-list>
|
77
|
+
</v-navigation-drawer>
|
78
|
+
<v-footer :fixed="fixed" app>
|
79
|
+
<span>© 2017</span>
|
80
|
+
</v-footer>
|
81
|
+
</v-app>
|
82
|
+
</template>
|
83
|
+
|
84
|
+
<script>
|
85
|
+
export default {
|
86
|
+
data () {
|
87
|
+
return {
|
88
|
+
clipped: false,
|
89
|
+
drawer: true,
|
90
|
+
fixed: false,
|
91
|
+
items: [
|
92
|
+
{ icon: 'apps', title: 'Welcome', to: '/' },
|
93
|
+
{ icon: 'bubble_chart', title: 'Inspire', to: '/inspire' }
|
94
|
+
],
|
95
|
+
miniVariant: false,
|
96
|
+
right: true,
|
97
|
+
rightDrawer: false,
|
98
|
+
title: 'Vuetify.js'
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
</script>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
const pkg = require('./package')
|
2
|
+
|
3
|
+
module.exports = {
|
4
|
+
mode: 'universal',
|
5
|
+
|
6
|
+
/*
|
7
|
+
** Headers of the page
|
8
|
+
*/
|
9
|
+
head: {
|
10
|
+
title: pkg.name,
|
11
|
+
meta: [
|
12
|
+
{ charset: 'utf-8' },
|
13
|
+
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
14
|
+
{ hid: 'description', name: 'description', content: pkg.description }
|
15
|
+
],
|
16
|
+
link: [
|
17
|
+
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
|
18
|
+
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' }
|
19
|
+
]
|
20
|
+
},
|
21
|
+
|
22
|
+
/*
|
23
|
+
** Customize the progress-bar color
|
24
|
+
*/
|
25
|
+
loading: { color: '#3B8070' },
|
26
|
+
|
27
|
+
/*
|
28
|
+
** Global CSS
|
29
|
+
*/
|
30
|
+
css: [
|
31
|
+
'vuetify/src/stylus/main.styl'
|
32
|
+
],
|
33
|
+
|
34
|
+
/*
|
35
|
+
** Plugins to load before mounting the App
|
36
|
+
*/
|
37
|
+
plugins: [
|
38
|
+
'@/plugins/vuetify'
|
39
|
+
]
|
40
|
+
}
|