-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bb4c9bf
Showing
27 changed files
with
13,359 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
node: true | ||
}, | ||
parserOptions: { | ||
parser: 'babel-eslint' | ||
}, | ||
extends: [ | ||
'@nuxtjs', | ||
'prettier', | ||
'prettier/vue', | ||
'plugin:prettier/recommended', | ||
'plugin:nuxt/recommended' | ||
], | ||
plugins: [ | ||
'prettier' | ||
], | ||
// add your custom rules here | ||
rules: { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
### Node template | ||
# Logs | ||
/logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# next.js build output | ||
.next | ||
|
||
# nuxt.js build output | ||
.nuxt | ||
|
||
# Nuxt generate | ||
dist | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless | ||
|
||
# IDE / Editor | ||
.idea | ||
|
||
# Service worker | ||
sw.* | ||
|
||
# macOS | ||
.DS_Store | ||
|
||
# Vim swap files | ||
*.swp | ||
|
||
.now |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.nuxt | ||
node_modules | ||
*.log | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"semi": false, | ||
"arrowParens": "always", | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# nuxtjs-now-tutorial | ||
|
||
> My top-notch Nuxt.js project | ||
## Build Setup | ||
|
||
```bash | ||
# install dependencies | ||
$ npm install | ||
|
||
# serve with hot reload at localhost:3000 | ||
$ npm run dev | ||
|
||
# build for production and launch server | ||
$ npm run build | ||
$ npm run start | ||
|
||
# generate static project | ||
$ npm run generate | ||
``` | ||
|
||
For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# ASSETS | ||
|
||
**This directory is not required, you can delete it if you don't want to use it.** | ||
|
||
This directory contains your un-compiled assets such as LESS, SASS, or JavaScript. | ||
|
||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#webpacked). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Ref: https://github.com/nuxt-community/vuetify-module#customvariables | ||
// | ||
// The variables you want to modify | ||
// $font-size-root: 20px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# COMPONENTS | ||
|
||
**This directory is not required, you can delete it if you don't want to use it.** | ||
|
||
The components directory contains your Vue.js Components. | ||
|
||
_Nuxt.js doesn't supercharge these components._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# LAYOUTS | ||
|
||
**This directory is not required, you can delete it if you don't want to use it.** | ||
|
||
This directory contains your Application Layouts. | ||
|
||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/views#layouts). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<template> | ||
<v-app dark> | ||
<v-app-bar fixed app> | ||
<v-toolbar-title v-text="title" /> | ||
<v-spacer /> | ||
<v-toolbar-items> | ||
<v-btn :to="{ name: 'index' }" exact> | ||
HOME | ||
</v-btn> | ||
<v-btn :to="{ name: 'blog' }" exact> | ||
BLOG | ||
</v-btn> | ||
</v-toolbar-items> | ||
</v-app-bar> | ||
<v-content> | ||
<v-container> | ||
<nuxt /> | ||
</v-container> | ||
</v-content> | ||
<v-footer :fixed="fixed" app> | ||
<span>© {{ new Date().getFullYear() }}</span> | ||
</v-footer> | ||
</v-app> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
fixed: true, | ||
title: 'Vuetify.js' | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<template> | ||
<v-app dark> | ||
<h1 v-if="error.statusCode === 404"> | ||
{{ pageNotFound }} | ||
</h1> | ||
<h1 v-else> | ||
{{ otherError }} | ||
</h1> | ||
<NuxtLink to="/"> | ||
Home page | ||
</NuxtLink> | ||
</v-app> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
layout: 'empty', | ||
props: { | ||
error: { | ||
type: Object, | ||
default: null | ||
} | ||
}, | ||
data() { | ||
return { | ||
pageNotFound: '404 Not Found', | ||
otherError: 'An error occurred' | ||
} | ||
}, | ||
head() { | ||
const title = | ||
this.error.statusCode === 404 ? this.pageNotFound : this.otherError | ||
return { | ||
title | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
h1 { | ||
font-size: 20px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# MIDDLEWARE | ||
|
||
**This directory is not required, you can delete it if you don't want to use it.** | ||
|
||
This directory contains your application middleware. | ||
Middleware let you define custom functions that can be run before rendering either a page or a group of pages. | ||
|
||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing#middleware). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"version": 2, | ||
"builds": [ | ||
{ | ||
"src": "nuxt.config.js", | ||
"use": "@nuxtjs/now-builder", | ||
"config": {} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
export default { | ||
mode: 'universal', | ||
/* | ||
** Headers of the page | ||
*/ | ||
head: { | ||
titleTemplate: '%s - ' + 'Nuxt.js Template', | ||
title: 'Nuxt.js Tutorial' || '', | ||
meta: [ | ||
{ charset: 'utf-8' }, | ||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, | ||
{ | ||
hid: 'description', | ||
name: 'description', | ||
content: process.env.npm_package_description || '' | ||
} | ||
], | ||
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }] | ||
}, | ||
/* | ||
** Customize the progress-bar color | ||
*/ | ||
loading: { color: '#fff' }, | ||
/* | ||
** Global CSS | ||
*/ | ||
css: [], | ||
/* | ||
** Plugins to load before mounting the App | ||
*/ | ||
plugins: [], | ||
/* | ||
** Nuxt.js dev-modules | ||
*/ | ||
buildModules: [ | ||
// Doc: https://github.com/nuxt-community/eslint-module | ||
'@nuxtjs/eslint-module', | ||
// Doc: https://github.com/nuxt-community/stylelint-module | ||
'@nuxtjs/stylelint-module', | ||
'@nuxtjs/vuetify' | ||
], | ||
/* | ||
** Nuxt.js modules | ||
*/ | ||
modules: [ | ||
// Doc: https://axios.nuxtjs.org/usage | ||
'@nuxtjs/axios', | ||
// Doc: https://github.com/nuxt-community/dotenv-module | ||
'@nuxtjs/dotenv' | ||
], | ||
/* | ||
** Axios module configuration | ||
** See https://axios.nuxtjs.org/options | ||
*/ | ||
axios: { | ||
baseURL: 'https://jsonplaceholder.typicode.com' | ||
}, | ||
/* | ||
** vuetify module configuration | ||
** https://github.com/nuxt-community/vuetify-module | ||
*/ | ||
vuetify: { | ||
optionsPath: './vuetify.options.js' | ||
}, | ||
/* | ||
** Build configuration | ||
*/ | ||
build: { | ||
/* | ||
** You can extend webpack config here | ||
*/ | ||
extend(config, ctx) {} | ||
} | ||
} |
Oops, something went wrong.