fix: plus editor icons (#1120)

This commit is contained in:
Mo
2022-06-18 09:20:44 -05:00
committed by GitHub
parent cd645f74df
commit ba65948364
158 changed files with 232 additions and 1601 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,32 @@
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/** @license React v0.19.1
* 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 v16.14.0
* 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 v16.14.0
* 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.
*/

View File

@@ -36,62 +36,62 @@
},
"org.standardnotes.code-editor": {
"version": "1.3.15",
"base64": "d38a9a283d603fced9259938d2f7e7cf9e6bda670c5921523b992e15924bc2e8",
"binary": "3a4f5c5b78bcf3f8492945c8203b4bb66392f4c3caa4a131b0d546699a865bd4"
"base64": "dd56b9ba2b7ed15aa733a526aadc7c76e8edca32f62b67cac1e89a24bb66c04c",
"binary": "722095ff3d14ec2f58d0c1300b7180b2f57a91b1e442b259d2703283874f7aac"
},
"org.standardnotes.bold-editor": {
"version": "1.3.8",
"base64": "61aae1a83a1401c2ed56910a53f6dd62eaff9d62f493d25549bdbd8d2472153f",
"binary": "5b770bf9d5895a8c06df1af390963b2adb0903ee5eb30813d81a813bc7cb8782"
"base64": "ede592d1a0e5cb4f683ecf497a3ff8b92ba42422cfd676ddcb448224b98b8406",
"binary": "52e6fb780834a252ca90c9a2e447f37c5fce14428890c0c539984c2a62655804"
},
"org.standardnotes.plus-editor": {
"version": "1.6.4",
"base64": "4885255030ae5b468adfa5099b497b6f0a0af4167251a63d01dd145cc9e4723f",
"binary": "fba79fbd16a0c219dd78fed6c9920b42cdce121d1cc5dc121d89ff19218bba12"
"base64": "97af5bd95400edd1501ca0c532763bdabdad5b4d16e9c4bcf70e1d27adecb9ac",
"binary": "b9ebf406b00fc31e5d37e80248df32aa9fc63e8a6c50ed66192d15be353bfe86"
},
"org.standardnotes.simple-markdown-editor": {
"version": "1.4.5",
"base64": "0e9efee02b75ce125d565608e3723a95a60aa4ec9dcc9c86cb3df6d0e2e1715b",
"binary": "8dc18fdb14c65cd288d03b8a9bcd796002fb205749625b637b4feb6afa1c9866"
"base64": "933d0502b286d8dfcb49deda79224f4fc791d396027748f48ee3875e9438f520",
"binary": "32388626ea2f80a19c8b51abdd15186661cf5753a44bfe34135ae855745e008c"
},
"org.standardnotes.advanced-markdown-editor": {
"version": "1.5.3",
"base64": "33d74d328df612294a2f871e76b198f5cfc0e892d0401d6b02e1ffac0b85e13b",
"binary": "390351b854b51eae276940c253e417ef746843a0781aca1f9a7b28a638169060"
"base64": "5b7f333790643e8454871e99a5bf8d8e9dce472b97ef567d8cb5b3a26f796477",
"binary": "118a0bd83f33c8f6420064a93b5390c75cb5df1b27d90d8bedd0cdae30ee56a6"
},
"org.standardnotes.minimal-markdown-editor": {
"version": "1.3.12",
"base64": "b6c4fd88ba1538ae5c9304fa147a6a5343f13e7577c8cda1061f18e2aa57bafb",
"binary": "198d761cbef5dbf66f75f703f730ea88afb83c77d1093338cb431aa53cdd0d50"
"base64": "b1d87f050c1dda86729f70d599f2c0c9a31e61949bee0dc4a03446ff4b94b298",
"binary": "3bd4c187c1429165b24524020a483d2cb286ec9eb4a5dce6d634c9aef3dc389e"
},
"org.standardnotes.fancy-markdown-editor": {
"version": "1.3.9",
"base64": "ac09dd57a3aa47e73b1065c480b05a1473d73a3066d0a0208032eaf43b7dd668",
"binary": "553f180a97076b947210105841a83bab7ec856220c0d4f737e2eb467d1634fa7"
"base64": "5dfd2180e55ebb58c2100eb7d2e7cf18b9f264ea1b22bcfc727832c7bf67e754",
"binary": "0a7595f2c4d6c8480ef27b8e585db59ed2aed53beaf9c657ce1c999303ed7564"
},
"org.standardnotes.markdown-visual-editor": {
"version": "1.0.10",
"base64": "f0416f5b684bfbd62ffc7b91885ff9c5e9a40fab147f6926cb74d1853b2590ad",
"binary": "08f0609e518485cdf888cf31552bd77828f87fe782050883f9236faa9b8529e5"
"base64": "53c657bcbe4c00aaa610f683f09b4c7f1f0f421083ea11b06188e6454254b7c5",
"binary": "8fbe01d4d0c69e2fa862f34c8a37f053cffa0d48b7b47bc58c5c26efb2cdd29b"
},
"org.standardnotes.simple-task-editor": {
"version": "1.3.13",
"base64": "85134f0279ab2478c0846fadcd915c335d08ee644ea1f14d5dae008e30691f8c",
"binary": "8eb2e2ea4bc23c3789ec15f66fab8fcc8bdbbecda3c9a383afaa50f107f14ea1"
"base64": "08a700db950f59f14b1c3edb241863308d81deeb51ce45af11d85595959f9638",
"binary": "5a50e22f61a40c200565c24f1723d288faeb7a3355214d30273db8bc96ccab6d"
},
"org.standardnotes.token-vault": {
"version": "2.0.13",
"base64": "2ec3bd516fb3795bd9e0078b0ac23998827e60e65afe51f225790bf2ab932495",
"binary": "abf6af27072262b0cdaf3bb8c6d2b9b26c7249d11509b47e1d03a9f7ac1b8eb3"
"base64": "aef275733ceecee3e5218bb95d6fafe7df0b81495b1de503a537eadb22ec59b3",
"binary": "8511ed487cb0b1ef57c7dc3f56e682fc1422d22aeb5fed85f069e11c5ff53457"
},
"org.standardnotes.standard-sheets": {
"version": "1.4.7",
"base64": "c50dfb1f5cd08d1ffa8a4b0296c3cabbd57a62ef406c8190b1e13e8d506ebeef",
"binary": "3deda7dbcab89196d27cf884a7f83c6c6325d4c6d85c54aca7b5061fa30dabd2"
"base64": "349f90720a2d905b903ecbaf8f90af6083203babd758051fa999b1e49a51cf7e",
"binary": "c1903b668d7fc7fc15e4c2ee3c5bc1c3be6997d333e9ee48a9e4fd653646119a"
},
"org.standardnotes.advanced-checklist": {
"version": "0.0.4",
"base64": "c66978e5e98ac920534f967c796cedbd574b8470a24e8243e28a1dc4c787f1ff",
"binary": "593db18a106c09ed4c0000506a07e6f8428fca5f86436a591ec561f123b54578"
"base64": "94613e43207227748acab645839681c197a29d314de04b64d1bd22da799aa338",
"binary": "86ba33bb3dec48b84fb8a0bd73a9f664249af68731fdbe384064b8d744cff8b0"
}
}

