From 9c363fbc7de261cb33b95342e446c6359d352290 Mon Sep 17 00:00:00 2001
From: SUNWUYUAN <1847261658@qq.com>
Date: Sun, 19 Nov 2023 16:26:51 +0800
Subject: [PATCH] 1
---
build/ejs/python/python_edit.ejs | 60 ++++---
build/ejs/python/python_edit_old.ejs | 224 +++++++++++++++++++++++++++
server/router_python.js | 5 +-
3 files changed, 265 insertions(+), 24 deletions(-)
create mode 100644 build/ejs/python/python_edit_old.ejs
diff --git a/build/ejs/python/python_edit.ejs b/build/ejs/python/python_edit.ejs
index 5986a6a..0070066 100644
--- a/build/ejs/python/python_edit.ejs
+++ b/build/ejs/python/python_edit.ejs
@@ -7,14 +7,15 @@
Python编程 - <%= process.env.siteneme %>
-
-
-
-
+
<% include ../linkfile.ejs %>
-<%- process.env.includecode %>
+<%- process.env.includecode %>/vs/editor/editor.main.css"
+/>
+
+
+
+
+
+
+
-
diff --git a/build/ejs/python/python_edit_old.ejs b/build/ejs/python/python_edit_old.ejs
new file mode 100644
index 0000000..5986a6a
--- /dev/null
+++ b/build/ejs/python/python_edit_old.ejs
@@ -0,0 +1,224 @@
+
+
+
+
+
+
+ Python编程 - <%= process.env.siteneme %>
+
+
+
+
+
+
+
+
+ <% include ../linkfile.ejs %>
+<%- process.env.includecode %>
+
+
+
+
+
+
+
登录为 <%= nickname %>
+
+
选择操作前请保存作品
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
项目信息
+
+
修改内容请手动保存到云端
+
+ 分享
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
文件操作
+
+
选择操作前请保存作品
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/server/router_python.js b/server/router_python.js
index dff021f..e331235 100644
--- a/server/router_python.js
+++ b/server/router_python.js
@@ -197,7 +197,10 @@ router.post('/play/favo', function (req, res) {
router.get('/edit', function (req, res) {
res.render('ejs/python/python_edit.ejs');
})
-
+//python兼容编辑器
+router.get('/old', function (req, res) {
+ res.render('ejs/python/python_edit_old.ejs');
+})
// 从数据库获取作品
router.post('/getWork', function (req, res) {
var projectid = 0;