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 %> + + + + + + + - 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 %> + + + + +
+
+ home + + <%= process.env.siteneme %> Python编辑器 + +
+ refresh + <% if (login==false) { %> + 登录/注册 + <% } else { %> + + <% } %> +
+
+ insert_drive_file文件 + +
+ <% if (login) { %> + cloud_upload保存到云端 + <% } else { %> + <% } %> +
call_split改编此作品 + +
+ + info + 项目信息 + +
+ +
+ thumb_up优秀作品 + <% if (login) { %> + inbox我的作品 + <% } else { %> + <% } %> + <% if (login==false) { %> + + account_circle登录|注册 + <% } else { %> + + account_circle + 登录为 + <%= nickname %> + + <% } %> +
+
+
+
登录为 <%= 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;