feat(navigation): 依据Git提交历史更新系统版本号为1.52.1并优化侧边栏账号防截断显示
This commit is contained in:
parent
4282d662c0
commit
6504e80f89
@ -1,3 +1,3 @@
|
||||
package buildinfo
|
||||
|
||||
const Version = "0.1.0"
|
||||
const Version = "1.52.1"
|
||||
|
||||
4
frontend/package-lock.json
generated
4
frontend/package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "scert-frontend",
|
||||
"version": "0.1.0",
|
||||
"version": "1.52.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "scert-frontend",
|
||||
"version": "0.1.0",
|
||||
"version": "1.52.1",
|
||||
"dependencies": {
|
||||
"vue": "3.5.41"
|
||||
},
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "scert-frontend",
|
||||
"private": true,
|
||||
"version": "0.1.0",
|
||||
"version": "1.52.1",
|
||||
"type": "module",
|
||||
"packageManager": "npm@11.17.0",
|
||||
"engines": {
|
||||
|
||||
@ -49,7 +49,7 @@
|
||||
|
||||
.dashboard-workspace {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) clamp(176px, 20%, 220px);
|
||||
grid-template-columns: minmax(0, 1fr) clamp(210px, 22%, 256px);
|
||||
grid-template-areas: "main submenu";
|
||||
gap: 18px;
|
||||
min-height: 0;
|
||||
@ -142,7 +142,7 @@
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.dashboard-workspace {
|
||||
grid-template-columns: minmax(0, 1fr) 180px;
|
||||
grid-template-columns: minmax(0, 1fr) 210px;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
|
||||
@ -124,7 +124,7 @@
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
margin: 0 0 10px;
|
||||
padding: 12px;
|
||||
padding: 10px 10px;
|
||||
border: 1px solid #e2e8f2;
|
||||
border-radius: 10px;
|
||||
background: #f8faff;
|
||||
@ -157,13 +157,13 @@
|
||||
.navigation-account-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
gap: 6px;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.navigation-account-name {
|
||||
font-size: 14px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: #0f172a;
|
||||
overflow: hidden;
|
||||
@ -177,7 +177,7 @@
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 2px 8px;
|
||||
padding: 2px 6px;
|
||||
border-radius: 6px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
@ -204,9 +204,9 @@
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
gap: 4px;
|
||||
margin-left: auto;
|
||||
padding: 3px 6px;
|
||||
padding: 2px 4px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
background: transparent;
|
||||
|
||||
@ -85,7 +85,7 @@ defineEmits(["select", "settings"]);
|
||||
<div v-if="currentUser" class="navigation-account-card" aria-label="当前登录账号">
|
||||
<div class="navigation-account-header">
|
||||
<span class="navigation-account-label">当前账号</span>
|
||||
<span class="navigation-version-label">版本 {{ version || "0.1.0" }}</span>
|
||||
<span class="navigation-version-label">版本 {{ version || "1.52.1" }}</span>
|
||||
</div>
|
||||
<div class="navigation-account-row">
|
||||
<strong class="navigation-account-name" :title="currentUser.account">{{ currentUser.account || "未命名账号" }}</strong>
|
||||
|
||||
@ -60,7 +60,7 @@ test("系统设置导航仅对当前已确认的超级管理员显示", async ()
|
||||
const html = await renderComponent("../Dashboard/DashboardNavigation.vue", {
|
||||
activeSection: "overview", sections: [],
|
||||
currentUser: role ? { account: "测试", role } : null,
|
||||
version: "0.1.0",
|
||||
version: "1.52.1",
|
||||
roleLabels: workspaceRoleLabels,
|
||||
loggingOut: false, error: "", logout() {},
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user