├── babel.config.js
├── public
├── favicon.ico
└── index.html
├── src
├── views
│ └── About.vue
├── plugins
│ └── vuetify.js
├── main.js
├── components
│ ├── Greeting.vue
│ └── ElementList.vue
├── router.js
└── App.vue
├── .gitignore
├── README.md
└── package.json
/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/app'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NUAA-Open-Source/Guide-Frontend/dev/public/favicon.ico
--------------------------------------------------------------------------------
/src/views/About.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
This is an about page
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/plugins/vuetify.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue';
2 | import Vuetify from 'vuetify/lib';
3 |
4 | Vue.use(Vuetify);
5 |
6 | export default new Vuetify({
7 | icons: {
8 | iconfont: 'mdi',
9 | },
10 | });
11 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 | # local env files
6 | .env.local
7 | .env.*.local
8 |
9 | # Log files
10 | npm-debug.log*
11 | yarn-debug.log*
12 | yarn-error.log*
13 |
14 | # Editor directories and files
15 | .idea
16 | .vscode
17 | *.suo
18 | *.ntvs*
19 | *.njsproj
20 | *.sln
21 | *.sw?
22 |
--------------------------------------------------------------------------------
/src/main.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import App from './App.vue'
3 | import vuetify from './plugins/vuetify';
4 | import router from './router'
5 | import axios from 'axios'
6 |
7 | Vue.config.productionTip = false
8 | Vue.prototype.$axios = axios
9 |
10 | new Vue({
11 | vuetify,
12 | router,
13 | render: h => h(App)
14 | }).$mount('#app')
15 |
--------------------------------------------------------------------------------
/src/components/Greeting.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
10 | mdi-heart 在这里,去发现……
11 | 这里是 A2OS 的导航页,存放了南航非官方组织或个人开发的各类产品或小制作,以后可能会有更多内容,欢迎继续关注!
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # A2OS-Guide
2 | This is a guide page that contains all productions developed by individual students or unoffical student organizations.
3 |
4 | ## Project setup
5 | ```
6 | yarn install
7 | ```
8 |
9 | ### Compiles and hot-reloads for development
10 | ```
11 | yarn run serve
12 | ```
13 |
14 | ### Compiles and minifies for production
15 | ```
16 | yarn run build
17 | ```
18 |
19 | ### Run your tests
20 | ```
21 | yarn run test
22 | ```
23 |
24 | ### Lints and fixes files
25 | ```
26 | yarn run lint
27 | ```
28 |
29 | ### Customize configuration
30 | See [Configuration Reference](https://cli.vuejs.org/config/).
31 |
32 |
--------------------------------------------------------------------------------
/src/router.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import Router from 'vue-router'
3 |
4 | Vue.use(Router)
5 |
6 | export default new Router({
7 | mode: 'history',
8 | base: process.env.BASE_URL,
9 | routes: [
10 | {
11 | path: '/',
12 | name: 'home',
13 | component: () => import(/* webpackChunkName: "about" */ './App.vue')
14 | },
15 | {
16 | path: '/about',
17 | name: 'about',
18 | // route level code-splitting
19 | // this generates a separate chunk (about.[hash].js) for this route
20 | // which is lazy-loaded when the route is visited.
21 | component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
22 | }
23 | ]
24 | })
25 |
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | a2os_guide
9 |
10 |
11 |
12 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "a2os_guide",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "serve": "vue-cli-service serve",
7 | "build": "vue-cli-service build",
8 | "lint": "vue-cli-service lint"
9 | },
10 | "dependencies": {
11 | "axios": "^0.19.0",
12 | "core-js": "^2.6.5",
13 | "vue": "^2.6.10",
14 | "vue-axios": "^2.1.4",
15 | "vue-router": "^3.1.2",
16 | "vuetify": "^2.0.0"
17 | },
18 | "devDependencies": {
19 | "@vue/cli-plugin-babel": "^3.11.0",
20 | "@vue/cli-plugin-eslint": "^3.11.0",
21 | "@vue/cli-service": "^3.11.0",
22 | "babel-eslint": "^10.0.1",
23 | "eslint": "^5.16.0",
24 | "eslint-plugin-vue": "^5.0.0",
25 | "sass": "^1.17.4",
26 | "sass-loader": "^7.1.0",
27 | "vue-cli-plugin-vuetify": "^0.6.3",
28 | "vue-template-compiler": "^2.6.10",
29 | "vuetify-loader": "^1.2.2"
30 | },
31 | "eslintConfig": {
32 | "root": true,
33 | "env": {
34 | "node": true
35 | },
36 | "extends": [
37 | "plugin:vue/essential",
38 | "eslint:recommended"
39 | ],
40 | "rules": {},
41 | "parserOptions": {
42 | "parser": "babel-eslint"
43 | }
44 | },
45 | "postcss": {
46 | "plugins": {
47 | "autoprefixer": {}
48 | }
49 | },
50 | "browserslist": [
51 | "> 1%",
52 | "last 2 versions"
53 | ]
54 | }
55 |
--------------------------------------------------------------------------------
/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 | A2OS
11 | Guide
12 |
13 |
14 |
19 | mdi-home
20 |
21 |
26 | mdi-github-circle
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
39 | ©A2OS 2018-2019 All rights reserved.
40 |
41 |
42 |
43 |
44 |
59 |
60 |
65 |
--------------------------------------------------------------------------------
/src/components/ElementList.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
16 |
19 | {{ element.name }}
20 | {{ element.introduction }}
21 | 作者: {{ element.author }}
22 |
27 | mdi-send 点击以访问
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
50 |
51 |
--------------------------------------------------------------------------------