feat: deprecated editors (#1166)
This commit is contained in:
BIN
.yarn/cache/@standardnotes-api-npm-1.1.17-183600bb5f-483faa9395.zip
vendored
Normal file
BIN
.yarn/cache/@standardnotes-api-npm-1.1.17-183600bb5f-483faa9395.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@standardnotes-auth-npm-3.19.4-29b35c1352-84ac9e669e.zip
vendored
Normal file
BIN
.yarn/cache/@standardnotes-auth-npm-3.19.4-29b35c1352-84ac9e669e.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@standardnotes-common-npm-1.23.1-ed73dbb679-f498f4c469.zip
vendored
Normal file
BIN
.yarn/cache/@standardnotes-common-npm-1.23.1-ed73dbb679-f498f4c469.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@standardnotes-domain-events-npm-2.32.5-d809038510-95532b9fdf.zip
vendored
Normal file
BIN
.yarn/cache/@standardnotes-domain-events-npm-2.32.5-d809038510-95532b9fdf.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@standardnotes-encryption-npm-1.8.22-a04b05c8a4-7a571c4b25.zip
vendored
Normal file
BIN
.yarn/cache/@standardnotes-encryption-npm-1.8.22-a04b05c8a4-7a571c4b25.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@standardnotes-features-npm-1.46.0-32e559e3b6-0653b9b425.zip
vendored
Normal file
BIN
.yarn/cache/@standardnotes-features-npm-1.46.0-32e559e3b6-0653b9b425.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@standardnotes-filepicker-npm-1.16.22-8f40dfd9e0-df14eedefd.zip
vendored
Normal file
BIN
.yarn/cache/@standardnotes-filepicker-npm-1.16.22-8f40dfd9e0-df14eedefd.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@standardnotes-files-npm-1.3.22-85a573b022-4bd58c1aed.zip
vendored
Normal file
BIN
.yarn/cache/@standardnotes-files-npm-1.3.22-85a573b022-4bd58c1aed.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@standardnotes-models-npm-1.11.12-d07d5ebeb6-636897db97.zip
vendored
Normal file
BIN
.yarn/cache/@standardnotes-models-npm-1.11.12-d07d5ebeb6-636897db97.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@standardnotes-responses-npm-1.6.38-96a9e7645b-016a2f294d.zip
vendored
Normal file
BIN
.yarn/cache/@standardnotes-responses-npm-1.6.38-96a9e7645b-016a2f294d.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@standardnotes-scheduler-npm-1.1.2-78f89314fb-68642a0874.zip
vendored
Normal file
BIN
.yarn/cache/@standardnotes-scheduler-npm-1.1.2-78f89314fb-68642a0874.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@standardnotes-services-npm-1.13.22-e649cbd9ce-e84f4e43d4.zip
vendored
Normal file
BIN
.yarn/cache/@standardnotes-services-npm-1.13.22-e649cbd9ce-e84f4e43d4.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@standardnotes-snjs-npm-2.118.0-422ae5d7a6-46fd930c43.zip
vendored
Normal file
BIN
.yarn/cache/@standardnotes-snjs-npm-2.118.0-422ae5d7a6-46fd930c43.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@standardnotes-utils-npm-1.6.12-8fa8d7d09b-e177b1fa51.zip
vendored
Normal file
BIN
.yarn/cache/@standardnotes-utils-npm-1.6.12-8fa8d7d09b-e177b1fa51.zip
vendored
Normal file
Binary file not shown.
@@ -45,7 +45,7 @@
|
||||
"@types/hoist-non-react-statics/@types/react": "17.0.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@standardnotes/snjs": "^2.117.9"
|
||||
"@standardnotes/snjs": "^2.118.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^17.0.2",
|
||||
|
||||
10
packages/components/.gitignore
vendored
10
packages/components/.gitignore
vendored
@@ -1 +1,9 @@
|
||||
tmp
|
||||
tmp
|
||||
|
||||
src/Packages/Editors/**/build
|
||||
src/Packages/Editors/**/dist
|
||||
src/Packages/Themes/**/dist
|
||||
|
||||
# Deprecated dist assets should be commited to source control as these compnonents will no longer be compiled.
|
||||
!src/Packages/Deprecated/**/dist
|
||||
!src/Packages/Deprecated/**/build
|
||||
2
packages/components/dist/Checksums.js
vendored
Normal file
2
packages/components/dist/Checksums.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
6
packages/components/dist/Components.d.ts
vendored
Normal file
6
packages/components/dist/Components.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
declare const Components: {
|
||||
identifier: string;
|
||||
path: string;
|
||||
static_files: string[];
|
||||
}[];
|
||||
export { Components };
|
||||
117
packages/components/dist/Components.js
vendored
Normal file
117
packages/components/dist/Components.js
vendored
Normal file
@@ -0,0 +1,117 @@
|
||||
"use strict";
|
||||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
||||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
||||
if (ar || !(i in from)) {
|
||||
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
||||
ar[i] = from[i];
|
||||
}
|
||||
}
|
||||
return to.concat(ar || Array.prototype.slice.call(from));
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Components = void 0;
|
||||
var BaseEditorStaticFiles = ['index.html', 'dist', 'package.json'];
|
||||
var BaseThemeStaticFiles = ['dist', 'package.json'];
|
||||
var Editors = [
|
||||
{
|
||||
identifier: 'org.standardnotes.advanced-checklist',
|
||||
path: 'Editors/org.standardnotes.advanced-checklist',
|
||||
static_files: __spreadArray(__spreadArray([], BaseEditorStaticFiles, true), ['build'], false),
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.code-editor',
|
||||
path: 'Editors/org.standardnotes.code-editor',
|
||||
static_files: __spreadArray(__spreadArray([], BaseEditorStaticFiles, true), ['vendor'], false),
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.markdown-visual-editor',
|
||||
path: 'Editors/org.standardnotes.markdown-visual-editor',
|
||||
static_files: __spreadArray(__spreadArray([], BaseEditorStaticFiles, true), ['build'], false),
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.plus-editor',
|
||||
path: 'Editors/org.standardnotes.plus-editor',
|
||||
static_files: __spreadArray([], BaseEditorStaticFiles, true),
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.standard-sheets',
|
||||
path: 'Editors/org.standardnotes.standard-sheets',
|
||||
static_files: __spreadArray([], BaseEditorStaticFiles, true),
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.token-vault',
|
||||
path: 'Editors/org.standardnotes.token-vault',
|
||||
static_files: __spreadArray([], BaseEditorStaticFiles, true),
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.simple-task-editor',
|
||||
path: 'Editors/org.standardnotes.simple-task-editor',
|
||||
static_files: __spreadArray([], BaseEditorStaticFiles, true),
|
||||
},
|
||||
];
|
||||
var DeprecatedEditors = [
|
||||
{
|
||||
identifier: 'org.standardnotes.advanced-markdown-editor',
|
||||
path: 'Editors/org.standardnotes.advanced-markdown-editor',
|
||||
static_files: __spreadArray([], BaseEditorStaticFiles, true),
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.bold-editor',
|
||||
path: 'Deprecated/org.standardnotes.bold-editor',
|
||||
static_files: __spreadArray([], BaseEditorStaticFiles, true),
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.simple-markdown-editor',
|
||||
path: 'Deprecated/org.standardnotes.simple-markdown-editor',
|
||||
static_files: __spreadArray([], BaseEditorStaticFiles, true),
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.fancy-markdown-editor',
|
||||
path: 'Deprecated/org.standardnotes.fancy-markdown-editor',
|
||||
static_files: __spreadArray([], BaseEditorStaticFiles, true),
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.minimal-markdown-editor',
|
||||
path: 'Deprecated/org.standardnotes.minimal-markdown-editor',
|
||||
static_files: __spreadArray([], BaseEditorStaticFiles, true),
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.file-safe',
|
||||
path: 'Deprecated/org.standardnotes.file-safe',
|
||||
static_files: __spreadArray([], BaseEditorStaticFiles, true),
|
||||
},
|
||||
];
|
||||
var 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,
|
||||
},
|
||||
];
|
||||
var Components = __spreadArray(__spreadArray(__spreadArray([], Editors, true), DeprecatedEditors, true), Themes, true);
|
||||
exports.Components = Components;
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
/*! @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 */
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
Before Width: | Height: | Size: 434 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +0,0 @@
|
||||
<!doctype html><html><head><base target="_blank"><meta charset="UTF-8"><meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1"><script src="lib/component-relay.js"></script><script src="vendor/highlightjs/highlightjs.js"></script><link rel="stylesheet" media="all" href="vendor/easymd/easymde.css"><script src="vendor/easymd/easymd.js"></script><link rel="stylesheet" media="all" href="stylekit.css"><title>Markdown Pro</title><script defer="defer" src="dist.js"></script><link href="dist.css" rel="stylesheet"></head><body class="sn-component" id="sn-advanced-markdown-editor"><textarea dir="auto" id="editor" hidden></textarea></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -1,6 +0,0 @@
|
||||
/**
|
||||
* easymde v2.16.1
|
||||
* Copyright Jeroen Akkerman
|
||||
* @link https://github.com/ionaru/easy-markdown-editor
|
||||
* @license MIT
|
||||
*/
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
/*! highlight.js v9.16.2 | BSD3 License | git.io/hljslicense */
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
packages/components/dist/assets/org.standardnotes.simple-markdown-editor/dist/dist.js.map
vendored
Normal file
1
packages/components/dist/assets/org.standardnotes.simple-markdown-editor/dist/dist.js.map
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
File diff suppressed because one or more lines are too long
@@ -1,60 +0,0 @@
|
||||
:root {
|
||||
--background-1: #002b36;
|
||||
--background-2: #083642;
|
||||
--foreground-color: #fdf6e3;
|
||||
--highlight-color: #2aa198;
|
||||
--border-color: #00252e;
|
||||
--pre-color: #d6dbdb;
|
||||
--content-1: #586d75;
|
||||
--content-2: #667a83;
|
||||
--content-3: #839496;
|
||||
--content-4: #93a1a1;
|
||||
/* Footer */
|
||||
--footer-bar-border-top-color: 0;
|
||||
/* Column Menus */
|
||||
--menu-item-sep-color: rgba(0, 0, 0, 0.1);
|
||||
--sn-component-foreground-color: var(--content-1);
|
||||
--sn-component-background-color: var(--border-color);
|
||||
--sn-component-foreground-highlight-color: var(--highlight-color);
|
||||
--sn-component-outer-border-color: transparent;
|
||||
--sn-component-inner-border-color: var(--highlight-color);
|
||||
--sn-stylekit-info-color: var(--highlight-color);
|
||||
--sn-stylekit-info-contrast-color: var(--foreground-color);
|
||||
--sn-stylekit-neutral-color: #7c7c7c;
|
||||
--sn-stylekit-neutral-contrast-color: white;
|
||||
--sn-stylekit-success-color: #2b9612;
|
||||
--sn-stylekit-success-contrast-color: white;
|
||||
--sn-stylekit-warning-color: #f6a200;
|
||||
--sn-stylekit-warning-contrast-color: white;
|
||||
--sn-stylekit-danger-color: #f80324;
|
||||
--sn-stylekit-danger-contrast-color: white;
|
||||
--sn-stylekit-shadow-color: var(--background-2);
|
||||
--sn-stylekit-background-color: var(--background-1);
|
||||
--sn-stylekit-foreground-color: var(--foreground-color);
|
||||
--sn-stylekit-border-color: var(--border-color);
|
||||
--sn-stylekit-paragraph-text-color: var(--foreground-color);
|
||||
--sn-stylekit-contrast-background-color: var(--background-2);
|
||||
--sn-stylekit-contrast-foreground-color: var(--foreground-color);
|
||||
--sn-stylekit-contrast-border-color: var(--border-color);
|
||||
--sn-stylekit-secondary-background-color: var(--background-1);
|
||||
--sn-stylekit-secondary-foreground-color: var(--foreground-color);
|
||||
--sn-stylekit-secondary-border-color: var(--border-color);
|
||||
--sn-stylekit-secondary-contrast-background-color: var(--background-2);
|
||||
--sn-stylekit-secondary-contrast-foreground-color: var(--foreground-color);
|
||||
--sn-stylekit-secondary-contrast-border-color: var(--border-color);
|
||||
--sn-stylekit-editor-background-color: var(--sn-stylekit-background-color);
|
||||
--sn-stylekit-editor-foreground-color: var(--sn-stylekit-foreground-color);
|
||||
--sn-stylekit-scrollbar-track-border-color: var(--border-color);
|
||||
--sn-stylekit-scrollbar-thumb-color: var(--sn-stylekit-info-color);
|
||||
--sn-desktop-titlebar-bg-color: var(--background-1);
|
||||
--sn-desktop-titlebar-border-color: var(--border-color);
|
||||
--sn-desktop-titlebar-ui-color: var(--foreground-color);
|
||||
--sn-desktop-titlebar-ui-hover-color: var(--highlight-color);
|
||||
--sn-stylekit-menu-border: 1px solid #1f5461;
|
||||
--sn-stylekit-passive-color-0: #a8bdbd;
|
||||
--sn-stylekit-passive-color-1: #93a1a1;
|
||||
--sn-stylekit-passive-color-3: #0d4f60;
|
||||
--sn-stylekit-passive-color-4: #083642;
|
||||
--sn-stylekit-passive-color-4-opacity-variant: #2aa1983d;
|
||||
--sn-stylekit-passive-color-5: #003542;
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
3
packages/components/dist/index.d.ts
vendored
3
packages/components/dist/index.d.ts
vendored
@@ -1 +1,2 @@
|
||||
export * from './Types/Checksums';
|
||||
export * from './Checksums';
|
||||
export * from './Components';
|
||||
|
||||
18
packages/components/dist/index.js
vendored
Normal file
18
packages/components/dist/index.js
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__exportStar(require("./Checksums"), exports);
|
||||
__exportStar(require("./Components"), exports);
|
||||
52
packages/components/dist/zips/checksums.json
vendored
52
packages/components/dist/zips/checksums.json
vendored
@@ -36,67 +36,67 @@
|
||||
},
|
||||
"org.standardnotes.code-editor": {
|
||||
"version": "1.3.17",
|
||||
"base64": "2f061eeee557be892a1e6ea536eb715ba13344f1e0726112fefa83d300d1da96",
|
||||
"binary": "47f8d1e1b5aeaf078f8eb3d00ba38adc8e2e3a60b37c9091a2bbd5cdb082d931"
|
||||
"base64": "d4909654d897635c1da4ea4f2304db11fce1fbe3187643a1b86d559f29e49a68",
|
||||
"binary": "914255d648f26df1b9cd0187aeb733d89574fa5ca5aaa59fcdfb4b11522c1675"
|
||||
},
|
||||
"org.standardnotes.bold-editor": {
|
||||
"version": "1.3.10",
|
||||
"base64": "6a97c5e976c1bdd2866641b93d17bec957b9e82eb1b753085b34c85b01d2f1d2",
|
||||
"binary": "4dbed39b3569a48a542297b9f59f71a00f6b4d9ff81438692f1d67979494a5ea"
|
||||
"base64": "8b04851cbc6e77c7e74b6e916337680df6b07bc20781e10f225a2439ebd710de",
|
||||
"binary": "62cd07f019621cfadbde6ff2aa2a9b6f9d65881dcf5d99992d43b5f24bf62af3"
|
||||
},
|
||||
"org.standardnotes.plus-editor": {
|
||||
"version": "1.6.6",
|
||||
"base64": "89cceec289f023b68fc5a76832730a145ebac612da9b33610de48c2f0353da0e",
|
||||
"binary": "a728c207ccf79c41852f00afeda2ed3384485bbd616c2abaca06ab317ea1ec79"
|
||||
"base64": "a36f4bc01b8fd77fe3cd9d3fab22b400571f687a70b2d098d19a05cba55f7f9d",
|
||||
"binary": "93611d676ad097aceb2715da46550aa9152acc5340226c95662d989f465f6fe7"
|
||||
},
|
||||
"org.standardnotes.simple-markdown-editor": {
|
||||
"version": "1.4.7",
|
||||
"base64": "4dd893d509bc18a49fd67e78ff855cde5943e2273e8f7615badae964d713b9b0",
|
||||
"binary": "bdbb6eb6226f33ace9943d23e79461fa0c1dc1a3491538a5bd410e0c5242cd20"
|
||||
"base64": "6e52bb76530083e314f3df4b23feec4fdc5baa780c9ad40afc92d3f86d094fb9",
|
||||
"binary": "bd6223df4f51dad7028d0937241ce2b71f9d1ee17a4c0174bd01010431c9948a"
|
||||
},
|
||||
"org.standardnotes.advanced-markdown-editor": {
|
||||
"version": "1.5.5",
|
||||
"base64": "55ae86bfb2773d3cd2cc3a56dcf72e62d7658f2f337fc5e79b96534a5b4e7090",
|
||||
"binary": "cffc4d6427be7e5fc79a88b3a4f13662347401ab19e5aeb4b3f435c45c43df2d"
|
||||
"base64": "c76418e5d29b1b3ea8b0faf6c7437b80d1efe177e25dd950e6d23cff46ae2b04",
|
||||
"binary": "b05f7b5d7000033985b8b13a4112ee7f07a2ea05deb97266e2018a09de33a8ba"
|
||||
},
|
||||
"org.standardnotes.minimal-markdown-editor": {
|
||||
"version": "1.3.13",
|
||||
"base64": "0ead8bfc578eaabb0ecf59aff54790bcc69d08ef9fc4a984282960f932507f28",
|
||||
"binary": "439c91b791af1381b401869e634f89c92894b921acc7ef52ed5c66afb8dcd517"
|
||||
"base64": "90d742e28a702df34512894fbc4ca664ea5d877196f40aec88c194ff5e074542",
|
||||
"binary": "883a0acc4bca77a09ac659fd3adce14e1ec27c1c31538cff354239225417f9d2"
|
||||
},
|
||||
"org.standardnotes.fancy-markdown-editor": {
|
||||
"version": "1.3.10",
|
||||
"base64": "c96fafe16a071eb6c91659917489f9d10fd345418b6686d4479e315a6fd87ec8",
|
||||
"binary": "a46750365327abb84748563f59316b17dba5f802ab6d92849f519a9dd3c63761"
|
||||
"base64": "b0c736bec187781c7aa0e35c98a623691b784d9a064fe15c7a6d2d03bc1ce652",
|
||||
"binary": "9bfc13e85fcee8e38721c15ad7131bb0c58540958a186b1ac80d8ba62a53b8d5"
|
||||
},
|
||||
"org.standardnotes.markdown-visual-editor": {
|
||||
"version": "1.0.12",
|
||||
"base64": "9c00b625fb50567991af51986b897a600d3e641e3e392b105e632d5403be5cd1",
|
||||
"binary": "e37977de2e226ca4b1287905c47307914b1c87787c77f54aed713013ea85ea78"
|
||||
"base64": "9db7c8bb9a73409c342d1aeb224bc03824c86513896ccff23e38be0c07b9f7df",
|
||||
"binary": "a569cc7de0af52854738e1398ae5b9b3ea093d0e5f05b386b77903673535bdb1"
|
||||
},
|
||||
"org.standardnotes.simple-task-editor": {
|
||||
"version": "1.3.15",
|
||||
"base64": "b46c2abdd77e5c0d63bee2cbbc1641e7786751105d191e5499da7edc6e8224a9",
|
||||
"binary": "8b35fad71be34d20f14af998aec6067eb92f05c967d19c448df8f061fb54af79"
|
||||
"base64": "a4b8666215250d9d1400fb2ddd523b3e94206e148f4db8b82f2c2c64de761834",
|
||||
"binary": "671256dc57abccdfe9709f7382d137e52a85e33242c2e0e358c0fe9d53cadb96"
|
||||
},
|
||||
"org.standardnotes.token-vault": {
|
||||
"version": "2.1.2",
|
||||
"base64": "711ce2690e4110a7e79cf56fcc57a5590f51ec9e7065bce11507255a87535b97",
|
||||
"binary": "94a651a4d62bbcfd2569eaff4fbc264b1c12b25870b2bb09ddcf7f7a9ba11e40"
|
||||
"base64": "f7c602ed9a760bd6fb68371d761d0d09b975a59080aca47f5f9ddad7a4770ee5",
|
||||
"binary": "914047294cd4b0183a341e0a13f4e95a8fa0389ab00ee26ded016a4ecbea9d72"
|
||||
},
|
||||
"org.standardnotes.standard-sheets": {
|
||||
"version": "1.4.9",
|
||||
"base64": "0cddd0249c5d8356b57b73b75616974826d5f21eb9c4d48d812646af2a4c632e",
|
||||
"binary": "898450347c11bb0be124d00b7067cda04ad9d3c07cc043251a5718ca693d3063"
|
||||
"base64": "e534fc57bc58f88c9fa52d92a696c4a4fe19cf68416965204f1ddd67458128c8",
|
||||
"binary": "9a082e31fcedafa75c86dfba0ee32d56fc9344db6f73cb3cfbdebee77e3d478c"
|
||||
},
|
||||
"org.standardnotes.advanced-checklist": {
|
||||
"version": "0.0.5",
|
||||
"base64": "19df34cf7ade6ac46060e41618bd3bfabb706e34fed6acde5e3e57b8341d609e",
|
||||
"binary": "a334b5fc116ecb96e36b9bab7f469e288079178c60511b0ac1314cefcf8cc659"
|
||||
"base64": "a30127ef3b5d8025a6e4e00ff92cd8edbf4c9b0d33a941c7e315ac58ba04ff98",
|
||||
"binary": "7fce699e1318eff45118789429b8c0feba9dbd246611de7f2df679f972fed699"
|
||||
},
|
||||
"org.standardnotes.file-safe": {
|
||||
"version": "2.0.16",
|
||||
"base64": "604a073964a109e37e6970afcec7a6eed09bd672ca87a897e34a9ea8d65d3d42",
|
||||
"binary": "c8d42d97ee1a480c842ec5958f4620e3d54571496be041102b264b479042c06c"
|
||||
"base64": "de4913b6d759ee76a1b5e8d6138732af8b185f2de272aaa7d7af1d0f78fbc781",
|
||||
"binary": "d1c543fa173d19148ff2a2fb2be81a45f273864b169067a36312d3b81ef91e07"
|
||||
}
|
||||
}
|
||||
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -6,7 +6,9 @@
|
||||
"main": "dist",
|
||||
"workspaces": {
|
||||
"packages": [
|
||||
"src/packages/*"
|
||||
"src/Packages/Deprecated/*",
|
||||
"src/Packages/Editors/*",
|
||||
"src/Packages/Themes/*"
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
@@ -14,8 +16,9 @@
|
||||
"lint": "yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run lint",
|
||||
"format": "yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run format",
|
||||
"test": "yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run test",
|
||||
"build": "tsc --project tsconfig.json && yarn workspaces foreach --parallel --interlaced --jobs 10 --verbose --exclude @standardnotes/components-meta run components:compile",
|
||||
"package": "node scripts/package.mjs",
|
||||
"build": "yarn build:ts && yarn workspaces foreach --parallel --interlaced --jobs 10 --verbose --exclude @standardnotes/components-meta run components:compile",
|
||||
"build:ts": "tsc --project tsconfig.json",
|
||||
"package": "yarn build:ts && node scripts/package.mjs",
|
||||
"version": "./scripts/VERSION.sh"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -2,11 +2,9 @@ import fs from 'fs'
|
||||
import path from 'path'
|
||||
import crypto from 'crypto'
|
||||
import { spawnSync as spawn } from 'child_process'
|
||||
import { GetFeatures } from '@standardnotes/features/dist/Domain/Feature/Features.js'
|
||||
import { GetDeprecatedFeatures } from '@standardnotes/features/dist/Domain/Feature/Lists/DeprecatedFeatures.js'
|
||||
import zip from '@standardnotes/deterministic-zip'
|
||||
import minimatch from 'minimatch'
|
||||
|
||||
import { Components } from '../dist/Components.js'
|
||||
import { fileURLToPath } from 'url'
|
||||
import { ensureDirExists, doesDirExist, emptyExistingDir } from '../../../scripts/ScriptUtils.mjs'
|
||||
|
||||
@@ -15,7 +13,7 @@ const __dirname = path.dirname(__filename)
|
||||
|
||||
console.log('Beginning packaging procedure...')
|
||||
|
||||
const SourceFilesPath = path.join(__dirname, '../src/packages')
|
||||
const SourceFilesPath = path.join(__dirname, '../src/Packages')
|
||||
const DistDir = path.join(__dirname, '../dist')
|
||||
const TmpDir = path.join(__dirname, '../tmp')
|
||||
const ZipsDir = path.join(DistDir, '/zips')
|
||||
@@ -64,7 +62,7 @@ const copyFileOrDir = (src, dest, exludedFilesGlob) => {
|
||||
}
|
||||
|
||||
const getComponentSrcPath = (feature) => {
|
||||
return path.join(SourceFilesPath, feature.identifier)
|
||||
return path.join(SourceFilesPath, feature.path)
|
||||
}
|
||||
|
||||
const copyComponentAssets = async (feature, destination, exludedFilesGlob) => {
|
||||
@@ -141,21 +139,15 @@ await (async () => {
|
||||
const args = process.argv[2] || ''
|
||||
const noZip = args.includes('--no-zip')
|
||||
|
||||
const featuresToProcess = GetFeatures().concat(GetDeprecatedFeatures())
|
||||
|
||||
let index = 0
|
||||
for (const feature of featuresToProcess) {
|
||||
for (const feature of Components) {
|
||||
if (index === 0) {
|
||||
console.log('\n---\n')
|
||||
}
|
||||
|
||||
if (['SN|Component', 'SN|Theme'].includes(feature.content_type)) {
|
||||
await packageFeature({ feature, noZip })
|
||||
} else {
|
||||
console.log('Feature is not component, not packaging', feature.identifier)
|
||||
}
|
||||
await packageFeature({ feature, noZip })
|
||||
|
||||
if (index !== featuresToProcess.length - 1) {
|
||||
if (index !== Components.length - 1) {
|
||||
console.log('\n---\n')
|
||||
}
|
||||
|
||||
|
||||
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
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user