summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2019-08-23 10:56:41 +0800
committercyuamber <xuranyjy@chinamobile.com>2019-08-23 10:56:48 +0800
commitbeb1797fc10f12fcdab0147fca7223c80e41c5c6 (patch)
treeb4ac0253caeca81d2221c17f89d032d6d1a8b962 /usecaseui-portal
parentd0f5347dc16b5aa9fc95eb520fbc9a1c7b672b09 (diff)
docs: change README and CHANGELOG files
Change-Id: Ic0febf213c0462e84f92c1e28fc80b91bb22f5ca Issue-ID: USECASEUI-307 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal')
-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.
+```