dashboard-shell-shell 0.0.1000000000001133 → 0.0.1000000000001137

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 (26) hide show
  1. package/assets/translations/zh-hans.yaml +1 -1
  2. package/components/ExplorerProjectsNamespaces.vue +23 -5
  3. package/components/rancherResourceDetail/Masthead.vue +767 -0
  4. package/components/rancherResourceDetail/__tests__/Masthead.test.ts +65 -0
  5. package/components/rancherResourceDetail/index.vue +591 -0
  6. package/components/rancherResourceList/Masthead-btn.vue +225 -0
  7. package/components/rancherResourceList/Masthead.vue +375 -0
  8. package/components/rancherResourceList/ResourceLoadingIndicator.vue +140 -0
  9. package/components/rancherResourceList/index.vue +307 -0
  10. package/components/rancherResourceList/resource-list.config.js +7 -0
  11. package/components/rancherResourceTable.vue +783 -0
  12. package/components/rancherSortableTable/THead.vue +561 -0
  13. package/components/rancherSortableTable/actions.js +153 -0
  14. package/components/rancherSortableTable/advanced-filtering.js +272 -0
  15. package/components/rancherSortableTable/debug.js +117 -0
  16. package/components/rancherSortableTable/filtering.js +290 -0
  17. package/components/rancherSortableTable/grouping.js +48 -0
  18. package/components/rancherSortableTable/index.vue +2712 -0
  19. package/components/rancherSortableTable/paging.js +155 -0
  20. package/components/rancherSortableTable/selection.js +629 -0
  21. package/components/rancherSortableTable/sortable-config.ts +4 -0
  22. package/components/rancherSortableTable/sorting.js +129 -0
  23. package/package.json +1 -1
  24. package/rancher-components/RcDropdown/RcDropdownMenu.vue +2 -2
  25. package/scripts/publish-shell.sh +2 -0
  26. package/vue.config.js +5 -0
@@ -7122,7 +7122,7 @@ registryConfig:
7122
7122
  ##############################
7123
7123
 
7124
7124
  advancedSettings:
7125
- label: 设置
7125
+ label: 基础设置
7126
7126
  subtext: 一般用户不需要修改此处的设置。请谨慎操作,不正确的值会破坏 {appName} 的安装。与默认不同的设置会标记为“已修改”。
7127
7127
  show: 显示
7128
7128
  hide: 隐藏
@@ -1,13 +1,13 @@
1
1
  <script>
2
2
  import { mapGetters, useStore } from 'vuex';
3
- import ResourceTable, { defaultTableSortGenerationFn } from '@shell/components/ResourceTable';
3
+ import ResourceTable, { defaultTableSortGenerationFn } from '@shell/components/rancherResourceTable';
4
4
  import { STATE, AGE, NAME, NS_SNAPSHOT_QUOTA } from '@shell/config/table-headers';
5
5
  import { uniq } from '@shell/utils/array';
6
6
  import { MANAGEMENT, NAMESPACE, VIRTUAL_TYPES, HCI } from '@shell/config/types';
7
7
  import { PROJECT_ID, FLAT_VIEW } from '@shell/config/query-params';
8
8
  import { PanelLocation, ExtensionPoint } from '@shell/core/types';
9
9
  import ExtensionPanel from '@shell/components/ExtensionPanel';
10
- import Masthead from '@shell/components/ResourceList/Masthead';
10
+ import Masthead from '@shell/components/rancherResourceList/Masthead';
11
11
  import { mapPref, GROUP_RESOURCES, ALL_NAMESPACES, DEV } from '@shell/store/prefs';
12
12
  import MoveModal from '@shell/components/MoveModal';
13
13
  import ButtonMultiAction from '@shell/components/ButtonMultiAction.vue';
@@ -427,6 +427,8 @@ export default {
427
427
  :show-incremental-loading-indicator="showIncrementalLoadingIndicator"
428
428
  :load-resources="loadResources"
429
429
  :load-indeterminate="loadIndeterminate"
430
+
431
+ :main-button-visible="false"
430
432
  >
431
433
  <template
432
434
  v-if="showCreateNsButton"
@@ -460,6 +462,13 @@ export default {
460
462
  :loading="loading"
461
463
  group-tooltip="resourceTable.groupBy.project"
462
464
  key-field="_key"
465
+
466
+ :create-location="createProjectLocation"
467
+ :schemaBtn="projectSchema"
468
+ :create-button-label="t('projectNamespaces.createProject')"
469
+ :type-display="t('projectNamespaces.label')"
470
+ :resource="MANAGEMENT.PROJECT"
471
+ :main-button-visible="true"
463
472
  >
464
473
  <template #group-by="group">
465
474
  <div
@@ -481,10 +490,10 @@ export default {
481
490
  {{ projectDescription(group.group) }}
482
491
  </div>
483
492
  </div>
484
- <div class="right mr-10">
493
+ <div class="right">
485
494
  <router-link
486
495
  v-if="isNamespaceCreatable && (canSeeProjectlessNamespaces || group.group.key !== notInProjectKey)"
487
- class="create-namespace btn btn-sm role-secondary mr-5"
496
+ class="create-namespace btn btn-sm mr-5"
488
497
  :to="createNamespaceLocation(group.group)"
489
498
  >
490
499
  {{ t('projectNamespaces.createNamespace') }}
@@ -575,7 +584,6 @@ export default {
575
584
  <style lang="scss" scoped>
576
585
  .invisible {
577
586
  display: inline-block;
578
- min-width: 28px;
579
587
  }
580
588
 
581
589
  .project-namespaces {
@@ -592,6 +600,16 @@ export default {
592
600
  display: flex;
593
601
  flex-direction: row;
594
602
  justify-content: space-between;
603
+ background-color: var(--sortable-table-bg) !important;
604
+
605
+ .right {
606
+ display: flex;
607
+ align-items: center;
608
+ }
609
+
610
+ .create-namespace {
611
+ color: var(--link);
612
+ }
595
613
 
596
614
  .group-tab {
597
615
  max-width: calc(100% - 230px);