diff --git a/frontend/src/css/workspace.css b/frontend/src/css/workspace.css
index 8d67210d..0ccfd973 100644
--- a/frontend/src/css/workspace.css
+++ b/frontend/src/css/workspace.css
@@ -1,4 +1,159 @@
/* Lightweight workspace: system fonts, solid surfaces, no blur or filter layers. */
+.user-record-id {
+ display: block;
+ color: var(--textPrimary);
+ font-size: 11px;
+}
+.without-sidebar main {
+ width: auto;
+ max-width: 1200px;
+ margin: 0 auto 24px;
+ padding-inline: 24px;
+}
+.without-sidebar .menu-button {
+ display: none;
+}
+.sidebar-profile {
+ display: inline-flex;
+ flex-direction: column;
+ min-width: 0;
+ max-width: calc(100% - 38px);
+}
+.sidebar-profile strong,
+.sidebar-profile small {
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.sidebar-profile small {
+ color: var(--textPrimary);
+ font-weight: 400;
+ font-size: 11px;
+}
+nav .disk-usage {
+ margin: 28px 4px 12px;
+ padding: 14px;
+ border: 1px solid var(--borderPrimary);
+ border-radius: 12px;
+ background: var(--background);
+}
+.disk-usage-heading {
+ display: flex;
+ justify-content: space-between;
+ font-size: 12px;
+ color: var(--textSecondary);
+}
+.disk-usage progress {
+ display: block;
+ width: 100%;
+ height: 6px;
+ margin: 10px 0;
+ border: 0;
+ border-radius: 8px;
+ overflow: hidden;
+ background: var(--borderPrimary);
+ accent-color: var(--blue);
+}
+.disk-usage progress::-webkit-progress-bar {
+ background: var(--borderPrimary);
+}
+.disk-usage progress::-webkit-progress-value {
+ background: var(--blue);
+ border-radius: 8px;
+}
+.disk-usage progress::-moz-progress-bar {
+ background: var(--blue);
+ border-radius: 8px;
+}
+.disk-usage small {
+ display: block;
+ font-size: 11px;
+ color: var(--textPrimary);
+}
+.profile-summary {
+ display: flex;
+ flex-direction: column;
+ gap: 4px;
+ padding-bottom: 20px;
+ margin-bottom: 20px;
+ border-bottom: 1px solid var(--divider);
+ overflow-wrap: anywhere;
+}
+.profile-summary strong {
+ font-size: 20px;
+ color: var(--textSecondary);
+}
+#share.card {
+ width: min(620px, calc(100vw - 32px));
+ max-width: calc(100vw - 32px);
+}
+#share .card-content {
+ padding: 20px;
+}
+.share-links {
+ display: grid;
+ gap: 12px;
+}
+.share-link-card {
+ padding: 14px;
+ border: 1px solid var(--borderPrimary);
+ border-radius: 10px;
+ background: var(--background);
+}
+.share-link-details {
+ min-width: 0;
+}
+.share-link-name {
+ display: block;
+ overflow-wrap: anywhere;
+ color: var(--textSecondary);
+ font-weight: 600;
+}
+.share-link-details small {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ margin-top: 7px;
+ color: var(--textPrimary);
+}
+.share-link-details small i {
+ font-size: 16px;
+}
+.share-link-actions {
+ display: flex;
+ justify-content: flex-end;
+ gap: 6px;
+ margin-top: 8px;
+}
+.share-link-actions .action {
+ border: 1px solid var(--borderPrimary);
+ border-radius: 8px;
+ width: 38px;
+ height: 36px;
+ padding: 4px;
+}
+.share-link-actions .action:hover {
+ background: var(--hover);
+}
+.share-link-actions .share-link-delete {
+ color: var(--red);
+}
+.share-link-actions .action:disabled {
+ opacity: 0.4;
+ cursor: default;
+}
+.share__box__info {
+ max-width: 560px;
+}
+.share__box__center svg {
+ max-width: min(240px, 100%);
+ height: auto;
+ padding: 12px;
+ background: white;
+ border-radius: 10px;
+}
+.share__box__icon i {
+ font-size: 80px;
+}
:root {
--blue: #3563e9;
--dark-blue: #244bc2;
diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json
index 8e995ce1..607a738a 100644
--- a/frontend/src/i18n/en.json
+++ b/frontend/src/i18n/en.json
@@ -200,7 +200,7 @@
"allowNew": "Create new files and directories",
"allowPublish": "Publish new posts and pages",
"allowSignup": "Allow users to signup",
- "hideLoginButton": "Hide the login button from public pages",
+ "hideLoginButton": "Hide the sidebar on public pages",
"avoidChanges": "(leave blank to avoid changes)",
"branding": "Branding",
"brandingDirectoryPath": "Branding directory path",
@@ -247,10 +247,10 @@
"execute": "Execute commands",
"modify": "Edit files",
"rename": "Rename or move files and directories",
- "share": "Share files (require download permission)"
+ "share": "Share files (requires download permission)"
},
"permissions": "Permissions",
- "permissionsHelp": "You can set the user to be an administrator or choose the permissions individually. If you select \"Administrator\", all of the other options will be automatically checked. The management of users remains a privilege of an administrator.\n",
+ "permissionsHelp": "File access permissions. Administrators are determined by SSO roles.",
"profileSettings": "Profile Settings",
"redirectAfterCopyMove": "Redirect to destination after copy/move",
"ruleExample1": "prevents the access to any dotfile (such as .git, .gitignore) in every folder.\n",
@@ -260,7 +260,7 @@
"scope": "Scope",
"setDateFormat": "Set exact date format",
"settingsUpdated": "Settings updated!",
- "shareDuration": "Share Duration",
+ "shareDuration": "Link expiration",
"shareManagement": "Share Management",
"shareDeleted": "Share deleted!",
"singleClick": "Use single clicks to open files and directories",
@@ -318,6 +318,17 @@
"shortHint": "2–64 letters, digits, underscores or hyphens. Public names are discoverable; protect sensitive shares with a password.",
"workspace": "Your workspace",
"toggleTheme": "Switch theme",
- "itemsCount": "{count} items"
+ "itemsCount": "{count} items",
+ "storage": "Storage",
+ "editorTheme": "The editor follows the interface theme automatically."
+ },
+ "permissions": {
+ "create": "Create files and directories",
+ "delete": "Delete files and directories",
+ "download": "Download",
+ "execute": "Execute commands",
+ "modify": "Edit files",
+ "rename": "Rename or move files and directories",
+ "share": "Share files (requires download permission)"
}
}
diff --git a/frontend/src/i18n/ru.json b/frontend/src/i18n/ru.json
index 4f9cb16d..b9f81b8e 100644
--- a/frontend/src/i18n/ru.json
+++ b/frontend/src/i18n/ru.json
@@ -200,7 +200,7 @@
"allowNew": "Создание новых файлов или каталогов",
"allowPublish": "Публикация новых записей и страниц",
"allowSignup": "Разрешить пользователям регистрироваться",
- "hideLoginButton": "Спрятать кнопку входа с публичных страниц",
+ "hideLoginButton": "Спрятать боковое меню с публичных страниц",
"avoidChanges": "(оставьте поле пустым, чтобы избежать изменений)",
"branding": "Брендинг",
"brandingDirectoryPath": "Путь к каталогу брендов",
@@ -247,10 +247,10 @@
"execute": "Выполнять команды",
"modify": "Редактировать файлы",
"rename": "Переименовывать или перемещать файлы и каталоги",
- "share": "Share files (require download permission)"
+ "share": "Делиться файлами (требует разрешения на скачивание)"
},
"permissions": "Права доступа",
- "permissionsHelp": "Можно настроить пользователя как администратора или выбрать разрешения индивидуально. При выборе \"Администратор\", все остальные параметры будут автоматически выбраны. Управление пользователями - привилегия администратора.\n",
+ "permissionsHelp": "Права на работу с файлами. Администраторы определяются ролями SSO.",
"profileSettings": "Настройки профиля",
"redirectAfterCopyMove": "Redirect to destination after copy/move",
"ruleExample1": "предотвратить доступ к любому скрытому файлу (например: .git, .gitignore) в каждой папке.\n",
@@ -260,7 +260,7 @@
"scope": "Область",
"setDateFormat": "Установить точный формат даты",
"settingsUpdated": "Настройки применены!",
- "shareDuration": "Время расшаренной ссылки",
+ "shareDuration": "Срок действия ссылки",
"shareManagement": "Управление расшаренными ссылками",
"shareDeleted": "Расшаренная ссылка удалена!",
"singleClick": "Открытие файлов и каталогов одним кликом",
@@ -283,7 +283,7 @@
"currentPassword": "Your Current Password"
},
"sidebar": {
- "diskUsed": "{used} of {total} used",
+ "diskUsed": "Занято {used} из {total}",
"help": "Помощь",
"hugoNew": "Hugo New",
"login": "Войти",
@@ -315,6 +315,17 @@
"shortHint": "2–64 латинские буквы, цифры, дефис или подчёркивание. Для конфиденциальных файлов установите пароль ссылки.",
"workspace": "Файловое пространство",
"toggleTheme": "Переключить тему",
- "itemsCount": "Объектов: {count}"
+ "itemsCount": "Объектов: {count}",
+ "storage": "Хранилище",
+ "editorTheme": "Тема редактора автоматически соответствует теме интерфейса."
+ },
+ "permissions": {
+ "create": "Создавать файлы и каталоги",
+ "delete": "Удалять файлы и каталоги",
+ "download": "Скачивать",
+ "execute": "Выполнять команды",
+ "modify": "Редактировать файлы",
+ "rename": "Переименовывать или перемещать файлы и каталоги",
+ "share": "Делиться файлами (требует разрешения на скачивание)"
}
}
diff --git a/frontend/src/types/user.d.ts b/frontend/src/types/user.d.ts
index 70faed8f..e0720d54 100644
--- a/frontend/src/types/user.d.ts
+++ b/frontend/src/types/user.d.ts
@@ -1,5 +1,7 @@
interface IUser {
displayName?: string;
+ profileName?: string;
+ email?: string;
id: number;
username: string;
password: string;
diff --git a/frontend/src/utils/editor-theme.ts b/frontend/src/utils/editor-theme.ts
index cf02d4f7..4d0d71d8 100644
--- a/frontend/src/utils/editor-theme.ts
+++ b/frontend/src/utils/editor-theme.ts
@@ -1,9 +1,7 @@
-import "ace-builds";
-import { themesByName } from "ace-builds/src-noconflict/ext-themelist";
+import "ace-builds/src-noconflict/theme-chrome";
+import "ace-builds/src-noconflict/theme-twilight";
import { getTheme } from "./theme";
-export const getEditorTheme = (themeName: string) => {
- const key = themeName.replace(/^ace\/theme\//, "");
- if (themesByName[key] !== undefined) return `ace/theme/${key}`;
+export const getEditorTheme = () => {
return getTheme() === "dark" ? "ace/theme/twilight" : "ace/theme/chrome";
};
diff --git a/frontend/src/views/Layout.vue b/frontend/src/views/Layout.vue
index 5a91bee5..c8ffd3d4 100644
--- a/frontend/src/views/Layout.vue
+++ b/frontend/src/views/Layout.vue
@@ -1,5 +1,5 @@
-
+
-
+
route.name === "Share" && hideLoginButton);
const sentPercent = computed(() =>
((uploadStore.sentBytes / uploadStore.totalBytes) * 100).toFixed(2)
diff --git a/frontend/src/views/Share.vue b/frontend/src/views/Share.vue
index 12f8f8f2..c3ae89ee 100644
--- a/frontend/src/views/Share.vue
+++ b/frontend/src/views/Share.vue
@@ -1,6 +1,6 @@