|
| 1 | +# CloudStack Primate |
| 2 | + |
| 3 | +A progressive modern CloudStack Admin UI based on VueJS and Ant Design. |
| 4 | + |
| 5 | +Install tools and dependencies: |
| 6 | + |
| 7 | + sudo apt-get install npm |
| 8 | + sudo npm i -g npm@next |
| 9 | + sudo npm i -g npm-check-updates |
| 10 | + ncu -u # optional: upgrade dependencies |
| 11 | + npm install |
| 12 | + |
| 13 | +Build and run: |
| 14 | + |
| 15 | + npm run serve |
| 16 | + |
| 17 | +Production Build: |
| 18 | + |
| 19 | + npm run build |
| 20 | + |
| 21 | +Upgrade dependencies: |
| 22 | + |
| 23 | + |
| 24 | +Run Tests: |
| 25 | + |
| 26 | + npm run test |
| 27 | + npm run lint |
| 28 | + npm run test:unit |
| 29 | + |
| 30 | +Fix issues and vulnerabilities: |
| 31 | + |
| 32 | + npm audit |
| 33 | + |
| 34 | +## History |
| 35 | + |
| 36 | +The project was created by Rohit Yadav over several weekends during late 2018. |
| 37 | +The base app layout was referenced from [Ant Design Pro |
| 38 | +Vue](https://github.com/sendya/ant-design-pro-vue). |
| 39 | + |
| 40 | +### Env and dependencies |
| 41 | + |
| 42 | +- node |
| 43 | +- webpack |
| 44 | +- eslint |
| 45 | +- @vue/cli ~3 |
| 46 | +- [ant-design-vue](https://github.com/vueComponent/ant-design-vue) - Ant Design Of Vue |
| 47 | +- [vue-cropper](https://github.com/xyxiao001/vue-cropper) - Picture edit |
| 48 | +- [@antv/g2](https://antv.alipay.com/zh-cn/index.html) - AntV G2 |
| 49 | +- [Viser-vue](https://viserjs.github.io/docs.html#/viser/guide/installation) - Antv/G2 of Vue |
| 50 | + |
| 51 | +### Other |
| 52 | + |
| 53 | +- [Vue-cli3](https://cli.vuejs.org/guide/) used by the project. |
| 54 | +- Disable Eslint (not recommended): remove `eslintConfig` field in `package.json` |
| 55 | + |
| 56 | +- 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. |
| 57 | + |
| 58 | +- Load on Demand: modify `/src/main.js` L7, append `import './core/lazy_use'` code. |
| 59 | + |
| 60 | +- Customize Theme: `vue.config.js` |
| 61 | +eg: |
| 62 | +```ecmascript 6 |
| 63 | + css: { |
| 64 | + loaderOptions: { |
| 65 | + less: { |
| 66 | + modifyVars: { |
| 67 | + /* Less variables, required modifyVars*/ |
| 68 | +
|
| 69 | + 'primary-color': '#F5222D', |
| 70 | + 'link-color': '#F5222D', |
| 71 | + 'border-radius-base': '4px', |
| 72 | + }, |
| 73 | + javascriptEnabled: true, |
| 74 | + } |
| 75 | + } |
| 76 | + } |
| 77 | +``` |
| 78 | + |
| 79 | +### Docs |
| 80 | + |
| 81 | +- [Router and Menu](https://github.com/sendya/ant-design-pro-vue/blob/master/src/router/README.md) |
| 82 | +- [Table](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/table/README.md) [@Saraka](https://github.com/saraka-tsukai) |
| 83 | +- [ANTD DefaultConfig](https://github.com/sendya/ant-design-pro-vue/blob/master/src/defaultSettings.js) |
| 84 | +- [Frist page loading animate](https://github.com/sendya/ant-design-pro-vue/blob/master/docs/add-page-loading-animate.md) |
| 85 | +- [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) |
| 86 | +- [LoadOnDemand Demo feature/demand_load](https://github.com/sendya/ant-design-pro-vue/tree/feature/demand_load) |
| 87 | +- [LoadOnDemand Docs](https://github.com/sendya/ant-design-pro-vue/blob/master/docs/load-on-demand.md) |
| 88 | +- [i18n feature/lang](https://github.com/sendya/ant-design-pro-vue/tree/feature/lang) Creator [@musnow](https://github.com/musnow) |
| 89 | +- [Dependency analysis tool: analyzer](https://github.com/sendya/ant-design-pro-vue/blob/master/docs/webpack-bundle-analyzer.md) |
| 90 | +- ANTD PRO Components: |
| 91 | + - Trend [Trend.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/Trend/index.md) |
| 92 | + - AvatarList [AvatarList.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/AvatarList/index.md) |
| 93 | + - CountDown [CountDown.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/CountDown/index.md) |
| 94 | + - Ellipsis [Ellipsis.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/Ellipsis/index.md) |
| 95 | + - NumberInfo [NumberInfo.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/NumberInfo/index.md) |
| 96 | + - FooterToolbar [FooterToolbar.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/FooterToolbar/index.md) |
| 97 | + - 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) |
0 commit comments