fix: align settings, modernize notifications and remove branding overrides
This commit is contained in:
1 parent
d3d164910b
commit
9110c8a9d5
55 files changed
+384
-304
No files matched your search
@@ -90,12 +90,8 @@
|
||||
<p class="field-hint">{{ t("settings.globalRules") }}</p>
|
||||
<Rules v-model:rules="settings.rules" />
|
||||
</section>
|
||||
<details class="card settings-section settings-wide">
|
||||
<details v-if="enableExec" class="card settings-section settings-wide">
|
||||
<summary>{{ t("sso.advancedSettings") }}</summary>
|
||||
<label class="settings-field"
|
||||
>{{ t("settings.brandingDirectoryPath")
|
||||
}}<input class="input" type="text" v-model="settings.branding.files"
|
||||
/></label>
|
||||
<template v-if="enableExec">
|
||||
<label class="settings-field"
|
||||
>{{ t("settings.executeOnShell")
|
||||
|
||||
@@ -8,22 +8,10 @@
|
||||
<p>{{ authStore.user?.email || authStore.user?.username }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="settings-account-links">
|
||||
<div>
|
||||
<span>{{ t("preferences.accountSettings") }}</span
|
||||
><a class="button button--flat" :href="baseURL + '/auth/account'"
|
||||
>{{ t("preferences.go")
|
||||
}}<i class="material-icons">north_east</i></a
|
||||
>
|
||||
</div>
|
||||
<div>
|
||||
<span>{{ t("preferences.password") }}</span
|
||||
><a class="button button--flat" :href="baseURL + '/auth/account'"
|
||||
>{{ t("preferences.go")
|
||||
}}<i class="material-icons">north_east</i></a
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<a class="button account-management" :href="baseURL + '/auth/account'"
|
||||
>{{ t("preferences.manage")
|
||||
}}<i class="material-icons">north_east</i></a
|
||||
>
|
||||
</section>
|
||||
<div class="settings-grid">
|
||||
<section class="card settings-section">
|
||||
|
||||
@@ -1,42 +1,42 @@
|
||||
<template>
|
||||
<errors v-if="error" :errorCode="error.status" />
|
||||
<div class="row" v-else-if="!layoutStore.loading">
|
||||
<div class="column">
|
||||
<div class="card">
|
||||
<div class="card-title">
|
||||
<h2>{{ t("settings.users") }}</h2>
|
||||
</div>
|
||||
|
||||
<div class="card-content full">
|
||||
<table>
|
||||
<tr>
|
||||
<th>{{ t("settings.username") }}</th>
|
||||
|
||||
<th>{{ t("settings.scope") }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<tr v-for="user in users" :key="user.id">
|
||||
<td>
|
||||
{{ user.displayName || user.username
|
||||
}}<small v-if="user.email" class="user-record-id">{{
|
||||
user.email
|
||||
}}</small>
|
||||
</td>
|
||||
<td>{{ user.scope }}</td>
|
||||
<td class="small">
|
||||
<router-link :to="'/settings/users/' + user.id"
|
||||
><i class="material-icons">mode_edit</i></router-link
|
||||
>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<section v-else-if="!layoutStore.loading" class="card users-card">
|
||||
<div class="card-title">
|
||||
<h2>{{ t("settings.users") }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="users-table-wrap">
|
||||
<table class="users-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">{{ t("settings.username") }}</th>
|
||||
<th scope="col">{{ t("settings.scope") }}</th>
|
||||
<th scope="col">
|
||||
<span class="visually-hidden">{{ t("buttons.update") }}</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="user in users" :key="user.id">
|
||||
<td>
|
||||
<strong>{{ user.displayName || user.username }}</strong
|
||||
><small v-if="user.email">{{ user.email }}</small>
|
||||
</td>
|
||||
<td class="user-scope">{{ user.scope }}</td>
|
||||
<td>
|
||||
<router-link
|
||||
class="user-edit"
|
||||
:to="'/settings/users/' + user.id"
|
||||
:title="t('buttons.update')"
|
||||
:aria-label="t('buttons.update')"
|
||||
><i class="material-icons">edit</i></router-link
|
||||
>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useLayoutStore } from "@/stores/layout";
|
||||
import { users as api } from "@/api";
|
||||
|
||||
Reference in new issue
Block a user