diff --git a/biji-houdaun/src/main/resources/application-dev.yml b/biji-houdaun/src/main/resources/application-dev.yml index ec5da6e..023ec84 100644 --- a/biji-houdaun/src/main/resources/application-dev.yml +++ b/biji-houdaun/src/main/resources/application-dev.yml @@ -1,8 +1,8 @@ spring: datasource: driver-class-name: org.sqlite.JDBC -# url: jdbc:sqlite:C:\it\houtaigunli\biji\mydatabase.db - url: jdbc:sqlite:C:\KAIFA\2\mydatabase.db + url: jdbc:sqlite:C:\it\houtaigunli\biji\mydatabase.db +# url: jdbc:sqlite:C:\KAIFA\2\mydatabase.db jpa: hibernate: ddl-auto: none diff --git a/biji-qianduan/src/assets/styles/mobile.css b/biji-qianduan/src/assets/styles/mobile.css index 2c4f357..9b89b58 100644 --- a/biji-qianduan/src/assets/styles/mobile.css +++ b/biji-qianduan/src/assets/styles/mobile.css @@ -6,18 +6,32 @@ .home-page.is-mobile .sidebar { position: absolute; z-index: 1001; - transition: transform 0.3s ease; height: 100%; - transform: translateX(-100%); background-color: #fff; /* 确保侧边栏有背景色 */ + overflow: hidden; /* 避免内容在折叠过程中溢出 */ } .home-page.is-mobile .sidebar:not(.is-collapsed) { - transform: translateX(0); + /* No transform needed, width is controlled by component */ } .home-page.is-mobile .content { padding: 8px; + height: 100vh; + display: flex; + flex-direction: column; + } + + .home-page.is-mobile .list-view-container { + flex: 1; + display: flex; + flex-direction: column; + overflow: hidden; + } + + .home-page.is-mobile .note-list-wrapper { + flex: 1; + overflow-y: auto; } .sidebar-overlay { @@ -121,4 +135,24 @@ /* 针对回收站的卡片式布局 (默认隐藏) */ .trash-cards { display: none; -} \ No newline at end of file +} + +/* 优化移动端悬浮操作按钮 (FAB) */ +.fab { + position: fixed !important; + right: 25px !important; + bottom: 90px !important; /* 调整位置以避开主题切换按钮 */ + z-index: 1050 !important; + width: 56px !important; + height: 56px !important; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; + transition: transform 0.2s ease-in-out !important; +} + +.fab:hover { + transform: scale(1.05); /* 添加轻微的悬停放大效果 */ +} + +.fab .el-icon { + font-size: 24px; /* 调整图标大小 */ +} diff --git a/biji-qianduan/src/components/HomePage.vue b/biji-qianduan/src/components/HomePage.vue index 8e8408f..d45fa57 100644 --- a/biji-qianduan/src/components/HomePage.vue +++ b/biji-qianduan/src/components/HomePage.vue @@ -1,507 +1,196 @@ + - -/* 对话框样式 */ -:deep(.el-dialog) { -border-radius: var(--border-radius); -background-color: var(--bg-color-secondary); -} - -:deep(.el-dialog__header) { -border-bottom: 1px solid var(--border-color); -padding: 1.5rem; -} - -:deep(.el-dialog__title) { -font-size: 1.25rem; -font-weight: 600; -color: var(--text-color); -} - -:deep(.el-dialog__body) { -padding: 1.5rem; -} - -:deep(.el-dialog__footer) { -padding: 1.5rem; -border-top: 1px solid var(--border-color); -} - -.welcome-text { -white-space: nowrap; -} -.user-actions, .guest-actions { -display: flex; -align-items: center; -gap: 10px; -} diff --git a/biji-qianduan/src/components/LoginPage.vue b/biji-qianduan/src/components/LoginPage.vue index 10adec7..2685729 100644 --- a/biji-qianduan/src/components/LoginPage.vue +++ b/biji-qianduan/src/components/LoginPage.vue @@ -23,7 +23,7 @@
- 立即注册 + 立即注册
@@ -38,14 +38,12 @@ import { ref, onMounted } from 'vue'; import { useRouter } from 'vue-router'; import { useUserStore } from '../stores/user'; -import { getRegistrationStatus } from '../api/CommonApi'; import { ElMessage } from 'element-plus'; import { User, Lock } from '@element-plus/icons-vue'; const router = useRouter(); const userStore = useUserStore(); const loginFormRef = ref(null); -const isRegistrationEnabled = ref(true); const loginForm = ref({ username: '', @@ -78,16 +76,6 @@ const goToHome = () => { router.push('/home'); }; -onMounted(async () => { - try { - const response = await getRegistrationStatus(); - isRegistrationEnabled.value = response.data; - } catch (error) { - console.error("Failed to fetch registration status:", error); - // 保守起见,如果获取失败则禁用注册按钮 - isRegistrationEnabled.value = false; - } -}); diff --git a/biji-qianduan/src/components/home/NoteEditor.vue b/biji-qianduan/src/components/home/NoteEditor.vue new file mode 100644 index 0000000..cc54b78 --- /dev/null +++ b/biji-qianduan/src/components/home/NoteEditor.vue @@ -0,0 +1,172 @@ + + + + + diff --git a/biji-qianduan/src/components/home/NoteList.vue b/biji-qianduan/src/components/home/NoteList.vue new file mode 100644 index 0000000..21f4770 --- /dev/null +++ b/biji-qianduan/src/components/home/NoteList.vue @@ -0,0 +1,117 @@ + + + + + diff --git a/biji-qianduan/src/components/home/NotePreview.vue b/biji-qianduan/src/components/home/NotePreview.vue new file mode 100644 index 0000000..152d774 --- /dev/null +++ b/biji-qianduan/src/components/home/NotePreview.vue @@ -0,0 +1,140 @@ + + + + + diff --git a/biji-qianduan/src/components/home/SidebarMenu.vue b/biji-qianduan/src/components/home/SidebarMenu.vue new file mode 100644 index 0000000..3e96971 --- /dev/null +++ b/biji-qianduan/src/components/home/SidebarMenu.vue @@ -0,0 +1,268 @@ + + + + + diff --git a/biji-qianduan/src/components/home/dialogs/CreateGroupDialog.vue b/biji-qianduan/src/components/home/dialogs/CreateGroupDialog.vue new file mode 100644 index 0000000..72723c5 --- /dev/null +++ b/biji-qianduan/src/components/home/dialogs/CreateGroupDialog.vue @@ -0,0 +1,90 @@ + + + diff --git a/biji-qianduan/src/components/home/dialogs/CreateNoteDialog.vue b/biji-qianduan/src/components/home/dialogs/CreateNoteDialog.vue new file mode 100644 index 0000000..976de75 --- /dev/null +++ b/biji-qianduan/src/components/home/dialogs/CreateNoteDialog.vue @@ -0,0 +1,109 @@ + + + + + diff --git a/biji-qianduan/src/components/home/dialogs/MoveNoteDialog.vue b/biji-qianduan/src/components/home/dialogs/MoveNoteDialog.vue new file mode 100644 index 0000000..dbd48a1 --- /dev/null +++ b/biji-qianduan/src/components/home/dialogs/MoveNoteDialog.vue @@ -0,0 +1,81 @@ + + + diff --git a/biji-qianduan/src/components/home/dialogs/PrivacyDialog.vue b/biji-qianduan/src/components/home/dialogs/PrivacyDialog.vue new file mode 100644 index 0000000..2b1584b --- /dev/null +++ b/biji-qianduan/src/components/home/dialogs/PrivacyDialog.vue @@ -0,0 +1,91 @@ + + + + + diff --git a/biji-qianduan/src/components/home/dialogs/RenameDialog.vue b/biji-qianduan/src/components/home/dialogs/RenameDialog.vue new file mode 100644 index 0000000..5b06fc0 --- /dev/null +++ b/biji-qianduan/src/components/home/dialogs/RenameDialog.vue @@ -0,0 +1,65 @@ + + + diff --git a/biji-qianduan/src/components/home/dialogs/SelectGroupDialog.vue b/biji-qianduan/src/components/home/dialogs/SelectGroupDialog.vue new file mode 100644 index 0000000..c2d83ed --- /dev/null +++ b/biji-qianduan/src/components/home/dialogs/SelectGroupDialog.vue @@ -0,0 +1,88 @@ + + + diff --git a/biji-qianduan/src/components/home/dialogs/SystemSettingsDialog.vue b/biji-qianduan/src/components/home/dialogs/SystemSettingsDialog.vue new file mode 100644 index 0000000..e80befa --- /dev/null +++ b/biji-qianduan/src/components/home/dialogs/SystemSettingsDialog.vue @@ -0,0 +1,98 @@ + + + diff --git a/biji-qianduan/src/components/home/dialogs/UpdatePasswordDialog.vue b/biji-qianduan/src/components/home/dialogs/UpdatePasswordDialog.vue new file mode 100644 index 0000000..ce78999 --- /dev/null +++ b/biji-qianduan/src/components/home/dialogs/UpdatePasswordDialog.vue @@ -0,0 +1,97 @@ + + + diff --git a/mydatabase.db b/mydatabase.db index fdbb250..77f8795 100644 Binary files a/mydatabase.db and b/mydatabase.db differ diff --git a/plan/img.png b/plan/img.png deleted file mode 100644 index b943ca0..0000000 Binary files a/plan/img.png and /dev/null differ diff --git a/plan/index.md b/plan/index.md deleted file mode 100644 index 97b3eda..0000000 --- a/plan/index.md +++ /dev/null @@ -1,371 +0,0 @@ - -### HTML -~~~html - - - -
-
-
-
-
-
Log In Sign Up
- - -
-
-
-
-
-

Log In

-
- - -
-
- - -
- submit -

Forgot your password?

-
-
-
-
-
-
-

Sign Up

-
- - -
-
- - -
-
- - -
- submit -
-
-
-
-
-
-
-
-
-
-~~~ - - -### CSS -~~~css - - -/* Please ❤ this if you like it! */ - - -@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900'); - -body{ - font-family: 'Poppins', sans-serif; - font-weight: 300; - font-size: 15px; - line-height: 1.7; - color: #c4c3ca; - background-color: #1f2029; - overflow-x: hidden; -} -a { - cursor: pointer; - transition: all 200ms linear; -} -a:hover { - text-decoration: none; -} -.link { - color: #c4c3ca; -} -.link:hover { - color: #ffeba7; -} -p { - font-weight: 500; - font-size: 14px; - line-height: 1.7; -} -h4 { - font-weight: 600; -} -h6 span{ - padding: 0 20px; - text-transform: uppercase; - font-weight: 700; -} -.section{ - position: relative; - width: 100%; - display: block; -} -.full-height{ - min-height: 100vh; -} -[type="checkbox"]:checked, -[type="checkbox"]:not(:checked){ - position: absolute; - left: -9999px; -} -.checkbox:checked + label, -.checkbox:not(:checked) + label{ - position: relative; - display: block; - text-align: center; - width: 60px; - height: 16px; - border-radius: 8px; - padding: 0; - margin: 10px auto; - cursor: pointer; - background-color: #ffeba7; -} -.checkbox:checked + label:before, -.checkbox:not(:checked) + label:before{ - position: absolute; - display: block; - width: 36px; - height: 36px; - border-radius: 50%; - color: #ffeba7; - background-color: #102770; - font-family: 'unicons'; - content: '\eb4f'; - z-index: 20; - top: -10px; - left: -10px; - line-height: 36px; - text-align: center; - font-size: 24px; - transition: all 0.5s ease; -} -.checkbox:checked + label:before { - transform: translateX(44px) rotate(-270deg); -} - - -.card-3d-wrap { - position: relative; - width: 440px; - max-width: 100%; - height: 400px; - -webkit-transform-style: preserve-3d; - transform-style: preserve-3d; - perspective: 800px; - margin-top: 60px; -} -.card-3d-wrapper { - width: 100%; - height: 100%; - position:absolute; - top: 0; - left: 0; - -webkit-transform-style: preserve-3d; - transform-style: preserve-3d; - transition: all 600ms ease-out; -} -.card-front, .card-back { - width: 100%; - height: 100%; - background-color: #2a2b38; - background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1462889/pat.svg'); - background-position: bottom center; - background-repeat: no-repeat; - background-size: 300%; - position: absolute; - border-radius: 6px; - left: 0; - top: 0; - -webkit-transform-style: preserve-3d; - transform-style: preserve-3d; - -webkit-backface-visibility: hidden; - -moz-backface-visibility: hidden; - -o-backface-visibility: hidden; - backface-visibility: hidden; -} -.card-back { - transform: rotateY(180deg); -} -.checkbox:checked ~ .card-3d-wrap .card-3d-wrapper { - transform: rotateY(180deg); -} -.center-wrap{ - position: absolute; - width: 100%; - padding: 0 35px; - top: 50%; - left: 0; - transform: translate3d(0, -50%, 35px) perspective(100px); - z-index: 20; - display: block; -} - - -.form-group{ - position: relative; - display: block; - margin: 0; - padding: 0; -} -.form-style { - padding: 13px 20px; - padding-left: 55px; - height: 48px; - width: 100%; - font-weight: 500; - border-radius: 4px; - font-size: 14px; - line-height: 22px; - letter-spacing: 0.5px; - outline: none; - color: #c4c3ca; - background-color: #1f2029; - border: none; - -webkit-transition: all 200ms linear; - transition: all 200ms linear; - box-shadow: 0 4px 8px 0 rgba(21,21,21,.2); -} -.form-style:focus, -.form-style:active { - border: none; - outline: none; - box-shadow: 0 4px 8px 0 rgba(21,21,21,.2); -} -.input-icon { - position: absolute; - top: 0; - left: 18px; - height: 48px; - font-size: 24px; - line-height: 48px; - text-align: left; - color: #ffeba7; - -webkit-transition: all 200ms linear; - transition: all 200ms linear; -} - -.form-group input:-ms-input-placeholder { - color: #c4c3ca; - opacity: 0.7; - -webkit-transition: all 200ms linear; - transition: all 200ms linear; -} -.form-group input::-moz-placeholder { - color: #c4c3ca; - opacity: 0.7; - -webkit-transition: all 200ms linear; - transition: all 200ms linear; -} -.form-group input:-moz-placeholder { - color: #c4c3ca; - opacity: 0.7; - -webkit-transition: all 200ms linear; - transition: all 200ms linear; -} -.form-group input::-webkit-input-placeholder { - color: #c4c3ca; - opacity: 0.7; - -webkit-transition: all 200ms linear; - transition: all 200ms linear; -} -.form-group input:focus:-ms-input-placeholder { - opacity: 0; - -webkit-transition: all 200ms linear; - transition: all 200ms linear; -} -.form-group input:focus::-moz-placeholder { - opacity: 0; - -webkit-transition: all 200ms linear; - transition: all 200ms linear; -} -.form-group input:focus:-moz-placeholder { - opacity: 0; - -webkit-transition: all 200ms linear; - transition: all 200ms linear; -} -.form-group input:focus::-webkit-input-placeholder { - opacity: 0; - -webkit-transition: all 200ms linear; - transition: all 200ms linear; -} - -.btn{ - border-radius: 4px; - height: 44px; - font-size: 13px; - font-weight: 600; - text-transform: uppercase; - -webkit-transition : all 200ms linear; - transition: all 200ms linear; - padding: 0 30px; - letter-spacing: 1px; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-align-items: center; - -moz-align-items: center; - -ms-align-items: center; - align-items: center; - -webkit-justify-content: center; - -moz-justify-content: center; - -ms-justify-content: center; - justify-content: center; - -ms-flex-pack: center; - text-align: center; - border: none; - background-color: #ffeba7; - color: #102770; - box-shadow: 0 8px 24px 0 rgba(255,235,167,.2); -} -.btn:active, -.btn:focus{ - background-color: #102770; - color: #ffeba7; - box-shadow: 0 8px 24px 0 rgba(16,39,112,.2); -} -.btn:hover{ - background-color: #102770; - color: #ffeba7; - box-shadow: 0 8px 24px 0 rgba(16,39,112,.2); -} - - - - -.logo { - position: absolute; - top: 30px; - right: 30px; - display: block; - z-index: 100; - transition: all 250ms linear; -} -.logo img { - height: 26px; - width: auto; - display: block; -} -~~~ - - - -### JS - - - - -### 页面 -![img.png](img.png) \ No newline at end of file