From f388e4eb0f819b0dc46a8796b3e64ee1fc42b0a5 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Thu, 12 Sep 2019 23:58:51 +0530 Subject: [PATCH] README: cleanup Signed-off-by: Rohit Yadav --- ui/README.md | 100 ++++++++++++++++++++-------------------- ui/src/assets/README.md | 3 -- 2 files changed, 49 insertions(+), 54 deletions(-) delete mode 100644 ui/src/assets/README.md diff --git a/ui/README.md b/ui/README.md index 9671382e48f..a6f5a726d02 100644 --- a/ui/README.md +++ b/ui/README.md @@ -1,6 +1,13 @@ # CloudStack Primate -A progressive modern CloudStack Admin UI based on VueJS and Ant Design. +A modern role-based progressive CloudStack UI based on VueJS and Ant Design. + +## Env and dependencies + +- node +- webpack +- eslint +- @vue/cli ~3 Install tools and dependencies: @@ -10,6 +17,13 @@ Install tools and dependencies: ncu -u # optional: upgrade dependencies npm install +## Developing against CloudStack Env + +Override the default `API_URL` to a running CloudStack management server: + + cp .env.local.example .env.local + Change the `API_URL` in the `.env.local` file + Build and run: npm start @@ -34,39 +48,9 @@ Fix issues and vulnerabilities: npm audit -Override the default CloudStack API URL: +### Customisation - cp .env.local.example .env.local - Change the `API_URL` in the `.env.local` file - -## History - -The project was created by Rohit Yadav over several weekends during late 2018. -The base app layout was referenced from [Ant Design Pro -Vue](https://github.com/sendya/ant-design-pro-vue). - -### Env and dependencies - -- node -- webpack -- eslint -- @vue/cli ~3 -- [ant-design-vue](https://github.com/vueComponent/ant-design-vue) - Ant Design Of Vue -- [vue-cropper](https://github.com/xyxiao001/vue-cropper) - Picture edit -- [@antv/g2](https://antv.alipay.com/zh-cn/index.html) - AntV G2 -- [Viser-vue](https://viserjs.github.io/docs.html#/viser/guide/installation) - Antv/G2 of Vue -- [Fontawesome](https://github.com/FortAwesome/vue-fontawesome) - -### Other - -- [Vue-cli3](https://cli.vuejs.org/guide/) used by the project. -- Disable Eslint (not recommended): remove `eslintConfig` field in `package.json` - -- Easy-Mock used by project,[easy-mock](https://www.easy-mock.com/) Project API Data [DO NOT CHANGE THE INTERFACE](https://www.easy-mock.com/project/5b7bce071f130e5b7fe8cd7d),If you want to modify, please fork [ANTD-PRO-Easy-Mock-API.zip](https://github.com/sendya/ant-design-pro-vue/files/2682711/ANTD-PRO-Easy-Mock-API.zip) and running to your server. - -- Load on Demand: modify `/src/main.js` L7, append `import './core/lazy_use'` code. - -- Customize Theme: `vue.config.js` +- Theme: `vue.config.js` eg: ```ecmascript 6 css: { @@ -85,22 +69,36 @@ eg: } ``` -### Docs +### Attributions -- [Router and Menu](https://github.com/sendya/ant-design-pro-vue/blob/master/src/router/README.md) -- [Table](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/table/README.md) [@Saraka](https://github.com/saraka-tsukai) -- [ANTD DefaultConfig](https://github.com/sendya/ant-design-pro-vue/blob/master/src/defaultSettings.js) -- [Frist page loading animate](https://github.com/sendya/ant-design-pro-vue/blob/master/docs/add-page-loading-animate.md) -- [Multi-Tabs feature/multi-tabs](https://github.com/sendya/ant-design-pro-vue/tree/feature/multi-tabs) [How to remove](https://github.com/sendya/ant-design-pro-vue/blob/master/docs/multi-tabs.md) -- [LoadOnDemand Demo feature/demand_load](https://github.com/sendya/ant-design-pro-vue/tree/feature/demand_load) -- [LoadOnDemand Docs](https://github.com/sendya/ant-design-pro-vue/blob/master/docs/load-on-demand.md) -- [i18n feature/lang](https://github.com/sendya/ant-design-pro-vue/tree/feature/lang) Creator [@musnow](https://github.com/musnow) -- [Dependency analysis tool: analyzer](https://github.com/sendya/ant-design-pro-vue/blob/master/docs/webpack-bundle-analyzer.md) -- ANTD PRO Components: - - Trend [Trend.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/Trend/index.md) - - AvatarList [AvatarList.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/AvatarList/index.md) - - CountDown [CountDown.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/CountDown/index.md) - - Ellipsis [Ellipsis.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/Ellipsis/index.md) - - NumberInfo [NumberInfo.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/NumberInfo/index.md) - - FooterToolbar [FooterToolbar.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/FooterToolbar/index.md) - - IconSelector [IconSelector.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/IconSelector/README.md) Creator: [@Saraka](https://github.com/saraka-tsukai) +- [VueJS](https://vuejs.org/) +- [Ant Design Spec](https://ant.design/docs/spec/introduce) +- [Ant Design Vue](https://vue.ant.design/) +- [Ant Design Pro Vue](https://github.com/sendya/ant-design-pro-vue) template +- [Fontawesome](https://github.com/FortAwesome/vue-fontawesome) +- [ViserJS](https://viserjs.github.io/docs.html#/viser/guide/installation) +- [Icons](https://www.iconfinder.com/iconsets/cat-force) by [Iconka](https://iconka.com/en/downloads/cat-power/) + +### History + +The project was created by [Rohit Yadav](rohityadav.cloud) over several weekends +during late 2018 and early 2019. + +### License + +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. diff --git a/ui/src/assets/README.md b/ui/src/assets/README.md deleted file mode 100644 index 4d10c530d11..00000000000 --- a/ui/src/assets/README.md +++ /dev/null @@ -1,3 +0,0 @@ -Attribution: - -- The icons were taken from https://www.iconfinder.com/iconsets/cat-force