Skip to content

English Document

herozhou edited this page Sep 19, 2017 · 1 revision

vue-framework-wz

TeamCity CodeBetter npm npm Chrome Web Store

online-website

This project is a background management framework, integrated rights management, login function, industrial UI components, node-cli and other functions, it is recommended to useใ€‚

Attention๏ผšEasy to front-end debugging, so the data request is used Mock.js simulationใ€‚If you need to request an external api please remove the mock fileใ€‚

Features

  • ๐Ÿ‘wz-cli๐Ÿ‘๏ผˆwz-cli helps you install / remove components more easily๏ผ‰
  • Industrialized UI components๏ผˆGet started without having to make your own wheels๏ผ‰
  • Adaptive layout๏ผˆPerfect fit large and small screen๏ผ‰
  • Login/Logout
  • Permission Validation
  • Tinymce editor
  • Markdown editor
  • Dynamic sidebar๏ผˆSupport multi-level routing๏ผ‰
  • Breadcrumbs
  • JSON-Tree-View
  • echartjs
  • 404 pages
  • The table data is exported directly to cvs
  • Multi-environment build
  • Mock.js
  • Cool Hover Button

Run

    # clone project
    git clone https://github.com/herozhou/vue-framework-wz.git

    # install node_modules
    npm install
  
    # run your project
    npm run dev

Browser access http://localhost:9001

wz-cli

Please use wz-cli when the structure is not changed at the beginning of the project

    # After npm install  then
    npm link
   
    # then 
    wz remove -p Tinymce  //remove Tinymce editor
    wz remove -p Mockjs  //remove Mock.js plugin 
    wz  -h show all help

There are currently uninstallable plugins: Tinymce|Markdown|Mockjs|Jsontree Easy to develop compact volume

Build

    # Publish the test environment with webpack ananalyzer
    npm run build:sit-preview

    # Build the build environment
    npm run build:prod

Directory Structure

โ”œโ”€โ”€ bin                       // wz-cli with node 
โ”œโ”€โ”€ build                      // Build related
โ”œโ”€โ”€ config                     // Configuration related
โ”œโ”€โ”€ src                       
โ”‚   โ”œโ”€โ”€ api                    // api 
โ”‚   โ”œโ”€โ”€ components             // UI components
โ”‚   โ”œโ”€โ”€ mock                   // Mock.js
โ”‚   โ”œโ”€โ”€ router                 // vue-router
โ”‚   โ”œโ”€โ”€ store                  // vuex
โ”‚   โ”œโ”€โ”€ utils                  // Global common methods
โ”‚   โ”œโ”€โ”€ containers              // Layout
โ”‚   โ”œโ”€โ”€ view                   // views
โ”‚   โ”‚    โ”œโ”€โ”€ charts             //echart
โ”‚   โ”‚    โ”œโ”€โ”€ components         //views-components
โ”‚   โ”‚    โ”œโ”€โ”€ login              //login
โ”‚   โ”‚    โ”œโ”€โ”€ errorPages           //404pages
โ”‚   โ”‚    โ””โ”€โ”€ permission        //Permission test view
โ”‚   โ”œโ”€โ”€ App.vue                // vue entry
โ”‚   โ””โ”€โ”€ main.js                // vue entry
โ”œโ”€โ”€ static                     // Static resource
โ”‚   โ”œโ”€โ”€ bower_components        //qiniu SDK
โ”‚   โ”œโ”€โ”€ css                     //css
โ”‚   โ”œโ”€โ”€ js                      //js
โ”œโ”€โ”€ .babelrc                   // babel-loader
โ”œโ”€โ”€ eslintrc.js                // eslint
โ”œโ”€โ”€ .gitignore                 // gitignore
โ”œโ”€โ”€ favicon.ico                // favicon
โ”œโ”€โ”€ index.html                 // webpack entry html
โ””โ”€โ”€ package.json               // package.json

Preview

Adaptive layout

Adaptive layout

Rich feature table

Rich feature table

Cool login

Cool login

Cool echart

Cool echart

editor

editor

more demo

About me

  const herozhou = {
    blogName  : `herozhouๅทฅๅทง`,
    blog : `https://www.cnblogs.com/herozhou`,
    email:`Zhouhero@hotmail.com`,
    School:`NCHU",
    Grade:`Junior`
  }
 ย //Have any questions please issues or email me directly
 //Is developing a series of projects to help novice learning front end, with everyone to become a large front-end engineers, intends to follow me, together๐Ÿ’ช

Thanks

License

MIT