dsh-palace 1.1.0 → 1.2.0
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/README.md +10 -7
- package/client/client.js +75 -36
- package/lib/index.js +33 -8
- package/package.json +1 -1
- package/vendor/themes/pixel/README.md +1 -1
- package/vendor/themes/pixel/icons/alpine-skis.png +0 -0
- package/vendor/themes/pixel/icons/badminton.png +0 -0
- package/vendor/themes/pixel/icons/camera.png +0 -0
- package/vendor/themes/pixel/icons/camping.png +0 -0
- package/vendor/themes/pixel/icons/carabiner.png +0 -0
- package/vendor/themes/pixel/icons/chalk-bag.png +0 -0
- package/vendor/themes/pixel/icons/climbing-shoe.png +0 -0
- package/vendor/themes/pixel/icons/coffee.png +0 -0
- package/vendor/themes/pixel/icons/cooking.png +0 -0
- package/vendor/themes/pixel/icons/cycling.png +0 -0
- package/vendor/themes/pixel/icons/door.png +0 -0
- package/vendor/themes/pixel/icons/fire.png +0 -0
- package/vendor/themes/pixel/icons/gardening.png +0 -0
- package/vendor/themes/pixel/icons/gta6.png +0 -0
- package/vendor/themes/pixel/icons/headphones.png +0 -0
- package/vendor/themes/pixel/icons/hiking-pack.png +0 -0
- package/vendor/themes/pixel/icons/hold-cluster.png +0 -0
- package/vendor/themes/pixel/icons/hold-crimp.png +0 -0
- package/vendor/themes/pixel/icons/hold-foot-chip.png +0 -0
- package/vendor/themes/pixel/icons/hold-horn.png +0 -0
- package/vendor/themes/pixel/icons/hold-jug.png +0 -0
- package/vendor/themes/pixel/icons/hold-pinch.png +0 -0
- package/vendor/themes/pixel/icons/hold-pocket-one.png +0 -0
- package/vendor/themes/pixel/icons/hold-pocket-two.png +0 -0
- package/vendor/themes/pixel/icons/hold-rail.png +0 -0
- package/vendor/themes/pixel/icons/hold-sloper.png +0 -0
- package/vendor/themes/pixel/icons/hold-volume-diamond.png +0 -0
- package/vendor/themes/pixel/icons/hold-volume-triangle.png +0 -0
- package/vendor/themes/pixel/icons/kayaking.png +0 -0
- package/vendor/themes/pixel/icons/motorcycle.png +0 -0
- package/vendor/themes/pixel/icons/painting.png +0 -0
- package/vendor/themes/pixel/icons/pottery.png +0 -0
- package/vendor/themes/pixel/icons/rock-climber.png +0 -0
- package/vendor/themes/pixel/icons/running-shoe.png +0 -0
- package/vendor/themes/pixel/icons/skiing.png +0 -0
- package/vendor/themes/pixel/icons/snowboard.png +0 -0
- package/vendor/themes/pixel/icons/stargazing.png +0 -0
- package/vendor/themes/pixel/icons/surfing.png +0 -0
- package/vendor/themes/pixel/icons/swim-goggles.png +0 -0
- package/vendor/themes/pixel/icons/tennis-ball.png +0 -0
- package/vendor/themes/pixel/icons/tennis-racket.png +0 -0
- package/vendor/themes/pixel/icons/yoga-mat.png +0 -0
- package/vendor/themes/pixel/theme.json +15 -2
package/lib/index.js
CHANGED
|
@@ -724,7 +724,7 @@ async function updateCell(store, args) {
|
|
|
724
724
|
const title = args.title === void 0 ? void 0 : text(args.title, "\u6807\u9898");
|
|
725
725
|
const subtitle = optionalText(args.subtitle, "\u5907\u6CE8");
|
|
726
726
|
const icon = optionalText(args.icon, "\u56FE\u6807");
|
|
727
|
-
if (icon !== void 0 && !/^[a-z][a-
|
|
727
|
+
if (icon !== void 0 && !/^[a-z][a-z0-9-]{0,30}$/.test(icon)) throw new ShelfError("\u56FE\u6807\u540D\u65E0\u6548");
|
|
728
728
|
return store.mutate((tx) => {
|
|
729
729
|
const cell = cellOf(tx.palace, args.id);
|
|
730
730
|
if (title !== void 0) cell.title = title;
|
|
@@ -1002,6 +1002,15 @@ import { basename, extname, isAbsolute, join as join4 } from "node:path";
|
|
|
1002
1002
|
var UA = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130 Safari/537.36";
|
|
1003
1003
|
var VideoError = class extends Error {
|
|
1004
1004
|
};
|
|
1005
|
+
function isBilibili(input) {
|
|
1006
|
+
if (!/^https?:\/\//.test(input)) return /BV[0-9A-Za-z]{10}/.test(input);
|
|
1007
|
+
try {
|
|
1008
|
+
const host = new URL(input).hostname;
|
|
1009
|
+
return host === "b23.tv" || host === "bilibili.com" || host.endsWith(".bilibili.com");
|
|
1010
|
+
} catch {
|
|
1011
|
+
return false;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1005
1014
|
async function resolveBvid(input, signal) {
|
|
1006
1015
|
const direct = input.match(/BV[0-9A-Za-z]{10}/);
|
|
1007
1016
|
if (direct) return direct[0];
|
|
@@ -1162,7 +1171,14 @@ async function addBook(store, args, signal) {
|
|
|
1162
1171
|
let outline = [];
|
|
1163
1172
|
let outlineSource;
|
|
1164
1173
|
if (typeof args.url === "string" && args.url.trim() !== "") {
|
|
1165
|
-
const
|
|
1174
|
+
const url = args.url.trim();
|
|
1175
|
+
if (!isBilibili(url)) {
|
|
1176
|
+
if (!/^https?:\/\/\S+$/.test(url)) throw new ShelfError("\u89C6\u9891\u94FE\u63A5\u8981\u4EE5 http:// \u6216 https:// \u5F00\u5934");
|
|
1177
|
+
if (typeof args.title !== "string" || args.title.trim() === "") throw new ShelfError("\u4E0D\u662F B \u7AD9\u94FE\u63A5\u65F6\u8981\u586B\u4F5C\u54C1\u540D");
|
|
1178
|
+
cancelled();
|
|
1179
|
+
return addCell(store, { kind: "book", title: args.title.trim(), subtitle: args.subtitle, source: { type: "video", url }, parentId: args.parentId, targetDate: args.targetDate });
|
|
1180
|
+
}
|
|
1181
|
+
const course = await readVideoCourse(url, signal).catch((error) => {
|
|
1166
1182
|
cancelled();
|
|
1167
1183
|
throw new ShelfError(error.message);
|
|
1168
1184
|
});
|
|
@@ -1589,14 +1605,14 @@ function createTools(store, active, memory = new Memory(store)) {
|
|
|
1589
1605
|
}),
|
|
1590
1606
|
defineTool({
|
|
1591
1607
|
name: "palace_add",
|
|
1592
|
-
description: "\u5F80\u5BAB\u6BBF\u91CC\u653E\u4E1C\u897F\u3002kind=group \u65B0\u5EFA\u5206\u7EC4\uFF08title\uFF09\uFF1Bkind=note \u65B0\u5EFA\u7B14\u8BB0\u683C\u5B50\uFF08title\uFF0C\u7528\u4E8E\u6CA1\u6709\u539F\u6587\u7684\u4E1C\u897F\uFF1A\u65E5\u8BB0\u3001\u5FC3\u60C5\u3001\u8FFD\u5267\uFF09\uFF1Bkind=book \u6DFB\u52A0 PDF / EPUB\uFF08path \u4E3A\u7EDD\u5BF9\u8DEF\u5F84\uFF09\u6216
|
|
1608
|
+
description: "\u5F80\u5BAB\u6BBF\u91CC\u653E\u4E1C\u897F\u3002kind=group \u65B0\u5EFA\u5206\u7EC4\uFF08title\uFF09\uFF1Bkind=note \u65B0\u5EFA\u7B14\u8BB0\u683C\u5B50\uFF08title\uFF0C\u7528\u4E8E\u6CA1\u6709\u539F\u6587\u7684\u4E1C\u897F\uFF1A\u65E5\u8BB0\u3001\u5FC3\u60C5\u3001\u8FFD\u5267\uFF09\uFF1Bkind=book \u6DFB\u52A0 PDF / EPUB\uFF08path \u4E3A\u7EDD\u5BF9\u8DEF\u5F84\uFF09\u6216\u89C6\u9891\uFF08url\uFF0C\u5267\u3001\u7EFC\u827A\u3001\u8BFE\u90FD\u7B97\uFF09\uFF0C\u53EF\u9009 title\u3001subtitle\uFF08\u5907\u6CE8\uFF1A\u683C\u5B50\u4E0A\u6807\u9898\u4E0A\u65B9\u7684\u4E00\u884C\u5C0F\u5B57\uFF0C\u7528\u6237\u60F3\u586B\u4EC0\u4E48\u90FD\u884C\uFF0C\u5E38\u89C1\u662F\u4F5C\u8005\u6216\u53E6\u4E00\u79CD\u8BED\u8A00\u7684\u4E66\u540D\uFF09\u3002title \u7528\u4E66\u7684\u539F\u540D\uFF0C\u5927\u5C0F\u5199\u7167\u539F\u4E66\uFF08\u5982 Invention of Nature\uFF09\uFF0C\u4E0D\u5E26\u6587\u4EF6\u540D\u91CC\u7684 - _ \u300A\u300B \u7B49\u7B26\u53F7\uFF1B\u5916\u6587\u4E66\u53EF\u628A\u4E2D\u6587\u8BD1\u540D\u653E subtitle\u3001target_date\uFF08YYYY-MM-DD\uFF09\u3002parent_id \u586B\u5206\u7EC4 id \u53EF\u4EE5\u76F4\u63A5\u653E\u8FDB\u5206\u7EC4\uFF08\u5206\u7EC4\u91CC\u4E0D\u80FD\u518D\u653E\u5206\u7EC4\uFF09\u3002\u89C6\u9891\u94FE\u63A5\u6309\u5E73\u53F0\u5904\u7406\uFF1AB \u7AD9\uFF08\u5E26 BV \u53F7\u6216 b23.tv \u77ED\u94FE\uFF09\u76F4\u63A5\u4F20 url\uFF0C\u4F1A\u81EA\u52A8\u8BFB\u51FA\u5206 P / \u5408\u96C6\u548C\u6BCF\u4E00\u96C6\u7684\u94FE\u63A5\uFF0Ctitle \u53EF\u4E0D\u586B\uFF1BYouTube\uFF1A\u4F20 url \u548C\u89C6\u9891\u6216\u64AD\u653E\u5217\u8868\u7684\u6807\u9898\uFF1B\u5176\u4ED6\u5E73\u53F0\uFF08Netflix\u3001\u7231\u5947\u827A\u3001\u8292\u679C TV\u3001\u817E\u8BAF\u89C6\u9891\u3001\u8BFE\u7A0B\u7F51\u7AD9\u2026\u2026\uFF09\uFF1A\u4ECE\u94FE\u63A5\u548C\u7528\u6237\u7684\u8BDD\u8BA4\u51FA\u4F5C\u54C1\uFF0Ctitle \u7528\u4F5C\u54C1\u7684\u6B63\u5F0F\u540D\uFF0C\u4F20 url\u3002\u8FD9\u4E24\u7C7B\u5EFA\u597D\u540E\u5148\u505C\u4E0B\uFF1A\u544A\u8BC9\u7528\u6237\u5DF2\u7ECF\u653E\u8FDB\u6765\u4E86\uFF0C\u95EE\u8981\u4E0D\u8981\u4E0A\u7F51\u67E5\u5206\u96C6\u548C\u6BCF\u4E00\u96C6\u7684\u94FE\u63A5\uFF08\u8981\u82B1\u4E00\u4E24\u5206\u949F\uFF09\uFF1B\u7528\u6237\u5728\u539F\u8BDD\u91CC\u5DF2\u7ECF\u8981\u4E86\u76EE\u5F55\u5C31\u76F4\u63A5\u67E5\u3002\u67E5\u7684\u65F6\u5019\u5206\u5B63\u5C31\u4E00\u5B63\u4E00\u7AE0\uFF0C\u7528 palace_set_outline \u5199\u5165\uFF08\u6BCF\u96C6\u5C3D\u91CF\u5E26 url\uFF09\uFF1B\u8FDE\u8F7D\u4E2D\u7684\u53EA\u5199\u5DF2\u7ECF\u67E5\u5B9E\u7684\u96C6\u6570\uFF0C\u67E5\u4E0D\u5230\u94FE\u63A5\u5C31\u53EA\u5199\u6807\u9898\u3002\u540C\u6837\u7684\u89C4\u77E9\u9002\u7528\u4E8E\u4EFB\u4F55\u8981\u82B1\u65F6\u95F4\u7684\u8865\u5168\uFF08\u4E0A\u7F51\u67E5\u76EE\u5F55\u3001\u8BFB\u5F88\u591A\u9875\u2026\u2026\uFF09\uFF1A\u5148\u5EFA\u683C\u5B50\uFF0C\u518D\u95EE\u7528\u6237\uFF1B\u51E0\u79D2\u5185\u5C31\u80FD\u5B8C\u6210\u7684\uFF08B \u7AD9\u63A5\u53E3\u3001PDF \u4E66\u7B7E\u3001EPUB \u76EE\u5F55\uFF09\u7167\u65E7\u81EA\u52A8\u505A\u3002\u6CA1\u6709\u539F\u6587\u3001\u4E5F\u4E0D\u9700\u8981\u6309\u96C6\u6253\u52FE\u7684\uFF08\u6BD4\u5982\u53EA\u662F\u60F3\u804A\u4E00\u90E8\u5267\uFF09\uFF0C\u7528 kind=note\u3002",
|
|
1593
1609
|
parameters: {
|
|
1594
1610
|
kind: { type: "string", enum: ["group", "note", "book"], required: true },
|
|
1595
1611
|
title: { type: "string" },
|
|
1596
1612
|
subtitle: { type: "string" },
|
|
1597
1613
|
parent_id: { type: "string" },
|
|
1598
1614
|
path: { type: "string", description: "book\uFF1APDF \u6216 EPUB \u7684\u7EDD\u5BF9\u8DEF\u5F84" },
|
|
1599
|
-
url: { type: "string", description: "book\
|
|
1615
|
+
url: { type: "string", description: "book\uFF1A\u89C6\u9891\u94FE\u63A5\uFF08http / https\uFF09" },
|
|
1600
1616
|
target_date: { type: "string" }
|
|
1601
1617
|
},
|
|
1602
1618
|
output: stringOut,
|
|
@@ -1609,7 +1625,9 @@ function createTools(store, active, memory = new Memory(store)) {
|
|
|
1609
1625
|
const c = await addBook(store, { file: args.path, url: args.url, title: args.title, subtitle: args.subtitle, parentId: args.parent_id, targetDate: args.target_date }, exec.signal);
|
|
1610
1626
|
const item = store.getItem(c.id);
|
|
1611
1627
|
const total = progressOf(item).total;
|
|
1612
|
-
if (item.source?.type === "video")
|
|
1628
|
+
if (item.source?.type === "video") {
|
|
1629
|
+
return total > 0 ? `\u5DF2\u6DFB\u52A0\u89C6\u9891\u300A${c.title}\u300B id=${c.id}\uFF0C\u5171 ${total} \u96C6\u3002` : `\u5DF2\u6DFB\u52A0\u89C6\u9891\u300A${c.title}\u300B id=${c.id}\uFF0C\u8FD8\u6CA1\u6709\u5206\u96C6\u76EE\u5F55\u3002\u5148\u544A\u8BC9\u7528\u6237\u5DF2\u7ECF\u653E\u8FDB\u6765\u4E86\uFF0C\u95EE\u8981\u4E0D\u8981\u4E0A\u7F51\u67E5\u5206\u96C6\u548C\u6BCF\u4E00\u96C6\u7684\u94FE\u63A5\uFF08\u8981\u82B1\u4E00\u4E24\u5206\u949F\uFF09\uFF1B\u7528\u6237\u5DF2\u7ECF\u8981\u4E86\u76EE\u5F55\u5C31\u76F4\u63A5\u67E5\uFF0C\u67E5\u597D\u7528 palace_set_outline \u5199\u5165\u3002`;
|
|
1630
|
+
}
|
|
1613
1631
|
if (item.source?.type === "epub") return `\u5DF2\u6DFB\u52A0\u300A${c.title}\u300B id=${c.id}\u3002\u7528\u6237\u7B2C\u4E00\u6B21\u5728\u7B14\u8BB0\u672C\u91CC\u6253\u5F00\u9605\u8BFB\u65F6\u4F1A\u81EA\u52A8\u8BFB\u51FA\u76EE\u5F55\u3002`;
|
|
1614
1632
|
return `\u5DF2\u6DFB\u52A0\u300A${c.title}\u300B id=${c.id}\uFF0C\u5171 ${item.source?.type === "pdf" ? item.source.pageCount : "?"} \u9875\u3002` + (total > 0 ? `\u5DF2\u4ECE PDF \u4E66\u7B7E\u8BFB\u51FA\u76EE\u5F55\uFF1A${item.chapters.length} \u7AE0 ${total} \u8282\u3002` : "\u8FD9\u672C PDF \u6CA1\u6709\u4E66\u7B7E\uFF0C\u9700\u8981\u751F\u6210\u76EE\u5F55\uFF1A\u8BF7\u7528\u6237\u5728\u53F3\u4FA7\u7B14\u8BB0\u672C\u7684\u300C\u8FDB\u5EA6\u300D\u91CC\u52FE\u9009\u76EE\u5F55\u9875\uFF0C\u6216\u544A\u8BC9\u4F60\u76EE\u5F55\u5728\u7B2C\u51E0\u9875\uFF0C\u7136\u540E\u7528 palace_read \u8BFB\u53D6\u3002");
|
|
1615
1633
|
});
|
|
@@ -1660,7 +1678,7 @@ ${t.text || "\uFF08\u65E0\u6587\u5B57\uFF09"}`).join("\n\n");
|
|
|
1660
1678
|
}),
|
|
1661
1679
|
defineTool({
|
|
1662
1680
|
name: "palace_set_outline",
|
|
1663
|
-
description: "\u5199\u5165\uFF08\u8986\u76D6\uFF09\u4E66\u7684\u76EE\u5F55\u7ED3\u6784\uFF0C\u53EA\u8981\u4E24\u7EA7\uFF1A\u7AE0 \u203A \u8282\u3002\u6CA1\u6709\u5206\u8282\u7684\u7AE0\uFF0Csections \u7559\u7A7A\u5373\u53EF\uFF08\u4F1A\u81EA\u52A8\u7B97\u4F5C\u4E00\u8282\uFF09\u3002\u6807\u9898\u4FDD\u6301\u539F\u4E66\u5199\u6CD5\uFF0C\u53BB\u6389\u9875\u7801\u548C\u7701\u7565\u53F7\u3002\u91CD\u65B0\u751F\u6210\u76EE\u5F55\u65F6\uFF0C\u6807\u9898\u4E0D\u53D8\u7684\u8282\u4F1A\u4FDD\u7559\u5B8C\u6210\u72B6\u6001\u3002\u9875\u7801 page \u53EF\u9009\uFF0C\u586B PDF \u9875\u5E8F\u53F7\uFF08\u4E66\u4E0A\u5370\u7684\u9875\u7801 + \u504F\u79FB\u91CF\uFF09\uFF1B\u4E0D\u786E\u5B9A\u5C31\u4E0D\u586B\u3002",
|
|
1681
|
+
description: "\u5199\u5165\uFF08\u8986\u76D6\uFF09\u4E66\u7684\u76EE\u5F55\u7ED3\u6784\uFF0C\u53EA\u8981\u4E24\u7EA7\uFF1A\u7AE0 \u203A \u8282\u3002\u6CA1\u6709\u5206\u8282\u7684\u7AE0\uFF0Csections \u7559\u7A7A\u5373\u53EF\uFF08\u4F1A\u81EA\u52A8\u7B97\u4F5C\u4E00\u8282\uFF09\u3002\u6807\u9898\u4FDD\u6301\u539F\u4E66\u5199\u6CD5\uFF0C\u53BB\u6389\u9875\u7801\u548C\u7701\u7565\u53F7\u3002\u91CD\u65B0\u751F\u6210\u76EE\u5F55\u65F6\uFF0C\u6807\u9898\u4E0D\u53D8\u7684\u8282\u4F1A\u4FDD\u7559\u5B8C\u6210\u72B6\u6001\u3002\u9875\u7801 page \u53EF\u9009\uFF0C\u586B PDF \u9875\u5E8F\u53F7\uFF08\u4E66\u4E0A\u5370\u7684\u9875\u7801 + \u504F\u79FB\u91CF\uFF09\uFF1B\u4E0D\u786E\u5B9A\u5C31\u4E0D\u586B\u3002\u89C6\u9891\u7684\u6BCF\u4E00\u96C6\u53EF\u4EE5\u586B url\uFF08\u8FD9\u4E00\u96C6\u7684\u64AD\u653E\u94FE\u63A5\uFF0Chttp / https\uFF09\uFF0C\u7528\u6237\u70B9\u300C\u64AD\u653E\u300D\u76F4\u63A5\u6253\u5F00\uFF1B\u4E0D\u586B\u5C31\u6253\u5F00\u4F5C\u54C1\u94FE\u63A5\u3002",
|
|
1664
1682
|
parameters: {
|
|
1665
1683
|
item_id: { type: "string", required: true },
|
|
1666
1684
|
chapters: {
|
|
@@ -1678,7 +1696,8 @@ ${t.text || "\uFF08\u65E0\u6587\u5B57\uFF09"}`).join("\n\n");
|
|
|
1678
1696
|
additionalProperties: false,
|
|
1679
1697
|
properties: {
|
|
1680
1698
|
title: { type: "string", required: true },
|
|
1681
|
-
page: { type: "integer" }
|
|
1699
|
+
page: { type: "integer" },
|
|
1700
|
+
url: { type: "string" }
|
|
1682
1701
|
}
|
|
1683
1702
|
}
|
|
1684
1703
|
}
|
|
@@ -1689,9 +1708,15 @@ ${t.text || "\uFF08\u65E0\u6587\u5B57\uFF09"}`).join("\n\n");
|
|
|
1689
1708
|
output: stringOut,
|
|
1690
1709
|
async execute(args) {
|
|
1691
1710
|
return guard(async () => {
|
|
1711
|
+
let video = false;
|
|
1712
|
+
try {
|
|
1713
|
+
video = store.getItem(String(args.item_id)).source?.type === "video";
|
|
1714
|
+
} catch {
|
|
1715
|
+
}
|
|
1716
|
+
const locOf = (x) => video ? typeof x.url === "string" && /^https?:\/\/\S+$/.test(x.url.trim()) ? { loc: x.url.trim() } : {} : Number.isInteger(x.page) ? { loc: String(x.page) } : {};
|
|
1692
1717
|
const input = args.chapters.map((c) => ({
|
|
1693
1718
|
title: c.title,
|
|
1694
|
-
sections: (c.sections ?? []).map((s) => ({ title: s.title, ...
|
|
1719
|
+
sections: (c.sections ?? []).map((s) => ({ title: s.title, ...locOf(s) }))
|
|
1695
1720
|
}));
|
|
1696
1721
|
const item = await setOutline(store, { id: args.item_id, chapters: input, source: "ai" });
|
|
1697
1722
|
return `\u5DF2\u5199\u5165\u76EE\u5F55\uFF1A${item.chapters.length} \u7AE0 ${progressOf(item).total} \u8282\u3002\u7528\u6237\u53EF\u4EE5\u5728\u53F3\u4FA7\u7B14\u8BB0\u672C\u91CC\u67E5\u770B\u548C\u6253\u52FE\u3002`;
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
像素皮肤来自设计负责人 @bbhh1226 的原型(Discussion #39,本项目的设计资产)。
|
|
2
2
|
|
|
3
|
-
- `icons
|
|
3
|
+
- `icons/`:原创 32×32 像素图标,显示时按像素放大(不做平滑)。前 16 个和水彩皮肤一一对应;另外 42 个运动和爱好图标(Discussion #110)列在 `theme.json` 的 `icons.more`。
|
|
4
4
|
- `fonts/PixelifySans.ttf`:英文像素字体 Pixelify Sans([Google Fonts](https://github.com/google/fonts/tree/main/ofl/pixelifysans)),SIL OFL 1.1,许可见 `fonts/OFL.txt`。中文用系统黑体。
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -4,7 +4,18 @@
|
|
|
4
4
|
"edges": "hard",
|
|
5
5
|
"background": { "color": "#f8f8f8" },
|
|
6
6
|
"font": { "file": "fonts/PixelifySans.ttf", "latinOnly": true },
|
|
7
|
-
"icons": {
|
|
7
|
+
"icons": {
|
|
8
|
+
"file": "icons/{key}.png", "inset": 6.5, "pixelated": true,
|
|
9
|
+
"more": [
|
|
10
|
+
"tennis-racket", "tennis-ball", "rock-climber", "carabiner", "climbing-shoe", "chalk-bag",
|
|
11
|
+
"badminton", "running-shoe", "cycling", "swim-goggles", "surfing", "skiing",
|
|
12
|
+
"hiking-pack", "camping", "kayaking", "yoga-mat", "camera", "painting",
|
|
13
|
+
"headphones", "pottery", "cooking", "coffee", "gardening", "stargazing",
|
|
14
|
+
"hold-jug", "hold-sloper", "hold-crimp", "hold-pinch", "hold-pocket-one", "hold-pocket-two",
|
|
15
|
+
"hold-horn", "hold-rail", "hold-foot-chip", "hold-volume-triangle", "hold-volume-diamond", "hold-cluster",
|
|
16
|
+
"door", "fire", "snowboard", "alpine-skis", "gta6", "motorcycle"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
8
19
|
"colors": {
|
|
9
20
|
"ink": "#252329",
|
|
10
21
|
"quiet": "#5c5961",
|
|
@@ -20,6 +31,8 @@
|
|
|
20
31
|
"ringTrack": "#d6d3ce",
|
|
21
32
|
"arc": "#4f535e",
|
|
22
33
|
"arcOutline": "#f8f8f8",
|
|
23
|
-
"arcCurrent": "#222329"
|
|
34
|
+
"arcCurrent": "#222329",
|
|
35
|
+
"mark": "rgba(170, 161, 150, .45)",
|
|
36
|
+
"page": "#eeebe6"
|
|
24
37
|
}
|
|
25
38
|
}
|