Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
6fc8d80
refactor: remove Tauri desktop target end to end
El1mir Nov 10, 2026
cfee166
feat(ui): graphite/teal token foundation with full dark theme
El1mir Nov 10, 2026
eed0853
feat(ui): shell top bar and serif reading column
El1mir Nov 10, 2026
560f0f7
feat(design): W0 foundation - self-hosted fonts, three-state theme, v…
El1mir Nov 10, 2026
5786ed2
feat(extension): 三面按 021 token 重绘并补齐四态/键盘/触控
El1mir Nov 10, 2026
c976050
feat(workspace): 工作区四态与失败重试收口 + 视觉证据
El1mir Nov 10, 2026
894d1f2
docs(t069): 补后端不可达截图与四态说明
El1mir Nov 10, 2026
4059d9b
fix(extension): drop duplicate failure banner and emoji nav, cover to…
El1mir Nov 10, 2026
11f8336
docs(extension): correct T-073 evidence index and gate record
El1mir Nov 10, 2026
7d80373
feat(reader): W2 阅读区收口 - 灯箱改用 Dialog、代码块跟随主题、转写搜索显示命中数
El1mir Nov 10, 2026
cfaa08b
feat(settings): 九分区重绘 + 读失败禁用保存 + 内联保存状态
El1mir Nov 10, 2026
dbd56a2
merge(extension): W5 extension three surfaces into parent branch
El1mir Nov 10, 2026
b665f8a
feat(onboarding): W4 引导/启动屏/404/错误边界收口 + 运行态证据
El1mir Nov 10, 2026
df3959a
chore(web): W6 Tauri 清理收口 - 剩余文案与注释、README 部署形态、证据
El1mir Nov 11, 2026
f657ab2
chore(ci): W6 补 Web 发布流水线 + 删死依赖 react-medium-image-zoom
El1mir Nov 11, 2026
23fd457
test(021): W7 integration gates, screenshots and Tauri residue evidence
El1mir Nov 11, 2026
d82c628
docs(021): W7 收口轮复跑记录与对比度脚本原文
El1mir Nov 11, 2026
72227b4
docs(021): record gate re-run on the delivered tree (HEAD d82c628)
El1mir Nov 11, 2026
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
3 changes: 0 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
.vscode/
.DS_Store

# Tauri 构建产物(非常大)
BillNote_frontend/src-tauri/target
BillNote_frontend/src-tauri/bin

# 运行时数据
backend/data
Expand Down
2 changes: 0 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ body:
- 后端 (backend/)
- Web 前端 (BillNote_frontend/)
- 浏览器插件 (BillNote_extension/)
- Tauri 桌面端
- 文档 / 其他
validations:
required: true
Expand All @@ -37,7 +36,6 @@ body:
- 源码运行
- Docker (docker-compose.yml)
- Docker GPU (docker-compose.gpu.yml)
- 桌面端安装包 (Tauri Release)
- 其他
validations:
required: true
Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ body:
- 后端 (backend/)
- Web 前端 (BillNote_frontend/)
- 浏览器插件 (BillNote_extension/)
- Tauri 桌面端
- 不确定
- type: textarea
id: extra
Expand Down
163 changes: 0 additions & 163 deletions .github/workflows/main.yml

This file was deleted.

84 changes: 84 additions & 0 deletions .github/workflows/release-web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Release Web

# Web 发布:打 v* tag 时构建前端静态产物(dist)并挂到对应 GitHub Release。
# 后端镜像由 docker-build.yml 独立发布到 ghcr.io;两边的版本号都从 tag 推导。
# 手动补发:Actions → Release Web → Run workflow(无 tag 时版本号落在 0.0.0)。
on:
push:
tags:
- 'v*'
workflow_dispatch:

permissions:
contents: write

jobs:
build-web:
name: Build web bundle
runs-on: ubuntu-latest
defaults:
run:
working-directory: BillNote_frontend
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Resolve version
id: version
shell: bash
run: |
if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
echo "value=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
else
echo "value=0.0.0" >> "$GITHUB_OUTPUT"
fi

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: BillNote_frontend/pnpm-lock.yaml

- name: Install
run: pnpm install --frozen-lockfile

- name: Build (VITE_APP_VERSION from tag)
env:
VITE_APP_VERSION: ${{ steps.version.outputs.value }}
run: pnpm build

- name: Pack dist
shell: bash
run: |
VERSION="${{ steps.version.outputs.value }}"
tar -czf "bilinote-web-${VERSION}.tar.gz" -C dist .
ls -lh "bilinote-web-${VERSION}.tar.gz"

- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: bilinote-web-${{ steps.version.outputs.value }}
path: BillNote_frontend/bilinote-web-*.tar.gz
if-no-files-found: error

- name: Attach to GitHub Release
# 只在 tag 触发时挂 Release;workflow_dispatch 只留 artifact。
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: BillNote_frontend/bilinote-web-*.tar.gz
fail_on_unmatched_files: true
generate_release_notes: false

