-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from qilin-editor/feature-exportas
Implement export as HTML and PDF
- Loading branch information
Showing
10 changed files
with
353 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
build | ||
cache | ||
qpm/src | ||
temp.html | ||
|
||
# Logs | ||
logs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,118 +1,122 @@ | ||
{ | ||
"name": "me.laniewski.qilin", | ||
"main": "qpm/src/index.html", | ||
"version": "0.4.0-alpha", | ||
"private": true, | ||
"author": "Łaniewski Bartosz <laniewski.bartozzz@gmail.com> (http://laniewski.me/)", | ||
"license": "MIT", | ||
"description": "Text editor for exact sciences with built-in LaTeX/KaTeX/AsciiMath support", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/qilin-editor/qilin-app.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/qilin-editor/qilin-app/issues" | ||
}, | ||
"chromium-args": "--mixed-context --enable-experimental-web-platform-features", | ||
"window": { | ||
"min_height": 600, | ||
"min_width": 1000, | ||
"title": "Qilin", | ||
"frame": false, | ||
"toolbar": false | ||
}, | ||
"dependencies": { | ||
"classnames": "^2.2.5", | ||
"highlight.js": "latest", | ||
"keymage": "^1.1.3", | ||
"markdown-it": "^8.4.1", | ||
"markdown-it-abbr": "^1.0.4", | ||
"markdown-it-anchor": "^4.0.0", | ||
"markdown-it-block-embed": "^0.0.3", | ||
"markdown-it-emoji": "^1.4.0", | ||
"markdown-it-maths": "1.0.8", | ||
"markdown-it-sub": "^1.0.0", | ||
"markdown-it-sup": "^1.0.0", | ||
"markdown-it-table-of-contents": "^0.3.3", | ||
"markdown-it-task-lists": "^2.1.1", | ||
"material-icons-react": "^1.0.0", | ||
"mobx": "^4.1.1", | ||
"mobx-react": "^5.0.0", | ||
"opn": "^5.3.0", | ||
"prop-types": "^15.6.1", | ||
"qilin-components": "0.0.132", | ||
"react": "^16.3.1", | ||
"react-dom": "^16.3.1", | ||
"react-router-dom": "^4.2.2", | ||
"react-split-pane": "^0.1.77", | ||
"typography": "^0.16.6", | ||
"typography-theme-github": "^0.15.10", | ||
"wireframe-framework": "latest" | ||
}, | ||
"devDependencies": { | ||
"autoprefixer": "^8.2.0", | ||
"babel-cli": "^6.24.1", | ||
"babel-core": "^6.25.0", | ||
"babel-eslint": "^8.2.2", | ||
"babel-loader": "^7.1.4", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-plugin-transform-class-properties": "^6.24.1", | ||
"babel-plugin-transform-decorators-legacy": "^1.3.4", | ||
"babel-plugin-transform-object-rest-spread": "^6.26.0", | ||
"babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-preset-env": "^1.6.1", | ||
"babel-preset-flow": "^6.23.0", | ||
"babel-preset-react": "^6.24.1", | ||
"copy-webpack-plugin": "^4.5.1", | ||
"css-loader": "^0.28.11", | ||
"eslint": "^4.18.2", | ||
"eslint-config-prettier": "^2.9.0", | ||
"eslint-config-standard": "^11.0.0", | ||
"eslint-loader": "^2.0.0", | ||
"eslint-plugin-flowtype": "^2.46.1", | ||
"eslint-plugin-import": "^2.9.0", | ||
"eslint-plugin-jsx-a11y": "^6.0.3", | ||
"eslint-plugin-node": "^6.0.1", | ||
"eslint-plugin-prettier": "^2.6.0", | ||
"eslint-plugin-promise": "^3.7.0", | ||
"eslint-plugin-react": "^7.7.0", | ||
"eslint-plugin-standard": "^3.0.1", | ||
"extract-text-webpack-plugin": "next", | ||
"file-loader": "^1.1.11", | ||
"html-webpack-plugin": "^3.2.0", | ||
"json-loader": "^0.5.4", | ||
"node-sass": "^4.8.3", | ||
"nw": "^0.29.3", | ||
"nw-builder": "^3.5.1", | ||
"nw-dev": "^3.0.1", | ||
"postcss-loader": "^2.1.3", | ||
"precss": "^3.1.2", | ||
"resolve-url-loader": "^2.3.0", | ||
"sass-loader": "^6.0.7", | ||
"style-loader": "^0.20.3", | ||
"stylelint": "^9.2.0", | ||
"stylelint-config-standard": "^18.2.0", | ||
"url-loader": "^1.0.1", | ||
"webpack": "^4.5.0", | ||
"webpack-cli": "^2.0.14", | ||
"webpack-dev-server": "^3.1.2" | ||
}, | ||
"scripts": { | ||
"prepare-qpm": "cd qpm && npm install", | ||
"prepare": "export NODE_ENV=production && npm run eslint && npm run stylelint && node_modules/.bin/webpack --progress && npm run prepare-qpm", | ||
"watch": "export NODE_ENV=development && node_modules/.bin/webpack --progress --watch & npm run nw", | ||
"start": "npm run prepare && npm run nw", | ||
"build": "npm run prepare && node bin/compile", | ||
"eslint": "node_modules/.bin/eslint --ext .js --ext .jsx src --fix", | ||
"stylelint": "node_modules/.bin/stylelint 'src/styles/**/*.scss' --fix", | ||
"clear": "rm -rf build cache qpm/node_modules qpm/src", | ||
"nw": "node_modules/.bin/nw . --nwjs_build_type=sdk" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "Bartosz Łaniewski", | ||
"email": "laniewski.bartozzz@gmail.com", | ||
"web": "http://www.laniewski.me" | ||
} | ||
] | ||
"name": "me.laniewski.qilin", | ||
"main": "qpm/src/index.html", | ||
"version": "0.4.0-alpha", | ||
"private": true, | ||
"author": | ||
"Łaniewski Bartosz <laniewski.bartozzz@gmail.com> (http://laniewski.me/)", | ||
"license": "MIT", | ||
"description": | ||
"Text editor for exact sciences with built-in LaTeX/KaTeX/AsciiMath support", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/qilin-editor/qilin-app.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/qilin-editor/qilin-app/issues" | ||
}, | ||
"chromium-args": | ||
"--mixed-context --enable-experimental-web-platform-features", | ||
"window": { | ||
"min_height": 600, | ||
"min_width": 1000, | ||
"title": "Qilin", | ||
"frame": false | ||
}, | ||
"dependencies": { | ||
"classnames": "^2.2.5", | ||
"highlight.js": "latest", | ||
"keymage": "^1.1.3", | ||
"markdown-it": "^8.4.1", | ||
"markdown-it-abbr": "^1.0.4", | ||
"markdown-it-anchor": "^4.0.0", | ||
"markdown-it-block-embed": "^0.0.3", | ||
"markdown-it-emoji": "^1.4.0", | ||
"markdown-it-maths": "1.0.8", | ||
"markdown-it-sub": "^1.0.0", | ||
"markdown-it-sup": "^1.0.0", | ||
"markdown-it-table-of-contents": "^0.3.3", | ||
"markdown-it-task-lists": "^2.1.1", | ||
"material-icons-react": "^1.0.0", | ||
"mobx": "^4.1.1", | ||
"mobx-react": "^5.0.0", | ||
"opn": "^5.3.0", | ||
"prop-types": "^15.6.1", | ||
"qilin-components": "0.0.132", | ||
"react": "^16.3.1", | ||
"react-dom": "^16.3.1", | ||
"react-router-dom": "^4.2.2", | ||
"react-split-pane": "^0.1.77", | ||
"typography": "^0.16.6", | ||
"typography-theme-github": "^0.15.10", | ||
"wireframe-framework": "latest" | ||
}, | ||
"devDependencies": { | ||
"autoprefixer": "^8.2.0", | ||
"babel-cli": "^6.24.1", | ||
"babel-core": "^6.25.0", | ||
"babel-eslint": "^8.2.2", | ||
"babel-loader": "^7.1.4", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-plugin-transform-class-properties": "^6.24.1", | ||
"babel-plugin-transform-decorators-legacy": "^1.3.4", | ||
"babel-plugin-transform-object-rest-spread": "^6.26.0", | ||
"babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-preset-env": "^1.6.1", | ||
"babel-preset-flow": "^6.23.0", | ||
"babel-preset-react": "^6.24.1", | ||
"copy-webpack-plugin": "^4.5.1", | ||
"css-loader": "^0.28.11", | ||
"eslint": "^4.18.2", | ||
"eslint-config-prettier": "^2.9.0", | ||
"eslint-config-standard": "^11.0.0", | ||
"eslint-loader": "^2.0.0", | ||
"eslint-plugin-flowtype": "^2.46.1", | ||
"eslint-plugin-import": "^2.9.0", | ||
"eslint-plugin-jsx-a11y": "^6.0.3", | ||
"eslint-plugin-node": "^6.0.1", | ||
"eslint-plugin-prettier": "^2.6.0", | ||
"eslint-plugin-promise": "^3.7.0", | ||
"eslint-plugin-react": "^7.7.0", | ||
"eslint-plugin-standard": "^3.0.1", | ||
"extract-text-webpack-plugin": "next", | ||
"file-loader": "^1.1.11", | ||
"html-webpack-plugin": "^3.2.0", | ||
"json-loader": "^0.5.4", | ||
"node-sass": "^4.8.3", | ||
"nw": "^0.29.3", | ||
"nw-builder": "^3.5.1", | ||
"nw-dev": "^3.0.1", | ||
"postcss-loader": "^2.1.3", | ||
"precss": "^3.1.2", | ||
"resolve-url-loader": "^2.3.0", | ||
"sass-loader": "^6.0.7", | ||
"style-loader": "^0.20.3", | ||
"stylelint": "^9.2.0", | ||
"stylelint-config-standard": "^18.2.0", | ||
"url-loader": "^1.0.1", | ||
"webpack": "^4.5.0", | ||
"webpack-cli": "^2.0.14", | ||
"webpack-dev-server": "^3.1.2" | ||
}, | ||
"scripts": { | ||
"prepare-qpm": "cd qpm && npm install", | ||
"prepare": | ||
"export NODE_ENV=production && npm run eslint && npm run stylelint && node_modules/.bin/webpack --progress && npm run prepare-qpm", | ||
"watch": | ||
"export NODE_ENV=development && node_modules/.bin/webpack --progress --watch & npm run nw", | ||
"start": "npm run prepare && npm run nw", | ||
"build": "npm run prepare && node bin/compile", | ||
"eslint": "node_modules/.bin/eslint --ext .js --ext .jsx src --fix", | ||
"stylelint": "node_modules/.bin/stylelint 'src/styles/**/*.scss' --fix", | ||
"clear": "rm -rf build cache qpm/node_modules qpm/src", | ||
"nw": "node_modules/.bin/nw . --nwjs_build_type=sdk" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "Bartosz Łaniewski", | ||
"email": "laniewski.bartozzz@gmail.com", | ||
"web": "http://www.laniewski.me" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// @flow | ||
import manifest from "../../../package"; | ||
|
||
/** | ||
* Opens a new Qilin application in a separate render process. | ||
* | ||
* @see http://docs.nwjs.io/en/latest/References/Manifest%20Format/#window-subfields | ||
* @see http://docs.nwjs.io/en/latest/References/Window/#windowopenurl-options-callback | ||
* | ||
* @param {Event} event | ||
* @param {Object} ctx | ||
* @return {void} | ||
*/ | ||
export function newWindow(event: Event, ctx: Object): void { | ||
event.preventDefault(); | ||
event.stopPropagation(); | ||
|
||
nw.Window.open("qpm/src/index.html", { | ||
...manifest.window, | ||
inject_js_start: manifest.inject_js_start, | ||
inject_js_end: manifest.inject_js_end, | ||
new_instance: true | ||
}); | ||
} |
Oops, something went wrong.