dashboard-shell-shell 1.0.1000000117 → 1.0.1000000118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/assets/styles/base/_functions.scss +0 -0
  2. package/assets/styles/base/_mixins.scss +1 -1
  3. package/assets/styles/global/_button.scss +10 -17
  4. package/assets/styles/global/_form.scss +2 -2
  5. package/assets/styles/global/_labeled-input.scss +2 -6
  6. package/assets/styles/global/_select.scss +7 -6
  7. package/assets/styles/global/_table.scss +2 -3
  8. package/assets/styles/global/_tooltip.scss +1 -8
  9. package/assets/styles/themes/_dark.scss +0 -2
  10. package/assets/styles/themes/_light.scss +2 -5
  11. package/assets/styles/vendor/vue-select.scss +1 -2
  12. package/assets/translations/en-us.yaml +3 -1
  13. package/assets/translations/zh-hans.yaml +28 -51
  14. package/components/ActionDropdown.vue +0 -1
  15. package/components/ActionMenuShell.vue +3 -6
  16. package/components/BrandImage.vue +0 -22
  17. package/components/ClusterIconMenu.vue +1 -1
  18. package/components/CodeMirror.vue +0 -1
  19. package/components/CruResource.vue +1 -1
  20. package/components/CruResourceFooter.vue +1 -1
  21. package/components/ExplorerProjectsNamespaces.vue +24 -4
  22. package/components/GlobalRoleBindings.vue +48 -112
  23. package/components/IndentedPanel.vue +10 -4
  24. package/components/PromptRemove.vue +3 -3
  25. package/components/ResourceDetail/Masthead.vue +242 -190
  26. package/components/ResourceDetail/index.vue +5 -20
  27. package/components/ResourceList/Masthead.vue +84 -146
  28. package/components/ResourceList/ResourceLoadingIndicator.vue +2 -5
  29. package/components/ResourceTable.vue +1 -76
  30. package/components/SideNav.vue +29 -66
  31. package/components/SortableTable/THead.vue +0 -6
  32. package/components/SortableTable/index.vue +388 -481
  33. package/components/Tabbed/index.vue +5 -4
  34. package/components/auth/Principal.vue +2 -3
  35. package/components/auth/RoleDetailEdit.vue +5 -58
  36. package/components/auth/SelectPrincipal.vue +0 -1
  37. package/components/form/BannerSettings.vue +16 -18
  38. package/components/form/ChangePassword.vue +4 -4
  39. package/components/form/ColorInput.vue +8 -32
  40. package/components/form/Footer.vue +1 -1
  41. package/components/form/InputWithSelect.vue +0 -2
  42. package/components/form/KeyValue.vue +7 -31
  43. package/components/form/LabeledSelect.vue +178 -178
  44. package/components/form/Members/ClusterPermissionsEditor.vue +2 -1
  45. package/components/form/Members/MembershipEditor.vue +1 -1
  46. package/components/form/NameNsDescription.vue +11 -24
  47. package/components/form/Password.vue +2 -6
  48. package/components/form/ResourceQuota/Namespace.vue +1 -1
  49. package/components/form/ResourceQuota/NamespaceRow.vue +10 -13
  50. package/components/form/ResourceQuota/ProjectRow.vue +1 -0
  51. package/components/form/Select.vue +2 -2
  52. package/components/nav/Favorite.vue +1 -5
  53. package/components/nav/Group.vue +23 -69
  54. package/components/nav/Header.vue +17 -82
  55. package/components/nav/HeaderPageActionMenu.vue +0 -1
  56. package/components/nav/NamespaceFilter.vue +3 -0
  57. package/components/nav/TopLevelMenu.vue +119 -182
  58. package/components/nav/Type.vue +11 -48
  59. package/components/rancherResourceDetail/Masthead.vue +769 -0
  60. package/components/rancherResourceDetail/__tests__/Masthead.test.ts +65 -0
  61. package/components/rancherResourceDetail/index.vue +591 -0
  62. package/components/rancherResourceList/Masthead.vue +375 -0
  63. package/components/rancherResourceList/ResourceLoadingIndicator.vue +140 -0
  64. package/components/rancherResourceList/index.vue +307 -0
  65. package/components/rancherResourceList/resource-list.config.js +7 -0
  66. package/components/rancherResourceTable.vue +783 -0
  67. package/components/rancherSortableTable/THead.vue +561 -0
  68. package/components/rancherSortableTable/actions.js +153 -0
  69. package/components/rancherSortableTable/advanced-filtering.js +272 -0
  70. package/components/rancherSortableTable/debug.js +117 -0
  71. package/components/rancherSortableTable/filtering.js +290 -0
  72. package/components/rancherSortableTable/grouping.js +48 -0
  73. package/components/rancherSortableTable/index.vue +2712 -0
  74. package/components/rancherSortableTable/paging.js +155 -0
  75. package/components/rancherSortableTable/selection.js +629 -0
  76. package/components/rancherSortableTable/sortable-config.ts +4 -0
  77. package/components/rancherSortableTable/sorting.js +129 -0
  78. package/composables/useClickOutside.ts +1 -1
  79. package/config/product/auth.js +7 -16
  80. package/config/product/explorer.js +1 -1
  81. package/config/product/settings.js +8 -17
  82. package/config/settings.ts +0 -28
  83. package/edit/management.cattle.io.user.vue +4 -17
  84. package/edit/networking.k8s.io.ingress/RulePath.vue +1 -1
  85. package/edit/token.vue +1 -1
  86. package/list/harvesterhci.io.management.cluster.vue +0 -17
  87. package/list/management.cattle.io.setting.vue +13 -22
  88. package/list/management.cattle.io.user.vue +14 -25
  89. package/list/provisioning.cattle.io.cluster.vue +7 -6
  90. package/mixins/brand.js +0 -17
  91. package/package.json +1 -1
  92. package/pages/auth/login.vue +29 -84
  93. package/pages/c/_cluster/auth/roles/index.vue +14 -61
  94. package/pages/c/_cluster/settings/banners.vue +101 -174
  95. package/pages/c/_cluster/settings/brand.vue +301 -348
  96. package/pages/c/_cluster/settings/performance.vue +38 -61
  97. package/pages/home.vue +21 -70
  98. package/pages/prefs.vue +23 -25
  99. package/pkg/tsconfig.json +9 -9
  100. package/pkg/vue.config.js +1 -1
  101. package/promptRemove/mixin/roleDeletionCheck.js +2 -2
  102. package/scripts/clean +0 -0
  103. package/scripts/extension/bundle +0 -0
  104. package/scripts/extension/helm/scripts/package +0 -0
  105. package/scripts/extension/helm/scripts/patch +0 -0
  106. package/scripts/extension/helm/scripts/version +0 -0
  107. package/scripts/extension/helmpatch +0 -0
  108. package/scripts/extension/parse-tag-name +0 -0
  109. package/scripts/extension/publish +0 -0
  110. package/scripts/publish-shell.sh +60 -86
  111. package/scripts/serve-pkgs +0 -0
  112. package/scripts/sync-shell-deps +0 -0
  113. package/scripts/typegen.sh +28 -44
  114. package/store/i18n.js +5 -5
  115. package/store/prefs.js +5 -17
  116. package/store/type-map.js +1 -2
  117. package/types/cloud-shell/index.d.ts +11014 -0
  118. package/types/shell/index.d.ts +1 -1
  119. package/utils/error.js +0 -4
  120. package/utils/router.js +3 -3
  121. package/vue.config.js +6 -1
  122. package/assets/images/action.svg +0 -6
  123. package/assets/images/pl/logo.png +0 -0
  124. /package/components/{ResourceList → rancherResourceList}/Masthead-btn.vue +0 -0
