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.
- package/assets/translations/zh-hans.yaml +1 -1
- package/components/ExplorerProjectsNamespaces.vue +23 -5
- package/components/rancherResourceDetail/Masthead.vue +767 -0
- package/components/rancherResourceDetail/__tests__/Masthead.test.ts +65 -0
- package/components/rancherResourceDetail/index.vue +591 -0
- package/components/rancherResourceList/Masthead-btn.vue +225 -0
- package/components/rancherResourceList/Masthead.vue +375 -0
- package/components/rancherResourceList/ResourceLoadingIndicator.vue +140 -0
- package/components/rancherResourceList/index.vue +307 -0
- package/components/rancherResourceList/resource-list.config.js +7 -0
- package/components/rancherResourceTable.vue +783 -0
- package/components/rancherSortableTable/THead.vue +561 -0
- package/components/rancherSortableTable/actions.js +153 -0
- package/components/rancherSortableTable/advanced-filtering.js +272 -0
- package/components/rancherSortableTable/debug.js +117 -0
- package/components/rancherSortableTable/filtering.js +290 -0
- package/components/rancherSortableTable/grouping.js +48 -0
- package/components/rancherSortableTable/index.vue +2712 -0
- package/components/rancherSortableTable/paging.js +155 -0
- package/components/rancherSortableTable/selection.js +629 -0
- package/components/rancherSortableTable/sortable-config.ts +4 -0
- package/components/rancherSortableTable/sorting.js +129 -0
- package/package.json +1 -1
- package/rancher-components/RcDropdown/RcDropdownMenu.vue +2 -2
- package/scripts/publish-shell.sh +2 -0
- package/vue.config.js +5 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { mapGetters, useStore } from 'vuex';
|
|
3
|
-
import ResourceTable, { defaultTableSortGenerationFn } from '@shell/components/
|
|
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/
|
|
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
|
|
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
|
|
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);
|