aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuyi Guo <guochuyi@chinamobile.com>2019-08-23 07:35:25 +0000
committerGerrit Code Review <gerrit@onap.org>2019-08-23 07:35:25 +0000
commitb3a6a997080331333b046346cbb6f2050e4d86e1 (patch)
tree41e602c64ec8364522a900e639b40121f6f9c0bf
parentbda50f637b486e1177e95309914d964ecc91a402 (diff)
parentbeb1797fc10f12fcdab0147fca7223c80e41c5c6 (diff)
Merge "docs: change README and CHANGELOG files"
-rw-r--r--usecaseui-portal/CHANGELOG.md24
-rw-r--r--usecaseui-portal/README.md77
2 files changed, 98 insertions, 3 deletions
diff --git a/usecaseui-portal/CHANGELOG.md b/usecaseui-portal/CHANGELOG.md
index 22702106..adbdd354 100644
--- a/usecaseui-portal/CHANGELOG.md
+++ b/usecaseui-portal/CHANGELOG.md
@@ -1,3 +1,27 @@
+# [1.0.0](https://gerrit.onap.org/r/usecase-ui/compare/2.0.1...1.0.0) (2019-08-23)
+
+
+### Bug Fixes
+
+* fix bugs of positions of README.md ([ebd842c](https://gerrit.onap.org/r/usecase-ui/commits/ebd842c))
+* fix bugs of table spinner and delete usless codes ([8455cd5](https://gerrit.onap.org/r/usecase-ui/commits/8455cd5))
+
+
+### Features
+
+* add loading for page ([45fe372](https://gerrit.onap.org/r/usecase-ui/commits/45fe372))
+* change the project structure and add mock data function ([d0f5347](https://gerrit.onap.org/r/usecase-ui/commits/d0f5347))
+* Home page style optimization ([19a945d](https://gerrit.onap.org/r/usecase-ui/commits/19a945d))
+* optimize e2e instance creation page code ([8464ca4](https://gerrit.onap.org/r/usecase-ui/commits/8464ca4))
+
+
+### BREAKING CHANGES
+
+* change the project structure
+* **mock:** this time, you can launch mock server easily by typing `npm run mock`!
+
+
+
# [1.0.0](https://gerrit.onap.org/r/usecase-ui/compare/2.0.1...1.0.0) (2019-08-19)
diff --git a/usecaseui-portal/README.md b/usecaseui-portal/README.md
index 215d9ee2..5330f323 100644
--- a/usecaseui-portal/README.md
+++ b/usecaseui-portal/README.md
@@ -11,14 +11,83 @@ This is the frontend part of Usecase UI project.
npm install
```
-2. Launch development server, and open `localhost:4200` in your browser:
+2. Launch local server, and open `localhost:4200` in your browser:
```bash
-npm start
+npm run start
```
+3. Launch data server, and open `localhost:4200` in your browser:
+
+```bash
+npm run mock
+```
+
+4. Launch remote server, and open `localhost:4200` in your browser:
+
+```bash
+npm run server
+```
+
+5. Print changelog in `CHANGELOG.md`:
+
+```bash
+npm run changelog
+```
+
+
### Project Structure
+```
+├── e2e
+├── src
+│ ├── app
+│ │ ├── core
+│ │ │ ├── models
+│ │ │ └── services
+│ │ ├── mock
+│ │ │ ├── json # container of all local mock data files
+│ │ │ ├── fakedata.js # container of all remote mock data created by faker.js
+│ │ │ ├── mock.js # connector of remote mock data and mock interface
+│ │ │ └── server.js # mock data server
+│ │ ├── shared
+│ │ │ ├── components # container of all general components
+│ │ │ └── utils # container of all general functions
+│ │ ├── test # test page, can be deleted if nessary
+│ │ ├── views # container of all business pages
+│ │ │ ├── alarm
+│ │ │ └── ......
+│ │ ├── app-routing.module.ts
+│ │ ├── app.component.css
+│ │ ├── app.component.less
+│ │ ├── app.component.html
+│ │ ├── app.component.ts │ │ └── app.module.ts
+│ ├── assets
+│ │ ├── i18n # container of internationalization assets
+│ │ └── images
+│ ├── environments
+│ ├── favicon.ico
+│ ├── index.html
+│ ├── style.css
+│ ├── style.less
+│ ├── my-theme.css
+│ ├── my-theme.less
+│ ├── main.ts
+│ ├── polyfill.ts
+│ ├── test.ts
+│ ├── tsconfig.app.json
+│ ├── tsconfig.spec.json
+│ ├── typing.d.ts
+├── .angular-cli.json
+├── CHANGELOG.md # recorder of all the important changes
+├── karma.conf.js
+├── localproxy.conf.json # config for mock server proxy
+├── proxy.conf.json # config for server proxy
+├── tsconfig.json
+├── package.json
+└── README.md
+```
+
### [Change log](./CHANGELOG.md)
### Git commit message rules
@@ -72,7 +141,8 @@ Also, run the script `npm run changelog` can generate all the `feat` and `fix` c
### Contributor
-Copyright 2017 CMCC Corporation.
+```
+Copyright 2019 CMCC Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -83,3 +153,4 @@ 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.
+```