Khan/live-editor — 774★ trên GitHub (JavaScript). A browser-based live coding environment.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
WARNING: This project is currently in maintenance mode. Please feel free to file bug reports. If determine that the issue is serious enough we will fix it. Please do not submit PRs. We don't have the resources to review them and they'll be closed.
This is the live coding environment developed for the Khan Academy Computer Programming curriculum. It gives learners an editor on the left (either ACE or our Blocks-based drag-and-drop editor) and an output on the right (either JS+ProcessingJS, HTML, or SQL).
Here's a tour of how it's used on KA.
You can find various demos in the demos/ directory, and start playing immediately with the simple demo:
http://khan.github.io/live-editor/demos/simple/
Running
In order to run live-editor locally you'll have run a local web server. If you have python installed this can be accomplished by running the following command from the live-editor folder:
python -m SimpleHTTPServer
You should see the following console output:
Serving HTTP on 0.0.0.0 port 8000 ...
Open up a browser and navigate to http://0.0.0.0:8000/demos/simple.
Building
WARNING: This project requires node ~6 and npm ~3 in order for npm install
to work correctly.
You can use the pre-built copies of everything inside the build/ directory. If you wish to make some changes and re-build the library from scratch you'll need to install some dependencies:
git submodule update --init --recursive
npm install
bower install
# Build the Ace editor files (This is usually *not* needed)
cd bower_components/ace
npm install
node Makefile.dryice.js -nc
At this point you can make a fresh build, using Gulp:
npm run build
If you have an issue with "this.merge" is undefined, then rm -rf node_modules/gulp-handlebars/node_modules/handlebars.
Testing
The tests are in the /tests folder. They use Mocha/Chai/Sinon. Gulp typically runs the tests when relevant files change, but you can explicitly run the tests with:
npm test
You can also run single test suites at a time - see gulpfile.js for what suites are available:
gulp test_output_pjs_assert
You can run the tests in the browser runner by opening the relevant webpage:
open tests/output/sql/index.html
TravisCI also runs those tests when new commits are made.
In order to run the tests that create Worker threads, you'll need to run Chrome with a flag:
Please add tests whenever possible for any change that you make or propose.
How you can help
We have many open issues here. The top priority are those marked as regressionbug, since those are things that used to work. After that, the ones marked as browserbug may be the easiest to take on, and there are also plain old bugs. All the issues are tagged according to their environment, pjs, webpage, sql, or if they're generally about the ACE editor, editor. There are also a few bugs specifically about the demo pages, since those can get behind, and requests for more tests, since we can always use more of those!
Some aspects of the editor are in subrepos with their own issue trackers, like structuredjs and structuredblocks, so be sure to poke around those and see if they're more up your bug-fixing alley.
There are also a handful of ideas floating here from our community. You are welcome to take them on, but it's possible we won't merge them if we worry about their effect on the programming experience on Khan Academy, like if they may introduce backwards compatibilities or performance regressions.
We have no full-time resource working on the editing environment right now, so we will do pull requests when we find ourselves with time between other projects. We thank you for your contribution, even if we may be slow to acknowledge it at times. :)
Pull Requests
When submitting pull request please do the following:
link to an issue, if no issue exists please create one
write automated tests for new functionality or bug fixes
include build files
run the automated tests
squash your commits into a single a commit
Before we can accept any pull requests you must sign our CLA.
How it works
For a deep dive into the components of the LiveEditor, read this wiki.
You can also watch these talks that the team has given about the editor:
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/Khan/live-editor là nguồn chính thức.
Khan/live-editor có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho Khan/live-editor. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
Khan/live-editor có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho Khan/live-editor. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
Khan/live-editor có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho Khan/live-editor. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
Khan/live-editor còn đang phát triển không?
Commit gần nhất trên Khan/live-editor là 1.9 năm trước (theo timestamp GitHub). Repo có 179 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về live-editor?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về live-editor.