Skip to content

📚 The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

feat: improve UI, and improve behavior of certain components (#590)

Smaugaac31c73d3de
diff --git a/backend/repositories/user.repository.go b/backend/repositories/user.repository.go
index 82a04f97..e0adbf2f 100644
--- a/backend/repositories/user.repository.go
+++ b/backend/repositories/user.repository.go
@@ -104,17 +104,44 @@ func (r *UserRepositoryImpl) HasPassword(id types.Snowflake) (bool, error) {
func (r *UserRepositoryImpl) SearchPublic(query string) ([]*models.User, error) {
var users []*models.User
+
+ if len(query) < 3 {
+ return users, nil
+ }
+
err := r.db.Select(&users, `
- SELECT id, username, avatar, created_timestamp, updated_timestamp
- FROM users
- WHERE username = ? OR email = ? OR id = ?
- LIMIT 10`, query, query, query)
+ SELECT
+ id,
+ username,
+ avatar,
+ created_timestamp,
+ updated_timestamp
+ FROM users
+ WHERE
+ username LIKE ?
+ OR email = ?
+ OR id = ?
+ ORDER BY
+ CASE
+ WHEN username = ? THEN 0
+ WHEN username LIKE ? THEN 1
+ ELSE 2
+ END,
+ username ASC
+ LIMIT 10`,
+ "%"+query+"%",
+ query,
+ query,
+ query,
+ query+"%",
+ )
+
if err != nil {
return nil, fmt.Errorf("failed to search public users: %w", err)
}
+
return users, nil
}
-
func (r *UserRepositoryImpl) CheckUsernameExists(username string) (bool, error) {
var count int
err := r.db.Get(&count, `SELECT COUNT(*) FROM users WHERE username = ?`, username)
diff --git a/frontend/app/components/AppBtnIcon.vue b/frontend/app/components/AppBtnIcon.vue
index b2948c0f..378cf6e9 100644
--- a/frontend/app/components/AppBtnIcon.vue
+++ b/frontend/app/components/AppBtnIcon.vue
@@ -5,23 +5,41 @@
:href="href"
:target="blank ? '_blank' : undefined"
v-bind="download ? { download: '' } : {}"
- :class="{ 'btn-nav': nav }"
+ :class="[{ 'btn-nav': nav }, display]"
@click="emit('click')"
>
- <Icon :name="icon" display="lg" />
+ <Icon :name="icon" :display="display" fill="var(--btn-fill)" />
<slot />
<span v-if="tooltip" class="hint-tooltip btn-tooltip">{{ tooltip }}</span>
</NuxtLink>
- <button v-else v-bind="attrs" :class="{ fill, 'btn-nav': nav }" @click="emit('click')">
- <Icon :name="icon" display="lg" />
+ <button v-else v-bind="attrs" :class="[{ fill, 'btn-nav': nav }, display]" @click="emit('click')">
+ <Icon :name="icon" :display="display" fill="var(--btn-fill)" />
<slot />
<span v-if="tooltip" class="hint-tooltip btn-tooltip">{{ tooltip }}</span>
</button>
</template>
<script setup lang="ts">
-defineProps<{ icon: string; tooltip?: string; to?: string; blank?: boolean; href?: string; download?: boolean; nav?: boolean; fill?: boolean }>();
+withDefaults(
+ defineProps<{
+ icon: string;
+ tooltip?: string;
+ to?: string;
+ blank?: boolean;
+ href?: string;
+ download?: boolean;
+ nav?: boolean;
+ fill?: boolean;
+ display?: 'sm' | 'md' | 'lg';
+ }>(),
+ {
+ tooltip: undefined,
+ to: undefined,
+ href: undefined,
+ display: 'lg',
+ },
+);
const emit = defineEmits<{ (e: 'click'): void }>();
const attrs = useAttrs();
@@ -30,24 +48,37 @@ const attrs = useAttrs();
<style scoped lang="scss">
button,
a {
+ --btn-fill: var(--text-primary-light);
+
position: relative;
display: inline-flex;
align-items: center;
gap: 7px;
margin: 0 1px;
- padding: 4.5px;
- border-bottom: 2px solid transparent;
border-radius: var(--radius-sm);
transition:
background-color $transition-fast ease-in-out,
border-color $transition-fast ease-in-out;
&:hover {
+ --btn-fill: var(--text-inverse);
+
background-color: var(--surface-raised);
}
+
+ &.sm {
+ padding: 2px;
+ }
+
+ &.md {
+ padding: 3px;
+ }
+
+ &.lg {
+ padding: 4.5px;
+ }
}
-// Gestion du survol pour Desktop uniquement (au-dessus de 768px)
@media screen and (width > 768px) {
a:hover > .btn-tooltip,
button:hover > .btn-tooltip {
@@ -60,7 +91,6 @@ a {
background-color: var(--surface-raised);
}
-// Le fix magique pour Mobile
@media screen and (width <= 768px) {
.btn-tooltip {
position: static !important;
diff --git a/frontend/app/components/AppButton.vue b/frontend/app/components/AppButton.vue
index a97c7d25..c557db27 100644
--- a/frontend/app/components/AppButton.vue
+++ b/frontend/app/components/AppButton.vue
@@ -16,9 +16,10 @@ button {
align-items: center;
gap: 0.5rem;
width: fit-content;
- padding: 10px;
+ padding: 9px;
border-radius: var(--radius-sm);
font-size: 0.9rem;
+ font-weight: 450;
white-space: nowrap;
&:disabled {
diff --git a/frontend/app/components/AppPreferenceInputSection.vue b/frontend/app/components/AppPreferenceInputSection.vue
index d8227893..11c168cb 100644
--- a/frontend/app/components/AppPreferenceInputSection.vue
+++ b/frontend/app/components/AppPreferenceInputSection.vue
@@ -106,7 +106,7 @@ const p = preferencesStore.get as <K extends PreferenceKey>(key: K) => ReturnTyp
align-items: flex-start;
gap: 1rem;
width: 100%;
- margin-bottom: 1rem;
+ margin: 2rem 0;
&--vertical {
flex-direction: column;
@@ -115,13 +115,13 @@ const p = preferencesStore.get as <K extends PreferenceKey>(key: K) => ReturnTyp
label {
flex: 1;
+ font-size: 1rem;
font-weight: 400;
}
.description {
margin-top: 0.25rem;
- margin-left: 2px;
- font-size: 0.85rem;
+ font-size: 0.9rem;
color: var(--text-secondary);
}
diff --git a/frontend/app/components/AppSelect.vue b/frontend/app/components/AppSelect.vue
index 6baf5fa3..37f3af3d 100644
--- a/frontend/app/components/AppSelect.vue
+++ b/frontend/app/components/AppSelect.vue
@@ -25,7 +25,15 @@
<Icon name="close" display="sm" fill="var(--text-secondary)" />
<span>Clear selection</span>
</li>
- <AppSelectNode v-for="item in filteredItems" :key="item.id" :node="item" :level="0" :disabled="disabled" @select="handleSelect" />
+ <AppSelectNode
+ v-for="item in filteredItems"
+ :key="item.id"
+ :node="item"
+ :level="0"
+ :disabled="disabled"
+ :selected-id="selectedId"
+ @select="handleSelect"
+ />
<slot name="list-footer"></slot>
</ul>
</Teleport>
@@ -263,50 +271,115 @@ const filterRecursive = <T extends ANode>(items: T[], filter: Ref<string>): T[]
.select {
position: relative;
width: 100%;
- margin: 0;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
+ font-family: $font-ui;
background: var(--surface-base);
+ box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
+ transition:
+ border-color $transition-fast,
+ box-shadow $transition-fast;
+
+ &:hover {
+ border-color: var(--text-secondary);
+ }
+
+ &[style*='var(--primary)'] {
+ box-shadow: var(--shadow-sm);
+ }
}
.trigger {
display: flex;
justify-content: space-between;
align-items: center;
- padding: 2px;
+ padding: 1px 6px;
}
.value {
- height: 30px;
+ height: 32px;
+ padding: 0 12px;
+ cursor: pointer;
+
+ svg {
+ flex-shrink: 0;
+ opacity: 0.7;
+ transition: transform $transition-fast;
+ transform: rotate(180deg);
+
+ &.rotated {
+ transform: rotate(360deg);
+ }
+ }
}
-button,
-.search {
+button.value {
width: 100%;
- height: 34px;
- padding: 6px 10px;
- border-radius: var(--radius-sm);
+ padding: 0;
+ border: none;
font-size: 0.95rem;
text-align: left;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ background: transparent;
cursor: pointer;
+ overflow: hidden;
+
+ &:focus {
+ outline: none;
+ }
}
.search {
- padding: 7px 10px;
+ width: 100%;
+ height: 32px;
+ padding: 0 6px;
border: none;
- cursor: text;
+ border-radius: var(--radius-sm);
+ font-size: 0.95rem;
+ color: var(--text-body);
+ background: transparent;
+
+ &:focus {
+ outline: none;
+ }
}
+// ===========================
+// Desktop Dropdown (Portal)
+// ===========================
.dropdown {
- max-height: 300px;
- margin: 0;
+ max-height: 280px;
+ margin: 4px 0 0;
padding: 2px;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--surface-base);
- box-shadow: var(--shadow-sm);
+ box-shadow: var(--shadow-sm), var(--shadow-md);
+ animation: dropdown-fade-in $transition-fast;
list-style: none;
overflow-y: auto;
+
+ &::-webkit-scrollbar {
+ width: 5px;
+ }
+
+ &::-webkit-scrollbar-thumb {
+ border-radius: 4px;
+ background: var(--border);
+ }
+}
+
+@keyframes dropdown-fade-in {
+ from {
+ opacity: 0;
+ transform: translateY(-4px);
+ }
+
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
}
// ===========================
@@ -318,7 +391,8 @@ button,
display: flex;
justify-content: center;
align-items: flex-end;
- background: var(--overlay-backdrop);
+ background: rgb(0 0 0 / 40%);
+ backdrop-filter: blur(4px);
inset: 0;
}
@@ -326,10 +400,11 @@ button,
display: flex;
flex-direction: column;
width: 100%;
- max-height: 85vh;
- border-radius: var(--surface-sheet-radius);
+ max-height: 80vh;
+ border-radius: 16px 16px 0 0;
background: var(--surface-base);
- animation: slide-up $transition-medium ease-out;
+ box-shadow: var(--shadow-sm), var(--shadow-md);
+ animation: slide-up $transition-medium cubic-bezier(0.16, 1, 0.3, 1);
header {
display: flex;
@@ -352,25 +427,32 @@ button,
}
.sheet-title {
- font-size: 1.1rem;
+ font-size: 1.05rem;
font-weight: 600;
+ color: var(--text-body);
}
.close-btn {
display: flex;
justify-content: center;
align-items: center;
- width: 36px;
- height: 36px;
+ width: 32px;
+ height: 32px;
padding: 0;
border: none;
border-radius: 50%;
background: var(--surface-raised);
cursor: pointer;
- transition: background 0.2s;
+ transition:
+ background $transition-fast,
+ transform 0.1s;
&:hover {
- background: var(--selection-color);
+ background: var(--border);
+ }
+
+ &:active {
+ transform: scale(0.95);
}
}
@@ -378,48 +460,63 @@ button,
display: flex;
flex-shrink: 0;
align-items: center;
- gap: 8px;
- padding: 12px 16px;
+ gap: 10px;
+ height: 44px;
+ margin: 16px 20px 8px;
+ padding: 0 14px;
+ border: 1px solid var(--border);
border-bottom: 1px solid var(--border);
- background: var(--surface-raised);
+ border-radius: var(--radius-sm);
+ background: var(--surface-base);
+ transition:
+ border-color $transition-fast,
+ box-shadow $transition-fast;
+
+ &:focus-within {
+ border-color: var(--primary);
+ box-shadow: var(--shadow-sm);
+ }
input {
flex: 1;
- height: 40px;
+ height: 100%;
padding: 8px 12px;
+ border: none;
+ font-size: 0.95rem;
+ color: var(--text-body);
+ background: transparent;
+
+ &:focus {
+ outline: none;
+ }
}
}
.sheet-list {
flex: 1;
margin: 0;
- padding: 8px;
+ padding: 12px 16px;
list-style: none;
-webkit-overflow-scrolling: touch;
overflow-y: auto;
:deep(.tree-node) {
- padding: 14px 16px;
+ display: flex;
+ align-items: center;
+ margin-bottom: 2px;
+ padding: 10px 12px;
border-radius: var(--radius-sm);
- font-size: 1rem;
- transition: background 0.15s;
-
- &:active {
- background: var(--selection-color);
+ font-size: 0.95rem;
+ color: var(--text-body);
+ cursor: pointer;
+ transition:
+ background $transition-fast,
+ color $transition-fast;
+
+ &:hover {
+ background: var(--surface-raised);
}
}
-
- :deep(.tree-node.selected) {
- font-weight: 500;
- color: var(--primary);
- background: var(--selection-color);
- }
-}
-
-.empty {
- padding: 24px 16px;
- color: var(--text-secondary);
- text-align: center;
}
.clear {
@@ -427,46 +524,31 @@ button,
align-items: center;
gap: 8px;
margin: 2px 0 6px;
- padding: 6px 12px;
+ margin-bottom: 8px;
+ padding: 4px 6px;
border-bottom: 1px solid var(--border);
- border-radius: var(--radius-xs);
+ border-radius: var(--radius-sm);
font-size: 0.9rem;
color: var(--text-secondary);
cursor: pointer;
transition:
- color 0.15s ease,
- background-color 0.15s ease;
+ background $transition-fast,
+ color $transition-fast;
&:hover {
color: var(--red);
- background: var(--selection-color);
+ background: var(--surface-raised);
:deep(svg) {
fill: var(--red);
}
}
-
- span {
- font-weight: 400;
- }
}
-// Transitions
-.sheet-enter-active,
-.sheet-leave-active {
- transition: opacity $transition-medium ease;
-
- .sheet {
- transition: transform $transition-medium ease;
- }
-}
-
-.sheet-enter-from,
-.sheet-leave-to {
- opacity: 0;
-
- .sheet {
- transform: translateY(100%);
- }
+.empty {
+ padding: 32px 16px;
+ font-size: 0.9rem;
+ color: var(--text-secondary);
+ text-align: center;
}
</style>
diff --git a/frontend/app/components/AppSelectNode.vue b/frontend/app/components/AppSelectNode.vue
index 0374acf3..bae9a151 100644
--- a/frontend/app/components/AppSelectNode.vue
+++ b/frontend/app/components/AppSelectNode.vue
@@ -2,14 +2,23 @@
<li>
<div
class="tree-node"
- :style="{ marginLeft: `${level * 20}px`, fontWeight: node.children?.length ? 500 : 400 }"
+ :style="{ marginLeft: `${level * 20}px`, fontWeight: node.children?.length ? 700 : 500 }"
:disabled="disabled && disabled(node)"
+ :class="{ selected: node.id === selectedId }"
@click.stop="select"
>
{{ node.label }}
</div>
<ul v-if="node.children?.length">
- <AppSelectNode v-for="child in node.children" :key="child.id" :node="child" :level="level + 1" :disabled="disabled" @select="$emit('select', $event)" />
+ <AppSelectNode
+ v-for="child in node.children"
+ :key="child.id"
+ :node="child"
+ :level="level + 1"
+ :disabled="disabled"
+ :selected-id="selectedId"
+ @select="$emit('select', $event)"
+ />
</ul>
</li>
</template>
@@ -19,6 +28,7 @@ const props = defineProps<{
node: ANode;
level: number;
disabled?: (i: ANode) => boolean;
+ selectedId?: string | number;
}>();
const emit = defineEmits(['select']);
@@ -29,12 +39,13 @@ function select() {
}
</script>
-<style scoped>
+<style scoped lang="scss">
.tree-node {
display: block;
margin: 0 auto;
padding: 4px 6px;
border-radius: var(--radius-xs);
+ font-family: $font-ui;
font-size: 0.85rem;
text-align: left;
cursor: pointer;
@@ -44,6 +55,10 @@ function select() {
background-color: var(--selection-color);
}
+.selected {
+ background-color: var(--selection-color);
+}
+
ul,
li {
margin: 0;
diff --git a/frontend/app/components/Node/Action/ContextMenu.vue b/frontend/app/components/Node/Action/ContextMenu.vue
index ae38c46e..699cafa9 100644
--- a/frontend/app/components/Node/Action/ContextMenu.vue
+++ b/frontend/app/components/Node/Action/ContextMenu.vue
@@ -1,7 +1,7 @@
<template>
<div class="context-menu" :class="{ 'is-context-menu': props.contextMenu }">
<div class="menu-header">
- <img :src="avatarURL(user)" alt="" class="avatar" />
+ <UserAvatar :user="user" square />
<div class="header-info">
<span class="header-name">{{ node.name }}</span>
<span class="header-meta">{{ user?.username }} · {{ shortDate(node.updated_timestamp) }}</span>
@@ -51,7 +51,6 @@ const userStore = useUserStore();
const preferences = usePreferencesStore();
const { t } = useI18nT();
const { shortDate } = useDateFormatters();
-const { avatarURL } = useApi();
const router = useRouter();
const route = useRoute();
const modals = useModal();
@@ -110,15 +109,6 @@ async function action(name: string) {
align-items: center;
gap: 10px;
margin-bottom: 6px;
- padding: 8px 10px 12px;
- border-bottom: 1px solid var(--border);
-
- .avatar {
- width: 32px;
- height: 32px;
- border-radius: var(--radius-sm);
- object-fit: cover;
- }
}
.header-info {
diff --git a/frontend/app/components/Node/Action/ResourceContextMenu.vue b/frontend/app/components/Node/Action/ResourceContextMenu.vue
index 45221bda..8fa035d8 100644
--- a/frontend/app/components/Node/Action/ResourceContextMenu.vue
+++ b/frontend/app/components/Node/Action/ResourceContextMenu.vue
@@ -1,7 +1,7 @@
<template>
<div class="context-menu">
<div class="menu-header">
- <img :src="avatarURL(user)" alt="" class="avatar" />
+ <UserAvatar :user="user" square />
<div class="header-info">
<span class="header-name">{{ node.name }}</span>
<span class="header-meta">{{ user?.username }} · {{ shortDate(node.updated_timestamp) }}</span>
@@ -46,7 +46,7 @@ const userStore = useUserStore();
const preferences = usePreferencesStore();
const { t } = useI18nT();
const { shortDate } = useDateFormatters();
-const { avatarURL, resourceURL } = useApi();
+const { resourceURL } = useApi();
const modal = useModal();
const notifications = useNotifications();
const router = useRouter();
diff --git a/frontend/app/components/Node/Document/Header.vue b/frontend/app/components/Node/Document/Header.vue
index 689eaa77..6e8f93f6 100644
--- a/frontend/app/components/Node/Document/Header.vue
+++ b/frontend/app/components/Node/Document/Header.vue
@@ -12,14 +12,14 @@
<div class="content">
<div class="infos">
<p class="user">
- <img v-if="user" :src="avatarURL(user)" alt="avatar" class="avatar" />
+ <UserAvatar :user="user" />
<span style="font-size: 16px; color: var(--text-secondary)">{{ user?.username }}</span>
</p>
<NuxtLink class="category" :to="`/dashboard/categories/${category?.id}`">{{ category?.name || 'Uncategorized' }}</NuxtLink>
<h1 :class="{ public: public }">{{ doc?.name }}</h1>
- <Teleport v-if="!public" to="#navbar-title">
- <Icon :name="doc.icon || 'files'" display="xl" :class="['parent-icon', getAppAccent(doc.color as number, true)]" />
- {{ doc.name }}
+ <Teleport v-if="!public && category" to="#navbar-title">
+ <Icon :name="category.icon || 'files'" display="xl" :class="['parent-icon', getAppAccent(category.color as number, true)]" />
+ {{ category.name }}
</Teleport>
<p class="description">{{ doc?.description }}</p>
<NodeTagList v-if="doc.tags" :tags="doc.tags" :clickable="!public" class="tags" />
@@ -41,7 +41,6 @@ const props = defineProps<{ doc?: Node; public?: boolean }>();
const userStore = useUserStore();
const preferences = usePreferencesStore();
-const { avatarURL } = useApi();
const nodesTree = useNodesTree();
const { getAppAccent } = useAppColors();
@@ -147,14 +146,6 @@ h1 {
}
}
-.avatar {
- width: 25px;
- height: 25px;
- margin: 0;
- padding: 0;
- border-radius: 50%;
-}
-
@media print {
.print-style {
align-items: center;
diff --git a/frontend/app/components/Node/Modals/Metadata.vue b/frontend/app/components/Node/Modals/Metadata.vue
index 587ad611..22cc11a5 100644
--- a/frontend/app/components/Node/Modals/Metadata.vue
+++ b/frontend/app/components/Node/Modals/Metadata.vue
@@ -69,10 +69,11 @@ watch(
);
</script>
-<style scoped>
+<style scoped lang="scss">
.modal-content {
display: flex;
flex-direction: column;
+ font-family: $font-ui;
}
.inline-input {
diff --git a/frontend/app/components/Node/Modals/Permissions.vue b/frontend/app/components/Node/Modals/Permissions.vue
index 197343db..24206c8f 100644
--- a/frontend/app/components/Node/Modals/Permissions.vue
+++ b/frontend/app/components/Node/Modals/Permissions.vue
@@ -7,15 +7,16 @@
<!-- Accessibility 3: Public document -->
<div v-if="node.accessibility === 3" class="public-info">
<p class="info-text">{{ t('nodes.modals.permissions.publicInfo') }}</p>
- <p class="info-text">
- {{ t('nodes.modals.permissions.shareLink') }}
- <br />
- <a :href="link" target="_blank" rel="noopener noreferrer" class="public-link">
- <Icon name="new_tab" display="sm" fill="var(--text-secondary)" /><span>{{ link }}</span>
+ <p class="info-text">{{ t('nodes.modals.permissions.shareLink') }}</p>
+ <span class="public-link">
+ <a :href="link" target="_blank" rel="noopener noreferrer">
+ <Icon name="new_tab" display="sm" fill="var(--text-secondary)" />
+ {{ link }}
</a>
- </p>
+ <AppBtnIcon icon="copy" display="md" @click="copyLink" />
+ </span>
<div class="access">
- <p for="access">{{ t('nodes.modals.permissions.defaultPermission') }}</p>
+ <label for="access">{{ t('nodes.modals.permissions.defaultPermission') }}</label>
<AppSelect v-model="node.access" :items="DOCUMENT_GENERAL_ACCESS" :searchable="false" size="150px" placeholder="Default" />
</div>
</div>
@@ -28,7 +29,7 @@
<div v-for="user in users" :key="user.id" class="user-card">
<div class="user-info-row">
<span class="user-meta">
- <img :src="avatarURL(user)" alt="avatar" class="avatar" />
+ <UserAvatar :user="user" display="lg" />
<span>{{ user.username }}</span>
</span>
<div class="user-actions">
@@ -48,7 +49,7 @@
<li v-for="perm in node.permissions" :key="perm.id" class="permission-item">
<div class="user-info-row">
<span class="user-meta">
- <img :src="avatarURL(usersStore.getById(perm.user_id))" alt="avatar" class="avatar" />
+ <UserAvatar :user="usersStore.getById(perm.user_id)" display="lg" />
<span>{{ usersStore.getById(perm.user_id)?.username }}</span>
</span>
@@ -109,7 +110,6 @@ const usersStore = useUserStore();
const nodesStore = useNodesStore();
const nodesPermissionsStore = useNodesPermissionsStore();
-const { avatarURL } = useApi();
const { shortDate } = useDateFormatters();
const notifications = useNotifications();
@@ -171,6 +171,11 @@ watch(
// Actions
+const copyLink = async () => {
+ await navigator.clipboard.writeText(link.value);
+ notifications.add({ type: 'success', title: 'Link copied to clipboard' });
+};
+
const addPermission = async (user: PublicUser) => {
if (!user) return;
await nodesPermissionsStore.addPermission({
@@ -240,6 +245,7 @@ const copyInvitationLink = async (code: string) => {
display: flex;
flex-direction: column;
gap: 15px;
+ font-family: $font-ui;
}
h2 {
@@ -249,13 +255,6 @@ h2 {
font-size: 20px;
}
-form {
- display: flex;
- flex-direction: column;
- gap: 10px;
- padding: 0 4px;
-}
-
.user-card {
display: flex;
flex-direction: column;
@@ -275,12 +274,6 @@ form {
display: flex;
align-items: center;
gap: 10px;
-
- .avatar {
- width: 30px;
- height: 30px;
- border-radius: 50%;
- }
}
.user-actions {
@@ -303,17 +296,29 @@ form {
.info-text {
margin: 5px 0;
- font-size: 14px;
+ font-size: 13.5px;
color: var(--text-secondary);
}
+}
- .public-link {
+.public-link {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ gap: 2px;
+ padding: 6px 10px;
+ border-radius: var(--radius-sm);
+ font-size: 13px;
+ color: var(--primary);
+ text-decoration: underline;
+ word-break: break-all;
+ background-color: var(--surface-raised);
+
+ a {
display: flex;
- align-items: flex-end;
- gap: 2px;
+ align-items: center;
+ gap: 5px;
color: var(--primary);
- text-decoration: underline;
- word-break: break-all;
}
}
diff --git a/frontend/app/components/Node/TOC/TOC.vue b/frontend/app/components/Node/TOC/TOC.vue
index 1d9ea73d..4c6b058e 100644
--- a/frontend/app/components/Node/TOC/TOC.vue
+++ b/frontend/app/components/Node/TOC/TOC.vue
@@ -1,21 +1,33 @@
<template>
- <aside>
- <h4 v-if="doc?.tags">{{ t('nodes.tags') }}</h4>
- <div v-if="doc?.tags" class="tags">
- <tag v-for="tag in doc?.tags.split(',')" :key="tag" class="primary">#{{ tag.trim() }}</tag>
- </div>
- <ul ref="list" style="position: relative">
- <div v-if="headers.length" ref="marker" class="marker" />
- <h4>{{ t('nodes.document.TOC') }}</h4>
- <div v-if="headers.length">
- <NodeTOCLevel v-for="header of headers_tree" :key="header.link" :node="header" style="padding-left: 10px" />
+ <aside class="document-sidebar">
+ <section v-if="doc?.tags" class="sidebar-section">
+ <h3 class="section-title">{{ t('nodes.tags') }}</h3>
+ <div class="tags-container">
+ <NodeTagList :tags="doc.tags" />
</div>
- <p v-else>{{ t('common.nothing') }}</p>
- </ul>
- <h4 v-if="childs.length">{{ t('nodes.document.childs') }}</h4>
- <NuxtLink v-for="child in childs" :key="child.id" :to="`/dashboard/docs/${child.id}`" class="child-link">
- <Icon name="file_shortcut" fill="var(--primary)" />{{ child.name as string }}
- </NuxtLink>
+ </section>
+
+ <section class="sidebar-section">
+ <h3 class="section-title">{{ t('nodes.document.TOC') }}</h3>
+ <div class="toc-wrapper">
+ <div v-if="headers.length" ref="marker" class="active-marker" />
+
+ <div v-if="headers.length" ref="list" class="toc-tree">
+ <NodeTOCLevel v-for="header of headers_tree" :key="header.link" :node="header" />
+ </div>
+ <p v-else class="empty-state">{{ t('common.nothing') }}</p>
+ </div>
+ </section>
+
+ <section v-if="childs.length" class="sidebar-section">
+ <h3 class="section-title">{{ t('nodes.document.childs') }}</h3>
+ <nav class="children-links">
+ <NuxtLink v-for="child in childs" :key="child.id" :to="`/dashboard/docs/${child.id}`" class="child-link">
+ <Icon name="file_shortcut" fill="var(--primary)" />
+ <span class="child-name">{{ child.name }}</span>
+ </NuxtLink>
+ </nav>
+ </section>
</aside>
</template>
@@ -23,9 +35,7 @@
import type { Node } from '~/stores';
const props = defineProps<{ element?: HTMLElement; doc?: Node }>();
-
const nodesStore = useNodesStore();
-
const { t } = useI18nT();
const childs = computed(
@@ -37,6 +47,8 @@ const childs = computed(
);
const list = ref<HTMLElement>();
+const marker = ref<HTMLElement>();
+const appElement = ref<HTMLElement | null>(null);
interface GroupedHeaders {
title: string;
@@ -52,21 +64,17 @@ interface TreeItem {
const getHTMLHeaders = (): HTMLElement[] => {
if (!props.element) return [];
- const headers = props.element.querySelectorAll('h1, h2, h3, h4, h5, h6') as NodeListOf<HTMLElement>;
- return Array.from(headers);
+ return Array.from(props.element.querySelectorAll('h1, h2, h3, h4, h5, h6'));
};
function getHeaders(headers: HTMLElement[]): GroupedHeaders[] {
- const tree: GroupedHeaders[] = [];
- for (const header of headers) {
- const level = parseInt(header.tagName[1] || '1');
- const title = header.textContent?.replace(/#/g, '') || '';
- const link = `#${header.id}`;
- const node: GroupedHeaders = { title, link, level };
- tree.push(node);
- }
- return tree;
+ return headers.map(header => ({
+ title: header.textContent?.replace(/#/g, '') || '',
+ link: `#${header.id}`,
+ level: parseInt(header.tagName[1] || '1'),
+ }));
}
+
function buildTree(tree: GroupedHeaders[]): TreeItem[] {
const result: TreeItem[] = [];
const stack: TreeItem[] = [];
@@ -89,12 +97,6 @@ function buildTree(tree: GroupedHeaders[]): TreeItem[] {
const headers = computed(() => getHTMLHeaders());
const headers_tree = computed(() => buildTree(getHeaders(headers.value)));
-// On scroll, highlight the current header
-
-const marker = ref<HTMLElement>();
-
-const appElement = ref<HTMLElement | null>(null);
-
onMounted(() => {
appElement.value = document.getElementById('app');
appElement.value?.addEventListener('scroll', updateActiveHeader, { passive: true });
@@ -129,63 +131,145 @@ function updateActiveHeader() {
</script>
<style lang="scss" scoped>
-h4 {
- font-size: 12px;
- color: var(--text-secondary);
+.document-sidebar {
+ position: sticky;
+ top: 40px;
+ display: flex;
+ flex-direction: column;
+ gap: 32px;
+ width: 280px;
+ max-height: calc(100vh - 80px);
+ padding: 0 24px;
+ overflow-y: auto;
+}
+
+.sidebar-section {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+}
+
+.section-title {
+ margin: 0;
+ font-size: 11px;
+ font-weight: 600;
+ color: var(--text-secondary, var(--text-muted));
text-transform: uppercase;
+ letter-spacing: 0.05em;
}
-aside {
- position: sticky;
- top: 20px;
- width: 350px;
- padding: 0 15px;
+/* TAGS */
+.tags-container {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+}
+
+.modern-tag {
+ padding: 4px 8px;
+ border: 1px solid transparent;
+ border-radius: 4px;
+ font-size: 12px;
+ color: var(--text-body);
+ background: var(--surface-raised);
+ transition: all 0.2s ease;
+
+ &:hover {
+ border-color: var(--border);
+ color: var(--primary);
+ }
+}
+
+/* TOC */
+.toc-wrapper {
+ position: relative;
+ padding-left: 12px;
border-left: 1px solid var(--border);
- font-size: 0.8rem;
}
-.tags {
+.toc-tree {
display: flex;
- flex-wrap: wrap;
- font-size: 14px;
+ flex-direction: column;
+ gap: 8px;
}
-.marker {
+:deep(a) {
+ display: block;
+ font-size: 13px;
+ line-height: 1.4;
+ color: var(--text-secondary);
+ text-decoration: none;
+ transition: color 0.15s ease;
+
+ &:hover {
+ color: var(--text-body);
+ }
+
+ &.active {
+ font-weight: 500;
+ color: var(--primary) !important;
+ }
+}
+
+.active-marker {
position: absolute;
- top: 32px;
- left: -8px;
- z-index: 1;
- width: 3px;
- height: 15px;
- border-radius: var(--radius-xs);
+ left: -1px;
+ width: 1px;
+ height: 18px;
background-color: var(--primary);
- transition:
- top $transition-base ease,
- height $transition-base ease;
+ transition: top 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
-ul {
+.empty-state {
margin: 0;
- padding: 0;
+ font-size: 13px;
+ font-style: italic;
+ color: var(--text-secondary);
}
-li:deep(a).active {
- font-weight: 600;
- color: var(--primary);
+/* CHILDS */
+.children-links {
+ display: flex;
+ flex-direction: column;
+ gap: 4px;
}
.child-link {
display: flex;
- align-items: flex-start;
- gap: 5px;
- margin: 5px 0;
- font-weight: 450;
+ align-items: center;
+ gap: 8px;
+ margin: 0 -8px;
+ padding: 6px 8px;
+ border-radius: 6px;
color: var(--text-body);
text-decoration: none;
- transition: color $transition-base;
+ transition: background 0.15s ease;
&:hover {
- color: var(--primary);
+ background: var(--surface-raised);
+
+ .child-name {
+ color: var(--primary);
+ }
+
+ .child-icon {
+ color: var(--primary);
+ }
}
}
+
+.child-icon {
+ font-size: 16px;
+ color: var(--text-secondary);
+ transition: color 0.15s ease;
+}
+
+.child-name {
+ font-size: 12px;
+ font-weight: 400;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ transition: color 0.15s ease;
+ overflow: hidden;
+}
</style>
diff --git a/frontend/app/components/Sidebar/Dock.vue b/frontend/app/components/Sidebar/Dock.vue
index 7c00eb0b..93beda33 100644
--- a/frontend/app/components/Sidebar/Dock.vue
+++ b/frontend/app/components/Sidebar/Dock.vue
@@ -4,7 +4,7 @@
<Icon :name="item.icon" display="lg" /><span v-if="mark.hasMark(item.mark as MarkId)" class="bubble" />
</NuxtLink>
- <div style="margin-top: auto">
+ <div class="bottom">
<NuxtLink @click="openSettings">
<Icon name="settings" display="lg" />
</NuxtLink>
@@ -48,26 +48,22 @@ function closeDock() {
.dock {
display: flex;
flex-direction: column;
- gap: 10px;
+ gap: 15px;
padding: 1rem 0.3rem;
border-right: 1px solid var(--border);
- background-color: var(--surface-base);
+ background-color: var(--surface-raised-light);
}
a {
position: relative;
- display: flex;
- justify-content: center;
- align-items: center;
- width: 40px;
- height: 40px;
+ width: 39px;
+ height: 39px;
+ padding: 0.5rem;
border-radius: var(--radius-md);
transition: background-color $transition-medium ease;
&:hover {
- svg {
- color: var(--text-inverse) !important;
- }
+ background-color: var(--primary-bg);
}
}
@@ -80,8 +76,17 @@ a {
}
a.router-link-active {
+ background-color: var(--primary-bg);
+
svg {
color: var(--primary) !important;
}
}
+
+.bottom {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+ margin-top: auto;
+}
</style>
diff --git a/frontend/app/components/Sidebar/Sidebar.vue b/frontend/app/components/Sidebar/Sidebar.vue
index 4f9a94a7..0e6c6215 100644
--- a/frontend/app/components/Sidebar/Sidebar.vue
+++ b/frontend/app/components/Sidebar/Sidebar.vue
@@ -13,7 +13,7 @@
<input v-model="filter" type="text" :placeholder="t('components.sidebar.searchPlaceholder')" />
<div v-if="userStore.user" class="user">
- <img :src="avatarURL(userStore.user)" alt="Avatar" class="avatar" />
+ <UserAvatar :user="userStore.user" />
<div class="details">
<NuxtLink to="/dashboard/settings?p=profile">
<div>{{ userStore.user.username }}</div>
@@ -76,7 +76,6 @@ const { t } = useI18nT();
const nodesTree = useNodesTree();
const { isOpened, hasSidebar, filtered } = useSidebar();
const { isMobile } = useDevice();
-const { avatarURL } = useApi();
const modals = useModal();
const viewDock = preferences.get('view_dock');
@@ -133,6 +132,7 @@ onBeforeUnmount(() => {
width: 100%;
max-height: 100%;
padding: 0.5rem 0.2rem 0.5rem 0.5rem;
+ font-family: $font-ui;
background: var(--surface-base);
backdrop-filter: var(--backdrop-blur) var(--backdrop-saturate);
overflow-y: auto;
@@ -219,12 +219,6 @@ input {
font-size: 0.7rem;
color: var(--text-secondary);
}
-
- .avatar {
- width: 25px;
- height: 25px;
- border-radius: 50%;
- }
}
.compact:deep(.item) {
diff --git a/frontend/app/components/Sidebar/SidebarItem.vue b/frontend/app/components/Sidebar/SidebarItem.vue
index 0234c83d..ba2defbb 100644
--- a/frontend/app/components/Sidebar/SidebarItem.vue
+++ b/frontend/app/components/Sidebar/SidebarItem.vue
@@ -145,7 +145,6 @@ const drop = async (event: DragEvent) => {
padding: 1px 4px;
border-radius: var(--radius-sm);
font-size: 15px;
- font-weight: 450;
letter-spacing: -0.4px;
cursor: pointer;
@@ -173,9 +172,10 @@ const drop = async (event: DragEvent) => {
.content {
position: relative;
flex: 1;
+ font-weight: 470;
+ color: var(--text-primary-light);
text-overflow: ellipsis;
white-space: nowrap;
- overflow: hidden;
}
.dragging {
diff --git a/frontend/app/components/UserAvatar.vue b/frontend/app/components/UserAvatar.vue
new file mode 100644
index 00000000..9e53641a
--- /dev/null
+++ b/frontend/app/components/UserAvatar.vue
@@ -0,0 +1,75 @@
+<template>
+ <img v-if="avatarURL != '/placeholder/avatar.avif'" :src="avatarURL" alt="" :class="['avatar', { square }, display]" />
+ <div v-else :class="['placeholder', getAppAccent(avatarHash), display]">
+ <span> {{ props.user?.username.slice(0, 2).toUpperCase() }}</span>
+ </div>
+</template>
+
+<script setup lang="ts">
+import type { PublicUser } from '~/stores';
+
+const props = withDefaults(
+ defineProps<{
+ user?: PublicUser | null;
+ display?: 'sm' | 'md' | 'lg';
+ square?: boolean;
+ }>(),
+ {
+ user: null,
+ display: 'md',
+ square: false,
+ },
+);
+
+const { avatarURL: resolveAvatarURL } = useApi();
+const { getAppAccent } = useAppColors();
+
+const avatarURL = computed(() => resolveAvatarURL(props.user));
+
+// Create a hash between 0-9 to generate a background color for the avatar if no avatar is set
+const avatarHash = computed(() => {
+ const username = props.user?.username ?? 'default';
+ const hash = username.split('').reduce((acc, char) => acc + char.charCodeAt(0), 0);
+ return hash % 10;
+});
+</script>
+
+<style scoped lang="scss">
+.sm {
+ width: 22px;
+ height: 22px;
+ border-radius: 50%;
+}
+
+.md {
+ width: 25px;
+ height: 25px;
+ border-radius: 50%;
+}
+
+.lg {
+ width: 32px;
+ height: 32px;
+ border-radius: 50%;
+}
+
+.avatar {
+ object-fit: cover;
+}
+
+.placeholder {
+ span {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ width: 100%;
+ height: 100%;
+ font-size: 12px;
+ font-weight: 600;
+ }
+}
+
+.square {
+ border-radius: var(--radius-sm);
+}
+</style>
diff --git a/frontend/app/pages/(public)/signup.vue b/frontend/app/pages/(public)/signup.vue
index e823b3fd..a2449a6f 100644
--- a/frontend/app/pages/(public)/signup.vue
+++ b/frontend/app/pages/(public)/signup.vue
@@ -151,7 +151,7 @@ input {
&:focus {
border-color: var(--primary);
- box-shadow: 0 0 0 3px rgb(var(--primary-rgb), 0.1);
+ box-shadow: var(--shadow-sm);
}
}
@@ -242,12 +242,12 @@ input {
&:hover {
background: var(--primary-dark);
- box-shadow: 0 4px 12px rgb(var(--primary-rgb), 0.3);
+ box-shadow: var(--shadow-sm);
transform: translateY(-1px);
}
&:active {
- box-shadow: 0 2px 6px rgb(var(--primary-rgb), 0.3);
+ box-shadow: var(--shadow-md);
transform: translateY(0);
}
}
diff --git a/frontend/app/pages/dashboard/settings/index.vue b/frontend/app/pages/dashboard/settings/index.vue
index 4a0c23ae..4aa93929 100644
--- a/frontend/app/pages/dashboard/settings/index.vue
+++ b/frontend/app/pages/dashboard/settings/index.vue
@@ -7,7 +7,7 @@
<nav :class="{ open: menuOpen }">
<span v-if="isModal">{{ t('settings.meta.accountSettings') }}</span>
<div v-if="isModal && store.user" class="user">
- <img :src="avatarURL(store.user)" alt="Avatar" class="avatar" />
+ <UserAvatar :user="store.user" />
<div>
<div class="username">{{ store.user.username }}</div>
<div class="email">{{ store.user.email }}</div>
@@ -87,7 +87,6 @@ const emit = defineEmits<{ (e: 'close'): void }>();
const route = useRoute();
const router = useRouter();
const store = useUserStore();
-const { avatarURL } = useApi();
const { t } = useI18nT();
const mark = useMark();
diff --git a/frontend/app/pages/dashboard/teams/[id]/manage-members.vue b/frontend/app/pages/dashboard/teams/[id]/manage-members.vue
index 86072dbc..7fb29138 100644
--- a/frontend/app/pages/dashboard/teams/[id]/manage-members.vue
+++ b/frontend/app/pages/dashboard/teams/[id]/manage-members.vue
@@ -13,7 +13,7 @@
<div v-for="user in users" :key="user.id" class="user-card">
<div class="user-info-row">
<span class="user-meta">
- <img :src="avatarURL(user)" alt="avatar" class="avatar" />
+ <UserAvatar :user="user" />
<span>{{ user.username }}</span>
</span>
<div class="user-actions">
@@ -30,6 +30,10 @@
<!-- Current permissions -->
<p v-if="!node?.permissions.length" class="info-secondary">{{ t('nodes.modals.permissions.noPermissions') }}</p>
<DataTable v-if="rows?.length" :headers="headers" :rows="rows || []">
+ <template #username="{ cell }">
+ <UserAvatar :user="cell?.data as PublicUser" />
+ &nbsp;&nbsp;{{ (cell?.data as PublicUser)?.username || 'Unknown' }}
+ </template>
<template #context="{ cell }">
<Icon
:name="nodesStore.getById((cell?.data as Permission).node_id)?.icon || 'files'"
@@ -94,7 +98,6 @@ const nodesStore = useNodesStore();
const permissionsStore = useNodesPermissionsStore();
const { t } = useI18nT();
-const { avatarURL } = useApi();
const { shortDate, numericDate } = useDateFormatters();
const { getAppAccent } = useAppColors();
const notifications = useNotifications();
@@ -148,8 +151,8 @@ const rows = computed(() => {
const u = usersStore.getById(p.user_id);
return {
username: {
- content: `<img style="border-radius:50%;width:25px;height:25px;" src="${avatarURL(u)}"/>&nbsp;&nbsp;&nbsp;${u?.username || 'Unknown'}`,
- type: 'html' as const,
+ type: 'slot' as const,
+ data: u,
},
role: {
content: p.permission == 1 ? `<tag class="blue">Read</tag>` : p.permission == 2 ? `<tag class="green">Write</tag>` : `<tag class="red">Admin</tag>`,
diff --git a/frontend/app/styles/abstract/static.scss b/frontend/app/styles/abstract/static.scss
index 9c1cda15..a7804653 100644
--- a/frontend/app/styles/abstract/static.scss
+++ b/frontend/app/styles/abstract/static.scss
@@ -1,6 +1,7 @@
// --- Typography ---
$font-sans: 'Inter', -apple-system, blinkmacsystemfont, 'Segoe UI', sans-serif;
$font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
+$font-ui: 'Public Sans', 'Inter', -apple-system, blinkmacsystemfont, 'Segoe UI', sans-serif;
// Transitions
$transition-fast: 0.15s;
diff --git a/frontend/app/styles/base/_index.scss b/frontend/app/styles/base/_index.scss
index 458b1c4a..23542752 100644
--- a/frontend/app/styles/base/_index.scss
+++ b/frontend/app/styles/base/_index.scss
@@ -12,8 +12,6 @@
box-sizing: border-box;
margin: 0;
padding: 0;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
}
::selection {
@@ -26,6 +24,10 @@ body {
color: var(--text-body);
background: var(--body-fixed);
transition: background-color $transition-base;
+ font-feature-settings: "calt", "dlig", "tnum", "case", "ccmp", "ss06";
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+ text-rendering: optimizelegibility;
}
body.modal-open {
diff --git a/frontend/app/styles/base/forms.scss b/frontend/app/styles/base/forms.scss
index 407c11e8..63ddb7bd 100644
--- a/frontend/app/styles/base/forms.scss
+++ b/frontend/app/styles/base/forms.scss
@@ -13,9 +13,11 @@ form {
label {
display: block;
- padding: 4px 2px;
+ margin: 2px 0 0;
+ padding: 0;
font-size: 0.95rem;
font-weight: 500;
+ color: var(--text-primary);
}
textarea {
@@ -68,6 +70,7 @@ button {
padding: 8px 16px;
border: none;
border-radius: var(--radius-sm);
+ font-family: $font-ui;
color: var(--text-body);
background: transparent;
cursor: pointer;
diff --git a/frontend/app/styles/base/typography.scss b/frontend/app/styles/base/typography.scss
index 8e5cb14a..d24f1521 100644
--- a/frontend/app/styles/base/typography.scss
+++ b/frontend/app/styles/base/typography.scss
@@ -32,6 +32,7 @@ h2 {
padding-bottom: 10px;
font-weight: 600;
line-height: 1.2;
+ letter-spacing: -0.01em;
}
h3,
diff --git a/frontend/app/styles/themes/dark.scss b/frontend/app/styles/themes/dark.scss
index 624362a7..a1222d2e 100644
--- a/frontend/app/styles/themes/dark.scss
+++ b/frontend/app/styles/themes/dark.scss
@@ -15,12 +15,13 @@
--surface-overlay: #2d3443;
--surface-transparent: rgb(255 255 255 / 4%);
--surface-transparent-light: rgb(255 255 255 / 2%);
- --body-fixed: #212830;
+ --body-fixed: var(--surface-base);
// -------------------------------------------------------------------------
// TEXT
// -------------------------------------------------------------------------
--text-body: #d1d2d5;
- --text-primary: #d1d5db;
+ --text-primary: #c6cdd6;
+ --text-primary-light: #ccd0d4;
--text-secondary: #8a9099;
--text-muted: #8a9099;
--text-inverse: #f4f4f4;
diff --git a/frontend/app/styles/themes/white.scss b/frontend/app/styles/themes/white.scss
index db787694..ae4eea97 100644
--- a/frontend/app/styles/themes/white.scss
+++ b/frontend/app/styles/themes/white.scss
@@ -1,6 +1,6 @@
@mixin white-theme {
// ACCENT / PRIMARY COLOR
- --accent: #3956e7;
+ --accent: #0c60d9;
--accent-dark: #2c3eb9;
--accent-bg: #dde1f8;
--accent-border: #dde1f8;
@@ -15,20 +15,21 @@
--surface-overlay: #e2ebfd;
--surface-transparent: rgb(8 8 8 / 3%);
--surface-transparent-light: rgb(8 8 8 / 2%);
- --body-fixed: #fff;
+ --body-fixed: var(--surface-base);
// -------------------------------------------------------------------------
// TEXT
// -------------------------------------------------------------------------
--text-body: #3c4450;
- --text-primary: #3c3b3d;
- --text-secondary: #5b5967;
+ --text-primary: #3d3a3f;
+ --text-primary-light: #3c3b3d;
+ --text-secondary: #62748e;
--text-muted: #666;
- --text-inverse: #111;
+ --text-inverse: #030303;
// -------------------------------------------------------------------------
// BORDERS
// -------------------------------------------------------------------------
- --border: #dfe0e5;
+ --border: #d1d3d7;
--border-subtle: #dfe0e585;
--border-strong: #c4c6d0;
--border-focus: var(--accent);
diff --git a/frontend/app/styles/vendors/font.scss b/frontend/app/styles/vendors/font.scss
index b34fd589..695b5bed 100644
--- a/frontend/app/styles/vendors/font.scss
+++ b/frontend/app/styles/vendors/font.scss
@@ -1,3 +1,5 @@
+@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
+@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');
// ****************************************************************************************** */
// Font name: Poppins
// ******************************************************************************************* */
@@ -195,62 +197,4 @@
font-style: italic;
font-display: swap;
src: url('~/assets/fonts/JetBrainsMono/jetbrains-mono-v24-latin-600italic.woff2') format('woff2');
-}
-
-// ****************************************************************************************** */
-// Font name: Inter
-// ******************************************************************************************* */
-
-/* inter-regular - latin */
-@font-face {
- font-family: Inter;
- font-weight: 400;
- font-style: normal;
- font-display: swap;
- src: url('~/assets/fonts/Inter/inter-v20-latin-regular.woff2') format('woff2');
-}
-
-/* inter-italic - latin */
-@font-face {
- font-family: Inter;
- font-weight: 400;
- font-style: italic;
- font-display: swap;
- src: url('~/assets/fonts/Inter/inter-v20-latin-italic.woff2') format('woff2');
-}
-
-/* inter-500 - latin */
-@font-face {
- font-family: Inter;
- font-weight: 500;
- font-style: normal;
- font-display: swap;
- src: url('~/assets/fonts/Inter/inter-v20-latin-500.woff2') format('woff2');
-}
-
-/* inter-500italic - latin */
-@font-face {
- font-family: Inter;
- font-weight: 500;
- font-style: italic;
- font-display: swap;
- src: url('~/assets/fonts/Inter/inter-v20-latin-500italic.woff2') format('woff2');
-}
-
-/* inter-600 - latin */
-@font-face {
- font-family: Inter;
- font-weight: 600;
- font-style: normal;
- font-display: swap;
- src: url('~/assets/fonts/Inter/inter-v20-latin-600.woff2') format('woff2');
-}
-
-/* inter-600italic - latin */
-@font-face {
- font-family: Inter;
- font-weight: 600;
- font-style: italic;
- font-display: swap;
- src: url('~/assets/fonts/Inter/inter-v20-latin-600italic.woff2') format('woff2');
}
\ No newline at end of file
diff --git a/frontend/i18n/locales/fr/import.ts b/frontend/i18n/locales/fr/import.ts
index 80960ee8..08b8d986 100644
--- a/frontend/i18n/locales/fr/import.ts
+++ b/frontend/i18n/locales/fr/import.ts
@@ -18,7 +18,7 @@ export default {
defaultColor: 'Couleur par défaut pour les documents importés',
defaultThumbnail: 'Vignette par défaut pour les documents importés (svg ou emoji unicode)',
defaultIcon: 'Icône par défaut pour les documents importés (svg ou emoji unicode)',
- defaultTheme: 'Default theme for imported documents',
+ defaultTheme: 'Thème par défaut pour les documents importés',
},
files: {
diff --git a/frontend/public/app-icons/add_file.svg b/frontend/public/app-icons/add_file.svg
index ad931ab1..6763c739 100644
--- a/frontend/public/app-icons/add_file.svg
+++ b/frontend/public/app-icons/add_file.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M440-240h80v-120h120v-80H520v-120h-80v120H320v80h120v120ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z"/></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M440-360v80q0 17 11.5 28.5T480-240q17 0 28.5-11.5T520-280v-80h80q17 0 28.5-11.5T640-400q0-17-11.5-28.5T600-440h-80v-80q0-17-11.5-28.5T480-560q-17 0-28.5 11.5T440-520v80h-80q-17 0-28.5 11.5T320-400q0 17 11.5 28.5T360-360h80ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h287q16 0 30.5 6t25.5 17l194 194q11 11 17 25.5t6 30.5v447q0 33-23.5 56.5T720-80H240Zm280-560v-160H240v640h480v-440H560q-17 0-28.5-11.5T520-640ZM240-800v200-200 640-640Z"/></svg>
\ No newline at end of file
diff --git a/frontend/public/app-icons/add_folder.svg b/frontend/public/app-icons/add_folder.svg
index 8429c25d..abd8b28c 100644
--- a/frontend/public/app-icons/add_folder.svg
+++ b/frontend/public/app-icons/add_folder.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M560-320h80v-80h80v-80h-80v-80h-80v80h-80v80h80v80ZM160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h240l80 80h320q33 0 56.5 23.5T880-640v400q0 33-23.5 56.5T800-160H160Zm0-80h640v-400H447l-80-80H160v480Zm0 0v-480 480Z"/></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h207q16 0 30.5 6t25.5 17l57 57h320q33 0 56.5 23.5T880-640v400q0 33-23.5 56.5T800-160H160Zm0-80h640v-400H447l-80-80H160v480Zm0 0v-480 480Zm400-160v40q0 17 11.5 28.5T600-320q17 0 28.5-11.5T640-360v-40h40q17 0 28.5-11.5T720-440q0-17-11.5-28.5T680-480h-40v-40q0-17-11.5-28.5T600-560q-17 0-28.5 11.5T560-520v40h-40q-17 0-28.5 11.5T480-440q0 17 11.5 28.5T520-400h40Z"/></svg>
\ No newline at end of file
diff --git a/frontend/public/app-icons/collapse.svg b/frontend/public/app-icons/collapse.svg
index e7571dea..12708d09 100644
--- a/frontend/public/app-icons/collapse.svg
+++ b/frontend/public/app-icons/collapse.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="m480-500 160-160H320l160 160Zm280-340q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560ZM200-320v120h560v-120H200Zm560-80v-360H200v360h560Zm-560 80v120-120Z"/></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="m508-528 98-98q10-10 5-22t-19-12H368q-14 0-19 12t5 22l98 98q12 12 28 12t28-12Zm252-312q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560ZM200-320v120h560v-120H200Zm560-80v-360H200v360h560Zm-560 80v120-120Z"/></svg>
\ No newline at end of file
diff --git a/frontend/public/app-icons/delete.svg b/frontend/public/app-icons/delete.svg
index 6e87dd8b..09313af2 100644
--- a/frontend/public/app-icons/delete.svg
+++ b/frontend/public/app-icons/delete.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M280-120q-33 0-56.5-23.5T200-200v-520h-40v-80h200v-40h240v40h200v80h-40v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z" /></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" ><path d="M280-120q-33 0-56.5-23.5T200-200v-520q-17 0-28.5-11.5T160-760q0-17 11.5-28.5T200-800h160q0-17 11.5-28.5T400-840h160q17 0 28.5 11.5T600-800h160q17 0 28.5 11.5T800-760q0 17-11.5 28.5T760-720v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM428.5-291.5Q440-303 440-320v-280q0-17-11.5-28.5T400-640q-17 0-28.5 11.5T360-600v280q0 17 11.5 28.5T400-280q17 0 28.5-11.5Zm160 0Q600-303 600-320v-280q0-17-11.5-28.5T560-640q-17 0-28.5 11.5T520-600v280q0 17 11.5 28.5T560-280q17 0 28.5-11.5ZM280-720v520-520Z"/></svg>
\ No newline at end of file
diff --git a/frontend/public/app-icons/edit.svg b/frontend/public/app-icons/edit.svg
index f1490975..ea64597f 100644
--- a/frontend/public/app-icons/edit.svg
+++ b/frontend/public/app-icons/edit.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" ><path d="M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"/></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" ><path d="M200-200h57l391-391-57-57-391 391v57Zm-40 80q-17 0-28.5-11.5T120-160v-97q0-16 6-30.5t17-25.5l505-504q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L313-143q-11 11-25.5 17t-30.5 6h-97Zm600-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"/></svg>
\ No newline at end of file
diff --git a/frontend/public/app-icons/manage_access.svg b/frontend/public/app-icons/manage_access.svg
index be5829af..bbacb921 100644
--- a/frontend/public/app-icons/manage_access.svg
+++ b/frontend/public/app-icons/manage_access.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M400-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM80-160v-112q0-33 17-62t47-44q51-26 115-44t141-18h14q6 0 12 2-8 18-13.5 37.5T404-360h-4q-71 0-127.5 18T180-306q-9 5-14.5 14t-5.5 20v32h252q6 21 16 41.5t22 38.5H80Zm560 40-12-60q-12-5-22.5-10.5T584-204l-58 18-40-68 46-40q-2-14-2-26t2-26l-46-40 40-68 58 18q11-8 21.5-13.5T628-460l12-60h80l12 60q12 5 22.5 11t21.5 15l58-20 40 70-46 40q2 12 2 25t-2 25l46 40-40 68-58-18q-11 8-21.5 13.5T732-180l-12 60h-80Zm40-120q33 0 56.5-23.5T760-320q0-33-23.5-56.5T680-400q-33 0-56.5 23.5T600-320q0 33 23.5 56.5T680-240ZM400-560q33 0 56.5-23.5T480-640q0-33-23.5-56.5T400-720q-33 0-56.5 23.5T320-640q0 33 23.5 56.5T400-560Zm0-80Zm12 400Z"/></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" ><path d="M287-527q-47-47-47-113t47-113q47-47 113-47t113 47q47 47 47 113t-47 113q-47 47-113 47t-113-47ZM80-240v-32q0-33 17-62t47-44q58-29 120-45.5T391-440q17 0 28.5 12t11.5 29q0 17-11.5 28.5T391-359q-56 0-108.5 14T180-306q-10 5-15 14t-5 20v32h231q17 0 28.5 11.5T431-200q0 17-11.5 28.5T391-160H160q-33 0-56.5-23.5T80-240Zm554 88-6-28q-12-5-22.5-10.5T584-204l-29 9q-13 4-25.5-1T510-212l-8-14q-7-12-5-26t13-23l22-19q-2-14-2-26t2-26l-22-19q-11-9-13-22.5t5-25.5l9-15q7-11 19-16t25-1l29 9q11-8 21.5-13.5T628-460l6-29q3-14 13.5-22.5T672-520h16q14 0 24.5 9t13.5 23l6 28q12 5 22.5 11t21.5 15l27-9q14-5 27 0t20 17l8 14q7 12 5 26t-13 23l-22 19q2 12 2 25t-2 25l22 19q11 9 13 22.5t-5 25.5l-9 15q-7 11-19 16t-25 1l-29-9q-11 8-21.5 13.5T732-180l-6 29q-3 14-13.5 22.5T688-120h-16q-14 0-24.5-9T634-152Zm102.5-111.5Q760-287 760-320t-23.5-56.5Q713-400 680-400t-56.5 23.5Q600-353 600-320t23.5 56.5Q647-240 680-240t56.5-23.5Zm-280-320Q480-607 480-640t-23.5-56.5Q433-720 400-720t-56.5 23.5Q320-673 320-640t23.5 56.5Q367-560 400-560t56.5-23.5ZM400-640Zm12 400Z"/></svg>
\ No newline at end of file
diff --git a/frontend/public/app-icons/markdown.svg b/frontend/public/app-icons/markdown.svg
index dba5ee2b..4cde71f1 100644
--- a/frontend/public/app-icons/markdown.svg
+++ b/frontend/public/app-icons/markdown.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="m640-360 120-120-42-43-48 48v-125h-60v125l-48-48-42 43 120 120ZM160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm0-80h640v-480H160v480Zm0 0v-480 480Zm60-120h60v-180h40v120h60v-120h40v180h60v-200q0-17-11.5-28.5T440-600H260q-17 0-28.5 11.5T220-560v200Z"/></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" ><path d="m610-475-27-27q-9-9-21-8.5t-21 9.5q-9 9-9 21t9 21l71 71q12 12 28 12t28-12l71-71q9-9 9-21t-9-21q-9-9-21.5-9t-21.5 9l-26 26v-95q0-13-8.5-21.5T640-600q-13 0-21.5 8.5T610-570v95ZM160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm0-80h640v-480H160v480Zm0 0v-480 480Zm120-300h40v90q0 13 8.5 21.5T350-420q13 0 21.5-8.5T380-450v-90h40v150q0 13 8.5 21.5T450-360q13 0 21.5-8.5T480-390v-170q0-17-11.5-28.5T440-600H260q-17 0-28.5 11.5T220-560v170q0 13 8.5 21.5T250-360q13 0 21.5-8.5T280-390v-150Z"/></svg>
\ No newline at end of file
diff --git a/frontend/public/app-icons/organization.svg b/frontend/public/app-icons/organization.svg
index fc36d436..2e4f0a12 100644
--- a/frontend/public/app-icons/organization.svg
+++ b/frontend/public/app-icons/organization.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M80-120v-720h400v160h400v560H80Zm80-80h80v-80h-80v80Zm0-160h80v-80h-80v80Zm0-160h80v-80h-80v80Zm0-160h80v-80h-80v80Zm160 480h80v-80h-80v80Zm0-160h80v-80h-80v80Zm0-160h80v-80h-80v80Zm0-160h80v-80h-80v80Zm160 480h320v-400H480v80h80v80h-80v80h80v80h-80v80Zm160-240v-80h80v80h-80Zm0 160v-80h80v80h-80Z"/></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M40-272q0-34 17.5-62.5T104-378q62-31 126-46.5T360-440q66 0 130 15.5T616-378q29 15 46.5 43.5T680-272v32q0 33-23.5 56.5T600-160H120q-33 0-56.5-23.5T40-240v-32Zm800 112H738q11-18 16.5-38.5T760-240v-40q0-44-24.5-84.5T666-434q51 6 96 20.5t84 35.5q36 20 55 44.5t19 53.5v40q0 33-23.5 56.5T840-160ZM247-527q-47-47-47-113t47-113q47-47 113-47t113 47q47 47 47 113t-47 113q-47 47-113 47t-113-47Zm466 0q-47 47-113 47-11 0-28-2.5t-28-5.5q27-32 41.5-71t14.5-81q0-42-14.5-81T544-792q14-5 28-6.5t28-1.5q66 0 113 47t47 113q0 66-47 113ZM120-240h480v-32q0-11-5.5-20T580-306q-54-27-109-40.5T360-360q-56 0-111 13.5T140-306q-9 5-14.5 14t-5.5 20v32Zm296.5-343.5Q440-607 440-640t-23.5-56.5Q393-720 360-720t-56.5 23.5Q280-673 280-640t23.5 56.5Q327-560 360-560t56.5-23.5ZM360-240Zm0-400Z"/></svg>
\ No newline at end of file
diff --git a/frontend/public/app-icons/print.svg b/frontend/public/app-icons/print.svg
index 2a4a48c2..31fa3be9 100644
--- a/frontend/public/app-icons/print.svg
+++ b/frontend/public/app-icons/print.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M640-640v-120H320v120h-80v-200h480v200h-80Zm-480 80h640-640Zm560 100q17 0 28.5-11.5T760-500q0-17-11.5-28.5T720-540q-17 0-28.5 11.5T680-500q0 17 11.5 28.5T720-460Zm-80 260v-160H320v160h320Zm80 80H240v-160H80v-240q0-51 35-85.5t85-34.5h560q51 0 85.5 34.5T880-520v240H720v160Zm80-240v-160q0-17-11.5-28.5T760-560H200q-17 0-28.5 11.5T160-520v160h80v-80h480v80h80Z"/></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" ><path d="M320-120q-33 0-56.5-23.5T240-200v-80h-80q-33 0-56.5-23.5T80-360v-160q0-51 35-85.5t85-34.5h560q51 0 85.5 34.5T880-520v160q0 33-23.5 56.5T800-280h-80v80q0 33-23.5 56.5T640-120H320ZM160-360h80q0-33 23.5-56.5T320-440h320q33 0 56.5 23.5T720-360h80v-160q0-17-11.5-28.5T760-560H200q-17 0-28.5 11.5T160-520v160Zm480-280v-120H320v120h-80v-120q0-33 23.5-56.5T320-840h320q33 0 56.5 23.5T720-760v120h-80Zm80 180q17 0 28.5-11.5T760-500q0-17-11.5-28.5T720-540q-17 0-28.5 11.5T680-500q0 17 11.5 28.5T720-460Zm-80 260v-160H320v160h320ZM160-560h640-640Z"/></svg>
\ No newline at end of file
diff --git a/frontend/public/app-icons/settings.svg b/frontend/public/app-icons/settings.svg
index 71603133..391efdee 100644
--- a/frontend/public/app-icons/settings.svg
+++ b/frontend/public/app-icons/settings.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="m370-80-16-128q-13-5-24.5-12T307-235l-119 50L78-375l103-78q-1-7-1-13.5v-27q0-6.5 1-13.5L78-585l110-190 119 50q11-8 23-15t24-12l16-128h220l16 128q13 5 24.5 12t22.5 15l119-50 110 190-103 78q1 7 1 13.5v27q0 6.5-2 13.5l103 78-110 190-118-50q-11 8-23 15t-24 12L590-80H370Zm70-80h79l14-106q31-8 57.5-23.5T639-327l99 41 39-68-86-65q5-14 7-29.5t2-31.5q0-16-2-31.5t-7-29.5l86-65-39-68-99 42q-22-23-48.5-38.5T533-694l-13-106h-79l-14 106q-31 8-57.5 23.5T321-633l-99-41-39 68 86 64q-5 15-7 30t-2 32q0 16 2 31t7 30l-86 65 39 68 99-42q22 23 48.5 38.5T427-266l13 106Zm42-180q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Zm-2-140Z"/></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" ><path d="M433-80q-27 0-46.5-18T363-142l-9-66q-13-5-24.5-12T307-235l-62 26q-25 11-50 2t-39-32l-47-82q-14-23-8-49t27-43l53-40q-1-7-1-13.5v-27q0-6.5 1-13.5l-53-40q-21-17-27-43t8-49l47-82q14-23 39-32t50 2l62 26q11-8 23-15t24-12l9-66q4-26 23.5-44t46.5-18h94q27 0 46.5 18t23.5 44l9 66q13 5 24.5 12t22.5 15l62-26q25-11 50-2t39 32l47 82q14 23 8 49t-27 43l-53 40q1 7 1 13.5v27q0 6.5-2 13.5l53 40q21 17 27 43t-8 49l-48 82q-14 23-39 32t-50-2l-60-26q-11 8-23 15t-24 12l-9 66q-4 26-23.5 44T527-80h-94Zm7-80h79l14-106q31-8 57.5-23.5T639-327l99 41 39-68-86-65q5-14 7-29.5t2-31.5q0-16-2-31.5t-7-29.5l86-65-39-68-99 42q-22-23-48.5-38.5T533-694l-13-106h-79l-14 106q-31 8-57.5 23.5T321-633l-99-41-39 68 86 64q-5 15-7 30t-2 32q0 16 2 31t7 30l-86 65 39 68 99-42q22 23 48.5 38.5T427-266l13 106Zm42-180q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Zm-2-140Z"/></svg>
\ No newline at end of file
diff --git a/frontend/public/app-icons/sidebar/file.svg b/frontend/public/app-icons/sidebar/file.svg
index 2b0ae1c9..6ca97425 100644
--- a/frontend/public/app-icons/sidebar/file.svg
+++ b/frontend/public/app-icons/sidebar/file.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M200-200h360v-200h200v-360H200v560Zm0 80q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v400L600-120H200Zm80-280v-80h200v80H280Zm0-160v-80h400v80H280Zm-80 360v-560 560Z"/></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" ><path d="M200-200h360v-160q0-17 11.5-28.5T600-400h160v-360H200v560Zm0 80q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v367q0 16-6 30.5T817-337L623-143q-11 11-25.5 17t-30.5 6H200Zm240-280H320q-17 0-28.5-11.5T280-440q0-17 11.5-28.5T320-480h120q17 0 28.5 11.5T480-440q0 17-11.5 28.5T440-400Zm200-160H320q-17 0-28.5-11.5T280-600q0-17 11.5-28.5T320-640h320q17 0 28.5 11.5T680-600q0 17-11.5 28.5T640-560ZM200-200v-560 560Z"/></svg>
\ No newline at end of file