Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
280 changes: 140 additions & 140 deletions web/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
"devDependencies": {
"@eslint/js": "^9.37.0",
"@tailwindcss/typography": "^0.5.19",
"@tailwindcss/vite": "^4.1.17",
"@tailwindcss/vite": "^4.2.2",
"@vitejs/plugin-vue": "^6.0.1",
"@vue/eslint-config-prettier": "^10.2.0",
"daisyui": "^5.5.8",
"eslint": "^9.37.0",
"eslint-plugin-vue": "~10.5.0",
"globals": "^16.4.0",
"prettier": "3.6.2",
"tailwindcss": "^4.1.17",
"tailwindcss": "^4.2.2",
"vite": "^7.1.11",
"vite-plugin-pwa": "^1.2.0",
"vite-plugin-vue-devtools": "^8.0.3"
Expand Down
8 changes: 4 additions & 4 deletions web/src/components/FileGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -387,15 +387,15 @@ const hoveredFolder = ref(null)
class="flex items-center gap-3 p-2.5 bg-white dark:bg-gray-800 rounded-lg shadow-sm hover:shadow transition-all duration-200 border border-gray-100 dark:border-gray-700 cursor-pointer"
@click="$emit('open-folder', folder)"
>
<div v-if="selectionMode" class="flex-shrink-0">
<div v-if="selectionMode" class="shrink-0">
<input
type="checkbox"
:checked="localSelectedFolders.includes(folder.id)"
class="checkbox checkbox-sm checkbox-primary"
@click.stop="toggleFolderSelection(folder.id)"
/>
</div>
<div class="flex-shrink-0 w-10 h-10 flex items-center justify-center text-2xl">📁</div>
<div class="shrink-0 w-10 h-10 flex items-center justify-center text-2xl">📁</div>
<div class="flex-1 min-w-0">
<h4 class="font-medium text-gray-900 dark:text-gray-100 text-sm truncate">
{{ folder.name }}
Expand Down Expand Up @@ -457,7 +457,7 @@ const hoveredFolder = ref(null)
class="flex items-center gap-3 p-2.5 bg-white dark:bg-gray-800 rounded-lg shadow-sm hover:shadow transition-all duration-200 border border-gray-100 dark:border-gray-700 cursor-pointer"
@click="$emit('view-details', file)"
>
<div v-if="selectionMode" class="flex-shrink-0">
<div v-if="selectionMode" class="shrink-0">
<input
type="checkbox"
:checked="localSelectedFiles.includes(file.id)"
Expand All @@ -467,7 +467,7 @@ const hoveredFolder = ref(null)
</div>
<!-- 文件预览缩略图 -->
<div
class="flex-shrink-0 w-12 h-12 rounded-lg overflow-hidden bg-gray-100 dark:bg-gray-700 flex items-center justify-center"
class="shrink-0 w-12 h-12 rounded-lg overflow-hidden bg-gray-100 dark:bg-gray-700 flex items-center justify-center"
>
<img
v-if="isImage(file.mime_type)"
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/TextViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ watch(
<!-- 文本内容 -->
<pre
v-else-if="textContent"
class="text-gray-900 dark:text-gray-100 whitespace-pre-wrap break-words"
class="text-gray-900 dark:text-gray-100 whitespace-pre-wrap wrap-break-word"
>{{ textContent }}</pre
>

Expand Down
2 changes: 1 addition & 1 deletion web/src/components/UnifiedNotes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ watch(
</div>

<!-- 右侧:笔记内容/编辑器 -->
<div class="flex-1 flex flex-col overflow-hidden break-words">
<div class="flex-1 flex flex-col overflow-hidden wrap-break-word">
<!-- 编辑模式 -->
<div v-if="isEditing" class="flex-1 flex flex-col">
<div class="p-4 border-b border-gray-200 dark:border-gray-700">
Expand Down
6 changes: 3 additions & 3 deletions web/src/views/admin/StorageBackendsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ onMounted(() => {
</label>
<ul
tabindex="0"
class="dropdown-content z-[1] menu p-2 shadow bg-base-100 rounded-box w-52 mt-2"
class="dropdown-content z-1 menu p-2 shadow bg-base-100 rounded-box w-52 mt-2"
>
<li>
<a @click="handleExport">
Expand Down Expand Up @@ -468,7 +468,7 @@ onMounted(() => {
</label>
<ul
tabindex="0"
class="dropdown-content z-[1] menu p-2 shadow bg-base-100 rounded-box w-52"
class="dropdown-content z-1 menu p-2 shadow bg-base-100 rounded-box w-52"
>
<li><a @click="openEditModal(backend)">编辑配置</a></li>
<li v-if="!backend.is_default">
Expand All @@ -482,7 +482,7 @@ onMounted(() => {
</div>

<h2 class="card-title mt-2">{{ backend.name }}</h2>
<p class="text-sm text-gray-500 dark:text-gray-400 line-clamp-2 min-h-[2.5rem]">
<p class="text-sm text-gray-500 dark:text-gray-400 line-clamp-2 min-h-10">
{{ backend.description || '暂无描述' }}
</p>

Expand Down
2 changes: 1 addition & 1 deletion web/src/views/files/FileDetailView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ onMounted(() => {
</div>
<div class="flex-1 min-w-0">
<h1
class="text-3xl font-bold text-gray-900 dark:text-gray-100 break-words mb-2"
class="text-3xl font-bold text-gray-900 dark:text-gray-100 wrap-break-word mb-2"
:title="file.filename"
>
{{ file.filename }}
Expand Down
2 changes: 1 addition & 1 deletion web/src/views/files/FilesView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ onMounted(async () => {
class="fixed inset-0 bg-black/50 flex items-center justify-center z-50"
>
<div
class="bg-white dark:bg-gray-800 rounded-lg p-6 w-[32rem] shadow-xl flex flex-col max-h-[80vh]"
class="bg-white dark:bg-gray-800 rounded-lg p-6 w-lg shadow-xl flex flex-col max-h-[80vh]"
>
<h3 class="text-lg font-bold mb-4 text-gray-900 dark:text-gray-100">移动到...</h3>

Expand Down
8 changes: 4 additions & 4 deletions web/src/views/notes/NoteDetailView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,15 @@ onMounted(async () => {
class="flex items-center gap-3 p-4 bg-gray-50 dark:bg-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 rounded-xl cursor-pointer transition-colors group"
@click="handleFolderClick(folder)"
>
<div class="text-3xl flex-shrink-0">📁</div>
<div class="text-3xl shrink-0">📁</div>
<div class="flex-1 min-w-0">
<p class="font-medium truncate group-hover:text-primary">{{ folder.name }}</p>
<p class="text-xs text-gray-500 dark:text-gray-400">
{{ formatDate(folder.updated_at) }}
</p>
</div>
<svg
class="w-5 h-5 text-gray-400 group-hover:text-primary flex-shrink-0"
class="w-5 h-5 text-gray-400 group-hover:text-primary shrink-0"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
Expand Down Expand Up @@ -307,7 +307,7 @@ onMounted(async () => {
@click="handleFileClick(file)"
>
<div
:class="`w-12 h-12 rounded-lg flex items-center justify-center text-2xl flex-shrink-0 ${getFileTypeColor(file.mime_type)}`"
:class="`w-12 h-12 rounded-lg flex items-center justify-center text-2xl shrink-0 ${getFileTypeColor(file.mime_type)}`"
>
{{ getFileIcon(file.mime_type) }}
</div>
Expand All @@ -316,7 +316,7 @@ onMounted(async () => {
<p class="text-xs text-gray-500 dark:text-gray-400">{{ formatSize(file.size) }}</p>
</div>
<svg
class="w-5 h-5 text-gray-400 group-hover:text-primary flex-shrink-0"
class="w-5 h-5 text-gray-400 group-hover:text-primary shrink-0"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
Expand Down
6 changes: 3 additions & 3 deletions web/src/views/notes/NotesView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ onMounted(async () => {
class="flex items-center gap-3 p-3 bg-base-200 hover:bg-base-300 rounded-lg cursor-pointer transition-colors"
@click="handleFolderClick(folder)"
>
<div class="text-2xl flex-shrink-0">📁</div>
<div class="text-2xl shrink-0">📁</div>
<div class="flex-1 min-w-0">
<p class="font-medium truncate text-sm">{{ folder.name }}</p>
<p class="text-xs text-base-content/60">
Expand Down Expand Up @@ -514,7 +514,7 @@ onMounted(async () => {
@click="handleFileClick(file)"
>
<div
:class="`w-10 h-10 rounded-lg flex items-center justify-center text-lg flex-shrink-0 ${getFileTypeColor(file.mime_type)}`"
:class="`w-10 h-10 rounded-lg flex items-center justify-center text-lg shrink-0 ${getFileTypeColor(file.mime_type)}`"
>
{{ getFileIcon(file.mime_type) }}
</div>
Expand All @@ -523,7 +523,7 @@ onMounted(async () => {
<p class="text-xs text-base-content/60">{{ formatSize(file.size) }}</p>
</div>
<svg
class="w-5 h-5 text-base-content/40 flex-shrink-0"
class="w-5 h-5 text-base-content/40 shrink-0"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
Expand Down
Loading