- name: Print deploy hints
run: |
VERSION="${{ steps.version.outputs.value }}"
echo "Web bundle: bilinote-web-${VERSION}.tar.gz (static files, serve behind nginx)"
echo "Backend image: ghcr.io/${{ github.repository }}:${VERSION}"
echo "Self-host: docker compose up -d (repo root, backend + frontend + nginx)"
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ cython_debug/
/backend/config/*
/backend/vector_db/
/BiliNote_frontend/.idea/*
/BiliNote_frontend/src-tauri/bin/

# FFmpeg 构建文件(不应该提交到仓库)
ffmpeg*/
Expand Down
60 changes: 60 additions & 0 deletions BillNote_extension/src/__tests__/tokens.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
import { readFileSync, readdirSync, statSync } from 'node:fs'
import { join } from 'node:path'
import { describe, expect, it } from 'vitest'

// The extension mirrors BillNote_frontend/src/ember/tokens.css by hand (no
// shared package), so the numbers are pinned here: a rename or a palette edit
// that forgets one side would otherwise drift silently.
const SRC = join(__dirname, '..')
const TOKENS = readFileSync(join(SRC, 'styles/tokens.css'), 'utf8')

function sourceFiles(dir: string): string[] {
return readdirSync(dir).flatMap((entry) => {
const path = join(dir, entry)
if (statSync(path).isDirectory()) return sourceFiles(path)
return /\.(vue|ts|css)$/.test(entry) && !path.endsWith('tokens.css') && !path.includes('__tests__') ? [path] : []
})
}

describe('extension design tokens', () => {
it('uses the 021 canonical names, not the legacy ones', () => {
expect(TOKENS).toContain('--accent:')
expect(TOKENS).toContain('--ink-muted:')
expect(TOKENS).not.toContain('--primary:')
expect(TOKENS).not.toMatch(/--ink-mute:/)
})

it('defines the full palette in both themes', () => {
const light = TOKENS.slice(0, TOKENS.indexOf('.dark {'))
const dark = TOKENS.slice(TOKENS.indexOf('.dark {'), TOKENS.indexOf('@media'))
const names = (css: string) => [...css.matchAll(/--([a-z-]+):/g)].map(m => m[1])
const lightNames = new Set(names(light))
// .dark redefines colours only; every name it sets must already exist in :root.
for (const name of names(dark)) expect(lightNames.has(name)).toBe(true)
for (const core of ['canvas', 'surface', 'raised', 'ink', 'ink-soft', 'ink-muted', 'line', 'line-strong', 'accent', 'accent-soft', 'on-accent', 'success', 'warning', 'danger', 'info']) {
expect(lightNames.has(core)).toBe(true)
expect(names(dark)).toContain(core)
}
expect(light).toContain('#f4f6f7')
expect(dark).toContain('#111719')
})

it('keeps the shared motion ladder', () => {
expect(TOKENS).toMatch(/--dur-press:\s*120ms/)
expect(TOKENS).toMatch(/--dur-hover:\s*160ms/)
expect(TOKENS).toMatch(/--dur-popover:\s*180ms/)
expect(TOKENS).toMatch(/--dur-menu:\s*200ms/)
expect(TOKENS).toMatch(/--dur-panel:\s*260ms/)
expect(TOKENS).toMatch(/--dur-page:\s*300ms/)
})

it('has no hardcoded colour outside tokens.css', () => {
const offenders = sourceFiles(SRC).filter(file => /#[0-9a-f]{6}\b/i.test(readFileSync(file, 'utf8')))
expect(offenders).toEqual([])
})

it('gives touch pointers 44px targets', () => {
expect(TOKENS).toMatch(/@media \(pointer: coarse\)/)
expect(TOKENS).toMatch(/min-height:\s*2\.75rem/)
})
})
13 changes: 2 additions & 11 deletions BillNote_extension/src/components/MarkdownView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,11 @@ function download() {
</script>

<template>
<div class="flex flex-col gap-2 h-full">
<div class="flex flex-col gap-2 h-full min-h-0">
<div v-if="!hideActions" class="flex gap-2 justify-end shrink-0">
<button class="btn-secondary" @click="copy">复制 Markdown</button>
<button class="btn-secondary" @click="download">下载 .md</button>
</div>
<div class="prose prose-sm max-w-none px-3 py-2 flex-1 min-h-0 overflow-auto" v-html="html" />
<div class="markdown-body px-3 py-2 flex-1 min-h-0 overflow-auto" v-html="html" />
</div>
</template>

<style>
.prose img { max-width: 100%; }
.prose h1, .prose h2, .prose h3 { font-weight: 600; margin-top: 0.8em; margin-bottom: 0.4em; }
.prose p { margin-bottom: 0.5em; line-height: 1.55; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 0.5em; }
.prose code { background: #eee; padding: 0 4px; border-radius: 3px; font-size: 0.9em; }
.prose a { color: #2563eb; text-decoration: underline; }
</style>
10 changes: 2 additions & 8 deletions BillNote_extension/src/components/PlatformBadge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,10 @@ import { PLATFORM_LABELS } from '~/logic/platform'

const props = defineProps<{ platform: Platform | null }>()

const colorMap: Record<Platform, string> = {
bilibili: 'bg-pink-100 text-pink-700',
}

const cls = computed(() => (props.platform ? colorMap[props.platform] : 'bg-gray-100 text-gray-500'))
const cls = computed(() => (props.platform ? 'tag' : 'tag text-ink-muted'))
const label = computed(() => (props.platform ? PLATFORM_LABELS[props.platform] : '未识别'))
</script>

<template>
<span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium" :class="cls">
{{ label }}
</span>
<span class="tag" :class="cls">{{ label }}</span>
</template>
Loading
Loading