feat: 更新环境配置,添加 CORS 支持并修改服务器地址
This commit is contained in:
@@ -95,8 +95,8 @@ router.afterEach(() => {
|
||||
</RouterLink>
|
||||
|
||||
<nav class="links">
|
||||
<RouterLink to="/" class="link">首页</RouterLink>
|
||||
<RouterLink to="/my" class="link">我的</RouterLink>
|
||||
<RouterLink to="/" class="link">公开</RouterLink>
|
||||
<RouterLink to="/my" class="link">个人</RouterLink>
|
||||
|
||||
<RouterLink v-if="!loggedIn" to="/login" class="link primary">登录</RouterLink>
|
||||
|
||||
@@ -142,7 +142,12 @@ router.afterEach(() => {
|
||||
.links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
|
||||
.link { color: var(--bb-text); text-decoration: none; padding: 9px 12px; border-radius: 14px; transition: transform 120ms ease, box-shadow 120ms ease, background 150ms, color 150ms; background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.45); }
|
||||
.link:hover { box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10); transform: translateY(-1px); }
|
||||
.link.router-link-active { background: rgba(255,255,255,0.55); }
|
||||
.link.router-link-active {
|
||||
background: linear-gradient(135deg, var(--bb-primary), var(--bb-cta));
|
||||
color: white;
|
||||
border-color: rgba(255,255,255,0.25);
|
||||
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
|
||||
}
|
||||
.primary { background: linear-gradient(135deg, var(--bb-primary), var(--bb-primary-weak)); color: white; border-color: rgba(255,255,255,0.25); }
|
||||
.primary:hover { filter: brightness(1.03); }
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@ async function exportLocal() {
|
||||
<p v-if="error" class="bb-alert bb-alert--error" style="margin-top: 12px;">{{ error }}</p>
|
||||
|
||||
<p class="bb-muted" style="margin-top: 10px;">
|
||||
未登录:导入写入本机 localStorage,并使用 urlNormalized/urlHash 自动去重;登录:导入写入数据库并自动去重合并。
|
||||
未登录:导入写入本机 localStorage,并自动去重;登录:导入写入数据库并自动去重合并。
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -608,7 +608,7 @@ onBeforeUnmount(() => {
|
||||
<div class="bb-row" style="justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap;">
|
||||
<div>
|
||||
<h1 style="margin: 0;">我的书签</h1>
|
||||
<div class="bb-muted" style="margin-top: 4px;">像课程进度一样管理你的链接:分组、搜索、可公开。</div>
|
||||
<div class="bb-muted" style="margin-top: 4px;">轻松管理你的书签:分组、搜索、可公开。</div>
|
||||
</div>
|
||||
|
||||
<div class="bb-row" style="gap: 10px; flex-wrap: wrap;">
|
||||
|
||||
@@ -111,7 +111,7 @@ onMounted(loadFolders);
|
||||
<div class="bb-row" style="justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap;">
|
||||
<div>
|
||||
<h1 style="margin: 0;">公开书签</h1>
|
||||
<div class="bb-muted" style="margin-top: 4px;">无需登录即可浏览:来自用户设置为“公开”的书签。</div>
|
||||
<div class="bb-muted" style="margin-top: 4px;">无需登录即可浏览本页面书签。</div>
|
||||
</div>
|
||||
|
||||
<div v-if="loggedIn" class="bb-row" style="gap: 10px; flex-wrap: wrap;">
|
||||
|
||||
@@ -256,7 +256,8 @@ input:focus-visible {
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: auto;
|
||||
z-index: 2147483000;
|
||||
/* Must be above BbModal overlay (2147483500) */
|
||||
z-index: 2147483600;
|
||||
}
|
||||
|
||||
.bb-selectOption {
|
||||
|
||||
Reference in New Issue
Block a user