Skip to content

Commit af0459e

Browse files
committed
提交
0 parents  commit af0459e

File tree

20 files changed

+8505
-0
lines changed

20 files changed

+8505
-0
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.gitignore

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Node template
3+
# Logs
4+
/logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
10+
# Runtime data
11+
pids
12+
*.pid
13+
*.seed
14+
*.pid.lock
15+
16+
# Directory for instrumented libs generated by jscoverage/JSCover
17+
lib-cov
18+
19+
# Coverage directory used by tools like istanbul
20+
coverage
21+
22+
# nyc test coverage
23+
.nyc_output
24+
25+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26+
.grunt
27+
28+
# Bower dependency directory (https://bower.io/)
29+
bower_components
30+
31+
# node-waf configuration
32+
.lock-wscript
33+
34+
# Compiled binary addons (https://nodejs.org/api/addons.html)
35+
build/Release
36+
37+
# Dependency directories
38+
node_modules/
39+
jspm_packages/
40+
41+
# TypeScript v1 declaration files
42+
typings/
43+
44+
# Optional npm cache directory
45+
.npm
46+
47+
# Optional eslint cache
48+
.eslintcache
49+
50+
# Optional REPL history
51+
.node_repl_history
52+
53+
# Output of 'npm pack'
54+
*.tgz
55+
56+
# Yarn Integrity file
57+
.yarn-integrity
58+
59+
# dotenv environment variables file
60+
.env
61+
62+
# parcel-bundler cache (https://parceljs.org/)
63+
.cache
64+
65+
# next.js build output
66+
.next
67+
68+
# nuxt.js build output
69+
.nuxt
70+
71+
# Nuxt generate
72+
dist
73+
74+
# vuepress build output
75+
.vuepress/dist
76+
77+
# Serverless directories
78+
.serverless
79+
80+
# IDE / Editor
81+
.idea
82+
83+
# Service worker
84+
sw.*
85+
86+
# macOS
87+
.DS_Store
88+
89+
# Vim swap files
90+
*.swp

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# huage
2+
3+
## Build Setup
4+
5+
```bash
6+
# install dependencies
7+
$ yarn install
8+
9+
# serve with hot reload at localhost:3000
10+
$ yarn dev
11+
12+
# build for production and launch server
13+
$ yarn build
14+
$ yarn start
15+
16+
# generate static project
17+
$ yarn generate
18+
```
19+
20+
For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).

assets/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# ASSETS
2+
3+
**This directory is not required, you can delete it if you don't want to use it.**
4+
5+
This directory contains your un-compiled assets such as LESS, SASS, or JavaScript.
6+
7+
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#webpacked).

components/Logo.vue

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<template>
2+
<svg class="NuxtLogo" width="245" height="180" viewBox="0 0 452 342" xmlns="http://www.w3.org/2000/svg">
3+
<path
4+
d="M139 330l-1-2c-2-4-2-8-1-13H29L189 31l67 121 22-16-67-121c-1-2-9-14-22-14-6 0-15 2-22 15L5 303c-1 3-8 16-2 27 4 6 10 12 24 12h136c-14 0-21-6-24-12z"
5+
fill="#00C58E"
6+
/>
7+
<path
8+
d="M447 304L317 70c-2-2-9-15-22-15-6 0-15 3-22 15l-17 28v54l39-67 129 230h-49a23 23 0 0 1-2 14l-1 1c-6 11-21 12-23 12h76c3 0 17-1 24-12 3-5 5-14-2-26z"
9+
fill="#108775"
10+
/>
11+
<path
12+
d="M376 330v-1l1-2c1-4 2-8 1-12l-4-12-102-178-15-27h-1l-15 27-102 178-4 12a24 24 0 0 0 2 15c4 6 10 12 24 12h190c3 0 18-1 25-12zM256 152l93 163H163l93-163z"
13+
fill="#2F495E"
14+
/>
15+
</svg>
16+
</template>
17+
18+
<style>
19+
.NuxtLogo {
20+
animation: 1s appear;
21+
margin: auto;
22+
}
23+
24+
@keyframes appear {
25+
0% {
26+
opacity: 0;
27+
}
28+
}
29+
</style>

