Commit Graph

57 Commits

Author SHA1 Message Date
xusongfu
c7c7b8b8b5 fix: validate error when clear input-name
1.The input is not required, when clear the input, the validator error
2.Fix some value to '-' if the value is empty string

Closes-Bug: #1990367
Change-Id: I2edd71e484518c423de2156ec41b06b7ecf00c68
2022-09-21 17:16:01 +08:00
Jingwei.Zhang
f73f128bac fix: fix the modal action disappear
1. Fix the modal disappeared when changing the window size
2. Optimized obtaining the table height

Change-Id: I629858f7c0174183345526bb46909df33ac9b4a2
2022-09-06 09:56:20 +08:00
Zuul
e30ac3a06f Merge "refactor: optimize the rendering of data with unit" 2022-08-30 07:21:02 +00:00
Jingwei.Zhang
ffe6e3a982 fix: update port forwarding filters by front-end
1. Support port forwarding filters with protocol, external port/port range, internal port/port range, internal ip address and description by front-end fuzzy query
2. Update SimpleTable/List component to support filterFunc with origin data

Change-Id: Ib14cabdbe7295296caf770849c1fc6a1adc118c6
2022-08-30 09:54:31 +08:00
Jingwei.Zhang
d3eea42e48 refactor: optimize the rendering of data with unit
Update Table/SimpleTable/DetailCard/TabDetail component to optimize the rendering of data with unit, such as size value

Change-Id: I0e4971eeee1353bce03e6ae1f583c8b6ace87489
2022-08-30 09:29:52 +08:00
Zuul
506055cbba Merge "refactor: optimize the rendering of data with map values" 2022-08-26 05:00:35 +00:00
Jingwei.Zhang
74f2f03e88 refactor: optimize the rendering of data with map values
Update Table/SimpleTable/DetailCard/TabDetail component to optimize the rendering of data with map values, such as status value, which has a value map to deal with the i18n display

Change-Id: I9696c194e15db14197334f31d09a49de8170fe20
2022-08-25 17:11:39 +08:00
Jingwei.Zhang
04f8f4d5a1 fix: first data fetch when the page has initial filter conditions
Fix the first data fetch when the page has sepcial initial filter, which is related with the search filters in the page, such as the initial filter has the quick search conditions.

Change-Id: I6c285c28c67c097b9b1a4853958c4d1d669afd62
2022-08-25 10:09:09 +08:00
Jingwei.Zhang
01ff5c9306 refactor: update the List component prop
Change the name of the List component's property isCourier to ableSkipPageByBackend, which is used when backend paging supports page jumping.

Change-Id: I1222cc3cafd49f329a47b1a23bbdf3716ceab537
2022-08-22 09:40:11 +08:00
Jingwei.Zhang
49bc50dbea fix: remove Chinese in the svgs/comments
1. remove Chinese in the svgs/comments
2. convert Chinese to English for some svgs/comments

Change-Id: I2927a87ef4db060ae385e0d3f1a54d658f1fd200
2022-08-09 15:31:59 +08:00
Jingwei.Zhang
e5a54c31e7 fix: fix the limit value when fetch api in the list page
Fix the limit value by the page size options, when the limit in the store is not in the page size options, use the default limit value.

Change-Id: I3868ebf9b33304ace884b0fa77eae28d89e80c20
2022-08-02 12:52:19 +08:00
Jingwei.Zhang
88e4ca036c fix: fix the filtered data is inconsistent with the refreshed data
When using the front end to filter the data, when the data is refreshed, the filter param is also passed to the API, remove the filter params to fix the situation

Change-Id: I60fc2a6ea3d6c345f0fdb2254c2018c2a07f56c5
2022-07-29 17:33:35 +08:00
Jingwei.Zhang
5eaa2d8ff4 feat: detach instance snapshot list page
1. Update instance create image params: add image_type && instance_id
2. Support instance snapshot list page
3. Support instance snapshot detail page
4. Support instance snapshot tab in instance detail page
5. Support edit instance snapshot
6. Support delete instance snapshot
7. Support instance snapshot create volume
8. Update image list page: remove snapshot from origin data
9. Update BaseDetail commponent support path
10. Update TabDetail component support path

Change-Id: I577c046e8d80ebf26be04db881aa0f6f3d9bc01e
2022-07-07 17:15:05 +08:00
Zuul
dc8a730c89 Merge "fix: fix policy for all modules" 2022-06-30 10:47:09 +00:00
xusongfu
3ed9d74791 fix: fix policy for all modules
Add prefix to policy

Change-Id: I492f2215af5d02284ce6e24137e190eab5bb355a
2022-06-30 15:20:35 +08:00
Jingwei.Zhang
41eaf509b6 feat: support quota info when extend volume
1. Fix attached instance display in volume list page
2. Support quota info when extend volume
3. Disable click submit button when left quota is not enough to extend
4. Refactor instance detail fetch by instance store, not the client
5. Refactor instance locked hint by using validator, not notice after submit
6. Update instanceName default value in modal action

