baid222u 5 years ago
parent
commit
c66881242b
58 changed files with 13655 additions and 0 deletions
  1. 13 0
      .editorconfig
  2. 23 0
      .eslintrc.js
  3. 84 0
      .gitignore
  4. 4 0
      .prettierrc
  5. 22 0
      README.md
  6. 7 0
      assets/README.md
  7. 7 0
      assets/a.scss
  8. 7 0
      components/README.md
  9. 7 0
      components/table.vue
  10. 7 0
      layouts/README.md
  11. 55 0
      layouts/default.vue
  12. 8 0
      middleware/README.md
  13. 78 0
      nuxt.config.js
  14. 13189 0
      package-lock.json
  15. 43 0
      package.json
  16. 6 0
      pages/README.md
  17. 67 0
      pages/index.vue
  18. 7 0
      plugins/README.md
  19. 11 0
      static/README.md
  20. BIN
      static/favicon.ico
  21. BIN
      static/icon.png
  22. BIN
      static/img/arr_back.png
  23. BIN
      static/img/arr_back_next.png
  24. BIN
      static/img/arr_goto-se.png
  25. BIN
      static/img/arr_tototo.png
  26. BIN
      static/img/bg-me.png
  27. BIN
      static/img/bg_countbg.png
  28. BIN
      static/img/bg_vip-card.png
  29. BIN
      static/img/icon_V.png
  30. BIN
      static/img/icon_address.png
  31. BIN
      static/img/icon_card.png
  32. BIN
      static/img/icon_close.png
  33. BIN
      static/img/icon_delete.png
  34. BIN
      static/img/icon_gcxm_active.png
  35. BIN
      static/img/icon_gcxm_normal.png
  36. BIN
      static/img/icon_map_active.png
  37. BIN
      static/img/icon_map_normal.png
  38. BIN
      static/img/icon_me_active.png
  39. BIN
      static/img/icon_me_normal.png
  40. BIN
      static/img/icon_pay_ali.png
  41. BIN
      static/img/icon_pay_weixin.png
  42. BIN
      static/img/icon_search.png
  43. BIN
      static/img/icon_select.png
  44. BIN
      static/img/icon_selected.png
  45. BIN
      static/img/icon_share.png
  46. BIN
      static/img/icon_shoucang.png
  47. BIN
      static/img/icon_shoucanged.png
  48. BIN
      static/img/icon_title.png
  49. BIN
      static/img/icon_titleimg.png
  50. BIN
      static/img/icon_to_hide.png
  51. BIN
      static/img/icon_to_open.png
  52. BIN
      static/img/icon_worning.png
  53. BIN
      static/img/icon_ztb_active.png
  54. BIN
      static/img/icon_ztb_normal.png
  55. BIN
      static/img/img_head.png
  56. BIN
      static/img/tag.png
  57. BIN
      static/img/vip-card.png
  58. 10 0
      store/README.md

+ 13 - 0
.editorconfig

@@ -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

+ 23 - 0
.eslintrc.js

@@ -0,0 +1,23 @@
+module.exports = {
+  root: true,
+  env: {
+    browser: true,
+    node: true
+  },
+  parserOptions: {
+    parser: 'babel-eslint'
+  },
+  extends: [
+    '@nuxtjs',
+    'plugin:nuxt/recommended',
+    'plugin:prettier/recommended',
+    'prettier',
+    'prettier/vue'
+  ],
+  plugins: [
+    'prettier'
+  ],
+  // add your custom rules here
+  rules: {
+  }
+}

+ 84 - 0
.gitignore

@@ -0,0 +1,84 @@
+# 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
+.idea
+
+# Service worker
+sw.*

+ 4 - 0
.prettierrc

@@ -0,0 +1,4 @@
+{
+  "semi": false,
+  "singleQuote": true
+}

+ 22 - 0
README.md

