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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dist
.local
.VSCodeCounter
~$*
.claude/

/交付材料/
/course_docs/**/示例/
9 changes: 9 additions & 0 deletions configs/components.preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { resolve } from "node:path";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import { defineConfig } from "vite";

export default defineConfig({
root: resolve("renderer/preview/components"),
plugins: [svelte({ configFile: resolve("configs/svelte.config.js") })],
server: { host: "127.0.0.1", port: 15175, strictPort: true }
});
6 changes: 5 additions & 1 deletion configs/electron.vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,16 @@ export default defineConfig({
plugins: [
typia({ include: [/[/\\]Tab[/\\]restore\.ts$/], tsconfig: resolve("configs/tsconfig.web.json") }),
svelte({ configFile: resolve("configs/svelte.config.js") }),
// pdf.js fetches these at runtime, see renderer/components/Reader/pdfjs.ts.
// Serve PDF.js runtime assets and the licenses for bundled fonts and icons.
viteStaticCopy({
targets: [{
src: "../node_modules/pdfjs-dist/{cmaps,iccs,standard_fonts,wasm}/*",
dest: "pdfjs",
rename: { stripBase: 2 }
}, {
src: "assets/fonts/*.txt",
dest: "licenses",
rename: { stripBase: true }
}]
})
]
Expand Down
Binary file added course_docs/2 系统概要设计/1.6.docx
Binary file not shown.
123 changes: 123 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,129 @@
"confirmMarkRead": "Mark all as read",
"retry": "Retry"
},
"command": {
"newPage": "New Page",
"importPDF": "Import PDF",
"closeTab": "Close Editor",
"settings": "Preferences",
"undo": "Undo",
"redo": "Redo",
"cut": "Cut",
"copy": "Copy",
"paste": "Paste",
"selectAll": "Select All",
"sidebar": "Toggle Primary Side Bar",
"splitRight": "Split Right",
"splitDown": "Split Down",
"mergeGroup": "Join Editor Group",
"commandPalette": "Command Palette",
"overview": "Overview",
"feed": "Feeds",
"library": "Knowledge Base",
"papers": "Paper Library",
"calendar": "Calendar",
"attributes": "Manage Attributes",
"search": "Search",
"nextTab": "Next Editor",
"previousTab": "Previous Editor",
"group1": "Focus First Editor Group",
"group2": "Focus Second Editor Group",
"group3": "Focus Third Editor Group",
"about": "About Labloom",
"devtools": "Developer Tools"
},
"menu": {
"file": "File",
"edit": "Edit",
"view": "View",
"go": "Go",
"help": "Help"
},
"shell": {
"mainNavigation": "Primary Navigation",
"menuBar": "Menu Bar",
"filter": "Filter by Title",
"filterHint": "Filter by title…",
"clearFilter": "Clear Filter",
"pinned": "Pinned",
"independent": "All Independent Pages",
"untitled": "Untitled",
"more": "More…",
"page": "Page",
"missing": "Page Not Found",
"editorGroup": "Editor Group",
"unsaved": "Unsaved",
"syncing": "Syncing",
"closeNamed": "Close {{title}}",
"groupActions": "More Editor Group Actions",
"close": "Close",
"closeOthers": "Close Others",
"closeRight": "Close to the Right",
"closeAll": "Close All Editors",
"resizePanel": "Resize Side Bar",
"resizeGroup": "Resize Editor Group",
"trashView": "Recycle Bin",
"pinnedView": "Pinned Pages",
"calendarView": "Research Calendar",
"overviewView": "My Garden",
"feedView": "Feed Activity",
"targetDeleted": "Target has been deleted"
},
"pageAction": {
"open": "Open",
"openSide": "Open to the Side",
"pin": "Pin to Side Bar",
"unpin": "Unpin",
"trash": "Move to Recycle Bin",
"restore": "Restore",
"purge": "Delete Permanently"
},
"quickOpen": {
"input": "Search pages or commands…",
"results": "Search Results",
"noPages": "No matching pages",
"noCommands": "No matching commands",
"title": "Title",
"body": "Body"
},
"attributeName": {
"deleted": "Deleted",
"independent": "Independent",
"created_at": "Created",
"modified_at": "Modified",
"recycle_reason": "Reason for Removal",
"recycled_at": "Recycled",
"pinned": "Pinned",
"tags": "Tags",
"links": "Linked Pages",
"paper_files": "Attachments",
"paper_authors": "Authors",
"paper_doi": "DOI",
"paper_year": "Publication Date",
"paper_venue": "Journal / Conference",
"paper_url": "Source URL",
"paper_abstract": "Abstract",
"paper_keywords": "Keywords",
"source_snapshot": "Original Source",
"reading_position": "Reading Position",
"paper_annotations": "Annotations",
"annotation_file": "File",
"annotation_position": "Position",
"annotation_color": "Color",
"annotation_quote": "Quote",
"annotation_context": "Context",
"annotation_extractor": "Extractor Version",
"feed_url": "Feed URL",
"feed_status": "Feed Status",
"feed_refresh": "Refresh Interval",
"feed_last_refreshed": "Last Successful Refresh",
"feed_last_checked": "Last Refresh Attempt",
"feed_last_added": "Last Added Count",
"feed_error": "Error",
"feed_failures": "Consecutive Failures",
"feed_etag": "ETag",
"feed_last_modified": "Last-Modified"
},
"notice": {
"reminderTitle": "Labloom reminder"
}
Expand Down
123 changes: 123 additions & 0 deletions locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,129 @@
"confirmMarkRead": "全部标为已读",
"retry": "重试"
},
"command": {
"newPage": "新建页面",
"importPDF": "导入 PDF",
"closeTab": "关闭标签",
"settings": "偏好设置",
"undo": "撤销",
"redo": "重做",
"cut": "剪切",
"copy": "复制",
"paste": "粘贴",
"selectAll": "全选",
"sidebar": "切换左侧面板",
"splitRight": "向右拆分",
"splitDown": "向下拆分",
"mergeGroup": "合并标签组",
"commandPalette": "命令面板",
"overview": "总览",
"feed": "订阅",
"library": "知识库",
"papers": "文献库",
"calendar": "日历",
"attributes": "属性管理",
"search": "搜索",
"nextTab": "下一个标签",
"previousTab": "上一个标签",
"group1": "聚焦第1标签组",
"group2": "聚焦第2标签组",
"group3": "聚焦第3标签组",
"about": "关于知织",
"devtools": "开发者工具"
},
"menu": {
"file": "文件",
"edit": "编辑",
"view": "视图",
"go": "前往",
"help": "帮助"
},
"shell": {
"mainNavigation": "主导航",
"menuBar": "菜单栏",
"filter": "筛选标题",
"filterHint": "筛选标题…",
"clearFilter": "清空筛选",
"pinned": "固定",
"independent": "全部独立页",
"untitled": "未命名",
"more": "更多…",
"page": "页面",
"missing": "找不到页面",
"editorGroup": "标签组",
"unsaved": "未保存",
"syncing": "正在同步",
"closeNamed": "关闭{{title}}",
"groupActions": "更多标签组操作",
"close": "关闭",
"closeOthers": "关闭其他",
"closeRight": "关闭右侧",
"closeAll": "关闭全部标签",
"resizePanel": "调整左侧面板宽度",
"resizeGroup": "调整标签组大小",
"trashView": "回收站",
"pinnedView": "已固定",
"calendarView": "研究日历",
"overviewView": "我的花园",
"feedView": "订阅动态",
"targetDeleted": "目标已删除"
},
"pageAction": {
"open": "打开",
"openSide": "在另一标签组打开",
"pin": "固定到侧栏",
"unpin": "取消固定",
"trash": "移入回收站",
"restore": "恢复",
"purge": "永久删除"
},
"quickOpen": {
"input": "搜索页面或命令…",
"results": "搜索结果",
"noPages": "没有匹配的页面",
"noCommands": "没有匹配的命令",
"title": "标题",
"body": "正文"
},
"attributeName": {
"deleted": "已删除",
"independent": "独立保留",
"created_at": "创建时间",
"modified_at": "修改时间",
"recycle_reason": "回收原因",
"recycled_at": "回收时间",
"pinned": "固定到侧栏",
"tags": "标签",
"links": "关联页面",
"paper_files": "附件",
"paper_authors": "作者",
"paper_doi": "DOI",
"paper_year": "发表时间",
"paper_venue": "期刊 / 会议",
"paper_url": "原文地址",
"paper_abstract": "摘要",
"paper_keywords": "关键词",
"source_snapshot": "原始来源",
"reading_position": "阅读位置",
"paper_annotations": "批注",
"annotation_file": "文件",
"annotation_position": "位置",
"annotation_color": "颜色",
"annotation_quote": "原文",
"annotation_context": "上下文",
"annotation_extractor": "提取器版本",
"feed_url": "订阅地址",
"feed_status": "订阅状态",
"feed_refresh": "刷新间隔",
"feed_last_refreshed": "上次成功刷新",
"feed_last_checked": "上次尝试刷新",
"feed_last_added": "上次新增条目数",
"feed_error": "错误",
"feed_failures": "连续失败次数",
"feed_etag": "ETag",
"feed_last_modified": "Last-Modified"
},
"notice": {
"reminderTitle": "知织提醒"
}
Expand Down
3 changes: 3 additions & 0 deletions main/app/ipc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export function registerAppIPCs(window: BrowserWindow): void {
const contents = window.webContents;
register(contents, appChannels, {
openDevTools: route(typia.createAssert<Args<"openDevTools">>(invalid), () => contents.openDevTools({ mode: "detach" })),
setFrameColors: route(typia.createAssert<Args<"setFrameColors">>(invalid), (color, symbolColor) => {
if (process.platform !== "darwin" && !window.isDestroyed()) window.setTitleBarOverlay({ color, symbolColor });
}),
editorStarted: route(typia.createAssert<Args<"editorStarted">>(invalid), () => lifecycle.editorStarted(contents)),
beforeQuitResult: route(typia.createAssert<Args<"beforeQuitResult">>(invalid), (id, blocked) => lifecycle.saveResult(contents, id, blocked))
} satisfies Messages<AppMessages>, on);
Expand Down
Loading
Loading