Commit Graph

68 Commits

Author SHA1 Message Date
zhangjingwei
6f8c62d348 feat: update refresh tab data
Stop refresh tab data when the action is opened in the detail page

Change-Id: Ib99eb054da9b604e64bec0f7435b4a5095eb54bd
2024-04-15 17:32:57 +08:00
zhangjingwei
e825d510be feat: limit the height of prompts
In order to display table data well in the list page, limit the height of prompts

Change-Id: I744d1b87a9e9545968cac12bae4f8cf257f3f526
2024-04-01 15:15:07 +08:00
zhangjingwei
c356e21478 feat: update refresh detail top without silence
1. For some list tab in the detail page, when submit actions in the list tab, the detail info and the list tab is better to refresh without silence.
2. Refresh the whole user detail page when the set/remove default project of the user

Change-Id: I2fcbe8d79eb90250ed05509540bb2e29a310755d
2023-11-17 16:00:43 +08:00
Jingwei.Zhang
7662ae6a09 fix: fix request twice
fix request twice when change the menu

Change-Id: I8f3262f6fcaacb20a82bb82636d9ccfce921c064
2023-09-26 12:59:55 +08:00
Jingwei.Zhang
d5b58ac16d feat: add action props to ModalAction component
add action props to ModalAction component, then can use the action static props for the instance function

Change-Id: Ib22120105deb30f108218d040fc1fc33f88b39bc
2023-09-07 10:25:18 +08:00
Jingwei.Zhang
961d6d21e1 fix: fix table height
1. fix table height when the magicInput has opened search menu
2. fix table height when the page has sub tab

Change-Id: I5f57030d65d0d7e17681d0579fc57c7441e1ecfa
2023-09-04 10:09:02 +00:00
Jingwei.Zhang
ec59419f4f feat: update color variables
Use color variables to set color in less and jsx, this makes it easy to change the theme for all pages.

Change-Id: I9b82c4624826854d40d11da4e6ce4a9137b86085
2023-05-25 16:44:59 +08:00
xusongfu
a11a0258c4 fix: fix the download data.
fix the download data by filter params if use backend request

Closes-Bug: #2001607
Change-Id: Ibb0f49eaa8c8721e54f67ae48e0d7c6ea8ccd260
2023-01-05 03:48:30 +00:00
Jingwei.Zhang
2d437e5b4e feat: support custom render in the TabDetail component
support custom render in the TabDetail, not only the class or string

Change-Id: I152e611d1478e149baf9104143ca18171e799730
2022-12-19 11:35:18 +08:00
Jingwei.Zhang
ef353362fb feat: support component in the table header
Support custom component in the table header of the list page, the custom component is placed in front of the magicSearch component

Change-Id: I980552818bcb6375d3b412b63732c02597ff2a94
2022-12-06 17:37:57 +08:00
zhangke
5a476a09a4 feat: add props in BaseForm
1. add hasFooter props to judge show the form footer in BaseForm
2. add formStyle and footerStyle props to set form and footer style
3. support add placeholder props in the KeyValueInput component

Change-Id: I6627a1fdbb92f95985c022ad15a19efabe4842c1
2022-11-03 17:45:53 +08:00
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