@@ -0,0 +1,22 @@
+# gcb
+
+> My majestic 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 start
+
+# generate static project
+$ npm run generate
+```
+
+For detailed explanation on how things work, checkout [Nuxt.js docs](https://nuxtjs.org).

+ 7 - 0
assets/README.md

@@ -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).

+ 7 - 0
assets/a.scss

@@ -0,0 +1,7 @@
+
+@charset "utf-8";
+//font 
+body{
+    background: yellow;
+}
+$colour :#009688 #5FB878 #393D49 #1E9FFF #F7B824 #FF5722 

+ 7 - 0
components/README.md

@@ -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._

+ 7 - 0
components/table.vue

@@ -0,0 +1,7 @@
+<template>
+  <div class="table">
+    <ul>
+      <li>saass</li>
+    </ul>
+  </div>
+</template>

+ 7 - 0
layouts/README.md

@@ -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).

+ 55 - 0
layouts/default.vue

@@ -0,0 +1,55 @@
+<template>
+  <div>
+    <nuxt />
+  </div>
+</template>
+
+<style>
+html {
+  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI',
+    Roboto, 'Helvetica Neue', Arial, sans-serif;
+  font-size: 16px;
+  word-spacing: 1px;
+  -ms-text-size-adjust: 100%;
+  -webkit-text-size-adjust: 100%;
+  -moz-osx-font-smoothing: grayscale;
+  -webkit-font-smoothing: antialiased;
+  box-sizing: border-box;
+}
+
+*,
+*:before,
+*:after {
+  box-sizing: border-box;
+  margin: 0;
+}
+
+.button--green {
+  display: inline-block;
+  border-radius: 4px;
+  border: 1px solid #3b8070;
+  color: #3b8070;
+  text-decoration: none;
+  padding: 10px 30px;
+}
+
+.button--green:hover {
+  color: #fff;
+  background-color: #3b8070;
+}
+
+.button--grey {
+  display: inline-block;
+  border-radius: 4px;
+  border: 1px solid #35495e;
+  color: #35495e;
+  text-decoration: none;
+  padding: 10px 30px;
+  margin-left: 15px;
+}
+
+.button--grey:hover {
+  color: #fff;
+  background-color: #35495e;
+}
+</style>

+ 8 - 0
middleware/README.md

@@ -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).

+ 78 - 0
nuxt.config.js

@@ -0,0 +1,78 @@
+import pkg from './package'
+
+export default {
+  mode: 'universal',
+
+  /*
+   ** Headers of the page
+   */
+  head: {
+    title: pkg.name,
+    meta: [
+      { charset: 'utf-8' },
+      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
+      { hid: 'description', name: 'description', content: pkg.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 modules
+   */
+  modules: [
+    // Doc: https://axios.nuxtjs.org/usage
+    '@nuxtjs/axios',
+    // Doc: https://bootstrap-vue.js.org/docs/
+    'bootstrap-vue/nuxt',
+    '@nuxtjs/pwa'
+  ],
+  /*
+   ** Axios module configuration
+   */
+  axios: {
+    // See https://github.com/nuxt-community/axios-module#options
+  },
+
+  /*
+   ** Build configuration
+   */
+  build: {
+    /*
+     ** You can extend webpack config here
+     */
+    extend(config, ctx) {
+      // Run ESLint on save
+      if (ctx.isDev && ctx.isClient) {
+        config.module.rules.push({
+          enforce: 'pre',
+          test: /\.(js|vue)$/,
+          loader: 'eslint-loader',
+          exclude: /(node_modules)/
+        })
+      }
+      const sassResourcesLoader = {
+        loader: 'sass-resources-loader',
+        options: {
+          resources: [
+            'assets/cyc.scss'
+          ]
+        }
+      }
+    }
+  }
+}

File diff suppressed because it is too large
+ 13189 - 0
package-lock.json


+ 43 - 0
package.json

@@ -0,0 +1,43 @@
+{
+  "name": "gcb",
+  "version": "1.0.0",
+  "description": "My majestic Nuxt.js project",
+  "author": "baid222u",
+  "private": true,
+  "scripts": {
+    "dev": "nuxt",
+    "build": "nuxt build",
+    "start": "nuxt start",
+    "generate": "nuxt generate",
+    "lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
+    "precommit": "npm run lint"
+  },
+  "dependencies": {
+    "cross-env": "^5.2.0",
+    "nuxt": "^2.4.0",
+    "bootstrap-vue": "^2.0.0-rc.11",
+    "bootstrap": "^4.1.3",
+    "@nuxtjs/axios": "^5.3.6",
+    "@nuxtjs/pwa": "^2.6.0"
+  },
+  "devDependencies": {
+    "@nuxtjs/eslint-config": "^0.0.1",
+    "babel-eslint": "^10.0.1",
+    "eslint": "^5.15.1",
+    "eslint-config-prettier": "^4.1.0",
+    "eslint-config-standard": ">=12.0.0",
+    "eslint-loader": "^2.1.2",
+    "eslint-plugin-import": ">=2.16.0",
+    "eslint-plugin-jest": ">=22.3.0",
+    "eslint-plugin-node": ">=8.0.1",
+    "eslint-plugin-nuxt": ">=0.4.2",
+    "eslint-plugin-prettier": "^3.0.1",
+    "eslint-plugin-promise": ">=4.0.1",
+    "eslint-plugin-standard": ">=4.0.0",
+    "eslint-plugin-vue": "^5.2.2",
+    "node-sass": "^4.12.0",
+    "nodemon": "^1.18.9",
+    "prettier": "^1.16.4",
+    "sass-loader": "^7.1.0"
+  }
+}

+ 6 - 0
pages/README.md

@@ -0,0 +1,6 @@
+# PAGES
+
+This directory contains your Application Views and Routes.
+The framework reads all the `*.vue` files inside this directory and creates the router of your application.
+
+More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing).

+ 67 - 0
pages/index.vue

@@ -0,0 +1,67 @@
+<template>
+  <section class="container">
+    <div>
+      <logo />
+      <h1 class="title">
+        gcb
+      </h1>
+      <h2 class="subtitle">
+        My majestic Nuxt.js project
+      </h2>
+      <div class="links">
+        <a href="https://nuxtjs.org/" target="_blank" class="button--green"
+          >Documentation</a
+        >
+        <a
+          href="https://github.com/nuxt/nuxt.js"
+          target="_blank"
+          class="button--grey"
+          >GitHub</a
+        >
+      </div>
+    </div>
+  </section>
+</template>
+
+<script>
+import Logo from '~/components/table.vue'
+import '~/assets/a.scss'
+export default {
+  components: {
+    Logo
+  }
+}
+</script>
+
+<style>
+.container {
+  margin: 0 auto;
+  min-height: 100vh;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  text-align: center;
+}
+
+.title {
+  font-family: 'Quicksand', 'Source Sans Pro', -apple-system, BlinkMacSystemFont,
+    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
+  display: block;
+  font-weight: 300;
+  font-size: 100px;
+  color: #35495e;
+  letter-spacing: 1px;
+}
+
+.subtitle {
+  font-weight: 300;
+  font-size: 42px;
+  color: #526488;
+  word-spacing: 5px;
+  padding-bottom: 15px;
+}
+
+.links {
+  padding-top: 15px;
+}
+</style>

+ 7 - 0
plugins/README.md

@@ -0,0 +1,7 @@
+# PLUGINS
+
+**This directory is not required, you can delete it if you don't want to use it.**
+
+This directory contains Javascript plugins that you want to run before mounting the root Vue.js application.
+
+More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/plugins).

+ 11 - 0
static/README.md

@@ -0,0 +1,11 @@
+# STATIC
+
+**This directory is not required, you can delete it if you don't want to use it.**
+
+This directory contains your static files.
+Each file inside this directory is mapped to `/`.
+Thus you'd want to delete this README.md before deploying to production.
+
+Example: `/static/robots.txt` is mapped as `/robots.txt`.
+
+More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#static).

BIN
static/favicon.ico


BIN
static/icon.png


BIN
static/img/arr_back.png


BIN
static/img/arr_back_next.png


BIN
static/img/arr_goto-se.png


BIN
static/img/arr_tototo.png


BIN
static/img/bg-me.png


BIN
static/img/bg_countbg.png


BIN
static/img/bg_vip-card.png


BIN
static/img/icon_V.png


BIN
static/img/icon_address.png


BIN
static/img/icon_card.png


BIN
static/img/icon_close.png


BIN
static/img/icon_delete.png


BIN
static/img/icon_gcxm_active.png


BIN
static/img/icon_gcxm_normal.png


BIN
static/img/icon_map_active.png


BIN
static/img/icon_map_normal.png


BIN
static/img/icon_me_active.png


BIN
static/img/icon_me_normal.png


BIN
static/img/icon_pay_ali.png


BIN
static/img/icon_pay_weixin.png


BIN
static/img/icon_search.png


BIN
static/img/icon_select.png


BIN
static/img/icon_selected.png


BIN
static/img/icon_share.png


BIN
static/img/icon_shoucang.png


BIN
static/img/icon_shoucanged.png


BIN
static/img/icon_title.png


BIN
static/img/icon_titleimg.png


BIN
static/img/icon_to_hide.png


BIN
static/img/icon_to_open.png


BIN
static/img/icon_worning.png


BIN
static/img/icon_ztb_active.png


BIN
static/img/icon_ztb_normal.png


BIN
static/img/img_head.png


BIN
static/img/tag.png


BIN
static/img/vip-card.png


+ 10 - 0
store/README.md

@@ -0,0 +1,10 @@
+# STORE
+
+**This directory is not required, you can delete it if you don't want to use it.**
+
+This directory contains your Vuex Store files.
+Vuex Store option is implemented in the Nuxt.js framework.
+
+Creating a file in this directory automatically activates the option in the framework.
+
+More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/vuex-store).