1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Merge pull request #204 from sota1235/master

Use npm instead of using oh-my-cdn
This commit is contained in:
Sota Sugiura
2017-01-04 23:55:57 +09:00
committed by GitHub
5 changed files with 20 additions and 21 deletions

View File

@@ -140,7 +140,7 @@ export default class MarkdownPreview extends React.Component {
this.refs.root.contentWindow.document.head.innerHTML = ` this.refs.root.contentWindow.document.head.innerHTML = `
<style id='style'></style> <style id='style'></style>
<link rel="stylesheet" href="${appPath}/compiled/katex-style.css"> <link rel="stylesheet" href="${appPath}/node_modules/katex/dist/katex.min.css">
<link rel="stylesheet" href="${appPath}/node_modules/codemirror/lib/codemirror.css"> <link rel="stylesheet" href="${appPath}/node_modules/codemirror/lib/codemirror.css">
<link rel="stylesheet" id="codeTheme"> <link rel="stylesheet" id="codeTheme">
` `

View File

@@ -33,14 +33,14 @@
<script src="../node_modules/codemirror/keymap/sublime.js"></script> <script src="../node_modules/codemirror/keymap/sublime.js"></script>
<script src="../node_modules/codemirror/addon/runmode/runmode.js"></script> <script src="../node_modules/codemirror/addon/runmode/runmode.js"></script>
<script src="../compiled/raphael.js"></script> <script src="../node_modules/raphael/raphael.min.js"></script>
<script src="../compiled/flowchart.js"></script> <script src="../compiled/flowchart.js"></script>
<script src="../compiled/katex.js"></script> <script src="../node_modules/katex/dist/katex.min.js"></script>
<script src="../compiled/react.js"></script> <script src="../node_modules/react/dist/react.min.js"></script>
<script src="../compiled/react-dom.js"></script> <script src="../node_modules/react-dom/dist/react-dom.min.js"></script>
<script src="../compiled/redux.js"></script> <script src="../node_modules/redux/dist/redux.min.js"></script>
<script src="../compiled/react-redux.js"></script> <script src="../node_modules/react-redux/dist/react-redux.min.js"></script>
<script> <script>
window._ = require('lodash'); window._ = require('lodash');
</script> </script>

View File

@@ -61,18 +61,18 @@
<script src="../node_modules/codemirror/addon/edit/continuelist.js"></script> <script src="../node_modules/codemirror/addon/edit/continuelist.js"></script>
<script src="../compiled/raphael.js"></script> <script src="../node_modules/raphael/raphael.min.js"></script>
<script src="../compiled/flowchart.js"></script> <script src="../compiled/flowchart.js"></script>
<script> <script>
window._ = require('lodash') window._ = require('lodash')
</script> </script>
<script src="../node_modules/js-sequence-diagrams/fucknpm/sequence-diagram-min.js"></script>
<script src="../compiled/katex.js"></script> <script src="../node_modules/js-sequence-diagrams/fucknpm/sequence-diagram-min.js"></script>
<script src="../compiled/react.js"></script> <script src="../node_modules/katex/dist/katex.min.js"></script>
<script src="../compiled/react-dom.js"></script> <script src="../node_modules/react/dist/react.min.js"></script>
<script src="../compiled/redux.js"></script> <script src="../node_modules/react-dom/dist/react-dom.min.js"></script>
<script src="../compiled/react-redux.js"></script> <script src="../node_modules/redux/dist/redux.min.js"></script>
<script src="../node_modules/react-redux/dist/react-redux.min.js"></script>
<script type='text/javascript'> <script type='text/javascript'>
const electron = require('electron') const electron = require('electron')
electron.webFrame.setZoomLevelLimits(1, 1) electron.webFrame.setZoomLevelLimits(1, 1)

View File

@@ -1,13 +1,6 @@
{ {
"directory": "compiled", "directory": "compiled",
"targets": { "targets": {
"react": "https://cdnjs.cloudflare.com/ajax/libs/react/15.0.2/react.js",
"react-dom": "https://cdnjs.cloudflare.com/ajax/libs/react/15.0.2/react-dom.js",
"redux": "https://cdnjs.cloudflare.com/ajax/libs/redux/3.5.2/redux.js",
"react-redux": "https://unpkg.com/react-redux@4.4.5/dist/react-redux.min.js",
"katex": "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min.js",
"katex-style": "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min.css",
"raphael": "https://raw.githubusercontent.com/DmitryBaranovskiy/raphael/master/raphael.js",
"flowchart": "https://cdnjs.cloudflare.com/ajax/libs/flowchart/1.6.3/flowchart.js" "flowchart": "https://cdnjs.cloudflare.com/ajax/libs/flowchart/1.6.3/flowchart.js"
} }
} }

View File

@@ -53,6 +53,7 @@
"font-awesome": "^4.3.0", "font-awesome": "^4.3.0",
"immutable": "^3.8.1", "immutable": "^3.8.1",
"js-sequence-diagrams": "^1000000.0.6", "js-sequence-diagrams": "^1000000.0.6",
"katex": "^0.6.0",
"lodash": "^4.11.1", "lodash": "^4.11.1",
"markdown-it": "^6.0.1", "markdown-it": "^6.0.1",
"markdown-it-checkbox": "^1.1.0", "markdown-it-checkbox": "^1.1.0",
@@ -62,6 +63,11 @@
"mixpanel": "^0.4.1", "mixpanel": "^0.4.1",
"moment": "^2.10.3", "moment": "^2.10.3",
"node-ipc": "^8.1.0", "node-ipc": "^8.1.0",
"raphael": "^2.2.7",
"react": "^15.0.2",
"react-dom": "^15.0.2",
"react-redux": "^4.4.5",
"redux": "^3.5.2",
"sander": "^0.5.1", "sander": "^0.5.1",
"superagent": "^1.2.0", "superagent": "^1.2.0",
"superagent-promise": "^1.0.3" "superagent-promise": "^1.0.3"