Change-Id: Ie5e492d1d550b8283b634fcd9fa645394d8ce504
2022-06-30 11:29:12 +08:00
Jingwei.Zhang
78cb485068 feat: support backup quota info when volume create backup
1. Add backups and backup gigabytes quota when volume create backup
2. Disable click submit button when left backups quota is zero or left backup gigabytes quota is not enough
3. Refactor create backup, extract common function
4. Update Form right extra info span size, support small span for large
modal, also support custom span size

Change-Id: Ib76e6de287f8f84eecc36471dee3b8cce456b17b
2022-06-29 10:12:09 +08:00
Zuul
b8caadf202 Merge "feat: Show quota info when create server group" 2022-06-22 15:35:29 +00:00
Zuul
3f7475e9be Merge "feat: update role detail page" 2022-06-22 14:47:59 +00:00
Jingwei.Zhang
514b213ca7 feat: Show quota info when create server group
1. Update Form/ModalAction/ActionButton to support right extra info display in modal
2. Add quota info when create server group
3. Support disable click submit button in modalAction / formAction

Change-Id: I511c383f0ffa256b76c1a8fd123c6326e7a43ed3
2022-06-22 17:49:33 +08:00
Jingwei.Zhang
e86bff5f0f feat: update role detail page
1. Update TabDetail to support fetch api when router change
2. Update role detail page: show implied roles in detail page

Change-Id: I99cf7510c30d3924a7f7281f3d5fb3f6db67bd4d
2022-06-22 16:56:52 +08:00
xusongfu
a20c01660c fix: fix less-loader options and styles
1. Fix the options of less-loader to match customized themes
2. Fix some color to variable style in tab detail to get better extension

Change-Id: I9cfaf09a72ede2e3db36176c256bbe307f4e5d0b
2022-06-22 14:55:07 +08:00
Jingwei.Zhang
5c3ea06aba fix: Update user create form style
1. Update style in user create form
2. Refactor pathname check in list page
3. Fix project role when remove project in user create form && project manage user form
4. Add loading style to Transfer component

Change-Id: I6eddf27a096aa35236430595d8329782ae5b6ed1
2022-06-10 15:11:46 +08:00
Zuul
6b34ad1b05 Merge "refactor: Refactor danger from buttonType to isDanger" 2022-06-02 10:27:36 +00:00
xusongfu
16d14b5cf1 fix: Fix copyable and delete lb
1. Fix copyable in Paragraph
2. Rollback permission of delete loadbalancers

Change-Id: I2621974d64e9c149c7138c0f2d3da301bdf0d73e
2022-06-02 14:58:07 +08:00
Jingwei.Zhang
3fd5c14d5f refactor: Refactor danger from buttonType to isDanger
1. Add isDanger prop to support danger style button, remove danger value from buttonType
2. Update docs according to isDanger
3. Add waiting time when close e2e success notice

Change-Id: I87a72ce05f519ce6717f072dc7397f646dfb4ab1
2022-06-02 14:06:44 +08:00
Jingwei.Zhang
2fd46f588c fix: Fix create/delete certificate && menu
1. Fix delete server/ca certificate
2. Update cert display in detail page
3. Add default type when create cert
4. Display the cert list page based on the barbican endpoint
5. Temporarily remove network topology e2e because of cypress crashes

Change-Id: Ie0f01bd7c818b4c553351cc1cd8549e79a301c29
2022-06-01 17:48:51 +08:00
yangao
395084d022 fix: Optimize the directory structure of the resources folder
Optimize the directory structure of the resources folder

Change-Id: If33e899550823a66b4784dc6fd23f06d9f5cff11
2022-05-13 17:39:01 +08:00
yangao
1da0258d7e fix: Optimize the directory structure of the resources folder
Optimize the directory structure of the resources folder

Change-Id: I34893e2c622254df8d4b94ef11352ef7e97f9418
2022-05-13 11:54:12 +08:00
Jingwei.Zhang
ce0042945f refactor: Update style
1. Support style check: stylelint
2. Add stylelint check in lint-staged husky
2. Update styles

Change-Id: Id793b0936e4c3ea27ddef0df794d5b711880599f
2022-03-02 11:04:01 +08:00
Jingwei.Zhang
f81ac5651a fix: Fix word spell
1. Add eslint plugin spellcheck to check word spell
2. Fix word spell

Change-Id: I73d39cf797ef5bdf993b0154816134a1e93f2ed4
2022-01-18 11:25:58 +08:00
xusongfu
c185571953 fix: Fix the create listener disappear when status is changing
Show create listener when status is from PENDING_UPDATE to ACTIVE

Change-Id: I2571548c89ae4b37a5f09d54d277064bd2d6ba5d
2021-12-22 11:03:09 +08:00
Jingwei.Zhang
86fd689e78 refactor: Remove useless func getUrl
Remove useless func getUrl

