-
环境准备
- python版本>=3.5 或直接安装对应版本的Anaconda环境
- 安装flask, flask_socketio两个包: 建议直接pip安装
- 下载项目
-
运行
- 添加了HOST的配置, 运行时使用host参数指定address // by 2020/08/21
- python app.py [--host address][-w 工作目录] // by 2020/8/21
- 浏览器访问http://host:port (默认端口号为2000)//by 2020/08/21
- 工作目录末尾不要带"/"或其它符号
- 点击配置,可以配置自定义菜单按钮和对应功能。点击保存后刷新页面即可完成菜单的更新。 // by 2020/8/20
-
功能
- perf最终结果的自动获取,在app.py中的234行可以获取结果目录中(fpowertool/treegrid/data,可以自己更改)的最新结果,传递给index2.html(91-96行左右)。 by 2020/10/13
- perf结果展示功能,在config.ini的“Show last perf result”配置要显示的结果文件,生成菜单后,点击“Show last perf result”按钮,就可以转到显示结果页面。 by 2020/09/02
- 可以判断当前的工作目录是否存在运行配置文件,如果不存在则创建 // by 2020/08/26
- 在配置里,可以自定义菜单的功能,包括添加、删除菜单,菜单对应的执行命令。 by 2020/8/19
- 添加了关闭打开文件功能和显示perf的执行结果的功能。 by 2020/8/16
- 添加了自定义按钮的下拉菜单,使添加自定义按钮,代码更加简洁。 by 2020/8/11
- 优化了布局 by 2020/8/11
添加按钮,点击可以执行自定义的脚本或命令,并把结果显示在webshell和另一个页面上。对于执行的命令可以在config.json中配置,并在index.html中286处添加按钮 。另外,还可以在app.py中的execute方法中对执行的命令做细致的更改,例如设置从页面得到的参数等by 2020/8/4- 点击新建按钮,输入文件名,就可以在工作目录下新建一个对应的文件
- 如果想在子目录下创建文件,输入工作目录的相对路径即可
- 点击保存,保存当前编辑器中的内容到对应的文件
- 右下方是一个webshell
-
demo by 2020/8/1
- 如果需要增加功能菜单,在config.ini中配置 //by 2020/08/21
onlineeditor's Introduction
onlineeditor's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.