dashboard-shell-shell 0.0.1000000000001138 → 1.0.6

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.
@@ -19,7 +19,7 @@ $input-width: 400px;
19
19
 
20
20
  $input-padding-lg: 18px;
21
21
  $input-padding-sm: 10px;
22
- $input-line-height: 18px;
22
+ $input-line-height: 32px;
23
23
 
24
24
  $column-gutter: 1.75%;
25
25
 
@@ -10,7 +10,6 @@
10
10
 
11
11
  &.compact-input {
12
12
  min-height: $unlabeled-input-height;
13
- padding: 0 10px;
14
13
 
15
14
  INPUT.no-label {
16
15
  line-height: $input-line-height;
@@ -104,3 +104,8 @@
104
104
  }
105
105
  }
106
106
  }
107
+
108
+
109
+ .sortable-table tbody tr.group-row td:first-of-type {
110
+ background-color: var(--sortable-table-bg) !important;
111
+ }
@@ -18,6 +18,7 @@ type RcDropdownMenuComponentProps = {
18
18
  dataTestid?: string;
19
19
  resource: Object;
20
20
  customActions?: DropdownOption[];
21
+ showIcon?: Boolean;
21
22
  }
22
23
 
23
24
  const props = defineProps <RcDropdownMenuComponentProps>();