components/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# COMPONENTS
2+
3+
**This directory is not required, you can delete it if you don't want to use it.**
4+
5+
The components directory contains your Vue.js Components.
6+
7+
_Nuxt.js doesn't supercharge these components._

layouts/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# LAYOUTS
2+
3+
**This directory is not required, you can delete it if you don't want to use it.**
4+
5+
This directory contains your Application Layouts.
6+
7+
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/views#layouts).

layouts/default.vue

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<template>
2+
<div>
3+
<Nuxt />
4+
</div>
5+
</template>
6+
7+
<style>
8+
html {
9+
font-family:
10+
'Source Sans Pro',
11+
-apple-system,
12+
BlinkMacSystemFont,
13+
'Segoe UI',
14+
Roboto,
15+
'Helvetica Neue',
16+
Arial,
17+
sans-serif;
18+
font-size: 16px;
19+
word-spacing: 1px;
20+
-ms-text-size-adjust: 100%;
21+
-webkit-text-size-adjust: 100%;
22+
-moz-osx-font-smoothing: grayscale;
23+
-webkit-font-smoothing: antialiased;
24+
box-sizing: border-box;
25+
}
26+
27+
*,
28+
*::before,
29+
*::after {
30+
box-sizing: border-box;
31+
margin: 0;
32+
}
33+
34+
.button--green {
35+
display: inline-block;
36+
border-radius: 4px;
37+
border: 1px solid #3b8070;
38+
color: #3b8070;
39+
text-decoration: none;
40+
padding: 10px 30px;
41+
}
42+
43+
.button--green:hover {
44+
color: #fff;
45+
background-color: #3b8070;
46+
}
47+
48+
.button--grey {
49+
display: inline-block;
50+
border-radius: 4px;
51+
border: 1px solid #35495e;
52+
color: #35495e;
53+
text-decoration: none;
54+
padding: 10px 30px;
55+
margin-left: 15px;
56+
}
57+
58+
.button--grey:hover {
59+
color: #fff;
60+
background-color: #35495e;
61+
}
62+
</style>

middleware/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# MIDDLEWARE
2+
3+
**This directory is not required, you can delete it if you don't want to use it.**
4+
5+
This directory contains your application middleware.
6+
Middleware let you define custom functions that can be run before rendering either a page or a group of pages.
7+
8+
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing#middleware).

nuxt.config.js

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
export default {
2+
// Global page headers: https://go.nuxtjs.dev/config-head
3+
head: {
4+
title: 'huage',
5+
htmlAttrs: {
6+
lang: 'en'
7+
},
8+
meta: [
9+
{ charset: 'utf-8' },
10+
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
11+
{ hid: 'description', name: 'description', content: '' }
12+
],
13+
link: [
14+
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
15+
]
16+
},
17+
18+
// Global CSS: https://go.nuxtjs.dev/config-css
19+
css: [
20+
'ant-design-vue/dist/antd.css'
21+
],
22+
23+
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
24+
plugins: [
25+
'@/plugins/antd-ui'
26+
],
27+
28+
// Auto import components: https://go.nuxtjs.dev/config-components
29+
components: true,
30+
31+
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
32+
buildModules: [
33+
],
34+
35+
// Modules: https://go.nuxtjs.dev/config-modules
36+
modules: [
37+
// https://go.nuxtjs.dev/axios
38+
'@nuxtjs/axios',
39+
],
40+
41+
// Axios module configuration: https://go.nuxtjs.dev/config-axios
42+
axios: {},
43+
44+
// Build Configuration: https://go.nuxtjs.dev/config-build
45+
build: {
46+
}
47+
}

0 commit comments

Comments
 (0)