dashboard-shell-shell 1.0.115 → 1.0.116

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.
@@ -20,7 +20,6 @@ import { TYPE_MODES } from '@shell/store/type-map';
20
20
  import { NAME as NAVLINKS } from '@shell/config/product/navlinks';
21
21
  import Group from '@shell/components/nav/Group';
22
22
  import LocaleSelector from '@shell/components/LocaleSelector';
23
- import { cloud2harvesterhci, harvester2cloud } from '@shell/utils/router';
24
23
 
25
24
  export default {
26
25
  name: 'SideNav',
@@ -155,7 +154,7 @@ export default {
155
154
  },
156
155
 
157
156
  isVirtualProduct() {
158
- return this.rootProduct.name === harvester2cloud(HARVESTER);
157
+ return this.rootProduct.name === HARVESTER;
159
158
  },
160
159
 
161
160
  allNavLinks() {
@@ -237,7 +236,7 @@ export default {
237
236
 
238
237
  getProductsGroups(out, loadProducts, namespaceMode, productMap) {
239
238
  const clusterId = this.$store.getters['clusterId'];
240
- const currentType = cloud2harvesterhci(this.$route.params.resource) || '';
239
+ const currentType = this.$route.params.resource || '';
241
240
 
242
241
  for ( const productId of loadProducts ) {
243
242
  const modes = [TYPE_MODES.BASIC];
@@ -395,12 +394,8 @@ export default {
395
394
  </script>
396
395
 
397
396
  <template>
398
- <nav
399
- class="side-nav"
400
- role="navigation"
401
- :aria-label="t('nav.ariaLabel.sideNav')"
402
- >
403
- <div class="side-all-title">
397
+ <nav class="side-nav">
398
+ <div class="side-all-title">
404
399
  控制台
405
400
  </div>
406
401
  <!-- Actual nav -->
@@ -422,36 +417,36 @@ export default {
422
417
  </template>
423
418
  </div>
424
419
  <!-- SideNav footer area (seems to be tied to harvester) -->
425
- <!-- <div
420
+ <div
426
421
  v-if="showProductFooter"
427
422
  class="footer"
428
- > -->
423
+ >
429
424
  <!-- support link -->
430
- <!-- <router-link
425
+ <router-link
431
426
  :to="supportLink"
432
427
  class="pull-right"
433
428
  role="link"
434
429
  :aria-label="t('nav.support', {hasSupport: true})"
435
430
  >
436
431
  {{ t('nav.support', {hasSupport: true}) }}
437
- </router-link> -->
432
+ </router-link>
438
433
  <!-- version number -->
439
- <!-- <span
434
+ <span
440
435
  v-clean-tooltip="{content: displayVersion, placement: 'top'}"
441
436
  class="clip version text-muted"
442
437
  >
443
438
  {{ displayVersion }}
444
- </span> -->
439
+ </span>
445
440
 
446
441
  <!-- locale selector -->
447
- <!-- <LocaleSelector
442
+ <LocaleSelector
448
443
  v-if="isSingleProduct && hasMultipleLocales && !isStandaloneHarvester"
449
444
  mode="login"
450
445
  :show-icon="false"
451
- /> -->
452
- <!-- </div> -->
446
+ />
447
+ </div>
453
448
  <!-- SideNav footer alternative -->
454
- <!-- <div
449
+ <div
455
450
  v-else
456
451
  class="version text-muted flex"
457
452
  >
@@ -472,7 +467,7 @@ export default {
472
467
  (Harvester-{{ harvesterVersion }})
473
468
  </span>
474
469
  </template>
475
- </div> -->
470
+ </div>
476
471
  </nav>
477
472
  </template>
478
473
 
@@ -498,10 +493,6 @@ export default {
498
493
 
499
494
  A { padding-left: 0; }
500
495
  }
501
- :deep() A{
502
- height: 50px;
503
- background-color: #fff;
504
- }
505
496
 
506
497
  .tools {
507
498
  display: flex;
@@ -577,13 +568,4 @@ export default {
577
568
  display: flex;
578
569
  }
579
570
 
580
-
581
- .side-all-title{
582
- height: 50px;
583
- line-height: 50px;
584
- font-size: 16px;
585
- color: #7f7f7f;
586
- padding-left: 21px;
587
- font-weight: bold;
588
- }
589
571
  </style>
@@ -177,6 +177,7 @@ export default {
177
177
  {{ type }}?
178
178
  </li>
179
179
  </template>
180
+
180
181
  <style lang="scss" scoped>
181
182
  .ns-and-icon {
182
183
  margin-right: 4px;
@@ -198,7 +199,6 @@ export default {
198
199
  .label {
199
200
  align-items: center;
200
201
  grid-area: label;
201
- display: flex;
202
202
  overflow: hidden;
203
203
  text-overflow: ellipsis;
204
204
 
@@ -206,13 +206,13 @@ export default {
206
206
  padding-left: 3px;
207
207
  }
208
208
 
209
- ::v-deep .highlight {
209
+ :deep() .highlight {
210
210
  background: var(--diff-ins-bg);
211
211
  color: var(--body-text);
212
212
  padding: 2px;
213
213
  }
214
214
 
215
- ::v-deep .icon {
215
+ :deep() .icon {
216
216
  position: relative;
217
217
  color: var(--muted);
218
218
  }
@@ -225,24 +225,20 @@ export default {
225
225
  grid-column-gap: 5px;
226
226
  font-size: 14px;
227
227
  line-height: 24px;
228
- /* padding: 7.5px 7px 7.5px 10px; */
229
- padding: 0px 16px 0px 40px;
230
- height: 50px;
228
+ padding: 7.5px 7px 7.5px 10px;
231
229
  margin: 0 0 0 -3px;
232
230
  overflow: hidden;
233
231
  text-overflow: ellipsis;
234
232
  white-space: nowrap;
235
233
  color: var(--body-text);
234
+ height: 33px;
236
235
 
237
236
  &:hover {
238
- background: var(--nav-active);
239
- color: var(--nav-hover-color);
240
- /* background: var(--nav-hover); */
237
+ background: var(--nav-hover);
241
238
  text-decoration: none;
242
239
 
243
- ::v-deep .icon {
244
- /* color: var(--body-text); */
245
- color: var(--nav-hover-color);
240
+ :deep() .icon {
241
+ color: var(--body-text);
246
242
  }
247
243
  }
248
244
  }
@@ -251,26 +247,46 @@ export default {
251
247
  grid-area: favorite;
252
248
  font-size: 12px;
253
249
  position: relative;
250
+ vertical-align: middle;
251
+ margin-right: 4px;
254
252
  }
255
253
 
256
254
  .count {
257
- grid-area: count;
258
255
  font-size: 12px;
259
- text-align: right;
260
256
  justify-items: center;
261
257
  padding-right: 4px;
258
+ display: flex;
259
+ align-items: center;
260
+ }
261
+
262
+ &.nav-type.nav-link {
263
+ a .label {
264
+ display: flex;
265
+ }
262
266
  }
263
267
 
264
268
  &.nav-type:not(.depth-0) {
265
269
  A {
266
- font-size: 13px;
267
- padding: 5.5px 7px 5.5px 10px;
270
+ padding-left: 16px;
268
271
  }
269
272
 
270
- ::v-deep .label I {
273
+ :deep() .label I {
271
274
  padding-right: 2px;
272
275
  }
273
276
  }
277
+
278
+ &.nav-type:is(.depth-1) {
279
+ A {
280
+ font-size: 13px;
281
+ padding-left: 23px;
282
+ }
283
+ }
284
+
285
+ &.nav-type:not(.depth-0):not(.depth-1) {
286
+ A {
287
+ padding-left: 14px;
288
+ }
289
+ }
274
290
  }
275
291
 
276
292
  </style>
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "license": "Apache-2.0",
6
6
  "author": "SUSE",
7
7
  "private": false,
8
- "version": "1.0.00000000115",
8
+ "version": "1.0.00000000116",
9
9
  "engines": {
10
10
  "node": ">=20.0.0"
11
11
  },