mirror of
https://github.com/kxgx/2.13-Ink-screen-clock.git
synced 2026-05-12 02:35:04 +08:00
Add files via upload
This commit is contained in:
9
app/webui/default.min.css
vendored
Normal file
9
app/webui/default.min.css
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
/*!
|
||||||
|
Theme: Default
|
||||||
|
Description: Original highlight.js style
|
||||||
|
Author: (c) Ivan Sagalaev <maniac@softwaremaniacs.org>
|
||||||
|
Maintainer: @highlightjs/core-team
|
||||||
|
Website: https://highlightjs.org/
|
||||||
|
License: see project LICENSE
|
||||||
|
Touched: 2021
|
||||||
|
*/pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}
|
||||||
27
app/webui/edit_main_py.html
Normal file
27
app/webui/edit_main_py.html
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>编辑 main.py</title>
|
||||||
|
<!-- 引用本地的highlight.js CSS -->
|
||||||
|
<link rel="stylesheet" href="{{ url_for('static', filename='default.min.css') }}">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>编辑 main.py</h1>
|
||||||
|
<!-- 添加一个表单来提交编辑后的代码 -->
|
||||||
|
<form method="post" action="{{ url_for('save_main_py') }}">
|
||||||
|
<pre><code class="python" id="code">{{ content }}</code></pre>
|
||||||
|
<input type="hidden" name="content" id="hidden-content">
|
||||||
|
<input type="submit" value="保存">
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<!-- 引用本地的highlight.js JavaScript -->
|
||||||
|
<script src="{{ url_for('static', filename='highlight.min.js') }}"></script>
|
||||||
|
<script>
|
||||||
|
// 初始化highlight.js
|
||||||
|
document.addEventListener('DOMContentLoaded', (event) => {
|
||||||
|
hljs.highlightAll();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
1213
app/webui/highlight.min.js
vendored
Normal file
1213
app/webui/highlight.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -19,5 +19,9 @@
|
|||||||
<li>没有找到字体文件。</li>
|
<li>没有找到字体文件。</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<!-- 添加跳转到edit_main_py的按钮 -->
|
||||||
|
<a href="/edit_main_py"><button>编辑main.py</button></a>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user