dashboard-shell-shell 3.0.5-test.5 → 3.0.5-test.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.
- package/assets/brand/harvester/favicon.png +0 -0
- package/assets/brand/suse/favicon.png +0 -0
- package/assets/images/pl/half-logo.svg +23 -2
- package/assets/images/pl/harvester.png +0 -0
- package/assets/styles/app.scss +0 -4
- package/assets/styles/base/_basic.scss +2 -2
- package/assets/styles/base/_mixins.scss +1 -1
- package/assets/styles/base/_typography.scss +1 -2
- package/assets/styles/base/_variables.scss +4 -11
- package/assets/styles/global/_button.scss +25 -43
- package/assets/styles/global/_columns.scss +1 -3
- package/assets/styles/global/_form.scss +13 -45
- package/assets/styles/global/_labeled-input.scss +26 -54
- package/assets/styles/global/_layout.scss +3 -8
- package/assets/styles/global/_select.scss +17 -25
- package/assets/styles/global/_table.scss +1 -7
- package/assets/styles/global/_tooltip.scss +8 -56
- package/assets/styles/themes/_dark.scss +0 -3
- package/assets/styles/themes/_light.scss +43 -66
- package/assets/styles/vendor/vue-select.scss +9 -22
- package/assets/translations/en-us.yaml +4 -28
- package/assets/translations/zh-hans.yaml +189 -452
- package/components/ActionDropdown.vue +1 -2
- package/components/ActionMenu.vue +2 -2
- package/components/ActionMenuShell.vue +0 -2
- package/components/AppModal.vue +5 -46
- package/components/BrandImage.vue +0 -1
- package/components/ButtonDropdown.vue +4 -26
- package/components/ButtonMultiAction.vue +0 -1
- package/components/ClusterIconMenu.vue +1 -1
- package/components/CodeMirror.vue +6 -20
- package/components/ConsumptionGauge.vue +5 -24
- package/components/CopyToClipboard.vue +0 -15
- package/components/CruResource.vue +8 -9
- package/components/CruResourceFooter.vue +2 -2
- package/components/DashboardOptions.vue +17 -29
- package/components/Drawer/Chrome.vue +2 -2
- package/components/Drawer/ResourceDetailDrawer/ConfigTab.vue +23 -23
- package/components/Drawer/ResourceDetailDrawer/index.vue +2 -2
- package/components/ExplorerMembers.vue +3 -18
- package/components/ExplorerProjectsNamespaces.vue +5 -19
- package/components/GlobalRoleBindings.vue +48 -112
- package/components/GrafanaDashboard.vue +4 -4
- package/components/GrowlManager.vue +1 -3
- package/components/HardwareResourceGauge.vue +3 -39
- package/components/IndentedPanel.vue +10 -4
- package/components/InfoBox.vue +3 -3
- package/components/InputOrDisplay.vue +2 -28
- package/components/LabelValue.vue +1 -20
- package/components/ModalWithCard.vue +3 -12
- package/components/PodSecurityAdmission.vue +1 -1
- package/components/PromptModal.vue +1 -1
- package/components/PromptRemove.vue +11 -30
- package/components/Resource/Detail/Metadata/IdentifyingInformation/index.vue +3 -1
- package/components/Resource/Detail/Metadata/KeyValue.vue +4 -8
- package/components/Resource/Detail/Metadata/index.vue +1 -2
- package/components/Resource/Detail/TitleBar/Title.vue +3 -4
- package/components/Resource/Detail/TitleBar/index.vue +24 -103
- package/components/ResourceDetail/Masthead/legacy.vue +38 -181
- package/components/ResourceDetail/legacy.vue +14 -32
- package/components/ResourceList/Masthead.vue +54 -226
- package/components/ResourceList/ResourceLoadingIndicator.vue +2 -5
- package/components/ResourceTable.vue +2 -24
- package/components/SideNav.vue +20 -74
- package/components/SortableTable/THead.vue +3 -33
- package/components/SortableTable/index.vue +464 -1017
- package/components/SortableTable/paging.js +16 -26
- package/components/SortableTable/selection.js +2 -2
- package/components/Tabbed/Tab.vue +3 -3
- package/components/Tabbed/index.vue +30 -48
- package/components/YamlEditor.vue +1 -0
- package/components/auth/Principal.vue +13 -37
- package/components/auth/RoleDetailEdit.vue +7 -58
- package/components/auth/SelectPrincipal.vue +0 -1
- package/components/form/ArrayList.vue +33 -41
- package/components/form/ArrayListGrouped.vue +2 -10
- package/components/form/ArrayListSelect.vue +1 -1
- package/components/form/BannerSettings.vue +59 -64
- package/components/form/ChangePassword.vue +4 -4
- package/components/form/ColorInput.vue +8 -32
- package/components/form/Footer.vue +8 -11
- package/components/form/InputWithSelect.vue +5 -8
- package/components/form/KeyValue.vue +7 -47
- package/components/form/LabeledSelect.vue +242 -214
- package/components/form/Labels.vue +3 -3
- package/components/form/MatchExpressions.vue +7 -24
- package/components/form/Members/ClusterPermissionsEditor.vue +2 -1
- package/components/form/Members/MembershipEditor.vue +1 -1
- package/components/form/NameNsDescription.vue +20 -59
- package/components/form/Password.vue +7 -16
- package/components/form/PodAffinity.vue +5 -4
- package/components/form/ResourceQuota/Namespace.vue +4 -4
- package/components/form/ResourceQuota/NamespaceRow.vue +17 -18
- package/components/form/ResourceQuota/Project.vue +4 -4
- package/components/form/ResourceQuota/ProjectRow.vue +6 -3
- package/components/form/Select.vue +2 -5
- package/components/form/SimpleSecretSelector.vue +9 -29
- package/components/form/Taints.vue +1 -2
- package/components/form/UnitInput.vue +3 -8
- package/components/form/WorkloadPorts.vue +123 -143
- package/components/formatter/BadgeStateFormatter.vue +5 -8
- package/components/formatter/LiveDate.vue +3 -3
- package/components/nav/Favorite.vue +1 -5
- package/components/nav/Group.vue +99 -132
- package/components/nav/Header.vue +27 -124
- package/components/nav/HeaderPageActionMenu.vue +0 -1
- package/components/nav/NamespaceFilter.vue +15 -19
- package/components/nav/TopLevelMenu.vue +119 -182
- package/components/nav/Type.vue +41 -63
- package/composables/useClickOutside.ts +1 -1
- package/config/private-label.js +11 -15
- package/config/product/auth.js +7 -17
- package/config/product/settings.js +9 -19
- package/config/settings.ts +0 -28
- package/config/table-headers.js +2 -3
- package/dialog/ForceMachineRemoveDialog.vue +2 -2
- package/dialog/ScalePoolDownDialog.vue +2 -2
- package/edit/management.cattle.io.user.vue +4 -17
- package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +19 -19
- package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +31 -31
- package/edit/monitoring.coreos.com.alertmanagerconfig/routeConfig.vue +12 -36
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +6 -6
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/opsgenie.vue +10 -10
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/pagerduty.vue +4 -4
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/slack.vue +4 -4
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +1 -1
- package/edit/monitoring.coreos.com.receiver/types/email.vue +6 -6
- package/edit/monitoring.coreos.com.receiver/types/opsgenie.vue +10 -10
- package/edit/monitoring.coreos.com.receiver/types/pagerduty.vue +5 -5
- package/edit/monitoring.coreos.com.receiver/types/slack.vue +4 -4
- package/edit/namespace.vue +2 -1
- package/edit/token.vue +12 -31
- package/edit/workload/index.vue +4 -4
- package/list/management.cattle.io.setting.vue +13 -22
- package/list/management.cattle.io.user.vue +3 -7
- package/list/namespace.vue +0 -3
- package/list/provisioning.cattle.io.cluster.vue +7 -6
- package/mixins/brand.js +0 -17
- package/package.json +1 -1
- package/pages/account/index.vue +25 -79
- package/pages/auth/login.vue +52 -220
- package/pages/auth/setup.vue +19 -142
- package/pages/c/_cluster/_product/namespaces.vue +5 -5
- package/pages/c/_cluster/auth/roles/index.vue +1 -19
- package/pages/c/_cluster/monitoring/monitor/index.vue +2 -2
- package/pages/c/_cluster/settings/banners.vue +102 -174
- package/pages/c/_cluster/settings/brand.vue +302 -350
- package/pages/c/_cluster/settings/performance.vue +38 -61
- package/pages/home.vue +30 -70
- package/pages/prefs.vue +25 -27
- package/promptRemove/mixin/roleDeletionCheck.js +2 -2
- package/public/index.html +4 -4
- package/rancher-components/BadgeState/BadgeState.vue +55 -38
- package/rancher-components/Banner/Banner.vue +8 -12
- package/rancher-components/Card/Card.vue +8 -7
- package/rancher-components/Form/Checkbox/Checkbox.vue +0 -4
- package/rancher-components/Form/LabeledInput/LabeledInput.vue +3 -42
- package/rancher-components/Form/Radio/RadioButton.vue +11 -35
- package/rancher-components/Form/Radio/RadioGroup.vue +5 -13
- package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +3 -3
- package/rancher-components/Form/ToggleSwitch/ToggleSwitch.vue +0 -1
- package/rancher-components/LabeledTooltip/LabeledTooltip.vue +4 -12
- package/rancher-components/RcDropdown/RcDropdown.vue +7 -35
- package/rancher-components/RcDropdown/RcDropdownItem.vue +2 -2
- package/rancher-components/RcDropdown/RcDropdownMenu.vue +6 -12
- package/rancher-components/RcDropdown/types.ts +0 -1
- package/rancher-components/StringList/StringList.vue +1 -1
- package/static/favicon.ico +0 -0
- package/static/favicon.png +0 -0
- package/static/loading-indicator.html +3 -3
- package/store/i18n.js +2 -5
- package/store/modal.ts +3 -3
- package/store/prefs.js +4 -11
- package/store/type-map.js +2 -32
- package/types/shell/index.d.ts +67 -74
- package/utils/error.js +8 -87
- package/utils/router.js +0 -21
- package/utils/select.js +3 -26
- package/utils/string.js +5 -8
- package/utils/title.ts +1 -1
- package/assets/icons/demo.css +0 -539
- package/assets/icons/demo.css:Zone.Identifier +0 -0
- package/assets/icons/demo_index.html +0 -1131
- package/assets/icons/demo_index.html:Zone.Identifier +0 -0
- package/assets/icons/iconfont.css +0 -216
- package/assets/icons/iconfont.css:Zone.Identifier +0 -0
- package/assets/icons/iconfont.js +0 -1
- package/assets/icons/iconfont.js:Zone.Identifier +0 -0
- package/assets/icons/iconfont.json +0 -324
- package/assets/icons/iconfont.json:Zone.Identifier +0 -0
- package/assets/icons/iconfont.ttf +0 -0
- package/assets/icons/iconfont.ttf:Zone.Identifier +0 -0
- package/assets/icons/iconfont.woff +0 -0
- package/assets/icons/iconfont.woff2 +0 -0
- package/assets/icons/iconfont.woff2:Zone.Identifier +0 -0
- package/assets/icons/iconfont.woff:Zone.Identifier +0 -0
- package/assets/images/API.svg +0 -3
- package/assets/images/action.svg +0 -6
- package/assets/images/login/password.svg +0 -20
- package/assets/images/login/user.svg +0 -6
- package/assets/images/login-bg.png +0 -0
- package/assets/images/login-left.png +0 -0
- package/assets/images/login-logo.svg +0 -19
- package/assets/images/logo.png +0 -0
- package/assets/images/pl/logo.png +0 -0
- package/assets/images/promp-yellow.svg +0 -5
- package/assets/images/user.png +0 -0
- package/assets/styles/all.scss +0 -63
- package/components/DotState.vue +0 -84
- package/components/breadcrumb/index.vue +0 -340
- package/pages/account/pri.vue +0 -229
- package/utils/errorTranslate.json +0 -1336
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { MANAGEMENT } from '@shell/config/types';
|
|
3
|
-
import {
|
|
3
|
+
import { ALLOWED_SETTINGS, PROVISIONING_SETTINGS } from '@shell/config/settings';
|
|
4
4
|
import { Banner } from '@components/Banner';
|
|
5
5
|
import Loading from '@shell/components/Loading';
|
|
6
6
|
import { VIEW_IN_API } from '@shell/store/prefs';
|
|
@@ -26,12 +26,8 @@ export default {
|
|
|
26
26
|
const settings = [];
|
|
27
27
|
const provisioningSettings = [];
|
|
28
28
|
|
|
29
|
-
const topLevelPermissions = sessionStorage.getItem('TOPLEVELPERMISSIONS') || ''
|
|
30
|
-
|
|
31
|
-
const allowedSettings = topLevelPermissions && topLevelPermissions === 'superadmin' ? ALLOWED_SETTINGS : ALLOWED_SETTINGS_NEW
|
|
32
|
-
|
|
33
29
|
// Combine the allowed settings with the data from the API
|
|
34
|
-
for ( const id in
|
|
30
|
+
for ( const id in ALLOWED_SETTINGS ) {
|
|
35
31
|
const setting = settingsMap[id];
|
|
36
32
|
|
|
37
33
|
if ( !setting ) {
|
|
@@ -73,10 +69,7 @@ export default {
|
|
|
73
69
|
},
|
|
74
70
|
|
|
75
71
|
data() {
|
|
76
|
-
|
|
77
|
-
const topLevelPermissions = sessionStorage.getItem('TOPLEVELPERMISSIONS') || ''
|
|
78
|
-
|
|
79
|
-
return { topLevelPermissions, settings: null, provisioningSettings: null };
|
|
72
|
+
return { settings: null, provisioningSettings: null };
|
|
80
73
|
},
|
|
81
74
|
computed: { ...mapGetters({ t: 'i18n/t' }) }
|
|
82
75
|
};
|
|
@@ -103,18 +96,16 @@ export default {
|
|
|
103
96
|
/>
|
|
104
97
|
</div>
|
|
105
98
|
|
|
106
|
-
<
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
/>
|
|
117
|
-
</div>
|
|
99
|
+
<h2>
|
|
100
|
+
{{ t('advancedSettings.provisioning.header') }}
|
|
101
|
+
</h2>
|
|
102
|
+
<div
|
|
103
|
+
v-for="(setting) in provisioningSettings"
|
|
104
|
+
:key="setting.id"
|
|
105
|
+
>
|
|
106
|
+
<Setting
|
|
107
|
+
:value="setting"
|
|
108
|
+
/>
|
|
118
109
|
</div>
|
|
119
110
|
</div>
|
|
120
111
|
</template>
|
|
@@ -142,10 +142,9 @@ export default {
|
|
|
142
142
|
:to="{ name: 'c-cluster-auth-user.retention'}"
|
|
143
143
|
class="btn role-link btn-sm btn-user-retention"
|
|
144
144
|
data-testid="router-link-user-retention"
|
|
145
|
-
style="text-align: left;min-width: auto !important;width: auto;"
|
|
146
145
|
>
|
|
147
|
-
|
|
148
|
-
{{ t('user.retention.button.label') }}
|
|
146
|
+
<i class="icon icon-gear" />
|
|
147
|
+
{{ t('user.retention.button.label') }}
|
|
149
148
|
</router-link>
|
|
150
149
|
</template>
|
|
151
150
|
</Masthead>
|
|
@@ -172,11 +171,8 @@ export default {
|
|
|
172
171
|
|
|
173
172
|
<style lang="scss">
|
|
174
173
|
.btn-user-retention {
|
|
175
|
-
display:
|
|
174
|
+
display: flex;
|
|
176
175
|
gap: 0.25rem;
|
|
177
176
|
padding: 0;
|
|
178
177
|
}
|
|
179
|
-
.btn-user-retention:hover {
|
|
180
|
-
color: #333 !important;
|
|
181
|
-
}
|
|
182
178
|
</style>
|
package/list/namespace.vue
CHANGED
|
@@ -42,9 +42,6 @@ export default {
|
|
|
42
42
|
headers() {
|
|
43
43
|
const headersFromSchema = this.$store.getters['type-map/headersFor'](this.schema);
|
|
44
44
|
|
|
45
|
-
[headersFromSchema[0], headersFromSchema[1]] = [headersFromSchema[1], headersFromSchema[0]];
|
|
46
|
-
headersFromSchema[0].width = '200px';
|
|
47
|
-
headersFromSchema[1].width = '100px';
|
|
48
45
|
// harvester is reusing this namespace.js to render ns page, we need to make sure harvester backend support quota schema to show this column.
|
|
49
46
|
if (this.hasHarvesterResourceQuotaSchema && Array.isArray(headersFromSchema) && headersFromSchema.length > 1) {
|
|
50
47
|
const columnIdx = headersFromSchema.length - 1;
|
|
@@ -307,18 +307,19 @@ export default {
|
|
|
307
307
|
<router-link
|
|
308
308
|
v-if="row.mgmt && row.mgmt.isReady && !row.hasError"
|
|
309
309
|
data-testid="cluster-manager-list-explore-management"
|
|
310
|
+
class="btn btn-sm role-secondary"
|
|
310
311
|
:to="{name: 'c-cluster', params: {cluster: row.mgmt.id}}"
|
|
311
312
|
>
|
|
312
|
-
|
|
313
|
-
{{ t('cluster.explore') }}
|
|
314
|
-
</a>
|
|
313
|
+
{{ t('cluster.explore') }}
|
|
315
314
|
</router-link>
|
|
316
|
-
<
|
|
317
|
-
data-testid="cluster-manager-list-explore"
|
|
315
|
+
<button
|
|
318
316
|
v-else
|
|
317
|
+
data-testid="cluster-manager-list-explore"
|
|
318
|
+
:disabled="true"
|
|
319
|
+
class="btn btn-sm role-secondary"
|
|
319
320
|
>
|
|
320
321
|
{{ t('cluster.explore') }}
|
|
321
|
-
</
|
|
322
|
+
</button>
|
|
322
323
|
</template>
|
|
323
324
|
</ResourceTable>
|
|
324
325
|
</div>
|
package/mixins/brand.js
CHANGED
|
@@ -175,24 +175,7 @@ export default {
|
|
|
175
175
|
const vars = createCssVars(color, this.theme, name);
|
|
176
176
|
|
|
177
177
|
for (const prop in vars) {
|
|
178
|
-
|
|
179
178
|
document.body.style.setProperty(prop, vars[prop]);
|
|
180
|
-
|
|
181
|
-
// 主色调hover值动态
|
|
182
|
-
if (prop === '--primary-hover-bg') {
|
|
183
|
-
// 如果是你要设置透明度的变量,比如 hover
|
|
184
|
-
let value = '#E8F4FF';
|
|
185
|
-
if (vars[prop]) {
|
|
186
|
-
const match = vars[prop].match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);
|
|
187
|
-
if (match) {
|
|
188
|
-
const [_, r, g, b] = match;
|
|
189
|
-
value = `rgba(${r}, ${g}, ${b}, 0.15)`;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
document.body.style.setProperty('--nav-hover-color', vars[prop]);
|
|
194
|
-
document.body.style.setProperty('--nav-active', value);
|
|
195
|
-
}
|
|
196
179
|
}
|
|
197
180
|
},
|
|
198
181
|
|
package/package.json
CHANGED
package/pages/account/index.vue
CHANGED
|
@@ -3,8 +3,7 @@ import BackLink from '@shell/components/BackLink';
|
|
|
3
3
|
import { MANAGEMENT, NORMAN } from '@shell/config/types';
|
|
4
4
|
import { SETTING } from '@shell/config/settings';
|
|
5
5
|
import Loading from '@shell/components/Loading';
|
|
6
|
-
|
|
7
|
-
import Principal from './pri.vue';
|
|
6
|
+
import Principal from '@shell/components/auth/Principal';
|
|
8
7
|
import BackRoute from '@shell/mixins/back-link';
|
|
9
8
|
import { mapGetters } from 'vuex';
|
|
10
9
|
|
|
@@ -17,7 +16,7 @@ const API_ENDPOINT = '/v3';
|
|
|
17
16
|
|
|
18
17
|
export default {
|
|
19
18
|
components: {
|
|
20
|
-
CopyToClipboardText, BackLink, Banner,
|
|
19
|
+
CopyToClipboardText, BackLink, Banner, Loading, ResourceTable, Principal, TabTitle
|
|
21
20
|
},
|
|
22
21
|
mixins: [BackRoute],
|
|
23
22
|
async fetch() {
|
|
@@ -152,37 +151,21 @@ export default {
|
|
|
152
151
|
<template>
|
|
153
152
|
<Loading v-if="$fetchState.pending" />
|
|
154
153
|
<div v-else>
|
|
155
|
-
|
|
154
|
+
<BackLink :link="backLink" />
|
|
156
155
|
<h1>
|
|
157
156
|
<TabTitle breadcrumb="vendor-only">
|
|
158
157
|
{{ t('accountAndKeys.title') }}
|
|
159
158
|
</TabTitle>
|
|
160
|
-
</h1>
|
|
161
|
-
<div class="api-key-title mb-20">
|
|
162
|
-
{{ t('accountAndKeys.title') }}
|
|
163
|
-
</div>
|
|
159
|
+
</h1>
|
|
164
160
|
|
|
165
|
-
|
|
161
|
+
<h2 v-t="'accountAndKeys.account.title'" />
|
|
166
162
|
<div class="account">
|
|
167
|
-
<div class="account-title">
|
|
168
|
-
{{ t('accountAndKeys.account.title') }}
|
|
169
|
-
</div>
|
|
170
163
|
<Principal
|
|
171
164
|
:value="principal.id"
|
|
172
165
|
:use-muted="false"
|
|
173
166
|
:show-labels="true"
|
|
174
|
-
|
|
175
|
-
>
|
|
176
|
-
<template #edit>
|
|
177
|
-
<span
|
|
178
|
-
v-if="canChangePassword"
|
|
179
|
-
class="edit-pass-txt"
|
|
180
|
-
@click="$refs.promptChangePassword.show(true)"
|
|
181
|
-
>修改
|
|
182
|
-
</span>
|
|
183
|
-
</template>
|
|
184
|
-
</Principal>
|
|
185
|
-
<!-- <div>
|
|
167
|
+
/>
|
|
168
|
+
<div>
|
|
186
169
|
<button
|
|
187
170
|
v-if="canChangePassword"
|
|
188
171
|
role="button"
|
|
@@ -190,25 +173,17 @@ export default {
|
|
|
190
173
|
type="button"
|
|
191
174
|
class="btn role-primary"
|
|
192
175
|
data-testid="account_change_password"
|
|
193
|
-
@click="
|
|
176
|
+
@click="showChangePasswordDialog"
|
|
194
177
|
>
|
|
195
178
|
{{ t("accountAndKeys.account.change") }}
|
|
196
179
|
</button>
|
|
197
|
-
</div>
|
|
180
|
+
</div>
|
|
198
181
|
</div>
|
|
199
|
-
<PromptChangePassword ref="promptChangePassword" />
|
|
200
182
|
|
|
201
|
-
|
|
202
|
-
<div
|
|
203
|
-
style=" border: 1px solid #d7d7d7;padding: 20px 20px 0px 20px;"
|
|
204
|
-
class="mt-20">
|
|
183
|
+
<hr role="none">
|
|
205
184
|
<div class="keys-header">
|
|
206
185
|
<div>
|
|
207
|
-
|
|
208
|
-
<div
|
|
209
|
-
v-t="'accountAndKeys.apiKeys.title'"
|
|
210
|
-
class="account-title mb-20"
|
|
211
|
-
/>
|
|
186
|
+
<h2 v-t="'accountAndKeys.apiKeys.title'" />
|
|
212
187
|
<div class="api-url">
|
|
213
188
|
<span>{{ t("accountAndKeys.apiKeys.apiEndpoint") }}</span>
|
|
214
189
|
<CopyToClipboardText
|
|
@@ -217,10 +192,20 @@ export default {
|
|
|
217
192
|
/>
|
|
218
193
|
</div>
|
|
219
194
|
</div>
|
|
195
|
+
<button
|
|
196
|
+
v-if="apiKeySchema"
|
|
197
|
+
role="button"
|
|
198
|
+
:aria-label="t('accountAndKeys.apiKeys.add.label')"
|
|
199
|
+
class="btn role-primary add mb-20"
|
|
200
|
+
data-testid="account_create_api_keys"
|
|
201
|
+
@click="addKey"
|
|
202
|
+
>
|
|
203
|
+
{{ t('accountAndKeys.apiKeys.add.label') }}
|
|
204
|
+
</button>
|
|
220
205
|
</div>
|
|
221
206
|
<div
|
|
222
207
|
v-if="apiKeySchema"
|
|
223
|
-
class="keys
|
|
208
|
+
class="keys"
|
|
224
209
|
>
|
|
225
210
|
<ResourceTable
|
|
226
211
|
:schema="apiKeySchema"
|
|
@@ -231,20 +216,7 @@ export default {
|
|
|
231
216
|
:search="true"
|
|
232
217
|
:row-actions="true"
|
|
233
218
|
:table-actions="true"
|
|
234
|
-
|
|
235
|
-
<template #header-right>
|
|
236
|
-
<button
|
|
237
|
-
v-if="apiKeySchema"
|
|
238
|
-
role="button"
|
|
239
|
-
:aria-label="t('accountAndKeys.apiKeys.add.label')"
|
|
240
|
-
class="btn role-primary add mb-20"
|
|
241
|
-
data-testid="account_create_api_keys"
|
|
242
|
-
@click="addKey"
|
|
243
|
-
>
|
|
244
|
-
{{ t('accountAndKeys.apiKeys.add.label') }}
|
|
245
|
-
</button>
|
|
246
|
-
</template>
|
|
247
|
-
</ResourceTable>
|
|
219
|
+
/>
|
|
248
220
|
</div>
|
|
249
221
|
<div v-else>
|
|
250
222
|
<Banner
|
|
@@ -253,7 +225,6 @@ export default {
|
|
|
253
225
|
/>
|
|
254
226
|
</div>
|
|
255
227
|
</div>
|
|
256
|
-
</div>
|
|
257
228
|
</template>
|
|
258
229
|
|
|
259
230
|
<style lang='scss' scoped>
|
|
@@ -262,12 +233,8 @@ export default {
|
|
|
262
233
|
}
|
|
263
234
|
|
|
264
235
|
.account {
|
|
265
|
-
|
|
266
|
-
justify-content: space-between
|
|
267
|
-
border: 1px solid #D7D7D7;
|
|
268
|
-
padding: 20px;
|
|
269
|
-
box-sizing: border-box;
|
|
270
|
-
|
|
236
|
+
display: flex;
|
|
237
|
+
justify-content: space-between
|
|
271
238
|
}
|
|
272
239
|
|
|
273
240
|
.keys-header {
|
|
@@ -280,10 +247,8 @@ export default {
|
|
|
280
247
|
.keys {
|
|
281
248
|
display: flex;
|
|
282
249
|
flex-direction: column;
|
|
283
|
-
margin-top: 20px;
|
|
284
250
|
.add {
|
|
285
251
|
align-self: flex-end;
|
|
286
|
-
margin-left: 10px
|
|
287
252
|
}
|
|
288
253
|
}
|
|
289
254
|
|
|
@@ -294,23 +259,4 @@ export default {
|
|
|
294
259
|
margin-right: 6px;
|
|
295
260
|
}
|
|
296
261
|
}
|
|
297
|
-
.api-key-title{
|
|
298
|
-
font-size: 26px;
|
|
299
|
-
/* line-height: 20px; */
|
|
300
|
-
font-weight: 400;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.edit-pass-txt{
|
|
304
|
-
cursor: pointer;
|
|
305
|
-
color: var(--primary);
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.table-account{
|
|
309
|
-
border: 1px solid #d7d7d7;
|
|
310
|
-
}
|
|
311
|
-
.account-title{
|
|
312
|
-
font-size: 14px;
|
|
313
|
-
line-height: 19px;
|
|
314
|
-
margin-bottom: 16px;
|
|
315
|
-
}
|
|
316
262
|
</style>
|