From 522de0090927a263cbd5903aeb621c6c74ae3412 Mon Sep 17 00:00:00 2001 From: SUNWUYUAN <1847261658@qq.com> Date: Sat, 14 Oct 2023 14:43:27 +0800 Subject: [PATCH] 1 --- app.js | 89 +- build/ejs/hand.ejs | 11 +- build/ejs/index.ejs | 357 +- build/ejs/my_info.ejs | 6 +- build/ejs/owpython.png | Bin 0 -> 36738 bytes build/ejs/owscratch.png | Bin 0 -> 32573 bytes build/ejs/python/CodeMirror.js | 9755 ---- ...\211\210\346\234\254\357\274\2323.3.7.txt" | 0 .../python/bootstrap/css/bootstrap-theme.css | 587 - .../bootstrap/css/bootstrap-theme.min.css | 6 - build/ejs/python/bootstrap/css/bootstrap.css | 6757 --- .../python/bootstrap/css/bootstrap.min.css | 6 - .../fonts/glyphicons-halflings-regular.eot | Bin 20127 -> 0 bytes .../fonts/glyphicons-halflings-regular.svg | 288 - .../fonts/glyphicons-halflings-regular.ttf | Bin 45404 -> 0 bytes .../fonts/glyphicons-halflings-regular.woff | Bin 23424 -> 0 bytes .../fonts/glyphicons-halflings-regular.woff2 | Bin 18028 -> 0 bytes build/ejs/python/bootstrap/js/bootstrap.js | 2377 - .../ejs/python/bootstrap/js/bootstrap.min.js | 7 - build/ejs/python/css/3024-day.css | 41 - build/ejs/python/css/3024-night.css | 39 - build/ejs/python/css/CodeMirror.css | 347 - build/ejs/python/css/bootstrap.css | 2 - build/ejs/python/css/dracula.css | 40 - build/ejs/python/css/erlang-dark.css | 34 - build/ejs/python/css/main-v2.css | 1 - build/ejs/python/css/main.css | 20340 --------- build/ejs/python/css/show-hint.css | 36 - build/ejs/python/css/solarized.css | 168 - build/ejs/python/css/style.css | 57 - build/ejs/python/edx_problem_blocks.xml | 1 - build/ejs/python/img/file.svg | 22 - build/ejs/python/img/publish.svg | 11 - build/ejs/python/img/save.svg | 17 - .../ejs/python/img/welcome_python_editor.png | Bin 925379 -> 0 bytes build/ejs/python/js/blockly_compressed.js | 1604 - build/ejs/python/js/blocks_compressed.js | 156 - build/ejs/python/js/file-saver.js | 188 - build/ejs/python/js/index.js | 3388 -- build/ejs/python/js/my_blocks.js | 427 - build/ejs/python/js/python_compressed.js | 79 - build/ejs/python/js/show-hint.js | 460 - build/ejs/python/media/1x1.gif | Bin 43 -> 0 bytes build/ejs/python/media/click.mp3 | Bin 2304 -> 0 bytes build/ejs/python/media/click.ogg | Bin 4865 -> 0 bytes build/ejs/python/media/click.wav | Bin 3782 -> 0 bytes build/ejs/python/media/delete.mp3 | Bin 3123 -> 0 bytes build/ejs/python/media/delete.ogg | Bin 5731 -> 0 bytes build/ejs/python/media/delete.wav | Bin 9164 -> 0 bytes build/ejs/python/media/disconnect.mp3 | Bin 1586 -> 0 bytes build/ejs/python/media/disconnect.ogg | Bin 4404 -> 0 bytes build/ejs/python/media/disconnect.wav | Bin 1492 -> 0 bytes build/ejs/python/media/handclosed.cur | Bin 326 -> 0 bytes build/ejs/python/media/handdelete.cur | Bin 766 -> 0 bytes build/ejs/python/media/handopen.cur | Bin 198 -> 0 bytes build/ejs/python/media/quote0.png | Bin 796 -> 0 bytes build/ejs/python/media/quote1.png | Bin 738 -> 0 bytes build/ejs/python/media/sprites.png | Bin 4146 -> 0 bytes build/ejs/python/media/sprites.svg | 74 - build/ejs/python/mode/clike.js | 935 - build/ejs/python/mode/javascript.js | 930 - build/ejs/python/mode/lua.js | 159 - build/ejs/python/mode/php.js | 234 - build/ejs/python/mode/python.js | 399 - build/ejs/python/msg/js/ab.js | 425 - build/ejs/python/msg/js/ar.js | 425 - build/ejs/python/msg/js/az.js | 425 - build/ejs/python/msg/js/ba.js | 425 - build/ejs/python/msg/js/bcc.js | 425 - build/ejs/python/msg/js/be-tarask.js | 425 - build/ejs/python/msg/js/be.js | 425 - build/ejs/python/msg/js/bg.js | 425 - build/ejs/python/msg/js/bn.js | 425 - build/ejs/python/msg/js/br.js | 425 - build/ejs/python/msg/js/ca.js | 425 - build/ejs/python/msg/js/cs.js | 425 - build/ejs/python/msg/js/da.js | 425 - build/ejs/python/msg/js/de.js | 425 - build/ejs/python/msg/js/diq.js | 425 - build/ejs/python/msg/js/el.js | 425 - build/ejs/python/msg/js/en-gb.js | 425 - build/ejs/python/msg/js/en.js | 425 - build/ejs/python/msg/js/eo.js | 425 - build/ejs/python/msg/js/es.js | 425 - build/ejs/python/msg/js/et.js | 425 - build/ejs/python/msg/js/fa.js | 425 - build/ejs/python/msg/js/fi.js | 425 - build/ejs/python/msg/js/fr.js | 425 - build/ejs/python/msg/js/he.js | 425 - build/ejs/python/msg/js/hi.js | 425 - build/ejs/python/msg/js/hrx.js | 425 - build/ejs/python/msg/js/hu.js | 425 - build/ejs/python/msg/js/ia.js | 425 - build/ejs/python/msg/js/id.js | 425 - build/ejs/python/msg/js/is.js | 425 - build/ejs/python/msg/js/it.js | 425 - build/ejs/python/msg/js/ja.js | 425 - build/ejs/python/msg/js/kab.js | 425 - build/ejs/python/msg/js/ko.js | 425 - build/ejs/python/msg/js/lb.js | 425 - build/ejs/python/msg/js/lki.js | 425 - build/ejs/python/msg/js/lrc.js | 425 - build/ejs/python/msg/js/lt.js | 425 - build/ejs/python/msg/js/lv.js | 425 - build/ejs/python/msg/js/mk.js | 425 - build/ejs/python/msg/js/ms.js | 425 - build/ejs/python/msg/js/nb.js | 425 - build/ejs/python/msg/js/nl.js | 425 - build/ejs/python/msg/js/oc.js | 425 - build/ejs/python/msg/js/pl.js | 425 - build/ejs/python/msg/js/pms.js | 425 - build/ejs/python/msg/js/pt-br.js | 425 - build/ejs/python/msg/js/pt.js | 425 - build/ejs/python/msg/js/ro.js | 425 - build/ejs/python/msg/js/ru.js | 425 - build/ejs/python/msg/js/sc.js | 425 - build/ejs/python/msg/js/sd.js | 425 - build/ejs/python/msg/js/shn.js | 425 - build/ejs/python/msg/js/sk.js | 425 - build/ejs/python/msg/js/sl.js | 425 - build/ejs/python/msg/js/sq.js | 425 - build/ejs/python/msg/js/sr.js | 425 - build/ejs/python/msg/js/sv.js | 425 - build/ejs/python/msg/js/ta.js | 425 - build/ejs/python/msg/js/tcy.js | 425 - build/ejs/python/msg/js/th.js | 425 - build/ejs/python/msg/js/tl.js | 425 - build/ejs/python/msg/js/tlh.js | 425 - build/ejs/python/msg/js/tr.js | 425 - build/ejs/python/msg/js/uk.js | 425 - build/ejs/python/msg/js/vi.js | 425 - build/ejs/python/msg/js/zh-hans.js | 425 - build/ejs/python/msg/js/zh-hant.js | 425 - build/ejs/python/msg/json/ab.json | 191 - build/ejs/python/msg/json/ar.json | 345 - build/ejs/python/msg/json/az.json | 297 - build/ejs/python/msg/json/ba.json | 208 - build/ejs/python/msg/json/bcc.json | 287 - build/ejs/python/msg/json/be-tarask.json | 340 - build/ejs/python/msg/json/be.json | 333 - build/ejs/python/msg/json/bg.json | 343 - build/ejs/python/msg/json/bn.json | 193 - build/ejs/python/msg/json/br.json | 343 - build/ejs/python/msg/json/ca.json | 292 - build/ejs/python/msg/json/constants.json | 1 - build/ejs/python/msg/json/cs.json | 335 - build/ejs/python/msg/json/da.json | 340 - build/ejs/python/msg/json/de.json | 376 - build/ejs/python/msg/json/diq.json | 192 - build/ejs/python/msg/json/el.json | 371 - build/ejs/python/msg/json/en-gb.json | 143 - build/ejs/python/msg/json/en.json | 396 - build/ejs/python/msg/json/eo.json | 195 - build/ejs/python/msg/json/es.json | 349 - build/ejs/python/msg/json/et.json | 311 - build/ejs/python/msg/json/eu.json | 161 - build/ejs/python/msg/json/fa.json | 334 - build/ejs/python/msg/json/fi.json | 351 - build/ejs/python/msg/json/fr.json | 355 - build/ejs/python/msg/json/he.json | 276 - build/ejs/python/msg/json/hi.json | 339 - build/ejs/python/msg/json/hrx.json | 287 - build/ejs/python/msg/json/hu.json | 355 - build/ejs/python/msg/json/ia.json | 296 - build/ejs/python/msg/json/id.json | 333 - build/ejs/python/msg/json/is.json | 365 - build/ejs/python/msg/json/it.json | 345 - build/ejs/python/msg/json/ja.json | 364 - build/ejs/python/msg/json/kab.json | 335 - build/ejs/python/msg/json/ko.json | 394 - build/ejs/python/msg/json/lb.json | 141 - build/ejs/python/msg/json/lki.json | 294 - build/ejs/python/msg/json/lrc.json | 131 - build/ejs/python/msg/json/lt.json | 294 - build/ejs/python/msg/json/lv.json | 319 - build/ejs/python/msg/json/mk.json | 112 - build/ejs/python/msg/json/ms.json | 311 - build/ejs/python/msg/json/nb.json | 367 - build/ejs/python/msg/json/nl.json | 388 - build/ejs/python/msg/json/oc.json | 134 - build/ejs/python/msg/json/pl.json | 378 - build/ejs/python/msg/json/pms.json | 340 - build/ejs/python/msg/json/pt-br.json | 359 - build/ejs/python/msg/json/pt.json | 368 - build/ejs/python/msg/json/qqq.json | 399 - build/ejs/python/msg/json/ro.json | 318 - build/ejs/python/msg/json/ru.json | 351 - build/ejs/python/msg/json/sc.json | 297 - build/ejs/python/msg/json/sd.json | 152 - build/ejs/python/msg/json/shn.json | 108 - build/ejs/python/msg/json/sk.json | 345 - build/ejs/python/msg/json/sl.json | 370 - build/ejs/python/msg/json/sq.json | 325 - build/ejs/python/msg/json/sr.json | 367 - build/ejs/python/msg/json/sv.json | 363 - build/ejs/python/msg/json/synonyms.json | 1 - build/ejs/python/msg/json/ta.json | 296 - build/ejs/python/msg/json/tcy.json | 326 - build/ejs/python/msg/json/th.json | 333 - build/ejs/python/msg/json/tl.json | 130 - build/ejs/python/msg/json/tlh.json | 180 - build/ejs/python/msg/json/tr.json | 376 - build/ejs/python/msg/json/uk.json | 342 - build/ejs/python/msg/json/vi.json | 328 - build/ejs/python/msg/json/zh-hans.json | 362 - build/ejs/python/msg/json/zh-hant.json | 351 - build/ejs/python/msg/messages.js | 1185 - build/ejs/{ => python}/my_python_projects.ejs | 4 +- build/ejs/python/public.js | 84 - build/ejs/python/python_edit.ejs | 28 +- build/ejs/python/python_edit.js | 517 - build/ejs/python/python_play.ejs | 22 +- build/ejs/python/python_play.js | 163 - build/ejs/python/python_projects.ejs | 174 + build/ejs/python/showWorks.css | 76 - build/ejs/python/skulpt-stdlib.js | 1 - build/ejs/python/skulpt.min.js | 1063 - .../browser/ui/codicons/codicon/codicon.ttf | Bin 73464 -> 0 bytes .../base/common/worker/simpleWorker.nls.de.js | 8 - .../base/common/worker/simpleWorker.nls.es.js | 8 - .../base/common/worker/simpleWorker.nls.fr.js | 8 - .../base/common/worker/simpleWorker.nls.it.js | 8 - .../base/common/worker/simpleWorker.nls.ja.js | 8 - .../vs/base/common/worker/simpleWorker.nls.js | 8 - .../base/common/worker/simpleWorker.nls.ko.js | 8 - .../base/common/worker/simpleWorker.nls.ru.js | 8 - .../common/worker/simpleWorker.nls.zh-cn.js | 8 - .../common/worker/simpleWorker.nls.zh-tw.js | 8 - build/ejs/python/vs/base/worker/workerMain.js | 25 - .../python/vs/basic-languages/abap/abap.js | 10 - .../python/vs/basic-languages/apex/apex.js | 10 - .../python/vs/basic-languages/azcli/azcli.js | 10 - .../ejs/python/vs/basic-languages/bat/bat.js | 10 - .../python/vs/basic-languages/bicep/bicep.js | 11 - .../vs/basic-languages/cameligo/cameligo.js | 10 - .../vs/basic-languages/clojure/clojure.js | 10 - .../vs/basic-languages/coffee/coffee.js | 10 - .../ejs/python/vs/basic-languages/cpp/cpp.js | 10 - .../vs/basic-languages/csharp/csharp.js | 10 - .../ejs/python/vs/basic-languages/csp/csp.js | 10 - .../ejs/python/vs/basic-languages/css/css.js | 12 - .../vs/basic-languages/cypher/cypher.js | 10 - .../python/vs/basic-languages/dart/dart.js | 10 - .../basic-languages/dockerfile/dockerfile.js | 10 - .../ejs/python/vs/basic-languages/ecl/ecl.js | 10 - .../vs/basic-languages/elixir/elixir.js | 10 - .../python/vs/basic-languages/flow9/flow9.js | 10 - .../freemarker2/freemarker2.js | 12 - .../vs/basic-languages/fsharp/fsharp.js | 10 - build/ejs/python/vs/basic-languages/go/go.js | 10 - .../vs/basic-languages/graphql/graphql.js | 10 - .../basic-languages/handlebars/handlebars.js | 10 - .../ejs/python/vs/basic-languages/hcl/hcl.js | 10 - .../python/vs/basic-languages/html/html.js | 10 - .../ejs/python/vs/basic-languages/ini/ini.js | 10 - .../python/vs/basic-languages/java/java.js | 10 - .../basic-languages/javascript/javascript.js | 10 - .../python/vs/basic-languages/julia/julia.js | 10 - .../vs/basic-languages/kotlin/kotlin.js | 10 - .../python/vs/basic-languages/less/less.js | 11 - .../python/vs/basic-languages/lexon/lexon.js | 10 - .../vs/basic-languages/liquid/liquid.js | 10 - .../ejs/python/vs/basic-languages/lua/lua.js | 10 - build/ejs/python/vs/basic-languages/m3/m3.js | 10 - .../vs/basic-languages/markdown/markdown.js | 10 - .../python/vs/basic-languages/mips/mips.js | 10 - .../python/vs/basic-languages/msdax/msdax.js | 10 - .../python/vs/basic-languages/mysql/mysql.js | 10 - .../objective-c/objective-c.js | 10 - .../vs/basic-languages/pascal/pascal.js | 10 - .../vs/basic-languages/pascaligo/pascaligo.js | 10 - .../python/vs/basic-languages/perl/perl.js | 10 - .../python/vs/basic-languages/pgsql/pgsql.js | 10 - .../ejs/python/vs/basic-languages/php/php.js | 10 - .../ejs/python/vs/basic-languages/pla/pla.js | 10 - .../vs/basic-languages/postiats/postiats.js | 10 - .../basic-languages/powerquery/powerquery.js | 10 - .../basic-languages/powershell/powershell.js | 10 - .../vs/basic-languages/protobuf/protobuf.js | 11 - .../ejs/python/vs/basic-languages/pug/pug.js | 10 - .../vs/basic-languages/python/python.js | 10 - .../vs/basic-languages/qsharp/qsharp.js | 10 - build/ejs/python/vs/basic-languages/r/r.js | 10 - .../python/vs/basic-languages/razor/razor.js | 10 - .../python/vs/basic-languages/redis/redis.js | 10 - .../vs/basic-languages/redshift/redshift.js | 10 - .../restructuredtext/restructuredtext.js | 10 - .../python/vs/basic-languages/ruby/ruby.js | 10 - .../python/vs/basic-languages/rust/rust.js | 10 - build/ejs/python/vs/basic-languages/sb/sb.js | 10 - .../python/vs/basic-languages/scala/scala.js | 10 - .../vs/basic-languages/scheme/scheme.js | 10 - .../python/vs/basic-languages/scss/scss.js | 12 - .../python/vs/basic-languages/shell/shell.js | 10 - .../vs/basic-languages/solidity/solidity.js | 10 - .../vs/basic-languages/sophia/sophia.js | 10 - .../vs/basic-languages/sparql/sparql.js | 10 - .../ejs/python/vs/basic-languages/sql/sql.js | 10 - build/ejs/python/vs/basic-languages/st/st.js | 10 - .../python/vs/basic-languages/swift/swift.js | 13 - .../systemverilog/systemverilog.js | 10 - .../ejs/python/vs/basic-languages/tcl/tcl.js | 10 - .../python/vs/basic-languages/twig/twig.js | 10 - .../basic-languages/typescript/typescript.js | 10 - build/ejs/python/vs/basic-languages/vb/vb.js | 10 - .../python/vs/basic-languages/wgsl/wgsl.js | 307 - .../ejs/python/vs/basic-languages/xml/xml.js | 10 - .../python/vs/basic-languages/yaml/yaml.js | 10 - build/ejs/python/vs/editor/editor.main.css | 6 - build/ejs/python/vs/editor/editor.main.js | 755 - .../python/vs/editor/editor.main.nls.de.js | 31 - .../python/vs/editor/editor.main.nls.es.js | 31 - .../python/vs/editor/editor.main.nls.fr.js | 29 - .../python/vs/editor/editor.main.nls.it.js | 29 - .../python/vs/editor/editor.main.nls.ja.js | 31 - build/ejs/python/vs/editor/editor.main.nls.js | 29 - .../python/vs/editor/editor.main.nls.ko.js | 29 - .../python/vs/editor/editor.main.nls.ru.js | 31 - .../python/vs/editor/editor.main.nls.zh-cn.js | 31 - .../python/vs/editor/editor.main.nls.zh-tw.js | 29 - build/ejs/python/vs/language/css/cssMode.js | 13 - build/ejs/python/vs/language/css/cssWorker.js | 81 - build/ejs/python/vs/language/html/htmlMode.js | 13 - .../ejs/python/vs/language/html/htmlWorker.js | 453 - build/ejs/python/vs/language/json/jsonMode.js | 15 - .../ejs/python/vs/language/json/jsonWorker.js | 36 - .../python/vs/language/typescript/tsMode.js | 20 - .../python/vs/language/typescript/tsWorker.js | 37016 ---------------- build/ejs/python/vs/loader.js | 11 - .../ejs/{ => scratch}/my_scratch_projects.ejs | 4 +- build/ejs/{ => scratch}/scratch_edit.ejs | 2 +- build/ejs/{ => scratch}/scratch_play.ejs | 4 +- build/ejs/scratch/scratch_projects.ejs | 183 + build/ejs/toutu.png | Bin 0 -> 101954 bytes server/router_api.js | 2 +- server/router_my.js | 4 +- server/router_python.js | 63 + server/router_scratch.js | 66 +- 338 files changed, 639 insertions(+), 144116 deletions(-) create mode 100644 build/ejs/owpython.png create mode 100644 build/ejs/owscratch.png delete mode 100644 build/ejs/python/CodeMirror.js delete mode 100644 "build/ejs/python/bootstrap/bootstrap \347\211\210\346\234\254\357\274\2323.3.7.txt" delete mode 100644 build/ejs/python/bootstrap/css/bootstrap-theme.css delete mode 100644 build/ejs/python/bootstrap/css/bootstrap-theme.min.css delete mode 100644 build/ejs/python/bootstrap/css/bootstrap.css delete mode 100644 build/ejs/python/bootstrap/css/bootstrap.min.css delete mode 100644 build/ejs/python/bootstrap/fonts/glyphicons-halflings-regular.eot delete mode 100644 build/ejs/python/bootstrap/fonts/glyphicons-halflings-regular.svg delete mode 100644 build/ejs/python/bootstrap/fonts/glyphicons-halflings-regular.ttf delete mode 100644 build/ejs/python/bootstrap/fonts/glyphicons-halflings-regular.woff delete mode 100644 build/ejs/python/bootstrap/fonts/glyphicons-halflings-regular.woff2 delete mode 100644 build/ejs/python/bootstrap/js/bootstrap.js delete mode 100644 build/ejs/python/bootstrap/js/bootstrap.min.js delete mode 100644 build/ejs/python/css/3024-day.css delete mode 100644 build/ejs/python/css/3024-night.css delete mode 100644 build/ejs/python/css/CodeMirror.css delete mode 100644 build/ejs/python/css/bootstrap.css delete mode 100644 build/ejs/python/css/dracula.css delete mode 100644 build/ejs/python/css/erlang-dark.css delete mode 100644 build/ejs/python/css/main-v2.css delete mode 100644 build/ejs/python/css/main.css delete mode 100644 build/ejs/python/css/show-hint.css delete mode 100644 build/ejs/python/css/solarized.css delete mode 100644 build/ejs/python/css/style.css delete mode 100644 build/ejs/python/edx_problem_blocks.xml delete mode 100644 build/ejs/python/img/file.svg delete mode 100644 build/ejs/python/img/publish.svg delete mode 100644 build/ejs/python/img/save.svg delete mode 100644 build/ejs/python/img/welcome_python_editor.png delete mode 100644 build/ejs/python/js/blockly_compressed.js delete mode 100644 build/ejs/python/js/blocks_compressed.js delete mode 100644 build/ejs/python/js/file-saver.js delete mode 100644 build/ejs/python/js/index.js delete mode 100644 build/ejs/python/js/my_blocks.js delete mode 100644 build/ejs/python/js/python_compressed.js delete mode 100644 build/ejs/python/js/show-hint.js delete mode 100644 build/ejs/python/media/1x1.gif delete mode 100644 build/ejs/python/media/click.mp3 delete mode 100644 build/ejs/python/media/click.ogg delete mode 100644 build/ejs/python/media/click.wav delete mode 100644 build/ejs/python/media/delete.mp3 delete mode 100644 build/ejs/python/media/delete.ogg delete mode 100644 build/ejs/python/media/delete.wav delete mode 100644 build/ejs/python/media/disconnect.mp3 delete mode 100644 build/ejs/python/media/disconnect.ogg delete mode 100644 build/ejs/python/media/disconnect.wav delete mode 100644 build/ejs/python/media/handclosed.cur delete mode 100644 build/ejs/python/media/handdelete.cur delete mode 100644 build/ejs/python/media/handopen.cur delete mode 100644 build/ejs/python/media/quote0.png delete mode 100644 build/ejs/python/media/quote1.png delete mode 100644 build/ejs/python/media/sprites.png delete mode 100644 build/ejs/python/media/sprites.svg delete mode 100644 build/ejs/python/mode/clike.js delete mode 100644 build/ejs/python/mode/javascript.js delete mode 100644 build/ejs/python/mode/lua.js delete mode 100644 build/ejs/python/mode/php.js delete mode 100644 build/ejs/python/mode/python.js delete mode 100644 build/ejs/python/msg/js/ab.js delete mode 100644 build/ejs/python/msg/js/ar.js delete mode 100644 build/ejs/python/msg/js/az.js delete mode 100644 build/ejs/python/msg/js/ba.js delete mode 100644 build/ejs/python/msg/js/bcc.js delete mode 100644 build/ejs/python/msg/js/be-tarask.js delete mode 100644 build/ejs/python/msg/js/be.js delete mode 100644 build/ejs/python/msg/js/bg.js delete mode 100644 build/ejs/python/msg/js/bn.js delete mode 100644 build/ejs/python/msg/js/br.js delete mode 100644 build/ejs/python/msg/js/ca.js delete mode 100644 build/ejs/python/msg/js/cs.js delete mode 100644 build/ejs/python/msg/js/da.js delete mode 100644 build/ejs/python/msg/js/de.js delete mode 100644 build/ejs/python/msg/js/diq.js delete mode 100644 build/ejs/python/msg/js/el.js delete mode 100644 build/ejs/python/msg/js/en-gb.js delete mode 100644 build/ejs/python/msg/js/en.js delete mode 100644 build/ejs/python/msg/js/eo.js delete mode 100644 build/ejs/python/msg/js/es.js delete mode 100644 build/ejs/python/msg/js/et.js delete mode 100644 build/ejs/python/msg/js/fa.js delete mode 100644 build/ejs/python/msg/js/fi.js delete mode 100644 build/ejs/python/msg/js/fr.js delete mode 100644 build/ejs/python/msg/js/he.js delete mode 100644 build/ejs/python/msg/js/hi.js delete mode 100644 build/ejs/python/msg/js/hrx.js delete mode 100644 build/ejs/python/msg/js/hu.js delete mode 100644 build/ejs/python/msg/js/ia.js delete mode 100644 build/ejs/python/msg/js/id.js delete mode 100644 build/ejs/python/msg/js/is.js delete mode 100644 build/ejs/python/msg/js/it.js delete mode 100644 build/ejs/python/msg/js/ja.js delete mode 100644 build/ejs/python/msg/js/kab.js delete mode 100644 build/ejs/python/msg/js/ko.js delete mode 100644 build/ejs/python/msg/js/lb.js delete mode 100644 build/ejs/python/msg/js/lki.js delete mode 100644 build/ejs/python/msg/js/lrc.js delete mode 100644 build/ejs/python/msg/js/lt.js delete mode 100644 build/ejs/python/msg/js/lv.js delete mode 100644 build/ejs/python/msg/js/mk.js delete mode 100644 build/ejs/python/msg/js/ms.js delete mode 100644 build/ejs/python/msg/js/nb.js delete mode 100644 build/ejs/python/msg/js/nl.js delete mode 100644 build/ejs/python/msg/js/oc.js delete mode 100644 build/ejs/python/msg/js/pl.js delete mode 100644 build/ejs/python/msg/js/pms.js delete mode 100644 build/ejs/python/msg/js/pt-br.js delete mode 100644 build/ejs/python/msg/js/pt.js delete mode 100644 build/ejs/python/msg/js/ro.js delete mode 100644 build/ejs/python/msg/js/ru.js delete mode 100644 build/ejs/python/msg/js/sc.js delete mode 100644 build/ejs/python/msg/js/sd.js delete mode 100644 build/ejs/python/msg/js/shn.js delete mode 100644 build/ejs/python/msg/js/sk.js delete mode 100644 build/ejs/python/msg/js/sl.js delete mode 100644 build/ejs/python/msg/js/sq.js delete mode 100644 build/ejs/python/msg/js/sr.js delete mode 100644 build/ejs/python/msg/js/sv.js delete mode 100644 build/ejs/python/msg/js/ta.js delete mode 100644 build/ejs/python/msg/js/tcy.js delete mode 100644 build/ejs/python/msg/js/th.js delete mode 100644 build/ejs/python/msg/js/tl.js delete mode 100644 build/ejs/python/msg/js/tlh.js delete mode 100644 build/ejs/python/msg/js/tr.js delete mode 100644 build/ejs/python/msg/js/uk.js delete mode 100644 build/ejs/python/msg/js/vi.js delete mode 100644 build/ejs/python/msg/js/zh-hans.js delete mode 100644 build/ejs/python/msg/js/zh-hant.js delete mode 100644 build/ejs/python/msg/json/ab.json delete mode 100644 build/ejs/python/msg/json/ar.json delete mode 100644 build/ejs/python/msg/json/az.json delete mode 100644 build/ejs/python/msg/json/ba.json delete mode 100644 build/ejs/python/msg/json/bcc.json delete mode 100644 build/ejs/python/msg/json/be-tarask.json delete mode 100644 build/ejs/python/msg/json/be.json delete mode 100644 build/ejs/python/msg/json/bg.json delete mode 100644 build/ejs/python/msg/json/bn.json delete mode 100644 build/ejs/python/msg/json/br.json delete mode 100644 build/ejs/python/msg/json/ca.json delete mode 100644 build/ejs/python/msg/json/constants.json delete mode 100644 build/ejs/python/msg/json/cs.json delete mode 100644 build/ejs/python/msg/json/da.json delete mode 100644 build/ejs/python/msg/json/de.json delete mode 100644 build/ejs/python/msg/json/diq.json delete mode 100644 build/ejs/python/msg/json/el.json delete mode 100644 build/ejs/python/msg/json/en-gb.json delete mode 100644 build/ejs/python/msg/json/en.json delete mode 100644 build/ejs/python/msg/json/eo.json delete mode 100644 build/ejs/python/msg/json/es.json delete mode 100644 build/ejs/python/msg/json/et.json delete mode 100644 build/ejs/python/msg/json/eu.json delete mode 100644 build/ejs/python/msg/json/fa.json delete mode 100644 build/ejs/python/msg/json/fi.json delete mode 100644 build/ejs/python/msg/json/fr.json delete mode 100644 build/ejs/python/msg/json/he.json delete mode 100644 build/ejs/python/msg/json/hi.json delete mode 100644 build/ejs/python/msg/json/hrx.json delete mode 100644 build/ejs/python/msg/json/hu.json delete mode 100644 build/ejs/python/msg/json/ia.json delete mode 100644 build/ejs/python/msg/json/id.json delete mode 100644 build/ejs/python/msg/json/is.json delete mode 100644 build/ejs/python/msg/json/it.json delete mode 100644 build/ejs/python/msg/json/ja.json delete mode 100644 build/ejs/python/msg/json/kab.json delete mode 100644 build/ejs/python/msg/json/ko.json delete mode 100644 build/ejs/python/msg/json/lb.json delete mode 100644 build/ejs/python/msg/json/lki.json delete mode 100644 build/ejs/python/msg/json/lrc.json delete mode 100644 build/ejs/python/msg/json/lt.json delete mode 100644 build/ejs/python/msg/json/lv.json delete mode 100644 build/ejs/python/msg/json/mk.json delete mode 100644 build/ejs/python/msg/json/ms.json delete mode 100644 build/ejs/python/msg/json/nb.json delete mode 100644 build/ejs/python/msg/json/nl.json delete mode 100644 build/ejs/python/msg/json/oc.json delete mode 100644 build/ejs/python/msg/json/pl.json delete mode 100644 build/ejs/python/msg/json/pms.json delete mode 100644 build/ejs/python/msg/json/pt-br.json delete mode 100644 build/ejs/python/msg/json/pt.json delete mode 100644 build/ejs/python/msg/json/qqq.json delete mode 100644 build/ejs/python/msg/json/ro.json delete mode 100644 build/ejs/python/msg/json/ru.json delete mode 100644 build/ejs/python/msg/json/sc.json delete mode 100644 build/ejs/python/msg/json/sd.json delete mode 100644 build/ejs/python/msg/json/shn.json delete mode 100644 build/ejs/python/msg/json/sk.json delete mode 100644 build/ejs/python/msg/json/sl.json delete mode 100644 build/ejs/python/msg/json/sq.json delete mode 100644 build/ejs/python/msg/json/sr.json delete mode 100644 build/ejs/python/msg/json/sv.json delete mode 100644 build/ejs/python/msg/json/synonyms.json delete mode 100644 build/ejs/python/msg/json/ta.json delete mode 100644 build/ejs/python/msg/json/tcy.json delete mode 100644 build/ejs/python/msg/json/th.json delete mode 100644 build/ejs/python/msg/json/tl.json delete mode 100644 build/ejs/python/msg/json/tlh.json delete mode 100644 build/ejs/python/msg/json/tr.json delete mode 100644 build/ejs/python/msg/json/uk.json delete mode 100644 build/ejs/python/msg/json/vi.json delete mode 100644 build/ejs/python/msg/json/zh-hans.json delete mode 100644 build/ejs/python/msg/json/zh-hant.json delete mode 100644 build/ejs/python/msg/messages.js rename build/ejs/{ => python}/my_python_projects.ejs (99%) delete mode 100644 build/ejs/python/public.js delete mode 100644 build/ejs/python/python_edit.js delete mode 100644 build/ejs/python/python_play.js create mode 100644 build/ejs/python/python_projects.ejs delete mode 100644 build/ejs/python/showWorks.css delete mode 100644 build/ejs/python/skulpt-stdlib.js delete mode 100644 build/ejs/python/skulpt.min.js delete mode 100644 build/ejs/python/vs/base/browser/ui/codicons/codicon/codicon.ttf delete mode 100644 build/ejs/python/vs/base/common/worker/simpleWorker.nls.de.js delete mode 100644 build/ejs/python/vs/base/common/worker/simpleWorker.nls.es.js delete mode 100644 build/ejs/python/vs/base/common/worker/simpleWorker.nls.fr.js delete mode 100644 build/ejs/python/vs/base/common/worker/simpleWorker.nls.it.js delete mode 100644 build/ejs/python/vs/base/common/worker/simpleWorker.nls.ja.js delete mode 100644 build/ejs/python/vs/base/common/worker/simpleWorker.nls.js delete mode 100644 build/ejs/python/vs/base/common/worker/simpleWorker.nls.ko.js delete mode 100644 build/ejs/python/vs/base/common/worker/simpleWorker.nls.ru.js delete mode 100644 build/ejs/python/vs/base/common/worker/simpleWorker.nls.zh-cn.js delete mode 100644 build/ejs/python/vs/base/common/worker/simpleWorker.nls.zh-tw.js delete mode 100644 build/ejs/python/vs/base/worker/workerMain.js delete mode 100644 build/ejs/python/vs/basic-languages/abap/abap.js delete mode 100644 build/ejs/python/vs/basic-languages/apex/apex.js delete mode 100644 build/ejs/python/vs/basic-languages/azcli/azcli.js delete mode 100644 build/ejs/python/vs/basic-languages/bat/bat.js delete mode 100644 build/ejs/python/vs/basic-languages/bicep/bicep.js delete mode 100644 build/ejs/python/vs/basic-languages/cameligo/cameligo.js delete mode 100644 build/ejs/python/vs/basic-languages/clojure/clojure.js delete mode 100644 build/ejs/python/vs/basic-languages/coffee/coffee.js delete mode 100644 build/ejs/python/vs/basic-languages/cpp/cpp.js delete mode 100644 build/ejs/python/vs/basic-languages/csharp/csharp.js delete mode 100644 build/ejs/python/vs/basic-languages/csp/csp.js delete mode 100644 build/ejs/python/vs/basic-languages/css/css.js delete mode 100644 build/ejs/python/vs/basic-languages/cypher/cypher.js delete mode 100644 build/ejs/python/vs/basic-languages/dart/dart.js delete mode 100644 build/ejs/python/vs/basic-languages/dockerfile/dockerfile.js delete mode 100644 build/ejs/python/vs/basic-languages/ecl/ecl.js delete mode 100644 build/ejs/python/vs/basic-languages/elixir/elixir.js delete mode 100644 build/ejs/python/vs/basic-languages/flow9/flow9.js delete mode 100644 build/ejs/python/vs/basic-languages/freemarker2/freemarker2.js delete mode 100644 build/ejs/python/vs/basic-languages/fsharp/fsharp.js delete mode 100644 build/ejs/python/vs/basic-languages/go/go.js delete mode 100644 build/ejs/python/vs/basic-languages/graphql/graphql.js delete mode 100644 build/ejs/python/vs/basic-languages/handlebars/handlebars.js delete mode 100644 build/ejs/python/vs/basic-languages/hcl/hcl.js delete mode 100644 build/ejs/python/vs/basic-languages/html/html.js delete mode 100644 build/ejs/python/vs/basic-languages/ini/ini.js delete mode 100644 build/ejs/python/vs/basic-languages/java/java.js delete mode 100644 build/ejs/python/vs/basic-languages/javascript/javascript.js delete mode 100644 build/ejs/python/vs/basic-languages/julia/julia.js delete mode 100644 build/ejs/python/vs/basic-languages/kotlin/kotlin.js delete mode 100644 build/ejs/python/vs/basic-languages/less/less.js delete mode 100644 build/ejs/python/vs/basic-languages/lexon/lexon.js delete mode 100644 build/ejs/python/vs/basic-languages/liquid/liquid.js delete mode 100644 build/ejs/python/vs/basic-languages/lua/lua.js delete mode 100644 build/ejs/python/vs/basic-languages/m3/m3.js delete mode 100644 build/ejs/python/vs/basic-languages/markdown/markdown.js delete mode 100644 build/ejs/python/vs/basic-languages/mips/mips.js delete mode 100644 build/ejs/python/vs/basic-languages/msdax/msdax.js delete mode 100644 build/ejs/python/vs/basic-languages/mysql/mysql.js delete mode 100644 build/ejs/python/vs/basic-languages/objective-c/objective-c.js delete mode 100644 build/ejs/python/vs/basic-languages/pascal/pascal.js delete mode 100644 build/ejs/python/vs/basic-languages/pascaligo/pascaligo.js delete mode 100644 build/ejs/python/vs/basic-languages/perl/perl.js delete mode 100644 build/ejs/python/vs/basic-languages/pgsql/pgsql.js delete mode 100644 build/ejs/python/vs/basic-languages/php/php.js delete mode 100644 build/ejs/python/vs/basic-languages/pla/pla.js delete mode 100644 build/ejs/python/vs/basic-languages/postiats/postiats.js delete mode 100644 build/ejs/python/vs/basic-languages/powerquery/powerquery.js delete mode 100644 build/ejs/python/vs/basic-languages/powershell/powershell.js delete mode 100644 build/ejs/python/vs/basic-languages/protobuf/protobuf.js delete mode 100644 build/ejs/python/vs/basic-languages/pug/pug.js delete mode 100644 build/ejs/python/vs/basic-languages/python/python.js delete mode 100644 build/ejs/python/vs/basic-languages/qsharp/qsharp.js delete mode 100644 build/ejs/python/vs/basic-languages/r/r.js delete mode 100644 build/ejs/python/vs/basic-languages/razor/razor.js delete mode 100644 build/ejs/python/vs/basic-languages/redis/redis.js delete mode 100644 build/ejs/python/vs/basic-languages/redshift/redshift.js delete mode 100644 build/ejs/python/vs/basic-languages/restructuredtext/restructuredtext.js delete mode 100644 build/ejs/python/vs/basic-languages/ruby/ruby.js delete mode 100644 build/ejs/python/vs/basic-languages/rust/rust.js delete mode 100644 build/ejs/python/vs/basic-languages/sb/sb.js delete mode 100644 build/ejs/python/vs/basic-languages/scala/scala.js delete mode 100644 build/ejs/python/vs/basic-languages/scheme/scheme.js delete mode 100644 build/ejs/python/vs/basic-languages/scss/scss.js delete mode 100644 build/ejs/python/vs/basic-languages/shell/shell.js delete mode 100644 build/ejs/python/vs/basic-languages/solidity/solidity.js delete mode 100644 build/ejs/python/vs/basic-languages/sophia/sophia.js delete mode 100644 build/ejs/python/vs/basic-languages/sparql/sparql.js delete mode 100644 build/ejs/python/vs/basic-languages/sql/sql.js delete mode 100644 build/ejs/python/vs/basic-languages/st/st.js delete mode 100644 build/ejs/python/vs/basic-languages/swift/swift.js delete mode 100644 build/ejs/python/vs/basic-languages/systemverilog/systemverilog.js delete mode 100644 build/ejs/python/vs/basic-languages/tcl/tcl.js delete mode 100644 build/ejs/python/vs/basic-languages/twig/twig.js delete mode 100644 build/ejs/python/vs/basic-languages/typescript/typescript.js delete mode 100644 build/ejs/python/vs/basic-languages/vb/vb.js delete mode 100644 build/ejs/python/vs/basic-languages/wgsl/wgsl.js delete mode 100644 build/ejs/python/vs/basic-languages/xml/xml.js delete mode 100644 build/ejs/python/vs/basic-languages/yaml/yaml.js delete mode 100644 build/ejs/python/vs/editor/editor.main.css delete mode 100644 build/ejs/python/vs/editor/editor.main.js delete mode 100644 build/ejs/python/vs/editor/editor.main.nls.de.js delete mode 100644 build/ejs/python/vs/editor/editor.main.nls.es.js delete mode 100644 build/ejs/python/vs/editor/editor.main.nls.fr.js delete mode 100644 build/ejs/python/vs/editor/editor.main.nls.it.js delete mode 100644 build/ejs/python/vs/editor/editor.main.nls.ja.js delete mode 100644 build/ejs/python/vs/editor/editor.main.nls.js delete mode 100644 build/ejs/python/vs/editor/editor.main.nls.ko.js delete mode 100644 build/ejs/python/vs/editor/editor.main.nls.ru.js delete mode 100644 build/ejs/python/vs/editor/editor.main.nls.zh-cn.js delete mode 100644 build/ejs/python/vs/editor/editor.main.nls.zh-tw.js delete mode 100644 build/ejs/python/vs/language/css/cssMode.js delete mode 100644 build/ejs/python/vs/language/css/cssWorker.js delete mode 100644 build/ejs/python/vs/language/html/htmlMode.js delete mode 100644 build/ejs/python/vs/language/html/htmlWorker.js delete mode 100644 build/ejs/python/vs/language/json/jsonMode.js delete mode 100644 build/ejs/python/vs/language/json/jsonWorker.js delete mode 100644 build/ejs/python/vs/language/typescript/tsMode.js delete mode 100644 build/ejs/python/vs/language/typescript/tsWorker.js delete mode 100644 build/ejs/python/vs/loader.js rename build/ejs/{ => scratch}/my_scratch_projects.ejs (99%) rename build/ejs/{ => scratch}/scratch_edit.ejs (93%) rename build/ejs/{ => scratch}/scratch_play.ejs (99%) create mode 100644 build/ejs/scratch/scratch_projects.ejs create mode 100644 build/ejs/toutu.png diff --git a/app.js b/app.js index 1234139..341c1d1 100644 --- a/app.js +++ b/app.js @@ -189,72 +189,31 @@ app.get("/", function (req, res) { }); }); -//翻页:Scratch作品列表:数据 -app.post("/index/getScratchProjects", function (req, res) { - var curr = parseInt(req.body.curr); //当前要显示的页码 - var limit = parseInt(req.body.limit); //每页显示的作品数 - var type = "view_count"; - if (req.body.type == "new") { - type = "time"; - } - - var SQL = `SELECT scratch.id, scratch.title, scratch.state,scratch.authorid, user.nickname,user.motto FROM scratch JOIN user ON scratch.authorid = user.id WHERE scratch.state > 0 ORDER BY scratch.${type} DESC LIMIT ${ - (curr - 1) * limit - }, ${limit}`; - DB.query(SQL, function (err, data) { - if (err) { - res.status(200).send([]); - } else { - res.status(200).send(data); - } - }); -}); -//翻页:Python作品列表:数据 -app.post("/index/getPythonProjects", function (req, res) { - var curr = parseInt(req.body.curr); //当前要显示的页码 - var limit = parseInt(req.body.limit); //每页显示的作品数 - var type = "view_count"; - if (req.body.type == "new") { - type = "time"; - } - - var SQL = `SELECT python.id, python.title, python.state,python.authorid, python.description,user.nickname,user.motto FROM python JOIN user ON python.authorid = user.id WHERE python.state > 0 ORDER BY python.${type} DESC LIMIT ${ - (curr - 1) * limit - }, ${limit}`; - DB.query(SQL, function (err, data) { - if (err) { - res.status(200).send([]); - } else { - res.status(200).send(data); - } - }); -}); - //搜索:Scratch项目列表:数据//只搜索标题 -app.post("/index/seachProjects", function (req, res) { - if (!req.body.txt) { - res.status(200).send([]); - return; - } - var tabelName = "scratch"; - if (req.body.t == "p") { - tabelName = "python"; - } - var searchinfo = "title"; - if (req.body.searchall == "true") { - searchinfo = "src"; - } - //var SQL = `SELECT id, title FROM ${tabelName} WHERE state>0 AND (${searchinfo} LIKE ?) LIMIT 12`; - var SQL = `SELECT ${tabelName}.id, ${tabelName}.title, ${tabelName}.state,${tabelName}.authorid,${tabelName}.description, user.nickname,user.motto FROM ${tabelName} JOIN user ON ${tabelName}.authorid = user.id WHERE ${tabelName}.state>0 AND (${searchinfo} LIKE ?)`; - var WHERE = [`%${req.body.txt}%`]; - DB.qww(SQL, WHERE, function (err, data) { - if (err) { - res.status(200).send([]); - } else { - res.status(200).send(data); - } - }); -}); +//app.post("/index/seachProjects", function (req, res) { +// if (!req.body.txt) { +// res.status(200).send([]); +// return; +// } +// var tabelName = "scratch"; +// if (req.body.t == "p") { +// tabelName = "python"; +// } +// var searchinfo = "title"; +// if (req.body.searchall == "true") { +// searchinfo = "src"; +// } +// //var SQL = `SELECT id, title FROM ${tabelName} WHERE state>0 AND (${searchinfo} LIKE ?) LIMIT 12`; +// var SQL = `SELECT ${tabelName}.id, ${tabelName}.title, ${tabelName}.state,${tabelName}.authorid,${tabelName}.description, user.nickname,user.motto FROM ${tabelName} JOIN user ON ${tabelName}.authorid = user.id WHERE ${tabelName}.state>0 AND (${searchinfo} LIKE ?)`; +// var WHERE = [`%${req.body.txt}%`]; +// DB.qww(SQL, WHERE, function (err, data) { +// if (err) { +// res.status(200).send([]); +// } else { +// res.status(200).send(data); +// } +// }); +//}); //放在最后,确保路由时能先执行app.all===================== //注册、登录等功能路由,含密码找回功能 diff --git a/build/ejs/hand.ejs b/build/ejs/hand.ejs index db06540..2bb634f 100644 --- a/build/ejs/hand.ejs +++ b/build/ejs/hand.ejs @@ -3,7 +3,7 @@
- +