dsh-ide-window 0.3.6 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +38 -44
- package/CHANGELOG.md +24 -0
- package/client.js +1823 -430
- package/index.js +1 -50
- package/locale/en.json +68 -10
- package/locale/zh.json +68 -10
- package/package.json +1 -1
- package/themes/atom-one-light.css +2 -0
- package/themes/dracula.css +2 -0
- package/themes/github-light.css +2 -0
- package/themes/intellij-light.css +2 -0
- package/themes/material-light.css +2 -0
- package/themes/material-oceanic.css +2 -0
- package/themes/material-palenight.css +2 -0
- package/themes/monokai-pro.css +2 -0
- package/themes/night-owl.css +2 -0
- package/themes/solarized-light.css +2 -0
package/index.js
CHANGED
|
@@ -47,7 +47,6 @@ const ROUTE_DIAG = '/dsh-ide/diagnostics'
|
|
|
47
47
|
const ROUTE_THEME = '/dsh-ide/theme'
|
|
48
48
|
const ROUTE_SCREENSHOT = '/dsh-ide/screenshot'
|
|
49
49
|
const ROUTE_SCREEN_PERMISSION = '/dsh-ide/screen-permission'
|
|
50
|
-
const ROUTE_CHANGES = '/dsh-ide/changes'
|
|
51
50
|
|
|
52
51
|
/** Where this file lives: the themes sit next to it, not in the profile. */
|
|
53
52
|
const PLUGIN_ROOT = fileURLToPath(new URL('.', import.meta.url))
|
|
@@ -1475,7 +1474,7 @@ function createHandler(ctx) {
|
|
|
1475
1474
|
return
|
|
1476
1475
|
}
|
|
1477
1476
|
pathname = new URL(request.url ?? '/', 'http://dsh-ide.internal').pathname
|
|
1478
|
-
if (pathname !== ROUTE_LSP && pathname !== ROUTE_GREP && pathname !== ROUTE_DIFF && pathname !== ROUTE_JAR && pathname !== ROUTE_STATUS && pathname !== ROUTE_BLAME && pathname !== ROUTE_DOCTOR && pathname !== ROUTE_KINDS && pathname !== ROUTE_LOG && pathname !== ROUTE_REFS && pathname !== ROUTE_PATCH && pathname !== ROUTE_TEXT && pathname !== ROUTE_LICENSE && pathname !== ROUTE_DIAG && pathname !== ROUTE_SCREENSHOT && pathname !== ROUTE_SCREEN_PERMISSION
|
|
1477
|
+
if (pathname !== ROUTE_LSP && pathname !== ROUTE_GREP && pathname !== ROUTE_DIFF && pathname !== ROUTE_JAR && pathname !== ROUTE_STATUS && pathname !== ROUTE_BLAME && pathname !== ROUTE_DOCTOR && pathname !== ROUTE_KINDS && pathname !== ROUTE_LOG && pathname !== ROUTE_REFS && pathname !== ROUTE_PATCH && pathname !== ROUTE_TEXT && pathname !== ROUTE_LICENSE && pathname !== ROUTE_DIAG && pathname !== ROUTE_SCREENSHOT && pathname !== ROUTE_SCREEN_PERMISSION) {
|
|
1479
1478
|
writeJson(response, 404, { ok: false, error: { code: 'not-found', message: 'unknown route' } })
|
|
1480
1479
|
return
|
|
1481
1480
|
}
|
|
@@ -1515,8 +1514,6 @@ function createHandler(ctx) {
|
|
|
1515
1514
|
? await captureScreen(payload)
|
|
1516
1515
|
: pathname === ROUTE_SCREEN_PERMISSION
|
|
1517
1516
|
? await openScreenPermission()
|
|
1518
|
-
: pathname === ROUTE_CHANGES
|
|
1519
|
-
? await changesOfSession(ctx, payload)
|
|
1520
1517
|
: await query(ctx, payload)
|
|
1521
1518
|
writeJson(response, 200, { ok: true, value })
|
|
1522
1519
|
} catch (error) {
|
|
@@ -1541,47 +1538,6 @@ function createHandler(ctx) {
|
|
|
1541
1538
|
* @param payload - `{session}`: the Session whose last turn is asked about.
|
|
1542
1539
|
* @returns `{turn, files, added, deleted, total}`; empty when nothing changed.
|
|
1543
1540
|
*/
|
|
1544
|
-
async function changesOfSession(ctx, payload) {
|
|
1545
|
-
const sessionId = typeof payload?.session === 'string' ? payload.session : ''
|
|
1546
|
-
if (sessionId === '') throw new RouteError(400, 'invalid-session', 'session is required')
|
|
1547
|
-
const sessionQuery = ctx.get('sessionQuery')
|
|
1548
|
-
const workspaceChanges = ctx.get('workspaceChanges')
|
|
1549
|
-
if (sessionQuery === undefined || workspaceChanges === undefined) return { turn: 0, files: [], added: 0, deleted: 0, total: 0 }
|
|
1550
|
-
let snapshot
|
|
1551
|
-
try {
|
|
1552
|
-
snapshot = await sessionQuery.readSession(sessionId)
|
|
1553
|
-
} catch (error) {
|
|
1554
|
-
logEvent('warn', 'changes', 'session read failed', error?.message ?? String(error))
|
|
1555
|
-
snapshot = undefined
|
|
1556
|
-
}
|
|
1557
|
-
let seq
|
|
1558
|
-
for (const event of snapshot?.events ?? []) {
|
|
1559
|
-
if (event?.type !== 'workspace/changes') continue
|
|
1560
|
-
if (typeof event.seq !== 'number') continue
|
|
1561
|
-
seq = event.seq
|
|
1562
|
-
}
|
|
1563
|
-
const empty = { turn: 0, files: [], added: 0, deleted: 0, total: 0 }
|
|
1564
|
-
// A summary only exists for a live turn of this Host process. Once it is gone
|
|
1565
|
-
// (restart, cold Session) the card must vanish with it: it describes one turn,
|
|
1566
|
-
// not whatever is uncommitted in the working tree.
|
|
1567
|
-
if (seq === undefined) return empty
|
|
1568
|
-
const summary = workspaceChanges.summary(sessionId, seq)
|
|
1569
|
-
if (summary === undefined) return empty
|
|
1570
|
-
const files = (summary.files ?? []).map((file) => ({
|
|
1571
|
-
path: file.path,
|
|
1572
|
-
added: Number.isFinite(file.added) ? file.added : 0,
|
|
1573
|
-
deleted: Number.isFinite(file.deleted) ? file.deleted : 0,
|
|
1574
|
-
binary: file.binary === true,
|
|
1575
|
-
}))
|
|
1576
|
-
return {
|
|
1577
|
-
turn: summary.turn ?? 0,
|
|
1578
|
-
files,
|
|
1579
|
-
added: Number.isFinite(summary.added) ? summary.added : 0,
|
|
1580
|
-
deleted: Number.isFinite(summary.deleted) ? summary.deleted : 0,
|
|
1581
|
-
total: Number.isFinite(summary.total) ? summary.total : files.length,
|
|
1582
|
-
}
|
|
1583
|
-
}
|
|
1584
|
-
|
|
1585
1541
|
export function apply(ctx) {
|
|
1586
1542
|
logEvent('info', 'host', 'plugin loaded', { platform: platform.name, node: process.versions.node })
|
|
1587
1543
|
const handler = createHandler(ctx)
|
|
@@ -1650,11 +1606,6 @@ export function apply(ctx) {
|
|
|
1650
1606
|
path: ROUTE_LICENSE,
|
|
1651
1607
|
handler,
|
|
1652
1608
|
}), 'dsh-ide-window: language server licence route')
|
|
1653
|
-
ctx.effect(() => ctx.webServer.register({
|
|
1654
|
-
kind: 'prefix',
|
|
1655
|
-
path: ROUTE_CHANGES,
|
|
1656
|
-
handler,
|
|
1657
|
-
}), 'dsh-ide-window: changed files route')
|
|
1658
1609
|
ctx.effect(() => ctx.webServer.register({
|
|
1659
1610
|
kind: 'prefix',
|
|
1660
1611
|
path: ROUTE_DIAG,
|
package/locale/en.json
CHANGED
|
@@ -1,4 +1,64 @@
|
|
|
1
1
|
{
|
|
2
|
+
"floatCommandNoEditor": "The composer is not ready yet",
|
|
3
|
+
"floatStepMore": "{title} and more",
|
|
4
|
+
"floatStepSharedPrefix": "",
|
|
5
|
+
"floatStepComma": ", ",
|
|
6
|
+
"floatStepJoinTwo": "{first} and {second}",
|
|
7
|
+
"floatStepDone.thinking": "finished thinking",
|
|
8
|
+
"floatStepDone.tools": "called tools",
|
|
9
|
+
"floatStepDone.plan": "updated the plan",
|
|
10
|
+
"floatStepDone.questions": "asked you a question",
|
|
11
|
+
"floatStepDone.web": "searched the web",
|
|
12
|
+
"floatStepDone.search": "searched the code",
|
|
13
|
+
"floatStepDone.write": "edited a file",
|
|
14
|
+
"floatStepDone.read": "read a file",
|
|
15
|
+
"floatStepDone.commands": "ran a command",
|
|
16
|
+
"floatMenuChats": "Conversations",
|
|
17
|
+
"floatMenuFiles": "Files and folders",
|
|
18
|
+
"floatMenuSkills": "Skills",
|
|
19
|
+
"floatMenuCommands": "Commands",
|
|
20
|
+
"floatMenuAdd": "Add",
|
|
21
|
+
"floatCmdExportDesc": "Download this conversation as a ZIP",
|
|
22
|
+
"floatCmdExport": "Export log",
|
|
23
|
+
"floatCmdModelDesc": "Pick the model for this conversation",
|
|
24
|
+
"floatCmdModel": "Model",
|
|
25
|
+
"floatCmdPermissionDesc": "Switch the permission preset",
|
|
26
|
+
"floatCmdPermission": "Permission",
|
|
27
|
+
"floatCmdCompactDesc": "Compact the conversation so far",
|
|
28
|
+
"floatCmdCompact": "Compact",
|
|
29
|
+
"floatCmdFeedbackDesc": "Send feedback about this conversation",
|
|
30
|
+
"floatCmdFeedback": "Feedback",
|
|
31
|
+
"floatCmdPlanDesc": "Enter or leave plan mode",
|
|
32
|
+
"floatCmdPlan": "Plan",
|
|
33
|
+
"floatCmdGoalDesc": "Set or review the long-running goal",
|
|
34
|
+
"floatCmdGoal": "Goal",
|
|
35
|
+
"floatCmdFile": "File",
|
|
36
|
+
"floatProgressTool": "Using a tool",
|
|
37
|
+
"floatProgressTask": "Updating tasks",
|
|
38
|
+
"floatProgressAsk": "Asking you",
|
|
39
|
+
"floatProgressWeb": "Searching the web",
|
|
40
|
+
"floatProgressWrite": "Editing a file",
|
|
41
|
+
"floatProgressRead": "Reading a file",
|
|
42
|
+
"floatProgressSearch": "Searching",
|
|
43
|
+
"floatProgressCommand": "Running a command",
|
|
44
|
+
"floatActivityTask": "updated tasks",
|
|
45
|
+
"floatActivityAsk": "asked you a question",
|
|
46
|
+
"floatActivityWeb": "searched the web",
|
|
47
|
+
"floatActivityWrite": "edited files",
|
|
48
|
+
"floatActivityRead": "read files",
|
|
49
|
+
"floatActivitySearch": "searched code",
|
|
50
|
+
"floatActivityCommand": "ran commands",
|
|
51
|
+
"floatRunningTools": "tools used",
|
|
52
|
+
"floatElapsedSec": "{s}s",
|
|
53
|
+
"floatElapsedMin": "{m}m {s}s",
|
|
54
|
+
"floatSuggestFailed": "Suggestions unavailable",
|
|
55
|
+
"floatCommandFailed": "Command failed",
|
|
56
|
+
"floatSuggestEnterDir": "open folder",
|
|
57
|
+
"floatQuestionGo": "Answer in chat",
|
|
58
|
+
"floatQuestionHint": "DSH accepts answers in the conversation",
|
|
59
|
+
"floatQuestionWaiting": "Waiting for your answer in the conversation",
|
|
60
|
+
"floatToggleDisabled": "The assistant card is turned off in settings",
|
|
61
|
+
"shortcutFloatToggle": "Toggle the assistant card",
|
|
2
62
|
"meta": {
|
|
3
63
|
"title": "Code Workspace",
|
|
4
64
|
"description": "Turns the centre area into an IDEA-style workspace: a workspace file tree, editor tabs and a live-updating source view, with the left navigation column hidden."
|
|
@@ -275,13 +335,12 @@
|
|
|
275
335
|
"floatEmpty": "Ask something; the answer lands in this session",
|
|
276
336
|
"floatNoSession": "No session bound yet",
|
|
277
337
|
"floatNoWorkspace": "no workspace",
|
|
278
|
-
"floatPlaceholder": "
|
|
338
|
+
"floatPlaceholder": "Message or create a task, / for commands, @ for files or chats",
|
|
279
339
|
"floatSend": "Send",
|
|
280
340
|
"floatSending": "Sending…",
|
|
281
341
|
"floatFailed": "Send failed",
|
|
282
|
-
|
|
283
|
-
"
|
|
284
|
-
"floatRunning": "Answering…",
|
|
342
|
+
|
|
343
|
+
"floatRunning": "Thinking",
|
|
285
344
|
"floatAttach": "Add content",
|
|
286
345
|
"floatAttachReference": "Reference the open file",
|
|
287
346
|
"floatNeedsFile": "Open a file first",
|
|
@@ -310,7 +369,7 @@
|
|
|
310
369
|
"floatImageTooLarge": "Image is larger than 8 MB",
|
|
311
370
|
"floatEffort": "Reasoning effort",
|
|
312
371
|
"floatEffortDefault": "Default",
|
|
313
|
-
"floatCode": "Code",
|
|
372
|
+
"floatCode": "Code block",
|
|
314
373
|
"floatCopy": "Copy",
|
|
315
374
|
"floatCopied": "Copied",
|
|
316
375
|
"floatFiles": "Files",
|
|
@@ -319,6 +378,7 @@
|
|
|
319
378
|
"settingsFloatWidth": "Width",
|
|
320
379
|
"settingsFloatHeight": "Height",
|
|
321
380
|
"floatOpenFailed": "Cannot open in the workspace",
|
|
381
|
+
"floatCopyMessage": "Copy message",
|
|
322
382
|
"floatCopyImage": "Copy image",
|
|
323
383
|
"floatImageCopied": "Image copied",
|
|
324
384
|
"floatCopyImageFailed": "Copying the image failed",
|
|
@@ -327,9 +387,7 @@
|
|
|
327
387
|
"mdSource": "Source",
|
|
328
388
|
"floatPreviewImage": "Click to view the image",
|
|
329
389
|
"floatCloseViewer": "Close",
|
|
330
|
-
"
|
|
331
|
-
"
|
|
332
|
-
"
|
|
333
|
-
"floatChangesAll": "All",
|
|
334
|
-
"floatChangesLess": "Collapse"
|
|
390
|
+
"settingsFloatDetach": "Detach from the workspace",
|
|
391
|
+
"settingsFloatDetachHint": "Keep the card on screen when you switch to another panel or back to the conversation",
|
|
392
|
+
"floatWrap": "Wrap lines"
|
|
335
393
|
}
|
package/locale/zh.json
CHANGED
|
@@ -1,4 +1,64 @@
|
|
|
1
1
|
{
|
|
2
|
+
"floatCommandNoEditor": "对话框还没就绪,稍后再试",
|
|
3
|
+
"floatStepMore": "{title}等",
|
|
4
|
+
"floatStepSharedPrefix": "已",
|
|
5
|
+
"floatStepComma": ",",
|
|
6
|
+
"floatStepJoinTwo": "{first}并{second}",
|
|
7
|
+
"floatStepDone.thinking": "已完成分析",
|
|
8
|
+
"floatStepDone.tools": "已调用工具",
|
|
9
|
+
"floatStepDone.plan": "更新了计划",
|
|
10
|
+
"floatStepDone.questions": "向用户提出了问题",
|
|
11
|
+
"floatStepDone.web": "已搜索网页",
|
|
12
|
+
"floatStepDone.search": "已搜索代码",
|
|
13
|
+
"floatStepDone.write": "修改了文件",
|
|
14
|
+
"floatStepDone.read": "已读取文件",
|
|
15
|
+
"floatStepDone.commands": "执行了命令",
|
|
16
|
+
"floatMenuChats": "对话",
|
|
17
|
+
"floatMenuFiles": "文件与文件夹",
|
|
18
|
+
"floatMenuSkills": "技能",
|
|
19
|
+
"floatMenuCommands": "指令",
|
|
20
|
+
"floatMenuAdd": "添加",
|
|
21
|
+
"floatCmdExportDesc": "将当前会话内容导出为 ZIP",
|
|
22
|
+
"floatCmdExport": "下载日志",
|
|
23
|
+
"floatCmdModelDesc": "选择本会话使用的模型",
|
|
24
|
+
"floatCmdModel": "模型",
|
|
25
|
+
"floatCmdPermissionDesc": "切换权限预设(沙箱模式与审批策略)",
|
|
26
|
+
"floatCmdPermission": "权限",
|
|
27
|
+
"floatCmdCompactDesc": "压缩以上对话内容",
|
|
28
|
+
"floatCmdCompact": "压缩",
|
|
29
|
+
"floatCmdFeedbackDesc": "发送关于当前会话的反馈",
|
|
30
|
+
"floatCmdFeedback": "反馈",
|
|
31
|
+
"floatCmdPlanDesc": "进入或退出计划模式",
|
|
32
|
+
"floatCmdPlan": "计划",
|
|
33
|
+
"floatCmdGoalDesc": "设置或查看长期任务目标",
|
|
34
|
+
"floatCmdGoal": "目标",
|
|
35
|
+
"floatCmdFile": "文件",
|
|
36
|
+
"floatProgressTool": "正在使用工具",
|
|
37
|
+
"floatProgressTask": "正在更新任务",
|
|
38
|
+
"floatProgressAsk": "正在向你提问",
|
|
39
|
+
"floatProgressWeb": "正在联网搜索",
|
|
40
|
+
"floatProgressWrite": "正在修改文件",
|
|
41
|
+
"floatProgressRead": "正在读取文件",
|
|
42
|
+
"floatProgressSearch": "正在搜索",
|
|
43
|
+
"floatProgressCommand": "正在运行命令",
|
|
44
|
+
"floatActivityTask": "已更新任务",
|
|
45
|
+
"floatActivityAsk": "已向你提问",
|
|
46
|
+
"floatActivityWeb": "已联网搜索",
|
|
47
|
+
"floatActivityWrite": "已修改文件",
|
|
48
|
+
"floatActivityRead": "已读取文件",
|
|
49
|
+
"floatActivitySearch": "已搜索代码",
|
|
50
|
+
"floatActivityCommand": "执行了命令",
|
|
51
|
+
"floatRunningTools": "已调用工具",
|
|
52
|
+
"floatElapsedSec": "用时 {s} 秒",
|
|
53
|
+
"floatElapsedMin": "用时 {m} 分 {s} 秒",
|
|
54
|
+
"floatSuggestFailed": "候选加载失败",
|
|
55
|
+
"floatCommandFailed": "指令执行失败",
|
|
56
|
+
"floatSuggestEnterDir": "进入目录",
|
|
57
|
+
"floatQuestionGo": "去对话作答",
|
|
58
|
+
"floatQuestionHint": "DSH 只在对话里受理作答",
|
|
59
|
+
"floatQuestionWaiting": "等待你在对话里回答",
|
|
60
|
+
"floatToggleDisabled": "悬浮框已在设置里关闭",
|
|
61
|
+
"shortcutFloatToggle": "显示 / 收起悬浮框",
|
|
2
62
|
"meta": {
|
|
3
63
|
"title": "代码工作区",
|
|
4
64
|
"description": "把中央区域切成 IDEA 风格的工作区:左侧工作区文件树、编辑标签页与实时刷新的源码视图,同时隐藏左侧导航栏。"
|
|
@@ -275,13 +335,12 @@
|
|
|
275
335
|
"floatEmpty": "问点什么,回答会出现在当前会话里",
|
|
276
336
|
"floatNoSession": "还没有绑定会话",
|
|
277
337
|
"floatNoWorkspace": "未选择工作区",
|
|
278
|
-
"floatPlaceholder": "
|
|
338
|
+
"floatPlaceholder": "发消息或创建任务,/ 调用指令,@ 文件或对话",
|
|
279
339
|
"floatSend": "发送",
|
|
280
340
|
"floatSending": "发送中…",
|
|
281
341
|
"floatFailed": "发送失败",
|
|
282
|
-
|
|
283
|
-
"
|
|
284
|
-
"floatRunning": "正在回答…",
|
|
342
|
+
|
|
343
|
+
"floatRunning": "深度求索中",
|
|
285
344
|
"floatAttach": "添加内容",
|
|
286
345
|
"floatAttachReference": "引用当前文件",
|
|
287
346
|
"floatNeedsFile": "先打开一个文件",
|
|
@@ -310,7 +369,7 @@
|
|
|
310
369
|
"floatImageTooLarge": "图片超过 8 MB",
|
|
311
370
|
"floatEffort": "思考等级",
|
|
312
371
|
"floatEffortDefault": "默认",
|
|
313
|
-
"floatCode": "
|
|
372
|
+
"floatCode": "代码块",
|
|
314
373
|
"floatCopy": "复制",
|
|
315
374
|
"floatCopied": "已复制",
|
|
316
375
|
"floatFiles": "文件",
|
|
@@ -319,6 +378,7 @@
|
|
|
319
378
|
"settingsFloatWidth": "宽度",
|
|
320
379
|
"settingsFloatHeight": "高度",
|
|
321
380
|
"floatOpenFailed": "无法在工作区打开",
|
|
381
|
+
"floatCopyMessage": "复制这条消息",
|
|
322
382
|
"floatCopyImage": "复制图片",
|
|
323
383
|
"floatImageCopied": "图片已复制",
|
|
324
384
|
"floatCopyImageFailed": "复制图片失败",
|
|
@@ -327,9 +387,7 @@
|
|
|
327
387
|
"mdSource": "源码",
|
|
328
388
|
"floatPreviewImage": "点击预览图片",
|
|
329
389
|
"floatCloseViewer": "关闭",
|
|
330
|
-
"
|
|
331
|
-
"
|
|
332
|
-
"
|
|
333
|
-
"floatChangesAll": "全部",
|
|
334
|
-
"floatChangesLess": "收起"
|
|
390
|
+
"settingsFloatDetach": "脱离代码工作区",
|
|
391
|
+
"settingsFloatDetachHint": "开启后悬浮框不再跟着代码工作区出现与消失:切到其他插件视图或回到对话时它依然在",
|
|
392
|
+
"floatWrap": "自动换行"
|
|
335
393
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-ide-window",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"description": "IDEA-style code workspace for DeepSeek Harness: a centre panel with a workspace file tree, editor tabs and live-updating source, while the left navigation column hides.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"icon": "icon.svg",
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
--dsw-alias-label-secondary: #696c77;
|
|
21
21
|
--dsw-alias-label-tertiary: #a0a1a7;
|
|
22
22
|
--dsw-alias-border-l1: #e3e3e4;
|
|
23
|
+
/* 行内代码:比正文底色高一层,和标签色/边框同属 alias,随主题自适配 */
|
|
24
|
+
--dsw-alias-markdown-inline-code: var(--dsw-alias-bg-layer-3);
|
|
23
25
|
--dsw-alias-border-l2: #d4d5d7;
|
|
24
26
|
--dsw-alias-border-l3: #c3c4c6;
|
|
25
27
|
--dsw-alias-border: #e3e3e4;
|
package/themes/dracula.css
CHANGED
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
--dsw-alias-label-secondary: #b8bcc8;
|
|
21
21
|
--dsw-alias-label-tertiary: #7c8296;
|
|
22
22
|
--dsw-alias-border-l1: #343746;
|
|
23
|
+
/* 行内代码:比正文底色高一层,和标签色/边框同属 alias,随主题自适配 */
|
|
24
|
+
--dsw-alias-markdown-inline-code: var(--dsw-alias-bg-layer-3);
|
|
23
25
|
--dsw-alias-border-l2: #44475a;
|
|
24
26
|
--dsw-alias-border-l3: #525772;
|
|
25
27
|
--dsw-alias-border: #44475a;
|
package/themes/github-light.css
CHANGED
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
--dsw-alias-label-secondary: #59636e;
|
|
21
21
|
--dsw-alias-label-tertiary: #818b98;
|
|
22
22
|
--dsw-alias-border-l1: #d0d7de;
|
|
23
|
+
/* 行内代码:比正文底色高一层,和标签色/边框同属 alias,随主题自适配 */
|
|
24
|
+
--dsw-alias-markdown-inline-code: var(--dsw-alias-bg-layer-3);
|
|
23
25
|
--dsw-alias-border-l2: #d8dee4;
|
|
24
26
|
--dsw-alias-border-l3: #e5e9ed;
|
|
25
27
|
--dsw-alias-border: #d0d7de;
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
--dsw-alias-label-secondary: #6c707e;
|
|
21
21
|
--dsw-alias-label-tertiary: #9aa0aa;
|
|
22
22
|
--dsw-alias-border-l1: #dfe1e5;
|
|
23
|
+
/* 行内代码:比正文底色高一层,和标签色/边框同属 alias,随主题自适配 */
|
|
24
|
+
--dsw-alias-markdown-inline-code: var(--dsw-alias-bg-layer-3);
|
|
23
25
|
--dsw-alias-border-l2: #d4d6da;
|
|
24
26
|
--dsw-alias-border-l3: #c9ccd1;
|
|
25
27
|
--dsw-alias-border: #dfe1e5;
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
--dsw-alias-label-secondary: #5f6b74;
|
|
21
21
|
--dsw-alias-label-tertiary: #8c979d;
|
|
22
22
|
--dsw-alias-border-l1: #e3e6e8;
|
|
23
|
+
/* 行内代码:比正文底色高一层,和标签色/边框同属 alias,随主题自适配 */
|
|
24
|
+
--dsw-alias-markdown-inline-code: var(--dsw-alias-bg-layer-3);
|
|
23
25
|
--dsw-alias-border-l2: #d3d8dc;
|
|
24
26
|
--dsw-alias-border-l3: #c2c8cd;
|
|
25
27
|
--dsw-alias-border: #e3e6e8;
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
--dsw-alias-label-secondary: #8f93a2;
|
|
21
21
|
--dsw-alias-label-tertiary: #646a78;
|
|
22
22
|
--dsw-alias-border-l1: #1f2231;
|
|
23
|
+
/* 行内代码:比正文底色高一层,和标签色/边框同属 alias,随主题自适配 */
|
|
24
|
+
--dsw-alias-markdown-inline-code: var(--dsw-alias-bg-layer-3);
|
|
23
25
|
--dsw-alias-border-l2: #2a2e3f;
|
|
24
26
|
--dsw-alias-border-l3: #3b4252;
|
|
25
27
|
--dsw-alias-border: #2a2e3f;
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
--dsw-alias-label-secondary: #8a91b4;
|
|
21
21
|
--dsw-alias-label-tertiary: #676e95;
|
|
22
22
|
--dsw-alias-border-l1: #333747;
|
|
23
|
+
/* 行内代码:比正文底色高一层,和标签色/边框同属 alias,随主题自适配 */
|
|
24
|
+
--dsw-alias-markdown-inline-code: var(--dsw-alias-bg-layer-3);
|
|
23
25
|
--dsw-alias-border-l2: #3b4056;
|
|
24
26
|
--dsw-alias-border-l3: #4a5170;
|
|
25
27
|
--dsw-alias-border: #3b4056;
|
package/themes/monokai-pro.css
CHANGED
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
--dsw-alias-label-secondary: #c1c0c0;
|
|
21
21
|
--dsw-alias-label-tertiary: #939293;
|
|
22
22
|
--dsw-alias-border-l1: #363337;
|
|
23
|
+
/* 行内代码:比正文底色高一层,和标签色/边框同属 alias,随主题自适配 */
|
|
24
|
+
--dsw-alias-markdown-inline-code: var(--dsw-alias-bg-layer-3);
|
|
23
25
|
--dsw-alias-border-l2: #403e41;
|
|
24
26
|
--dsw-alias-border-l3: #525053;
|
|
25
27
|
--dsw-alias-border: #403e41;
|
package/themes/night-owl.css
CHANGED
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
--dsw-alias-label-secondary: #9dafc3;
|
|
21
21
|
--dsw-alias-label-tertiary: #637777;
|
|
22
22
|
--dsw-alias-border-l1: #0e2b43;
|
|
23
|
+
/* 行内代码:比正文底色高一层,和标签色/边框同属 alias,随主题自适配 */
|
|
24
|
+
--dsw-alias-markdown-inline-code: var(--dsw-alias-bg-layer-3);
|
|
23
25
|
--dsw-alias-border-l2: #1d3b53;
|
|
24
26
|
--dsw-alias-border-l3: #2a4c69;
|
|
25
27
|
--dsw-alias-border: #1d3b53;
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
--dsw-alias-label-secondary: #657b83;
|
|
21
21
|
--dsw-alias-label-tertiary: #93a1a1;
|
|
22
22
|
--dsw-alias-border-l1: #e0d9c4;
|
|
23
|
+
/* 行内代码:比正文底色高一层,和标签色/边框同属 alias,随主题自适配 */
|
|
24
|
+
--dsw-alias-markdown-inline-code: var(--dsw-alias-bg-layer-3);
|
|
23
25
|
--dsw-alias-border-l2: #d3ccb7;
|
|
24
26
|
--dsw-alias-border-l3: #c6bfa9;
|
|
25
27
|
--dsw-alias-border: #e0d9c4;
|