-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I03fe8be50a79532177cc3e40a4118d6af56c95ec Signed-off-by: Haitao Yue <hightall@me.com>
- Loading branch information
Showing
4 changed files
with
120 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
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,9 @@ | ||
Vue Theme | ||
=== | ||
|
||
This theme is written in vue framework, and ui framework is based on [iView](https://www.iviewui.com). | ||
|
||
* [Introduction](introduction) | ||
* [Project Structure](project_structure) | ||
|
||
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31. png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>. |
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,24 @@ | ||
Introduction | ||
=== | ||
|
||
This theme is designed to provide a single-page application with a high performance and better user experience. | ||
|
||
## Quick start | ||
|
||
How to launch the service under vue theme? It's very simple. Go into root directory of project. | ||
|
||
``` | ||
$ THEME=vue make start | ||
``` | ||
|
||
That's ok. | ||
|
||
How to develop on vue theme? After you change the vue code, you can run | ||
|
||
``` | ||
$ THEME=vue make build-js | ||
``` | ||
|
||
The newest html and js is built out now. | ||
|
||
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31. png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>. |
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,86 @@ | ||
Project Sturcture | ||
=== | ||
|
||
``` | ||
├── static | ||
│ ├── buildfiles # build files for build vue theme | ||
│ │ ├── build.js | ||
│ │ ├── check-versions.js | ||
│ │ ├── dev-client.js | ||
│ │ ├── dev-server.js | ||
│ │ ├── utils.js | ||
│ │ ├── vue-loader.conf.js | ||
│ │ ├── webpack.base.conf.js | ||
│ │ ├── webpack.dev.conf.js | ||
│ │ └── webpack.prod.conf.js | ||
│ ├── config | ||
│ │ ├── dev.env.js | ||
│ │ ├── index.js | ||
│ │ ├── prod.env.js | ||
│ │ └── test.env.js | ||
│ ├── index.html # origin html for insert built out js path | ||
│ ├── login | ||
│ │ ├── login.css | ||
│ │ ├── login.less | ||
│ │ └── particles.min.js | ||
│ ├── package.json # package requirement and scripts | ||
│ └── src # main source code for vue theme | ||
│ ├── App.vue # main app component | ||
│ ├── api # api files for communicate with backend service | ||
│ │ ├── cluster.js | ||
│ │ ├── host.js | ||
│ │ ├── status.js | ||
│ │ └── user.js | ||
│ ├── components # common components | ||
│ │ ├── EChart.vue | ||
│ │ ├── HeaderBar.vue | ||
│ │ └── LeftNav.vue | ||
│ ├── config # global configuration | ||
│ │ ├── Menus.js | ||
│ │ └── Urls.js | ||
│ ├── main.js # app entry file | ||
│ ├── pages # all router pages | ||
│ │ ├── Chains | ||
│ │ │ ├── ChainModal.vue | ||
│ │ │ ├── ExpandRow.vue | ||
│ │ │ ├── Operation.vue | ||
│ │ │ └── index.vue | ||
│ │ ├── HomePage.vue | ||
│ │ ├── Host | ||
│ │ │ ├── HostModal.vue | ||
│ │ │ ├── Operation.vue | ||
│ │ │ └── index.vue | ||
│ │ └── UserManagement | ||
│ │ ├── Operation.vue | ||
│ │ ├── UserModal.vue | ||
│ │ └── index.vue | ||
│ ├── router | ||
│ │ └── index.js # router configration file | ||
│ └── store # global storage files | ||
│ ├── clusters.js | ||
│ ├── hosts.js | ||
│ ├── index.js | ||
│ ├── stats.js | ||
│ └── users.js | ||
└── templates # html files built out | ||
├── index.html | ||
└── login.html | ||
``` | ||
|
||
## static/build/ | ||
|
||
This directory holds the actual configurations for both the development server and the production webpack build. Normally you don't need to touch these files unless you want to customize Webpack loaders, in which case you should probably look at build/webpack.base.conf.js | ||
|
||
## static/src/ | ||
|
||
This is where most of your application code will live in. How to structure everything inside this directory is largely up to you. | ||
|
||
## static/index.html | ||
|
||
This is the **template** index.html for our single page application. During development and builds, Webpack will generate assets, and the URLs for those generated assets will be automatically injected into this template to render the final HTML. | ||
|
||
## static/package.json | ||
|
||
The NPM package meta file that contains all the build dependencies and build commands. | ||
|
||
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31. png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>. |