@@ -4162,7 +4162,7 @@ export function setPromiseResult(promise: any, obj: any, key: any, label: any):
4162
4162
 
4163
4163
  declare module '@shell/utils/router' {
4164
4164
  export function harvesterhci2cloud(str: any): any;
4165
- export function cloud2harvesterhci(str: any): any;
4165
+ export function str: any: any;
4166
4166
  export function harvester2cloud(str: any): any;
4167
4167
  export function cloud2harvester(str: any): any;
4168
4168
  export function queryParamsFor(current: any, qp: any, defaults?: {}): any;
package/utils/error.js CHANGED
@@ -138,10 +138,6 @@ export const normalizeError = (err) => {
138
138
  };
139
139
  };
140
140
  export function translateError(error) {
141
- error = typeof error === 'string'
142
- ? error
143
- : error?.message || error?.toString() || '';
144
-
145
141
  const originError = error;
146
142
  error = error?.toLowerCase().replace(/admission webhook(.*?)denied the request:/g, (match, p1) => {
147
143
  return '';
package/utils/router.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { INSTALL_REDIRECT_META_KEY } from '@shell/config/router/navigation-guards/install-redirect';
2
2
 
3
3
  export function harvesterhci2cloud(str) {
4
- return str?.replace('harvesterhci.io', 'cloudhci.io')
4
+ return str?.replace('harvesterhci.io', 'cloudhci.io')
5
5
  }
6
6
 
7
7
  export function cloud2harvesterhci(str) {
@@ -14,11 +14,11 @@ export function cloud2harvesterhci(str) {
14
14
  }
15
15
 
16
16
  export function harvester2cloud(str) {
17
- return str?.replace(/harvester/g, 'cloud');
17
+ return str?.replace('harvester', 'cloud')
18
18
  }
19
19
 
20
20
  export function cloud2harvester(str) {
21
- return str?.replace(/cloud/g, 'harvester');
21
+ return str?.replace('cloud', 'harvester')
22
22
  }
23
23
 
24
24
  export function queryParamsFor(current, qp, defaults = {}) {
package/vue.config.js CHANGED
@@ -58,6 +58,11 @@ const getShellPaths = (dir) => {
58
58
  COMPONENTS_DIR = path.join(dir, 'pkg', 'rancher-components', 'src', 'components');
59
59
  }
60
60
 
61
+ if (fs.existsSync(path.join(dir, 'cloud-shell'))) {
62
+ SHELL_ABS = path.join(dir, 'cloud-shell');
63
+ COMPONENTS_DIR = path.join(dir, 'pkg', 'rancher-components', 'src', 'components');
64
+ }
65
+
61
66
  return { SHELL_ABS, COMPONENTS_DIR };
62
67
  };
63
68
 
@@ -157,7 +162,7 @@ const getLoaders = (SHELL_ABS) => [
157
162
  test: /\.m?[tj]sx?$/,
158
163
  // This excludes no modules except for node_modules/@rancher/... so that plugins can properly compile
159
164
  // when referencing @rancher/shell
160
- exclude: /node_modules\/(?!(@rancher)\/).*/,
165
+ exclude: /node_modules\/(?!(dashboard-shell-shell)\/).*/,
161
166
  use: [
162
167
  {
163
168
  loader: 'cache-loader',
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <svg version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="20px" height="20px" xmlns="http://www.w3.org/2000/svg">
3
- <g transform="matrix(1 0 0 1 -1960 -15 )">
4
- <path d="M 4.8287499999999 2.354999999999997 L 6.447499999999991 3.571249999999999 C 6.944234952397892 3.296336798844159 7.471337243122889 3.0802940772178857 8.018125000000055 2.927500000000002 L 8.398124999999936 0.9375 L 11.7493750000001 0.9375 L 12.035000000000082 2.941875000000003 C 12.581875000000082 3.099375000000002 13.106250000000045 3.319375000000001 13.599999999999909 3.5974999999999966 L 15.275624999999991 2.458750000000002 L 17.64562500000011 4.828749999999999 L 16.429374999999936 6.447499999999998 C 16.704375000000027 6.943750000000001 16.920624999999973 7.469999999999999 17.07312499999989 8.018124999999998 L 19.0631249999999 8.3975 L 19.0631249999999 11.748750000000001 L 17.058749999999918 12.034374999999997 C 16.901757589331055 12.579743540043523 16.681731272105935 13.104954119959451 16.403125000000045 13.599375000000002 L 17.54187499999989 15.274999999999999 L 15.171875 17.645 L 13.553124999999909 16.428749999999997 C 13.056874999999991 16.70375 12.5306250000001 16.919999999999998 11.982500000000073 17.072499999999998 L 11.603125000000091 19.0625 L 8.251874999999927 19.0625 L 7.966249999999945 17.058124999999997 C 7.42088145995649 16.9011325893311 6.895670880040598 16.681106272105932 6.401249999999891 16.4025 L 4.724999999999909 17.541249999999998 L 2.355000000000018 15.17125 L 3.5712499999999636 13.552500000000002 C 3.2963316621476224 13.055767511417464 3.0802886889528054 12.52866460691385 2.927500000000009 11.981875000000002 L 0.9375 11.6025 L 0.9375 8.251249999999999 L 2.941874999999982 7.965625000000003 C 3.099375000000009 7.419375000000002 3.3193750000000364 6.894374999999997 3.597500000000082 6.400624999999998 L 2.458750000000009 4.725000000000001 L 4.8287499999999 2.354999999999997 Z M 10.916249999999991 3.958750000000002 L 10.664375000000064 2.1868750000000006 L 9.431250000000091 2.1868750000000006 L 9.09375 3.958750000000002 L 8.690624999999955 4.046875 C 7.99908602983669 4.198277484319469 7.339492954772595 4.469899520362475 6.741874999999936 4.849375000000002 L 6.376874999999927 5.080624999999998 L 4.945625000000064 4.005625000000002 L 4.073750000000018 4.877499999999998 L 5.087500000000091 6.369999999999997 L 4.865000000000009 6.716875000000002 C 4.482751297972072 7.31276074731386 4.207964337869953 7.971064842647195 4.053124999999909 8.661875000000002 L 3.959374999999909 9.083750000000002 L 2.1875 9.335625 L 2.1875 10.568125000000002 L 3.958750000000009 10.90625 L 4.046875 11.309375000000003 C 4.198388963584193 12.000879103122479 4.47000322511758 12.660453298964391 4.849375000000009 13.258125 L 5.080625000000055 13.623125000000002 L 4.005625000000009 15.054375 L 4.877500000000055 15.92625 L 6.369999999999891 14.912500000000001 L 6.716875000000073 15.135000000000002 C 7.31276074731386 15.517248702027885 7.971064842647138 15.792035662130075 8.661875000000009 15.946874999999999 L 9.083750000000009 16.040625 L 9.335624999999936 17.8125 L 10.568125000000009 17.8125 L 10.90625 16.04125 L 11.309375000000045 15.953125 C 12.000879103122543 15.801611036415771 12.660453298964285 15.529996774882413 13.258125000000064 15.150625000000002 L 13.623125000000073 14.919375000000002 L 15.054374999999936 15.994375000000002 L 15.926249999999982 15.122500000000002 L 14.912499999999909 13.629999999999995 L 15.134999999999991 13.283124999999998 C 15.517248702027928 12.68723925268614 15.792035662130047 12.028935157352805 15.946875000000091 11.338124999999998 L 16.04062500000009 10.916249999999998 L 17.8125 10.664375 L 17.8125 9.431249999999999 L 16.04124999999999 9.093125 L 15.953125 8.689999999999998 C 15.801611036415807 7.998495896877522 15.52999677488242 7.338921701035609 15.150624999999991 6.741250000000001 L 14.919374999999945 6.376249999999999 L 15.994374999999991 4.945 L 15.122499999999945 4.073124999999997 L 13.63000000000011 5.086874999999999 L 13.283124999999927 4.8643749999999955 C 12.687215183188528 4.482172208106064 12.028919443671839 4.207388735859226 11.338124999999991 4.052500000000002 L 10.916249999999991 3.958750000000002 Z M 10 6.25 C 12.071067811865532 6.25 13.75 7.9289321881345245 13.75 10 C 13.75 12.071067811865476 12.071067811865532 13.75 10 13.75 C 7.928932188134468 13.75 6.25 12.071067811865476 6.25 10 C 6.25 7.9289321881345245 7.928932188134468 6.25 10 6.25 Z M 10 7.5 C 8.619288125423054 7.5 7.5 8.619288125423019 7.5 10 C 7.5 11.380711874576981 8.619288125423054 12.5 10 12.5 C 11.380711874576946 12.5 12.5 11.380711874576981 12.5 10 C 12.5 8.619288125423019 11.380711874576946 7.5 10 7.5 Z " fill-rule="nonzero" fill="#555555" stroke="none" transform="matrix(1 0 0 1 1960 15 )" />
5
- </g>
6
- </svg>
Binary file