Skip to content

Commit

Permalink
editor
Browse files Browse the repository at this point in the history
  • Loading branch information
showpy committed Jul 15, 2021
1 parent 8d7ef45 commit 4c8e28a
Show file tree
Hide file tree
Showing 133 changed files with 6,410 additions and 101 deletions.
11 changes: 11 additions & 0 deletions BTPanel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,17 @@ def abnormal(pdata=None):
)
return publicObject(dataObject, defs, None, pdata)

@app.route('/project/<action>', methods=method_all)
def project(action):
comReturn = comm.local()
if comReturn: return comReturn
from panelProjectController import ProjectController
project_obj = ProjectController()
defs = ('get_parser_list','get_parser_versions','model')
get = get_input()
get.action = action
return publicObject(project_obj,defs,None,get)


@app.route('/files', methods=method_all)
def files(pdata=None):
Expand Down
1 change: 1 addition & 0 deletions BTPanel/static/editor/ace.editor.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"supportedModes":{"Apache_Conf":["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],"BatchFile":["bat|cmd"],"C_Cpp":["cpp|c|cc|cxx|h|hh|hpp|ino"],"CSharp":["cs"],"CSS":["css"],"Dockerfile":["^Dockerfile"],"golang":["go"],"HTML":["html|htm|xhtml|vue|we|wpy"],"Java":["java"],"JavaScript":["js|jsm|jsx"],"JSON":["json"],"JSP":["jsp"],"LESS":["less"],"Lua":["lua"],"Makefile":["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],"Markdown":["md|markdown"],"MySQL":["mysql"],"Nginx":["nginx|conf"],"INI":["ini|conf|cfg|prefs"],"ObjectiveC":["m|mm"],"Perl":["pl|pm"],"Perl6":["p6|pl6|pm6"],"pgSQL":["pgsql"],"PHP_Laravel_blade":["blade.php"],"PHP":["php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],"Powershell":["ps1"],"Python":["py"],"R":["r"],"Ruby":["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],"Rust":["rs"],"SASS":["sass"],"SCSS":["scss"],"SH":["sh|bash|^.bashrc"],"SQL":["sql"],"SQLServer":["sqlserver"],"Swift":["swift"],"Text":["txt"],"Typescript":["ts|typescript|str"],"VBScript":["vbs|vb"],"Verilog":["v|vh|sv|svh"],"XML":["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml"],"YAML":["yaml|yml"],"Compress":["tar|zip|7z|rar|gz|arj|z"],"images":["icon|jpg|jpeg|png|bmp|gif|tif|emf"]},"nameOverrides":{"ObjectiveC":"Objective-C","CSharp":"C#","golang":"Go","C_Cpp":"C and C++","PHP_Laravel_blade":"PHP (Blade Template)","Perl6":"Perl 6"},"encodingList":["ASCII","UTF-8","GBK","GB2312","BIG5"],"themeList":["chrome","monokai"],"aceEditor":{"editorTheme":"monokai","fontSize":14,"softLabel":false,"useSoftTabs":true,"tabSize":4,"wrap":true,"enableSnippets":true,"enableLiveAutocompletion":true,"highlightActiveLine":true,"highlightSelectedWord":true,"animatedScroll":false,"showInvisibles":false,"showFoldWidgets":true,"showLineNumbers":true,"showGutter":true,"displayIndentGuides":false},"showUpdate":true}
17 changes: 17 additions & 0 deletions BTPanel/static/editor/ace.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions BTPanel/static/editor/editor.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"fontSize":"12px","theme":"monokai"}
8 changes: 8 additions & 0 deletions BTPanel/static/editor/ext-beautify.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions BTPanel/static/editor/ext-elastic_tabstops_lite.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions BTPanel/static/editor/ext-emmet.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions BTPanel/static/editor/ext-error_marker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
; (function() {
ace.require(["ace/ext/error_marker"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();

8 changes: 8 additions & 0 deletions BTPanel/static/editor/ext-language_tools.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions BTPanel/static/editor/ext-linking.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions BTPanel/static/editor/ext-modelist.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4c8e28a

Please sign in to comment.