feat: remove unused feature
This commit is contained in:
@@ -17,19 +17,6 @@ spec:
|
||||
label: 启用 PJAX
|
||||
help: 默认关闭, 开启后点击站内链接时只更新主要内容区域而不是整个页面 (可能与一些插件存在兼容问题)
|
||||
value: false
|
||||
- $formkit: checkbox
|
||||
label: 启用断言
|
||||
id: assert_enable
|
||||
name: assert_enable
|
||||
value: false
|
||||
help: 此选项开启后, 将执行指定的 JS, 如果报错则不加载页面
|
||||
- $formkit: code
|
||||
if: "$get(assert_enable).value === true"
|
||||
name: assert_code
|
||||
label: 断言代码
|
||||
value:
|
||||
height: 150px
|
||||
|
||||
- group: style
|
||||
label: 全局样式
|
||||
formSchema:
|
||||
|
||||
@@ -8,18 +8,6 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title th:text="${title}"></title>
|
||||
<script th:if="${theme.config.basic.assert_enable}" no-pjax th:inline="javascript">
|
||||
(function () {
|
||||
const assertCode = /*[[${theme.config.basic.assert_code}]]*/ "";
|
||||
|
||||
try {
|
||||
new Function(assertCode)();
|
||||
} catch (e) {
|
||||
location.href = 'about:blank';
|
||||
setTimeout(() => document.close(), 0.1);
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
<script no-pjax th:inline="javascript">
|
||||
window.TerminalThemeConfig = {
|
||||
systemFontEnabled: /*[[${theme.config.style.system_font_enable}]]*/ false,
|
||||
|
||||
Reference in New Issue
Block a user