feat: deprecated editors (#1166)
This commit is contained in:
112
packages/components/src/Components.ts
Normal file
112
packages/components/src/Components.ts
Normal file
@@ -0,0 +1,112 @@
|
||||
const BaseEditorStaticFiles = ['index.html', 'dist', 'package.json']
|
||||
const BaseThemeStaticFiles = ['dist', 'package.json']
|
||||
|
||||
const Editors = [
|
||||
{
|
||||
identifier: 'org.standardnotes.advanced-checklist',
|
||||
path: 'Editors/org.standardnotes.advanced-checklist',
|
||||
static_files: [...BaseEditorStaticFiles, 'build'],
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.code-editor',
|
||||
path: 'Editors/org.standardnotes.code-editor',
|
||||
static_files: [...BaseEditorStaticFiles, 'vendor'],
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.markdown-visual-editor',
|
||||
path: 'Editors/org.standardnotes.markdown-visual-editor',
|
||||
static_files: [...BaseEditorStaticFiles, 'build'],
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.plus-editor',
|
||||
path: 'Editors/org.standardnotes.plus-editor',
|
||||
static_files: [...BaseEditorStaticFiles],
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.standard-sheets',
|
||||
path: 'Editors/org.standardnotes.standard-sheets',
|
||||
static_files: [...BaseEditorStaticFiles],
|
||||
},
|
||||
|
||||
{
|
||||
identifier: 'org.standardnotes.token-vault',
|
||||
path: 'Editors/org.standardnotes.token-vault',
|
||||
static_files: [...BaseEditorStaticFiles],
|
||||
},
|
||||
|
||||
{
|
||||
identifier: 'org.standardnotes.simple-task-editor',
|
||||
path: 'Editors/org.standardnotes.simple-task-editor',
|
||||
static_files: [...BaseEditorStaticFiles],
|
||||
},
|
||||
]
|
||||
|
||||
const DeprecatedEditors = [
|
||||
{
|
||||
identifier: 'org.standardnotes.advanced-markdown-editor',
|
||||
path: 'Editors/org.standardnotes.advanced-markdown-editor',
|
||||
static_files: [...BaseEditorStaticFiles],
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.bold-editor',
|
||||
path: 'Deprecated/org.standardnotes.bold-editor',
|
||||
static_files: [...BaseEditorStaticFiles],
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.simple-markdown-editor',
|
||||
path: 'Deprecated/org.standardnotes.simple-markdown-editor',
|
||||
static_files: [...BaseEditorStaticFiles],
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.fancy-markdown-editor',
|
||||
path: 'Deprecated/org.standardnotes.fancy-markdown-editor',
|
||||
static_files: [...BaseEditorStaticFiles],
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.minimal-markdown-editor',
|
||||
path: 'Deprecated/org.standardnotes.minimal-markdown-editor',
|
||||
static_files: [...BaseEditorStaticFiles],
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.file-safe',
|
||||
path: 'Deprecated/org.standardnotes.file-safe',
|
||||
static_files: [...BaseEditorStaticFiles],
|
||||
},
|
||||
]
|
||||
|
||||
const Themes = [
|
||||
{
|
||||
identifier: 'org.standardnotes.theme-autobiography',
|
||||
path: 'Themes/org.standardnotes.theme-autobiography',
|
||||
static_files: BaseThemeStaticFiles,
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.theme-dynamic',
|
||||
path: 'Themes/org.standardnotes.theme-dynamic',
|
||||
static_files: BaseThemeStaticFiles,
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.theme-focus',
|
||||
path: 'Themes/org.standardnotes.theme-focus',
|
||||
static_files: BaseThemeStaticFiles,
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.theme-futura',
|
||||
path: 'Themes/org.standardnotes.theme-futura',
|
||||
static_files: BaseThemeStaticFiles,
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.theme-midnight',
|
||||
path: 'Themes/org.standardnotes.theme-midnight',
|
||||
static_files: BaseThemeStaticFiles,
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.theme-titanium',
|
||||
path: 'Themes/org.standardnotes.theme-titanium',
|
||||
static_files: BaseThemeStaticFiles,
|
||||
},
|
||||
]
|
||||
|
||||
const Components = [...Editors, ...DeprecatedEditors, ...Themes]
|
||||
|
||||
export { Components }
|
||||
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
@@ -0,0 +1 @@
|
||||
ext.json
|
||||
1
packages/components/src/Packages/Deprecated/org.standardnotes.bold-editor/dist/dist.css
vendored
Normal file
1
packages/components/src/Packages/Deprecated/org.standardnotes.bold-editor/dist/dist.css
vendored
Normal file
File diff suppressed because one or more lines are too long
2
packages/components/src/Packages/Deprecated/org.standardnotes.bold-editor/dist/dist.min.js
vendored
Normal file
2
packages/components/src/Packages/Deprecated/org.standardnotes.bold-editor/dist/dist.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
object-assign
|
||||
(c) Sindre Sorhus
|
||||
@license MIT
|
||||
*/
|
||||
|
||||
/*! @license DOMPurify 2.3.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.8/LICENSE */
|
||||
|
||||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Lodash (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
|
||||
* Build: `lodash include="includes,merge,filter,map,remove,find,omit,pull,cloneDeep,pick,uniq,sortedIndexBy,mergeWith"`
|
||||
*/
|
||||
|
||||
/** @license React v0.20.2
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/** @license React v17.0.2
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/** @license React v17.0.2
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,5 @@
|
||||
/**
|
||||
* @license
|
||||
* Lodash (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
|
||||
* Build: `lodash include="includes,merge,filter,map,remove,find,omit,pull,cloneDeep,pick,uniq,sortedIndexBy,mergeWith"`
|
||||
*/
|
||||
1
packages/components/src/Packages/Deprecated/org.standardnotes.bold-editor/dist/index.html
vendored
Normal file
1
packages/components/src/Packages/Deprecated/org.standardnotes.bold-editor/dist/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<!doctype html><html><head><base target="_blank"><meta charset="UTF-8"><meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1"><link href="vendor.css" rel="stylesheet"><script src="vendor.js"></script><script src="filesafe-js/EncryptionWorker.js"></script><title>Bold Editor</title><script defer="defer" src="dist.min.js"></script><link href="dist.css" rel="stylesheet"></head><body></body></html>
|
||||
6
packages/components/src/Packages/Deprecated/org.standardnotes.bold-editor/dist/vendor.css
vendored
Normal file
6
packages/components/src/Packages/Deprecated/org.standardnotes.bold-editor/dist/vendor.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
packages/components/src/Packages/Deprecated/org.standardnotes.bold-editor/dist/vendor.js
vendored
Normal file
1
packages/components/src/Packages/Deprecated/org.standardnotes.bold-editor/dist/vendor.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
@@ -6,9 +6,9 @@
|
||||
"scripts": {
|
||||
"skip:lint": "eslint app/ --ext .js",
|
||||
"lint:fix": "eslint app/ --ext .js --fix",
|
||||
"components:compile": "webpack --config webpack.prod.js",
|
||||
"deprecated:compile": "webpack --config webpack.prod.js",
|
||||
"start": "webpack serve --config webpack.dev.js --progress --hot",
|
||||
"test": "echo \"Error: no test specified\" && exit 0"
|
||||
"deprecated:test": "echo \"Error: no test specified\" && exit 0"
|
||||
},
|
||||
"sn": {
|
||||
"main": "dist/index.html"
|
||||
518
packages/components/src/Packages/Deprecated/org.standardnotes.fancy-markdown-editor/dist/app.css
vendored
Normal file
518
packages/components/src/Packages/Deprecated/org.standardnotes.fancy-markdown-editor/dist/app.css
vendored
Normal file
@@ -0,0 +1,518 @@
|
||||
html {
|
||||
font-size: var(--sn-stylekit-base-font-size);
|
||||
}
|
||||
|
||||
body {
|
||||
font-size: var(--sn-stylekit-font-size-editor);
|
||||
font-family: Calibri, "Trebuchet MS", sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
.full-height,
|
||||
.ldt label,
|
||||
body,
|
||||
html {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.ldt,
|
||||
.ldt label.ldt-label {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.ldt pre,
|
||||
.ldt textarea {
|
||||
font-size: var(--sn-stylekit-font-size-editor);
|
||||
font-family: monospace;
|
||||
color: var(--sn-stylekit-editor-foreground-color);
|
||||
}
|
||||
|
||||
.ldt {
|
||||
overflow: auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
pre.ldt-pre {
|
||||
-moz-padding-start: 1px;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
margin: 0;
|
||||
border: 0;
|
||||
-webkit-nbsp-mode: space;
|
||||
}
|
||||
|
||||
@supports (-webkit-overflow-scrolling: touch) {
|
||||
/* CSS specific to iOS devices */
|
||||
.ldt pre {
|
||||
margin-left: 3px !important;
|
||||
}
|
||||
}
|
||||
body,
|
||||
hr {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.container,
|
||||
.copyright,
|
||||
.demo-control,
|
||||
.open-control {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ldt label {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
display: inline;
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
body,
|
||||
sub,
|
||||
sup {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.hljs,
|
||||
.ldt textarea,
|
||||
hr {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.ldt textarea {
|
||||
font-size: var(--sn-stylekit-editor-foreground-color);
|
||||
color: transparent !important;
|
||||
color: rgba(0, 0, 0, 0.3) !important;
|
||||
margin: 0;
|
||||
border: 0;
|
||||
background: 0 0;
|
||||
outline: 0;
|
||||
resize: none;
|
||||
min-width: 100%;
|
||||
width: 100%;
|
||||
min-height: 100%;
|
||||
overflow: hidden;
|
||||
filter: alpha(opacity=30);
|
||||
}
|
||||
|
||||
.hljs {
|
||||
overflow-x: auto;
|
||||
color: #657b83;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #93a1a1;
|
||||
}
|
||||
|
||||
.hljs-addition,
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #859900;
|
||||
}
|
||||
|
||||
.hljs-doctag,
|
||||
.hljs-literal,
|
||||
.hljs-meta .hljs-meta-string,
|
||||
.hljs-number,
|
||||
.hljs-regexp,
|
||||
.hljs-string {
|
||||
color: #2aa198;
|
||||
}
|
||||
|
||||
.hljs-name,
|
||||
.hljs-section,
|
||||
.hljs-selector-class,
|
||||
.hljs-selector-id,
|
||||
.hljs-title {
|
||||
color: #268bd2;
|
||||
}
|
||||
|
||||
.hljs-attr,
|
||||
.hljs-attribute,
|
||||
.hljs-class .hljs-title,
|
||||
.hljs-template-variable,
|
||||
.hljs-type,
|
||||
.hljs-variable {
|
||||
color: #b58900;
|
||||
}
|
||||
|
||||
.hljs-bullet,
|
||||
.hljs-link,
|
||||
.hljs-meta,
|
||||
.hljs-meta .hljs-keyword,
|
||||
.hljs-selector-attr,
|
||||
.hljs-selector-pseudo,
|
||||
.hljs-subst,
|
||||
.hljs-symbol {
|
||||
color: #cb4b16;
|
||||
}
|
||||
|
||||
.hljs-built_in,
|
||||
.hljs-deletion {
|
||||
color: #dc322f;
|
||||
}
|
||||
|
||||
.hljs-formula {
|
||||
background: #eee8d5;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@viewport {
|
||||
width: device-width;
|
||||
}
|
||||
@-ms-viewport {
|
||||
width: device-width;
|
||||
}
|
||||
* {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
min-width: 320px;
|
||||
margin: 0;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
button,
|
||||
textarea {
|
||||
font: var(--sn-stylekit-font-size-editor) Calibri, "Trebuchet MS", sans-serif;
|
||||
}
|
||||
|
||||
sub,
|
||||
sup {
|
||||
vertical-align: baseline;
|
||||
top: -0.4em;
|
||||
}
|
||||
|
||||
sub {
|
||||
top: 0.4em;
|
||||
}
|
||||
|
||||
hr {
|
||||
height: 1px;
|
||||
border: 0;
|
||||
border-top: 1px solid #ccc;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
font: var(--sn-stylekit-font-size-editor) Cambria, Georgia, serif;
|
||||
margin: 1em 0 0;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.ldt .bold,
|
||||
.ldt .latexBlock.delimeter,
|
||||
.ldt .list-mark {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0.5em 0 0.25em;
|
||||
font-size: 225%;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 1em 0 0.25em;
|
||||
font-size: 175%;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 125%;
|
||||
}
|
||||
|
||||
div.header {
|
||||
background: var(--sn-stylekit-contrast-background-color);
|
||||
color: var(--sn-stylekit-contrast-foreground-color);
|
||||
border-bottom: 1px solid var(--sn-stylekit-contrast-border-color);
|
||||
padding: 0 16px;
|
||||
margin: 0;
|
||||
height: 48px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
.header-item {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.header a.link {
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
border-bottom: thin solid rgba(255, 255, 255, 0.7);
|
||||
height: 16px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.demo-control,
|
||||
.open-control {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.demo-control .control-item,
|
||||
.header .toolbar-button {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
color: #fff;
|
||||
background-clip: padding-box;
|
||||
border-color: transparent;
|
||||
border-style: solid;
|
||||
border-width: 9px 1px;
|
||||
height: 48px;
|
||||
min-width: 30px;
|
||||
line-height: 30px;
|
||||
padding: 0 4px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
cursor: hand;
|
||||
}
|
||||
|
||||
.demo-control .control-item {
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.demo-control .control-input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.demo-control .control-input:checked + .control-item {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 825px) {
|
||||
.demo-control {
|
||||
text-align: left;
|
||||
padding-left: 16px;
|
||||
}
|
||||
.open-control {
|
||||
text-align: right;
|
||||
padding-right: 20px;
|
||||
}
|
||||
}
|
||||
.container {
|
||||
padding-top: 48px;
|
||||
overflow: hidden;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.half-width,
|
||||
.slider {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.half-width {
|
||||
position: relative;
|
||||
width: 50%;
|
||||
width: calc(50% - 3px);
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.slider {
|
||||
width: 6px;
|
||||
cursor: ew-resize;
|
||||
background: radial-gradient(rgba(0, 0, 0, 0.1) 21%, transparent 22%) 3px 3px, radial-gradient(rgba(0, 0, 0, 0.1) 21%, transparent 22%);
|
||||
background-size: 6px 6px;
|
||||
left: 0 !important;
|
||||
top: 0 !important;
|
||||
transform: none !important;
|
||||
}
|
||||
|
||||
.opt__strict .not-strict {
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.ldt label.ldt-label,
|
||||
.source {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.ldt pre,
|
||||
.ldt textarea,
|
||||
textarea.source {
|
||||
padding: 16px 16px 0;
|
||||
}
|
||||
|
||||
.ldt pre.ldt-pre,
|
||||
.ldt textarea {
|
||||
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
||||
font-size: var(--sn-stylekit-font-size-editor);
|
||||
line-height: calc(var(--sn-stylekit-font-size-editor) + 0.2rem);
|
||||
}
|
||||
|
||||
pre.ldt-pre span {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
textarea.source {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: none;
|
||||
display: block;
|
||||
outline: 0;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.result-html .svg-preview,
|
||||
.result-html img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.result-html,
|
||||
.result-src {
|
||||
display: none;
|
||||
padding: 16px 16px 16px 13px;
|
||||
margin: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.result-src,
|
||||
.result-src-content {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.result-as-debug .result-src,
|
||||
.result-as-habr .result-src,
|
||||
.result-as-html .result-html,
|
||||
.result-as-htmltex .result-src,
|
||||
.result-as-md .result-src,
|
||||
.result-as-src .result-src {
|
||||
display: block;
|
||||
color: var(--sn-stylekit-editor-foreground-color);
|
||||
}
|
||||
|
||||
.result-html {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.result-html a {
|
||||
color: var(--sn-stylekit-info-color);
|
||||
}
|
||||
|
||||
.result-html .svg-preview {
|
||||
overflow: visible;
|
||||
-webkit-transition: opacity 0.4s ease-in-out;
|
||||
-moz-transition: opacity 0.4s ease-in-out;
|
||||
transition: opacity 0.4s ease-in-out;
|
||||
fill: var(--sn-stylekit-info-color);
|
||||
}
|
||||
|
||||
.hljs {
|
||||
background: 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-corner {
|
||||
background: #e5cda5;
|
||||
}
|
||||
|
||||
.ldt .header, .ldt .header2 {
|
||||
font-weight: 700;
|
||||
color: var(--sn-stylekit-info-color);
|
||||
}
|
||||
|
||||
.ldt .quote {
|
||||
background: var(--sn-stylekit-secondary-contrast-background-color);
|
||||
}
|
||||
|
||||
.ldt .list {
|
||||
background: var(--sn-stylekit-secondary-contrast-background-color);
|
||||
}
|
||||
|
||||
.ldt .code, .ldt .fence {
|
||||
background: var(--sn-stylekit-secondary-contrast-background-color);
|
||||
}
|
||||
|
||||
.ldt .sub, .ldt .sup {
|
||||
color: var(--sn-stylekit-warning-color);
|
||||
}
|
||||
|
||||
.ldt .link {
|
||||
color: var(--sn-stylekit-info-color);
|
||||
}
|
||||
|
||||
.ldt .latex {
|
||||
color: var(--sn-stylekit-success-color);
|
||||
}
|
||||
|
||||
.ldt .italic {
|
||||
color: var(--sn-stylekit-warning-color);
|
||||
}
|
||||
|
||||
.ldt .strike {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.ldt .latexBlock.keyword {
|
||||
color: var(--sn-stylekit-info-color);
|
||||
}
|
||||
|
||||
.ldt .latexBlock.keyword2 {
|
||||
color: var(--sn-stylekit-info-color);
|
||||
}
|
||||
|
||||
.ldt .latexBlock.keyword3 {
|
||||
color: var(--sn-stylekit-success-color);
|
||||
}
|
||||
|
||||
.ldt .latexBlock.bracket {
|
||||
color: var(--sn-stylekit-danger-color);
|
||||
}
|
||||
|
||||
.ldt .latexBlock.comment {
|
||||
color: var(--sn-stylekit-neutral-color-color);
|
||||
}
|
||||
|
||||
.ldt .latexBlock.index {
|
||||
color: var(--sn-stylekit-warning-color);
|
||||
}
|
||||
|
||||
@media screen and (-webkit-min-device-pixel-ratio: 0) {
|
||||
.ldt textarea::-webkit-input-placeholder {
|
||||
text-shadow: none;
|
||||
-webkit-text-fill-color: initial;
|
||||
}
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=app.css.map */
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sourceRoot":"","sources":["../src/main.scss"],"names":[],"mappings":"AAAA;EACE;;;AAGF;EACE;EACA;;;AAGF;EAEE;;;AAGF;AAAA;AAAA;AAAA;EAII;;;AAGJ;AAAA;EAEI;;;AAGJ;AAAA;EAEE;EACA;EACA;;;AAIF;EACI;EACA;;;AAGJ;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;AACE;EACA;IACE;;;AAIJ;AAAA;EAEI;;;AAGJ;AAAA;AAAA;AAAA;EAII;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;;;AAGJ;AAAA;AAAA;EAGI;;;AAGJ;AAAA;AAAA;EAGI;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;;;AAGJ;AAAA;EAEI;;;AAGJ;AAAA;AAAA;EAGI;;;AAGJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI;;;AAGJ;AAAA;AAAA;AAAA;AAAA;EAKI;;;AAGJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI;;;AAGJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAQI;;;AAGJ;AAAA;EAEI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EACI;EACA;EACA;;;AAGJ;EACI;EACA;EACA;;;AAGJ;AAAA;EAEI;;;AAGJ;AAAA;EAEI;EACA;;;AAGJ;EACI;;;AAGJ;EACI;EACA;EACA;EACA;;;AAGJ;AAAA;AAAA;EAGI;EACA;EACA;;;AAGJ;AAAA;AAAA;EAGI;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACI;;;AAGJ;EACI;EACA;EACA;EACA;EACA;;;AAGJ;AAAA;EAEI;;;AAGJ;AAAA;EAEI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;IACI;IACA;;EAEJ;IACI;IACA;;;AAIR;EACI;EACA;EACA;;;AAGJ;AAAA;EAEI;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;;;AAGJ;AAAA;EAEI;;;AAGJ;AAAA;AAAA;EAGI;;;AAGJ;AAAA;EAEI;EACA;EACA;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;EACA;EACA;EACA;EACA;;;AAGJ;AAAA;EAEI;;;AAGJ;AAAA;EAEI;EACA;EACA;EACA;;;AAGJ;AAAA;EAEI;;;AAGJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI;EACA;;;AAGJ;EACI;EACA;;AAEA;EACE;;;AAIN;EACI;EACA;EACA;EACA;EAEA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;;;AAGJ;EACE;;;AAGF;EACI;;;AAGJ;EACI;EACA;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACE;;;AAIF;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EAII;IACI;IACA","file":"app.css"}
|
||||
78
packages/components/src/Packages/Deprecated/org.standardnotes.fancy-markdown-editor/dist/app.js
vendored
Normal file
78
packages/components/src/Packages/Deprecated/org.standardnotes.fancy-markdown-editor/dist/app.js
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
||||
"use strict";
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function (event) {
|
||||
var editor = document.getElementById('editor-source');
|
||||
var workingNote;
|
||||
var componentRelay = new ComponentRelay({
|
||||
targetWindow: window,
|
||||
onReady: function onReady() {
|
||||
var platform = componentRelay.platform;
|
||||
|
||||
if (platform) {
|
||||
document.body.classList.add(platform);
|
||||
}
|
||||
}
|
||||
});
|
||||
componentRelay.streamContextItem(function (note) {
|
||||
workingNote = note;
|
||||
|
||||
if (note.isMetadataUpdate) {
|
||||
return;
|
||||
}
|
||||
|
||||
editor.value = note.content.text;
|
||||
window.upmath.updateText();
|
||||
editor.setAttribute('spellcheck', JSON.stringify(workingNote.content.spellcheck));
|
||||
});
|
||||
editor.addEventListener('input', function (event) {
|
||||
var text = editor.value || '';
|
||||
|
||||
function strip(html) {
|
||||
var tmp = document.implementation.createHTMLDocument('New').body;
|
||||
tmp.innerHTML = html;
|
||||
return tmp.textContent || tmp.innerText || '';
|
||||
}
|
||||
|
||||
function truncateString(string) {
|
||||
var limit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 90;
|
||||
|
||||
if (string.length <= limit) {
|
||||
return string;
|
||||
} else {
|
||||
return string.substring(0, limit) + '...';
|
||||
}
|
||||
}
|
||||
|
||||
if (workingNote) {
|
||||
var note = workingNote;
|
||||
componentRelay.saveItemWithPresave(note, function () {
|
||||
window.upmath.updateText();
|
||||
var html = window.upmath.getHTML();
|
||||
var strippedHtml = truncateString(strip(html));
|
||||
note.content.preview_plain = strippedHtml;
|
||||
note.content.preview_html = null;
|
||||
note.content.text = text;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
editor.addEventListener('keydown', function (event) {
|
||||
if (!event.shiftKey && event.which == 9) {
|
||||
event.preventDefault();
|
||||
|
||||
if (!document.execCommand('insertText', false, '\t')) {
|
||||
var start = this.selectionStart;
|
||||
var end = this.selectionEnd;
|
||||
var spaces = ' ';
|
||||
|
||||
this.value = this.value.substring(0, start) + spaces + this.value.substring(end);
|
||||
|
||||
this.selectionStart = this.selectionEnd = start + 4;
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
},{}]},{},[1]);
|
||||
File diff suppressed because one or more lines are too long
523
packages/components/src/Packages/Deprecated/org.standardnotes.fancy-markdown-editor/dist/dist.css
vendored
Normal file
523
packages/components/src/Packages/Deprecated/org.standardnotes.fancy-markdown-editor/dist/dist.css
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user