View File

@@ -22,6 +22,7 @@
"@standardnotes/deterministic-zip": "^1.2.0",
"@standardnotes/eslint-config-extensions": "^1.0.4",
"@standardnotes/features": "^1.45.1",
"copy-webpack-plugin": "^11.0.0",
"mini-css-extract-plugin": "^2.6.0",
"minimatch": "^5.1.0",
"node-sass": "7.0.1",

View File

@@ -20,7 +20,7 @@
"@babel/core": "^7.13.13",
"@babel/preset-env": "^7.13.12",
"@standardnotes/component-relay": "2.2.0",
"copy-webpack-plugin": "^8.1.0",
"copy-webpack-plugin": "*",
"css-loader": "^5.2.0",
"dompurify": "^2.2.9",
"easymde": "2.16.1",
@@ -37,7 +37,7 @@
"sn-stylekit": "3.0.1",
"webpack": "*",
"webpack-cli": "*",
"webpack-dev-server": "^3.11.2",
"webpack-dev-server": "*",
"webpack-merge": "^5.7.3"
}
}

View File

@@ -19,7 +19,7 @@
"@babel/preset-react": "^7.13.13",
"@standardnotes/editor-kit": "2.2.3",
"babel-loader": "^8.2.2",
"copy-webpack-plugin": "^8.1.1",
"copy-webpack-plugin": "*",
"css-loader": "^5.2.0",
"dompurify": "^2.2.9",
"eslint": "*",
@@ -37,7 +37,7 @@
"terser-webpack-plugin": "^5.1.1",
"webpack": "*",
"webpack-cli": "*",
"webpack-dev-server": "^3.11.2",
"webpack-dev-server": "*",
"webpack-merge": "^5.7.3",
"webpack-merge-and-include-globally": "^2.3.4"
}

