Commit Graph

60 Commits

Author SHA1 Message Date
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
Jingwei.Zhang
2ebb26942a feat: add attributes to the ModalAction
Add the onFinishAction and onCancelAction which are from the ListPage component to the ModalAction, add the modalProps to the ModalAction, these attritubes will make custom operations in the ModalAction to easily control the ListPage

Change-Id: Ibd81bc6331fa09a3c70fcfc6f1f72ccc3e6f9c37
2023-01-29 16:46:15 +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
Jingwei.Zhang
26d6935bed feat: update project id/name column display
Update project column in the list page and selectTable component:

1. update project id to the first 8 characters
2. support copy the project id

Change-Id: Ic7563db2b3d3e99a5bc2b100e7c7d6fc5d54ca68
2022-10-10 17:08:00 +08:00
Jingwei.Zhang
1a3f4deed6 fix: fix the id value in the download data
Only the project_id column need to deal with the project id info, the other columns(such as: id) use the origin value

Closes-Bug: #1988967
Change-Id: I550c74c52efacc5219f2ff23d7d4b1f4d3fb04a7
2022-09-07 17:35:40 +08:00
Jingwei.Zhang
a2dbe5ab8f fix: fix time in the download csv
1. Update the since time to the local time in the download csv
2. Remove the useless stringify for the created_at column in the volume list page

Closes-Bug: #1988962
Change-Id: I7d4419ee67e19d9b10794342b0a983f4ff90804e
2022-09-07 17:20:36 +08:00
Jingwei.Zhang
ab4b22cd4f fix: fix project id download data
Fix the project id in the download file: the data represents the project using attributes other than project_id

Change-Id: I5a0296d9431cc16a58ebd1ac5250b8d60506f9a1
2022-09-06 17:56:56 +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
xusongfu
dc57ad8f27 fix: Fix download data if use unit
Fix download data if use unit in table columns

Change-Id: I830e176317e0472a6a89525a9a78bbdf569ef79e
2022-08-31 09:29:53 +08:00
xusongfu
5d43b3a420 fix: Fix download data if use valueMap
Fix download data if use valueMap in table columns

Change-Id: If4739d2b882c2f748460f5a71305717131e752b4
2022-08-30 16:24: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
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
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
2543838a5e fix: Fix the display of the row actions when the volume status is being created
Fix: when the volume's status is being created, the sub menu actions in the row actions are hidden.
Trigger reason: When the More Actions drop-down menu contains disabled actions and the only submenu that can be used normally, the submenu items are not displayed successfully

Change-Id: Ide3f06716d1df71593fd654f24feedabe4f68da7
2022-08-08 17:24:25 +08:00
xusongfu
da823ae523 fix: fix getNameRender in table list
1. fix the getNameRender to get rigth rowkey
2. fix the name column showing in user center credentials

Change-Id: I59d79937c388c77142b09494f0b3f351440ddddd
2022-07-08 15:43:08 +08: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
bf6c765fb1 feat: support show quota info when create router
1. Support show quota info when create router
2. Disable click submit button when lef quota is zero
3. Update size of large modal with quota info

Change-Id: I8f651d58af0b3d7a5915116ea488bc70a3ed902d
2022-06-23 13:00:44 +08: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
Zuul
50f465eb13 Merge "fix: Fix row hide in base table" 2022-06-07 01:19:20 +00:00
xusongfu
0a4508d016 fix: Fix row hide in base table
Get the latest hideable columns using the getter method

Change-Id: I1d41e9671ea6943a2299d3608338a999789c7235
2022-06-06 17:29:10 +08:00
Jingwei.Zhang
39259b4fbd [Animbus]fix: Fix danger button style in batch actions
1. Fix danger button style in table batch actions
2. Update reboot vm button to danger
3. Update resize vm button to danger

Change-Id: Ibabc1259e4914042214842acecde4c16f7e6d19e
2022-06-06 10:33: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
yangao
3defbe8330 fix: Decorator style for refactored components
Decorator style for refactored components

