",
- `
-
- `,
- SettingList([
- SettingItem(
- '
Napcat',
- void 0,
- SettingButton("V4.0.3", "napcat-update-button", "secondary")
- )
- ]),
- SettingList([
- SettingItem(
- "启用 HTTP 服务",
- void 0,
- SettingSwitch("ob11.http.enable", ob11Config.http.enable, {
- "control-display-id": "config-ob11-http-port"
- })
- ),
- SettingItem(
- "HTTP 服务监听端口",
- void 0,
- `
`,
- "config-ob11-http-port",
- ob11Config.http.enable
- ),
- SettingItem(
- "启用 HTTP 心跳",
- void 0,
- SettingSwitch("ob11.http.enableHeart", ob11Config.http.enableHeart, {
- "control-display-id": "config-ob11-HTTP.enableHeart"
- })
- ),
- SettingItem(
- "启用 HTTP 事件上报",
- void 0,
- SettingSwitch("ob11.http.enablePost", ob11Config.http.enablePost, {
- "control-display-id": "config-ob11-http-postUrls"
- })
- ),
- `
-
-
- HTTP 事件上报密钥
-
-
-
-
-
-
-
- HTTP 事件上报地址
-
- 添加
-
-
-
`,
- SettingItem(
- "启用正向 WebSocket 服务",
- void 0,
- SettingSwitch("ob11.ws.enable", ob11Config.ws.enable, {
- "control-display-id": "config-ob11-ws-port"
- })
- ),
- SettingItem(
- "正向 WebSocket 服务监听端口",
- void 0,
- `
`,
- "config-ob11-ws-port",
- ob11Config.ws.enable
- ),
- SettingItem(
- "启用反向 WebSocket 服务",
- void 0,
- SettingSwitch("ob11.reverseWs.enable", ob11Config.reverseWs.enable, {
- "control-display-id": "config-ob11-reverseWs-urls"
- })
- ),
- `
-
-
- 反向 WebSocket 监听地址
-
- 添加
-
-
-
`,
- SettingItem(
- " WebSocket 服务心跳间隔",
- "控制每隔多久发送一个心跳包,单位为毫秒",
- `
`
- ),
- SettingItem(
- "Access token",
- void 0,
- `
`
- ),
- SettingItem(
- "新消息上报格式",
- `如客户端无特殊需求推荐保持默认设置,两者的详细差异可参考
OneBot v11 文档`,
- SettingSelect(
- [
- { text: "消息段", value: "array" },
- { text: "CQ码", value: "string" }
- ],
- "ob11.messagePostFormat",
- ob11Config.messagePostFormat
- )
- ),
- SettingItem(
- "音乐卡片签名地址",
- void 0,
- `
`,
- "ob11.musicSignUrl"
- ),
- SettingItem(
- "启用本地进群时间与发言时间记录",
- void 0,
- SettingSwitch("ob11.GroupLocalTime.Record", ob11Config.GroupLocalTime.Record, {
- "control-display-id": "config-ob11-GroupLocalTime-RecordList"
- })
- ),
- `
`,
- SettingItem(
- "",
- void 0,
- SettingButton("保存", "config-ob11-save", "primary")
- )
- ]),
- SettingList([
- SettingItem(
- "上报 Bot 自身发送的消息",
- "上报 event 为 message_sent",
- SettingSwitch("ob11.reportSelfMessage", ob11Config.reportSelfMessage)
- )
- ]),
- SettingList([
- SettingItem(
- "GitHub 仓库",
- "https://github.com/NapNeko/NapCatQQ",
- SettingButton("点个星星", "open-github")
- ),
- SettingItem("NapCat 文档", "", SettingButton("看看文档", "open-docs"))
- ]),
- SettingItem(
- "Telegram 群",
- "https://t.me/+nLZEnpne-pQ1OWFl",
- SettingButton("进去逛逛", "open-telegram")
- ),
- SettingItem(
- "QQ 群",
- "518662028",
- SettingButton("我要进去", "open-qq-group")
- ),
- "
"
- ].join(""),
- "text/html"
- );
- doc.querySelector("#open-github")?.addEventListener("click", () => {
- window.open("https://github.com/NapNeko/NapCatQQ", "_blank");
- });
- doc.querySelector("#open-docs")?.addEventListener("click", () => {
- window.open("https://napneko.github.io/", "_blank");
- });
- doc.querySelector("#open-telegram")?.addEventListener("click", () => {
- window.open("https://t.me/+nLZEnpne-pQ1OWFl", "_blank");
- });
- doc.querySelector("#open-qq-group")?.addEventListener("click", () => {
- window.open("https://qm.qq.com/q/VfjAq5HIMS", "_blank");
- });
- const buildHostListItem = (type, host, index, inputAttrs = {}) => {
- const dom = {
- container: document.createElement("setting-item"),
- input: document.createElement("input"),
- inputContainer: document.createElement("div"),
- deleteBtn: document.createElement("setting-button")
- };
- dom.container.classList.add("setting-host-list-item");
- dom.container.dataset.direction = "row";
- Object.assign(dom.input, inputAttrs);
- dom.input.classList.add("q-input__inner");
- dom.input.type = "url";
- dom.input.value = host;
- dom.input.addEventListener("input", () => {
- ob11Config[type.split("-")[0]][type.split("-")[1]][index] = dom.input.value;
- });
- dom.inputContainer.classList.add("q-input");
- dom.inputContainer.appendChild(dom.input);
- dom.deleteBtn.innerHTML = "删除";
- dom.deleteBtn.dataset.type = "secondary";
- dom.deleteBtn.addEventListener("click", () => {
- ob11Config[type.split("-")[0]][type.split("-")[1]].splice(index, 1);
- initReverseHost(type);
- });
- dom.container.appendChild(dom.inputContainer);
- dom.container.appendChild(dom.deleteBtn);
- return dom.container;
- };
- const buildHostList = (hosts, type, inputAttr = {}) => {
- const result = [];
- hosts?.forEach((host, index) => {
- result.push(buildHostListItem(type, host, index, inputAttr));
- });
- return result;
- };
- const addReverseHost = (type, doc2 = document, inputAttr = {}) => {
- type = type.replace(/\./g, "-");
- const hostContainerDom = doc2.body.querySelector(
- `#config-ob11-${type}-list`
- );
- hostContainerDom?.appendChild(
- buildHostListItem(
- type,
- "",
- ob11Config[type.split("-")[0]][type.split("-")[1]].length,
- inputAttr
- )
- );
- ob11Config[type.split("-")[0]][type.split("-")[1]].push("");
- };
- const initReverseHost = (type, doc2 = document) => {
- type = type.replace(/\./g, "-");
- const hostContainerDom = doc2.body?.querySelector(
- `#config-ob11-${type}-list`
- );
- if (hostContainerDom) {
- [...hostContainerDom.childNodes].forEach((dom) => dom.remove());
- buildHostList(
- ob11Config[type.split("-")[0]][type.split("-")[1]],
- type
- ).forEach((dom) => {
- hostContainerDom?.appendChild(dom);
- });
- }
- };
- initReverseHost("http.postUrls", doc);
- initReverseHost("reverseWs.urls", doc);
- initReverseHost("GroupLocalTime.RecordList", doc);
- doc.querySelector("#config-ob11-http-postUrls-add")?.addEventListener(
- "click",
- () => addReverseHost("http.postUrls", document, {
- placeholder: "如:http://127.0.0.1:5140/onebot"
- })
- );
- doc.querySelector("#config-ob11-reverseWs-urls-add")?.addEventListener(
- "click",
- () => addReverseHost("reverseWs.urls", document, {
- placeholder: "如:ws://127.0.0.1:5140/onebot"
- })
- );
- doc.querySelector("#config-ob11-GroupLocalTime-RecordList-add")?.addEventListener(
- "click",
- () => addReverseHost("GroupLocalTime.RecordList", document, {
- placeholder: "此处填写群号 -1为全部"
- })
- );
- doc.querySelector("#config-ffmpeg-select")?.addEventListener("click", () => {
- });
- doc.querySelector("#config-open-log-path")?.addEventListener("click", () => {
- });
- doc.querySelectorAll("setting-switch[data-config-key]").forEach((dom) => {
- dom.addEventListener("click", () => {
- const active = dom.getAttribute("is-active") == void 0;
- setOB11Config(dom.dataset.configKey, active);
- if (active) dom.setAttribute("is-active", "");
- else dom.removeAttribute("is-active");
- if (!isEmpty(dom.dataset.controlDisplayId)) {
- const displayDom = document.querySelector(
- //@ts-expect-error 等待修复
- `#${dom.dataset.controlDisplayId}`
- );
- if (active) displayDom?.removeAttribute("is-hidden");
- else displayDom?.setAttribute("is-hidden", "");
- }
- });
- });
- doc.querySelectorAll(
- "setting-item .q-input input.q-input__inner[data-config-key]"
- ).forEach((dom) => {
- dom.addEventListener("input", () => {
- const Type = dom.getAttribute("type");
- const configKey = dom.dataset.configKey;
- const configValue = Type === "number" ? parseInt(dom.value) >= 1 ? parseInt(dom.value) : 1 : dom.value;
- setOB11Config(configKey, configValue);
- });
- });
- doc.querySelectorAll("ob-setting-select[data-config-key]").forEach((dom) => {
- dom?.addEventListener("selected", (e) => {
- const configKey = dom.dataset.configKey;
- const configValue = e.detail.value;
- setOB11Config(configKey, configValue);
- });
- });
- doc.querySelector("#config-ob11-save")?.addEventListener("click", () => {
- OB11ConfigWrapper.SetOB11Config(ob11Config);
- alert("保存成功");
- });
- doc.body.childNodes.forEach((node) => {
- view.appendChild(node);
- });
-}
-
-export { onSettingWindowCreated };
diff --git a/static/assets/style.css b/static/assets/style.css
deleted file mode 100644
index c52bec45..00000000
--- a/static/assets/style.css
+++ /dev/null
@@ -1,201 +0,0 @@
-body, html {
- background: var(--bg_bottom_standard);
- color: var(--text_primary);
- font-family: "Color Emoji", system-ui, "PingFang SC", PingFangSC-Regular, "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", Arial, Helvetica, sans-serif, "Apple Braille", "Color Emoji Fix";
- min-height: 100vh;
- scroll-behavior: smooth;
- width: 100%;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- -o-user-select: none;
- user-select: none;
-
- --z_index_popover: 999;
- --nt_mix_tokens: nt_brand_standard_2_overlay_hover_brand_2_mix,nt_brand_standard_2_overlay_pressed_brand_2_mix,nt_feedback_error_2_overlay_hover_brand_2_mix,nt_feedback_error_2_overlay_pressed_brand_2_mix,nt_icon_white_2_overlay_hover_2_mix,nt_icon_white_2_overlay_pressed_2_mix,nt_bubble_host_2_overlay_pressed_brand_2_mix,nt_bg_white_2_overlay_pressed_brand_2_mix,nt_bg_white_2_overlay_hover_2_mix,nt_bg_white_2_overlay_pressed_2_mix,nt_fg_white_2_overlay_hover_2_mix,nt_fg_white_2_overlay_pressed_2_mix,nt_icon_red_2_overlay_hover_2_mix,nt_icon_red_2_overlay_pressed_2_mix,nt_fg_grey_standard_2_overlay_hover_2_mix,nt_fg_grey_standard_2_overlay_pressed_2_mix,nt_bubble_guest_2_overlay_pressed_2_mix,nt_icon_primary_2_20_2_alpha,nt_bg_grey_standard_2_95_2_alpha,nt_tag_red_2_20_2_alpha,nt_tag_red_2_25_2_alpha,nt_tag_blue_2_20_2_alpha,nt_tag_blue_2_25_2_alpha,nt_tag_blue_2_10_2_alpha,nt_tag_purple_2_20_2_alpha,nt_brand_standard_2_20_2_alpha,nt_tag_sage_green_2_20_2_alpha,nt_feedback_error_2_20_2_alpha,nt_text_white_2_60_2_alpha,nt_bg_white_2_70_2_alpha,nt_bg_white_2_90_2_alpha,nt_bg_white_2_97_2_alpha,nt_bg_white_2_40_2_alpha,nt_bg_white_2_30_2_alpha,nt_text_white_2_80_2_alpha,nt_brand_standard_2_50_2_alpha,nt_bg_nav_secondary_2_60_2_alpha,nt_bg_nav_2_60_2_alpha,nt_feedback_error_2_10_2_alpha,nt_brand_standard_2_10_2_alpha,nt_on_brand_primary_2_40_2_alpha,nt_text_primary_2_72_2_alpha,nt_text_white_2_72_2_alpha;
- }
-
- a, address, article, aside, b, blockquote, body, div, em, fieldset, footer, form, h1, h2, h3, h4, h5, h6, header, html, i, iframe, img, label, legend, li, main, nav, ol, p, s, section, span, table, tbody, td, tfoot, th, thead, tr, ul {
- box-sizing: border-box;
- font-size: 100%;
- font-style: inherit;
- font-weight: inherit;
- border: 0px;
- margin: 0px;
- padding: 0px;
- }
-
- #app {
- position: relative;
- display: block;
- padding: 20px;
- min-height: 100vh;
- background: transparent;
- }
-
- .fake-bar {
- position: fixed;
- display: none;
- top: 0;
- left: 0;
- }
-
- /* ======== Input ======== */
- .q-input {
- align-items: center;
- border-radius: 4px;
- box-sizing: border-box;
- color: var(--text_secondary);
- display: inline-flex;
- position: relative;
- width: 100%;
- border: 1px solid transparent;
- }
-
- .q-input input, .q-input textarea {
- appearance: none;
- background-color: transparent;
- box-sizing: border-box;
- color: var(--text_primary);
- flex-grow: 1;
- flex-shrink: 1;
- flex-basis: 0%;
- font-size: 14px;
- height: fit-content;
- outline-color: initial;
- outline-style: none;
- outline-width: initial;
- resize: none;
- width: 100%;
- border: none;
- }
-
- /* ======== Switch ======== */
- .q-switch {
- background-color: var(--fill_standard_primary);
- border-radius: 14px;
- box-sizing: border-box;
- display: inline-flex;
- position: relative;
- transition-behavior: normal;
- transition-duration: 0.2s;
- transition-timing-function: cubic-bezier(0.38, 0, 0.24, 1);
- transition-delay: 0s;
- transition-property: all;
- width: 28px;
- padding: 3px;
- }
-
- .q-switch__handle {
- border-radius: 5px;
- box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 4px;
- box-sizing: border-box;
- display: inline-block;
- height: 10px;
- position: relative;
- transition-behavior: normal;
- transition-duration: 0.2s;
- transition-timing-function: cubic-bezier(0.38, 0, 0.24, 1);
- transition-delay: 0s;
- transition-property: all;
- width: 10px;
- z-index: 2;
- background: var(--icon_white);
- }
-
- .q-switch:not(.is-disabled):hover {
- background: var(--fill_standard_secondary);
- }
-
- .q-switch:not(.is-disabled):active {
- background: var(--nt_bg_white_2_overlay_pressed_brand_2_mix);
- }
- .q-switch:not(.is-disabled):active .q-switch__handle {
- width: 12px;
- }
-
- .q-switch.is-active {
- background-color: var(--brand_standard);
- }
-
- .q-switch.is-active .q-switch__handle {
- transform: translateX(12px);
- }
-
- .q-switch.is-active:not(.is-disabled):hover {
- background: var(--nt_brand_standard_2_overlay_hover_brand_2_mix);
- }
-
- .q-switch.is-active:not(.is-disabled):active {
- background: var(--nt_brand_standard_2_overlay_pressed_brand_2_mix);
- }
- .q-switch.is-active:not(.is-disabled):active .q-switch__handle {
- transform: translateX(10px);
- }
-
- /* ======== Button ======== */
- .q-button {
- align-items: center;
- background-color: var(--brand_standard);
- border-top-left-radius: 4px;
- border-top-right-radius: 4px;
- border-bottom-right-radius: 4px;
- border-bottom-left-radius: 4px;
- display: inline-flex;
- font-size: 14px;
- justify-content: center;
- line-height: 18px;
- outline-color: initial;
- outline-style: none;
- outline-width: initial;
- position: relative;
- vertical-align: text-bottom;
- border: 1px solid var(--fg_grey_standard);
- padding: 5px 11px;
- }
-
- .q-button--small {
- font-size: 12px;
- line-height: 14px;
- min-width: 62px;
- padding: 4px 7px;
- }
-
- .q-button--primary {
- background-color: var(--brand_standard);
- border-color: var(--brand_standard);
- color: var(--on_brand_primary);
- }
-
- .q-button--secondary {
- background-color: transparent;
- border-color: var(--fg_grey_standard);
- color: var(--text_primary);
- }
-
- .q-button:not([disabled]):hover {
- background-color: var(--overlay_hover);
- }
-
- .q-button:not([disabled]):active {
- background-color: var(--overlay_pressed);
- }
-
- .q-button--primary:hover {
- background-color: var(--nt_brand_standard_2_overlay_hover_brand_2_mix);
- border-color: var(--nt_brand_standard_2_overlay_hover_brand_2_mix);
- }
-
- .q-button--primary:active {
- background-color: var(--nt_brand_standard_2_overlay_pressed_brand_2_mix);
- border-color: var(--nt_brand_standard_2_overlay_pressed_brand_2_mix);
- }
-
- .q-button[disabled] {
- opacity: 0.3;
- cursor: not-allowed;
- }
-
- .q-button--secondary[disabled] {
- background-color: transparent;
- }
\ No newline at end of file
diff --git a/static/assets/webcomponents.css b/static/assets/webcomponents.css
deleted file mode 100644
index ff7363c1..00000000
--- a/static/assets/webcomponents.css
+++ /dev/null
@@ -1,350 +0,0 @@
-*[is-disabled] {
- opacity: 0.3;
- -webkit-pointer-events: none;
- -moz-pointer-events: none;
- -ms-pointer-events: none;
- -o-pointer-events: none;
- pointer-events: none;
- cursor: not-allowed;
- }
-
- setting-section::before {
- content: attr(data-title);
- display: block;
- margin: 0px 0px 8px 16px;
- color: var(--text_primary);
- font-weight: var(--font-bold);
- font-size: min(var(--font_size_3), 18px);
- line-height: min(var(--line_height_3), 24px);
- }
-
- setting-panel {
- display: block;
- margin-bottom: 20px;
- }
-
- setting-section:last-child setting-panel {
- margin-bottom: 0;
- }
-
- setting-list,
- setting-list[data-direction="column"] {
- display: flex;
- background-color: var(--fill_light_primary);
- border-radius: 8px;
- flex-direction: column;
- align-items: stretch;
- justify-content: space-between;
- }
-
- setting-list[data-direction="row"] {
- padding: 16px 0;
- flex-direction: row;
- justify-content: space-around;
- }
- setting-list[data-direction="row"],
- setting-list[data-direction="row"] * {
- text-align: center;
- }
-
- setting-item {
- display: flex;
- padding: 12px 16px;
- background-color: var(--fill_light_primary);
- font-size: min(var(--font_size_3),18px);
- line-height: min(var(--line_height_3),24px);
- border-radius: 8px;
- align-items: center;
- justify-content: space-between;
- }
-
- setting-item > *:first-child {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: flex-start;
- flex-wrap: nowrap;
- }
-
- setting-list[data-direction="row"] setting-item {
- padding: 0;
- margin: 0 10px;
- flex: 1;
- }
-
- setting-list[data-direction="row"] setting-item > *:first-child {
- align-items: center;
- flex: 1;
- }
-
- setting-list[data-direction="row"] setting-item > *:first-child > * {
- flex: 1;
- }
-
- setting-list setting-divider,
- setting-list[data-direction="column"] setting-divider {
- display: block;
- position: relative;
- width: unset;
- height: 1px;
- margin: 0 16px;
- background-color: var(--border_standard);
- }
-
- setting-list[data-direction="row"] setting-divider {
- width: 1px;
- height: unset;
- margin: 0;
- }
-
- setting-text[data-type="secondary"] {
- margin-top: 4px;
- color: var(--text_secondary);
- font-size: min(var(--font_size_2),16px);
- line-height: min(var(--line_height_2),22px);
- }
-
- setting-switch {
- --transition-timing: cubic-bezier(0.38, 0, 0.24, 1);
-
- display: block;
- position: relative;
- width: 28px;
- height: 16px;
- background: var(--fill_standard_primary);
- border-radius: 14px;
- transition: background var(--transition-timing) .2s;
- }
- setting-switch::after {
- content: '';
- display: block;
- position: absolute;
- top: 0px;
- left: 0px;
- margin: 3px;
- width: 10px;
- height: 10px;
- background: var(--icon_white);
- box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 4px;
- border-radius: 5px;
- transition: width var(--transition-timing) .2s,
- left var(--transition-timing) .2s;
- }
-
- setting-switch[is-active] {
- background: var(--brand_standard);
- }
- setting-switch[is-active]::after {
- left: calc(100% - 16px);
- }
-
- setting-switch:hover {
- background: var(--fill_standard_secondary);
- }
- setting-switch[is-active]:hover {
- background: var(--nt_brand_standard_2_overlay_hover_brand_2_mix);
- }
-
- setting-switch:active {
- background: var(--nt_bg_white_2_overlay_pressed_brand_2_mix);
- }
- setting-switch[is-active]:active {
- background: var(--nt_brand_standard_2_overlay_pressed_brand_2_mix);
- }
-
- setting-switch:active::after {
- width: 12px;
- }
- setting-switch[is-active]:active::after {
- left: calc(100% - 18px);
- }
-
- setting-button,
- setting-button[data-type="secondary"] {
- position: relative;
- display: inline-flex;
- padding: 5px 11px;
- min-width: 62px;
- background-color: transparent;
- color: var(--text_primary);
- border-radius: 4px;
- font-size: 12px;
- line-height: 12px;
- justify-content: center;
- outline-color: initial;
- outline-style: none;
- outline-width: initial;
- vertical-align: text-bottom;
- border: 1px solid var(--fg_grey_standard);
- align-items: center;
- box-sizing: border-box;
- }
-
- setting-button[data-type="primary"] {
- background-color: var(--brand_standard);
- color: var(--on_brand_primary);
- border-color: var(--brand_standard);
- }
-
- setting-button:hover,
- setting-button[data-type="secondary"]:hover {
- background-color: var(--overlay_hover);
- }
-
- setting-button:active,
- setting-button[data-type="secondary"]:active {
- background-color: var(--overlay_pressed);
- }
-
- setting-button[data-type="primary"]:hover {
- background-color: var(--nt_brand_standard_2_overlay_hover_brand_2_mix);
- border-color: var(--nt_brand_standard_2_overlay_hover_brand_2_mix);
- }
-
- setting-button[data-type="primary"]:active {
- background-color: var(--nt_brand_standard_2_overlay_pressed_brand_2_mix);
- border-color: var(--nt_brand_standard_2_overlay_pressed_brand_2_mix);
- }
-
- setting-select,
- setting-select::part(parent),
- setting-select::part(button) {
- display: block;
- position: relative;
- height: 24px;
- font-size: 12px;
- line-height: 24px;
- box-sizing: border-box;
- }
-
- setting-select::part(button) {
- display: flex;
- padding: 0px 8px;
- background-color: transparent;
- border-radius: 4px;
- border: 1px solid var(--border_dark);
- z-index: 5;
- cursor: default;
- align-items: center;
- flex-direction: row;
- flex-wrap: nowrap;
- }
-
- setting-select::part(current-text) {
- display: block;
- margin-right: 8px;
- padding: 0px;
- background: none;
- background-color: transparent;
- font-size: 12px;
- color: var(--text_primary);
- text-overflow: ellipsis;
- border-radius: 0px;
- border: none;
- outline: none;
- overflow: hidden;
- appearance: none;
- box-sizing: border-box;
- cursor: default;
- flex: 1;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- -o-user-select: none;
- user-select: none;
- -webkit-pointer-events: none;
- -moz-pointer-events: none;
- -ms-pointer-events: none;
- -o-pointer-events: none;
- pointer-events: none;
- }
-
- setting-select::part(button-arrow) {
- position: relative;
- display: block;
- width: 16px;
- height: 16px;
- color: var(--icon_primary);
- }
-
- setting-select::part(option-list) {
- display: flex;
- position: absolute;
- top: 100%;
- padding: 4px;
- margin: 5px 0px;
- width: 100%;
- max-height: var(--q-contextmenu-max-height);
- background-color: var(--blur_middle_standard);
- background-clip: padding-box;
- backdrop-filter: blur(8px);
- font-size: 12px;
- box-shadow: var(--shadow_bg_middle_secondary);
- border: 1px solid var(--border_secondary);
- border-radius: 4px;
- box-sizing: border-box;
- app-region: no-drag;
- overflow-x: hidden;
- overflow-y: auto;
- list-style: none;
- z-index: 999;
- flex-direction: column;
- align-items: stretch;
- flex-wrap: nowrap;
- justify-content: flex-start;
- gap: 4px;
- }
-
- setting-option,
- setting-option::part(parent) {
- display: block;
- position: relative;
- box-sizing: border-box;
- }
-
- setting-option::part(parent) {
- display: flex;
- padding: 0px 8px;
- color: var(--text_primary);
- font-size: 12px;
- line-height: 24px;
- border-radius: 4px;
- flex-direction: row;
- align-items: center;
- flex-wrap: nowrap;
- justify-content: flex-start;
- }
-
- setting-option:hover::part(parent) {
- background-color: var(--overlay_hover);
- }
-
- setting-option:active::part(parent) {
- background-color: var(--overlay_pressed);
- }
-
- setting-option[is-selected]::part(parent) {
- background-color: var(--overlay_active);
- }
-
- setting-option::part(text) {
- margin-right: 8px;
- overflow: hidden;
- text-wrap: nowrap;
- text-overflow: ellipsis;
- flex: 1;
- }
-
- setting-option::part(check-icon) {
- display: none;
- position: relative;
- right: -4px;
- width: 1em;
- height: 1em;
- color: var(--icon_primary);
- flex-shrink: 0;
- }
-
- setting-option[is-selected]::part(check-icon) {
- display: block;
- }
\ No newline at end of file
diff --git a/static/config.html b/static/config.html
deleted file mode 100644
index 17c743aa..00000000
--- a/static/config.html
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-