feat: native components (#789)

* wip: component viewer

* feat: get component status from component viewer

* feat: native components

* fix: remove unused property

* fix: remove unused func

* chore(deps): snjs 2.29.0

* fix: import location

* feat: native components

* fix: remove unused func

* feat: component viewer (#781)

* wip: component viewer

* feat: get component status from component viewer

* fix: remove unused property

* chore(deps): snjs 2.29.0

* fix: import location

* chore: use cp instead of webpack copy

* fix: types

* chore: misc
This commit is contained in:
Mo
2021-12-30 14:25:40 -06:00
committed by GitHub
parent 460a6e7d17
commit 66d8efd090
483 changed files with 188886 additions and 110 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,78 @@
<!DOCTYPE html>
<html>
<head>
<base target="_blank">
<meta charset="UTF-8">
<title>Markdown Math</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="dist/dist.css">
</head>
<body>
<div class="header">
<div class="header-item open-control">
<input type="file" id="fileElem" style="display:none">
<button class="toolbar-button _upload-source" title="Upload a file"></button>
<button class="toolbar-button _download-source" title="Download source"></button>
</div>
<div class="header-item demo-control">
<input
class="control-input"
id="id_html"
type="radio"
name="source_type"
checked="checked" ><label
class="control-item"
for="id_html"
title="Example of rendered HTML"
data-result-as="html"
>preview</label>
<input
class="control-input"
id="id_src"
type="radio"
name="source_type"
><label
class="control-item"
for="id_src"
title="HTML with rendered equations"
data-result-as="src"
>html</label>
<input
class="control-input"
id="id_htmltex"
type="radio"
name="source_type"
><label
class="control-item"
for="id_htmltex"
title="HTML with raw LaTeX equations"
data-result-as="htmltex"
>html-tex</label>
<input
class="control-input"
id="id_md"
type="radio"
name="source_type"
><label
class="control-item"
for="id_md"
title="Markdown with rendered equations"
data-result-as="md"
>md</label>
<button class="toolbar-button _download-result" title="Download result"></button>
</div>
</div>
<div class="container full-height" id="container-block"><!--
--><div class="half-width full-height source-wrap" id="source-block"><textarea id="editor-source" class="source full-height"></textarea></div><!--
--><div class="slider full-height" id="slider"></div><!--
--><div class="half-width full-height" id="result-block">
<div class="result-html full-height"></div>
<pre class="result-src full-height"><code class="result-src-content"></code></pre>
</div><!--
--></div>
<script src="dist/dist.js"></script>
</body>
</html>

View File

@@ -0,0 +1,32 @@
{
"name": "sn-fancy-markdown-editor",
"version": "1.3.4",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Standard Notes",
"devDependencies": {
"@babel/cli": "^7.7.7",
"@babel/core": "^7.7.7",
"@babel/preset-env": "^7.7.7",
"draggabilly": "^2.2.0",
"grunt": "^1.0.4",
"grunt-babel": "^8.0.0",
"grunt-browserify": "^5.3.0",
"grunt-contrib-concat": "^1.0.1",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-sass": "^1.0.0",
"grunt-contrib-watch": "^1.1.0",
"grunt-newer": "^1.3.0",
"katex": "^0.11.1",
"markdown-it": "^10.0.0",
"markdown-it-footnote": "^3.0.2",
"markdown-it-sub": "^1.0.0",
"markdown-it-sup": "^1.0.0",
"markdown-it-task-lists": "^2.1.1",
"sn-components-api": "1.2.8",
"sn-stylekit": "2.0.20"
}
}