View File

@@ -19,7 +19,7 @@
"@babel/preset-env": "^7.12.11",
"@standardnotes/component-relay": "2.2.0",
"codemirror": "5.65.2",
"copy-webpack-plugin": "^7.0.0",
"copy-webpack-plugin": "*",
"css-loader": "^5.0.1",
"eslint": "*",
"http-server": "^0.12.3",

View File

@@ -32,7 +32,10 @@ module.exports = {
patterns: [
{ from: '../../../../../node_modules/codemirror/lib', to: path.resolve(__dirname, 'vendor/codemirror/lib') },
{ from: '../../../../../node_modules/codemirror/mode', to: path.resolve(__dirname, 'vendor/codemirror/mode') },
{ from: '../../../../../node_modules/codemirror/addon', to: path.resolve(__dirname, 'vendor/codemirror/addon') },
{
from: '../../../../../node_modules/codemirror/addon',
to: path.resolve(__dirname, 'vendor/codemirror/addon'),
},
{
from: '../../../../../node_modules/codemirror/keymap/vim.js',
to: path.resolve(__dirname, 'vendor/codemirror/keymap'),

View File

@@ -33,7 +33,7 @@
"summernote": "^0.8.18",
"webpack": "*",
"webpack-cli": "*",
"webpack-dev-server": "^3.11.2",
"webpack-dev-server": "*",
"webpack-merge": "^5.7.3",
"webpack-merge-and-include-globally": "^2.3.3"
}

View File

@@ -1,16 +1,14 @@
const path = require("path");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const MergeIntoSingleFilePlugin = require("webpack-merge-and-include-globally");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const path = require('path')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const MergeIntoSingleFilePlugin = require('webpack-merge-and-include-globally')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const CopyPlugin = require('copy-webpack-plugin')
module.exports = {
entry: [
path.resolve(__dirname, "src", "main.js"),
path.resolve(__dirname, "src", "main.scss"),
],
entry: [path.resolve(__dirname, 'src', 'main.js'), path.resolve(__dirname, 'src', 'main.scss')],
output: {
path: path.join(__dirname, "dist"),
filename: "dist.js"
path: path.join(__dirname, 'dist'),
filename: 'dist.js',
},
module: {
rules: [
@@ -18,14 +16,12 @@ module.exports = {
test: /\.s[ac]ss$/i,
use: [
MiniCssExtractPlugin.loader,
"css-loader",
'css-loader',
{
loader: "sass-loader",
loader: 'sass-loader',
options: {
sassOptions: {
includePaths: [
"src/main.scss"
],
includePaths: ['src/main.scss'],
},
},
},
@@ -35,28 +31,36 @@ module.exports = {
},
plugins: [
new MiniCssExtractPlugin({
filename: "dist.css"
filename: 'dist.css',
}),
new MergeIntoSingleFilePlugin({
files: {
"vendor.js": [
'vendor.js': [
require.resolve('jquery/dist/jquery.min.js'),
require.resolve('bootstrap/dist/js/bootstrap.min.js'),
require.resolve('summernote/dist/summernote.min.js'),
require.resolve('@standardnotes/component-relay/dist/dist.js'),
require.resolve('dompurify/dist/purify.min.js'),
'node_modules/sn-stylekit/dist/stylekit.js'
'node_modules/sn-stylekit/dist/stylekit.js',
],
"vendor.css": [
'vendor.css': [
require.resolve('bootstrap/dist/css/bootstrap.min.css'),
require.resolve('summernote/dist/summernote.min.css'),
'node_modules/sn-stylekit/dist/stylekit.css'
]
}
'node_modules/sn-stylekit/dist/stylekit.css',
],
},
}),
new HtmlWebpackPlugin({
title: "Plus Editor",
template: "editor.index.ejs"
})
title: 'Plus Editor',
template: 'editor.index.ejs',
}),
new CopyPlugin({
patterns: [
{
from: 'vendor',
to: '.',
},
],
}),
],
};
}

View File

@@ -26,7 +26,7 @@
"@standardnotes/component-relay": "2.2.0",
"@standardnotes/eslint-config-extensions": "^1.0.0",
"babel-loader": "^8.1.0",
"copy-webpack-plugin": "6.0.3",
"copy-webpack-plugin": "*",
"css-loader": "~4.2.1",
"eslint": "*",
"eslint-formatter-pretty": "^4.0.0",
@@ -46,8 +46,8 @@
"sass-loader": "^9.0.3",
"sn-stylekit": "2.1.0",
"style-loader": "~1.2.1",
"webpack": "4.44.1",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "3.11.0"
"webpack": "*",
"webpack-cli": "*",
"webpack-dev-server": "*"
}
}

View File

@@ -1,6 +1,6 @@
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const path = require('path')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
module.exports = {
mode: 'production',
@@ -8,10 +8,7 @@ module.exports = {
hints: false,
},
devtool: 'cheap-source-map',
entry: [
path.resolve(__dirname, 'app/main.js'),
path.resolve(__dirname, 'app/stylesheets/main.scss'),
],
entry: [path.resolve(__dirname, 'app/main.js'), path.resolve(__dirname, 'app/stylesheets/main.scss')],
output: {
path: path.resolve(__dirname, 'dist'),
publicPath: '/',
@@ -22,7 +19,7 @@ module.exports = {
{
test: /\.css$/,
include: path.resolve(__dirname, 'app'),
loader: 'style-loader!css-loader',
use: ['style-loader', 'css-loader'],
},
{
test: /\.scss$/,
@@ -37,22 +34,16 @@ module.exports = {
'css-loader',
{
loader: 'sass-loader',
query: {
sourceMap: false,
},
},
],
},
{
test: /\.js[x]?$/,
include: [
path.resolve(__dirname, 'app'),
require.resolve('@standardnotes/component-relay/dist/dist.js'),
],
include: [path.resolve(__dirname, 'app'), require.resolve('@standardnotes/component-relay/dist/dist.js')],
exclude: /node_modules/,
loader: 'babel-loader'
}
]
loader: 'babel-loader',
},
],
},
resolve: {
extensions: ['.js', '.jsx', '.css', '.scss'],
@@ -74,4 +65,4 @@ module.exports = {
],
}),
],
};
}

View File

@@ -41,7 +41,7 @@
"validate-commit-msg": "2.x",
"webpack": "*",
"webpack-cli": "*",
"webpack-dev-server": "3.11.2",
"webpack-dev-server": "*",
"webpack-merge": "5.7.3"
}
}

View File

@@ -23,7 +23,7 @@
"@standardnotes/component-relay": "2.2.0",
"@standardnotes/eslint-config-extensions": "^1.0.4",
"babel-loader": "^8.2.2",
"copy-webpack-plugin": "^9.0.1",
"copy-webpack-plugin": "*",
"css-loader": "^5.2.6",
"eslint": "*",
"eslint-plugin-react": "^7.24.0",
@@ -37,7 +37,7 @@
"terser-webpack-plugin": "^5.1.4",
"webpack": "*",
"webpack-cli": "*",
"webpack-dev-server": "3.11.0",
"webpack-dev-server": "*",
"webpack-merge": "^5.8.0"
}
}

View File

@@ -46,7 +46,7 @@
"terser-webpack-plugin": "^5.1.1",
"webpack": "*",
"webpack-cli": "*",
"webpack-dev-server": "^3.11.2",
"webpack-dev-server": "*",
"webpack-merge": "^5.7.3"
}
}