@@ -100,6 +101,7 @@ const menuOptions = () => {
100
101
  :dropdown-aria-label="dropdownAriaLabel"
101
102
  :options="menuOptions()"
102
103
  :data-testid="dataTestid"
104
+ :showIcon="showIcon"
103
105
  @update:open="openChanged"
104
106
  @select="(e: MouseEvent, option: object) => execute(option, e)"
105
107
  />
@@ -416,6 +416,7 @@ export default {
416
416
  </script>
417
417
 
418
418
  <template>
419
+ 测试111111111111111111111111
419
420
  <div class="project-namespaces outlet">
420
421
  <Masthead
421
422
  :schema="projectSchema"
@@ -505,21 +506,19 @@ export default {
505
506
  <div class="right">
506
507
  <router-link
507
508
  v-if="isNamespaceCreatable && (canSeeProjectlessNamespaces || group.group.key !== notInProjectKey)"
508
- class="create-namespace btn btn-sm mr-5"
509
+ class="create-namespace"
510
+ style="margin-bottom: 3px;"
509
511
  :to="createNamespaceLocation(group.group)"
510
512
  >
511
513
  {{ t('projectNamespaces.createNamespace') }}
512
514
  </router-link>
515
+ <span style="color: var(--link);margin-bottom: 3px;">|</span>
513
516
  <template v-if="featureDropdownMenu">
514
517
  <ActionMenu
515
- v-if="showProjectActionButton(group.group)"
518
+ :showIcon="true"
516
519
  :resource="getProjectActions(group.group)"
517
520
  :button-aria-label="t('projectNamespaces.tableActionsLabel', { resource: projectResource(group.group) })"
518
521
  />
519
- <div
520
- v-else
521
- class="invisible"
522
- />
523
522
  </template>
524
523
  <template v-else>
525
524
  <ButtonMultiAction
@@ -595,6 +594,7 @@ export default {
595
594
  </template>
596
595
  <style lang="scss" scoped>
597
596
  .invisible {
597
+ width: 42px;
598
598
  display: inline-block;
599
599
  }
600
600
 
@@ -621,6 +621,7 @@ export default {
621
621
 
622
622
  .create-namespace {
623
623
  color: var(--link);
624
+ padding: 0 18px;
624
625
  }
625
626
 
626
627
  .group-tab {
@@ -72,13 +72,13 @@ export default {
72
72
  <template>
73
73
  <div>
74
74
  <div class="headers mb-10">
75
- <div class="mr-10">
75
+ <div style="width: 400px;">
76
76
  <label>{{ t('resourceQuota.headers.resourceType') }}</label>
77
77
  </div>
78
- <div class="mr-10">
78
+ <div style="width: 400px;">
79
79
  <label>{{ t('resourceQuota.headers.projectResourceAvailability') }}</label>
80
80
  </div>
81
- <div class="mr-20">
81
+ <div style="width: 400px;">
82
82
  <label>{{ t('resourceQuota.headers.limit') }}</label>
83
83
  </div>
84
84
  </div>
@@ -101,7 +101,7 @@ export default {
101
101
  .headers {
102
102
  display: flex;
103
103
  flex-direction: row;
104
- justify-content: space-evenly;
104
+ justify-content: space-between;
105
105
  align-items: center;
106
106
  border-bottom: 1px solid var(--border);
107
107
  height: 30px;
@@ -173,16 +173,15 @@ export default {
173
173
  <template>
174
174
  <div
175
175
  v-if="typeOption"
176
- class="row"
176
+ class="rowNew"
177
177
  >
178
178
  <Select
179
- class="mr-10"
180
179
  :mode="mode"
181
180
  :value="type"
182
181
  :disabled="true"
183
182
  :options="types"
184
183
  />
185
- <div class="resource-availability mr-10">
184
+ <div class="resource-availability">
186
185
  <PercentageBar
187
186
  v-clean-tooltip="tooltip"
188
187
  class="percentage-bar"
@@ -208,13 +207,12 @@ export default {
208
207
  .resource-availability {
209
208
  align-self: center;
210
209
  }
211
- .row {
210
+ .rowNew {
212
211
  display: flex;
213
- flex-direction: row;
214
- justify-content: space-evenly;
212
+ justify-content: space-between;
215
213
 
216
214
  & > * {
217
- width: 100%;
215
+ width: 400px;
218
216
  }
219
217
  }
220
218
  </style>
@@ -57,14 +57,14 @@ export default {
57
57
  </script>
58
58
  <template>
59
59
  <div>
60
- <div class="headers mb-10">
61
- <div class="mr-10">
60
+ <div style="justify-content: right;" class="headers mb-10">
61
+ <div style="width: 400px;">
62
62
  <label>{{ t('resourceQuota.headers.resourceType') }}</label>
63
63
  </div>
64
- <div class="mr-20">
64
+ <div style="width: 400px;">
65
65
  <label>{{ t('resourceQuota.headers.projectLimit') }}</label>
66
66
  </div>
67
- <div class="mr-10">
67
+ <div style="width: 400px;">
68
68
  <label>{{ t('resourceQuota.headers.namespaceDefaultLimit') }}</label>
69
69
  </div>
70
70
  </div>
@@ -70,11 +70,11 @@ export default {
70
70
  <template>
71
71
  <div
72
72
  v-if="typeOption"
73
- class="row"
73
+ style="justify-content: right;"
74
+ class="rowNew"
74
75
  >
75
76
  <Select
76
77
  :value="type"
77
- class="mr-10"
78
78
  :mode="mode"
79
79
  :options="types"
80
80
  data-testid="projectrow-type-input"
@@ -82,7 +82,6 @@ export default {
82
82
  />
83
83
  <UnitInput
84
84
  :value="resourceQuotaLimit[type]"
85
- class="mr-10"
86
85
  :mode="mode"
87
86
  :placeholder="typeOption.placeholder"
88
87
  :increment="typeOption.increment"
@@ -107,9 +106,8 @@ export default {
107
106
  </template>
108
107
 
109
108
  <style lang='scss' scoped>
110
- .row {
109
+ .rowNew {
111
110
  display: flex;
112
- flex-direction: row;
113
- justify-content: space-evenly;
111
+ justify-content: space-between;
114
112
  }
115
113
  </style>
@@ -238,10 +238,10 @@ export default {
238
238
  @update:value="update"
239
239
  @blur="update($event.target.value)"
240
240
  >
241
- <template #suffix>
241
+ <template #suffixNew>
242
242
  <div
243
243
  v-if="displayUnit"
244
- class="addon"
244
+ class="addonNew"
245
245
  :class="{'with-tooltip': tooltip || tooltipKey}"
246
246
  >
247
247
  {{ displayUnit }}
@@ -251,7 +251,12 @@ export default {
251
251
  </template>
252
252
 
253
253
  <style lang="scss" scoped>
254
- .addon.with-tooltip {
254
+ .addonNew.with-tooltip {
255
255
  padding-right: 42px;
256
256
  }
257
+ .addonNew {
258
+ display: flex;
259
+ align-items: center;
260
+ margin-left: 10px;
261
+ }
257
262
  </style>
@@ -189,7 +189,7 @@ $row-height: 40px;
189
189
  height: 100%;
190
190
 
191
191
  input.no-label {
192
- height: calc($row-height - 2px);
192
+ height: 32px;
193
193
  padding: 10px;
194
194
  }
195
195
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dashboard-shell-shell",
3
- "version": "0.0.1000000000001138",
3
+ "version": "1.0.6",
4
4
  "description": "Rancher Dashboard Shell",
5
5
  "repository": "https://github.com/rancherlabs/dashboard",
6
6
  "license": "Apache-2.0",
@@ -301,6 +301,7 @@ export default defineComponent({
301
301
  <span
302
302
  v-else-if="label"
303
303
  :id="idForLabel"
304
+ :style="label == '记住用户名' ? { color: '#fff' } : ''"
304
305
  >{{ label }}</span>
305
306
  <i
306
307
  v-if="tooltipKey"
@@ -464,6 +464,7 @@ export default defineComponent({
464
464
  />
465
465
  </div>
466
466
  </div>
467
+ <slot name="suffixNew" />
467
468
  </div>
468
469
  </template>
469
470
  <style scoped lang="scss">
@@ -108,7 +108,7 @@ export default defineComponent({
108
108
  * (unless the input is long)
109
109
  */
110
110
  style(): string {
111
- return `height: ${ this.curHeight }px; overflow: ${ this.overflow };`;
111
+ return `height: ${ this.curHeight }px; overflow: ${ this.overflow };min-height:${ this.curHeight }px;`;
112
112
  },
113
113
 
114
114
  className(): string | unknown[] | Record<string, boolean> {
@@ -33,8 +33,10 @@ const hasOptions = (options: DropdownOption[]) => {
33
33
  :data-testid="dataTestid"
34
34
  :aria-label="buttonAriaLabel"
35
35
  >
36
- <!-- <img v-if="showIcon" src="@/shell/assets/images/action.svg" title="操作"> -->
37
- <a href="javascript:;">操作</a>
36
+ <div v-if="showIcon">
37
+ <i data-v-5db2c2c7="" class="icon icon-actions" alt="More actions icon"></i>
38
+ </div>
39
+ <a v-else href="javascript:;">操作</a>
38
40
  </rc-dropdown-trigger>
39
41
  <template #dropdownCollection>
40
42
  <template