Change-Id: I12989c6efcfc4ba7fb4cd292860be9059b74497b
2021-11-18 09:13:18 +08:00
Jingwei.Zhang
6d2ea1bf34 refactor: Refactor path jump
Refactor path jump by routeName which is defined in menu as key

Change-Id: I82cda19a2b92b29498238b85c75181848e51e072
2021-11-11 09:59:51 +08:00
zhuyue
520a48e954 fix: Just show session expired error when 401
just show session expired error when 401

Change-Id: If561f233ba87bbb732556a29ac59c4316768b7a6
2021-09-29 17:16:13 +08:00
Jingwei.Zhang
5d69f66eac feat: Update download file name in detail page
Add detail resource name and detail id in download file name, such as ,`instance-fd3ec1bb-9423-4537-b74e-8f967ed011c7-volumes-all-2021-09-13 16_15_20.csv` means downlaod all the volumes in instance fd3ec1bb-9423-4537-b74e-8f967ed011c7 detail page

Change-Id: Ied8e9ae5104b821866d44137679cccafc0f69656
2021-09-13 16:56:05 +08:00
zhangjingwei
61f21da7e6 feat: Update datas to data
1. Update datas to data
2. Update metadatas to metadata
3. Update data intro && codes in docs

Change-Id: I2041b69c6d9a9e9ec61c3861ad8860af5ac5cc0b
2021-09-13 14:34:25 +08:00
Jingwei.Zhang
30210e33c6 fix: Fix redirect to pre page after login
1. Fix redirect to pre page after login when visit page first
2. Fix gotoLogin in client request
3. Refactor functions in create instance
4. Refactor functions in instance detail
5. Update module export

Change-Id: If7b166afc70e807c753ebf5901434166d4a7b602
2021-09-10 15:55:19 +08:00
Zuul
f86b7a3207 Merge "feat: Add error card for instance with 'fault'" 2021-09-07 10:44:25 +00:00
zhuyue
f24eda0de3 feat: Add error card for instance with 'fault'
add error card for instance with 'fault' in detail page

Change-Id: I781f9ea4f726c1b175c424d1b3f1cdd40e747eb8
2021-09-07 17:41:51 +08:00
Jingwei.Zhang
535badf92e fix: Fix import circle
Fix import circle

Change-Id: I3588254da48ade79c31c99a6f03bd48c82350116
2021-09-07 12:57:18 +08:00
zhangjingwei
bc9b43e08c fix: Fix table height with hint
Fix table height with hint

Change-Id: I89f9db8d93590922ab02f6ad025c9a253bc56034
2021-09-02 16:42:37 +08:00
zhangjingwei
23083c1643 fix: Update List component to support init filter
Update List component to support init filter

Change-Id: I0a20e9d57b958be73b144e7eb026459f05699d9f
2021-09-02 12:52:17 +08:00
zhangjingwei
824ebdd984 fix: Fix user columns
1. Fix user columns
2. Update isInxxx name to inxxx
3. Fix inDetailPage intro in md

Change-Id: I377215e853de0ddbadd255a9b82459ca4343b037
2021-09-02 10:09:03 +08:00
xusongfu
4f48242fac fix: Fix auto resize
Auto resize table height when windows size change

Change-Id: Ic40d4520d1d62a64f3471e2f169f6f1f99d29f80
2021-08-27 17:27:16 +08:00
xusongfu
008dde73fb fix: Fix auto refresh in volume detail
1. Add refresh button in detail top
2. Remove useless codes

Change-Id: Ia5c6ec82667b6e55437555c30f38144c101309d3
2021-08-26 17:36:11 +08:00
zhangjingwei
af6446ceb2 fix: Fix callback after action submit
Fix callback after action submit

Change-Id: I6b63e3219402e9ac0008145fddff7f417fc7b6df
2021-08-26 13:40:19 +08:00
xusongfu
b80b85911a fix: Fix filter search error in admin page
Use getSearchFilters function to filter data to avoid above problem

Change-Id: If560fb1c9b89d71e6bd2ebda2184859d1f868ef1
2021-08-26 09:37:54 +08:00
Jingwei.Zhang
19fab7e17f fix: Fix refresh data in detail page after finishing action
1. Fix edit metadata success hint
2. Fix manage image metadata success hint
3. Fix create/edit project modal top padding
4. Fix edit user modal top padding
5. Fix create user group modal top padding
6. Fix refresh list page in detail after finishing action in detail page
7. Remove useless fetch in base detail page

Change-Id: I80fe346cc0be4bdb8607088578fa2acb446cf084
2021-08-25 09:50:37 +00:00
Jingwei.Zhang
8788c7a2e5 fix: Fix notify with promise reject
1. Fix notify with promise reject
2. Fix constants module import

Change-Id: I36d70c9421b1df26a379d692490a64f82654ea12
2021-08-25 16:39:46 +08:00