Change-Id: Ib85517474ace19967b4901e388800c1258f246be
2022-05-17 14:48:38 +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
xusongfu
81c037de41 feat: Add tags to nova service and so on
1.Lists tags, creates, replaces tags for a server
2.Fix input autocomplete in Chrome browser
3.Fix some e2e test bugs

Change-Id: I6236da8670d36c88978317d34a50cde3974b83d9
2022-03-26 20:11:15 +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
0aaca80308 fix: Fix the value of the name column in the network list which use the simple table
Show id and name to match column headings

Change-Id: Ifea9927b024ae613d2db4f402aa4ad020d767c6e
2021-12-16 15:37:01 +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
Jingwei.Zhang
f50df3da8d feat: Refactor project list page
1. Refactor project list page
2. Remove useless func

Change-Id: I65ae489bf29e61e9745a987c0a42d9aeafc97014
2021-09-15 16:10:52 +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
fd69957fcf fix: Fix loading for ConfirmAction component
Fix loading status after click submit button in confirm modal

Change-Id: I27499a5ee0e568bef202cf6367c7ed22344e6c37
2021-09-13 13:22:06 +08:00
Jingwei.Zhang
299efc2ee1 fix: Update Table component && update stack codes
1. Update Table component
2. Remove useless action: extend root volume
3. Update export of stack codes
4. Remove useless func of stack codes

Change-Id: I47b9aaa92d0cc8fa6cf8d00ebc185e6b15bd2568
2021-09-09 11:01:53 +08:00
Jingwei.Zhang
2b68f2a3d7 fix: Update component && validate
1. Add 'ready' status to State component
2. Add price render in table
3. Support children column in table
4. Fix image/instance name validate
5. Support loading in Label component
6. Fix MagicInput component style
7. Fix role check in layout
8. Update class export
9. Remove useless component

Change-Id: I0e5d7e4a23fb0a68e17ae57eba83608be3a3df0e
2021-09-08 15:49:11 +08:00
zhuyue
a6f387d67e feat: Add application credential
add application credential

Change-Id: Id07525e3bc8709aa4226dabd8084d9a09821c397
2021-09-08 15:24:46 +08:00
zhuyue
31575ba70c fix: Close batch action modal when error
close batch action modal when error

Change-Id: I0c1e6a4e9f961b32dd171caae9be83fe8ec6ffaf
2021-09-03 15:43:17 +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
4767477cd6 fix: Fix download csv
1. Fix download security goup rule
2. Fix export for SetGateway && RouterPortDetail

Change-Id: I07ea1f8aa683c64116fbb6da373b1d52a25bff60
2021-09-02 11:31:21 +08:00
zhuyue
9029c35277 fix: Fix for null/undefined column
fix for null/undefined column to render "-"

Change-Id: Ic6bd5b66ff2ba06f4ac3623eac76e0e754fd46e6
2021-09-01 12:04:24 +08:00
zhangjingwei
1b122869f7 fix: Support cancel upload && show progress
1. Support cancel upload file
3. Show upload progress when upload image
4. Fix delete file after select file

Change-Id: I021fee23980e203be68252246d5eb1b5418774fc
2021-08-30 10:34:45 +08:00
zhangjingwei
1f80bdee8d fix: Support download 1W data when total count is more
Support download 1W data when total count is more than 1W

Change-Id: I312c38e764cdcdca605d4c94006b836d8dc61d7c
2021-08-27 14:34:32 +08:00
Zuul
4135fc378d Merge "fix: Fix callback after action submit" 2021-08-26 06:18:47 +00:00
xusongfu
10f1020591 fix: Fix columns and download file
1. Split column of XXX ID/NAME when download file
2. Remove useless stringify in columns
3. Remove some columns in volume backup list which is useless
4. Add the data judgment to prevent the wrong content of the downloaded file

Change-Id: I412975e3fdb87c255d8252efa0240f4593b5f95d
2021-08-26 13:43:35 +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