From bc0a036aea84f35cdb5d96969e7297018c2886b4 Mon Sep 17 00:00:00 2001 From: Fabian Date: Wed, 3 Mar 2021 22:44:30 +0100 Subject: [PATCH] Fist Commit --- package-lock.json | 63 +- package.json | 4 +- src/components/Footer.tsx | 4 +- src/components/routes/vault/Editor.tsx | 51 ++ src/components/routes/vault/Entry.1.tsx.old | 188 +++++ src/components/routes/vault/Entry.tsx | 77 +- src/components/routes/vault/dark.css | 858 ++++++++++++++++++++ src/components/routes/vault/easymde.css | 321 ++++++++ src/index.tsx | 33 +- src/theme.ts | 4 +- 10 files changed, 1512 insertions(+), 91 deletions(-) create mode 100644 src/components/routes/vault/Editor.tsx create mode 100755 src/components/routes/vault/Entry.1.tsx.old create mode 100644 src/components/routes/vault/dark.css create mode 100644 src/components/routes/vault/easymde.css diff --git a/package-lock.json b/package-lock.json index 0da42f8..f8a83a1 100755 --- a/package-lock.json +++ b/package-lock.json @@ -26,9 +26,9 @@ } }, "@hibas123/theme": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@hibas123/theme/-/theme-1.0.5.tgz", - "integrity": "sha512-D3qZVNz/lVKVh9olarxPyae0QF47OZCChVt6waRCr5j01zrLk/P7EVzM0Gzw8wf39LXVZTc63XbUm3whwKcutQ==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@hibas123/theme/-/theme-1.0.6.tgz", + "integrity": "sha512-NRODYM8714IlqE6DQKLunfNi/8uspKYrEtDH/bBeYQmYqCUYWRYIWGqQn05ym97GVRQW+6lrYzF6Ik4LqXojfQ==", "requires": { "sass": "^1.21.0" } @@ -38,6 +38,21 @@ "resolved": "https://registry.npmjs.org/@hibas123/utils/-/utils-2.1.0.tgz", "integrity": "sha512-rS0SMENN7ta6pv9bNmIls8lvEOHbbDQXpiDI3u3z0Vx8B43ngEmEXbu5vKBA58ekYLr1WdHH6iIiySDChoi/RQ==" }, + "@types/codemirror": { + "version": "0.0.76", + "resolved": "https://registry.npmjs.org/@types/codemirror/-/codemirror-0.0.76.tgz", + "integrity": "sha512-k/hpUb+Ebyn9z63qM8IbsRiW0eYHZ+pi/1e2reGzBKAZJzkjWmNTXXqLLiNv5d9ekyxkajxRBr5Hu2WZq/nokw==", + "dev": true, + "requires": { + "@types/tern": "*" + } + }, + "@types/estree": { + "version": "0.0.39", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", + "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", + "dev": true + }, "@types/events": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/@types/events/-/events-3.0.0.tgz", @@ -97,6 +112,15 @@ "integrity": "sha512-7EJYyKTL7tFR8+gDbB6Wwz/arpGa0Mywk1TJbNzKzHtzbwVmY4HR9WqS5VV7dsBUKQmPNr192jHr/VpBluj/hg==", "dev": true }, + "@types/tern": { + "version": "0.23.3", + "resolved": "https://registry.npmjs.org/@types/tern/-/tern-0.23.3.tgz", + "integrity": "sha512-imDtS4TAoTcXk0g7u4kkWqedB3E4qpjXzCpD2LU5M5NAXHzCDsypyvXSaG7mM8DKYkCRa7tFp4tS/lp/Wo7Q3w==", + "dev": true, + "requires": { + "@types/estree": "*" + } + }, "@types/uikit": { "version": "2.27.7", "resolved": "https://registry.npmjs.org/@types/uikit/-/uikit-2.27.7.tgz", @@ -1173,6 +1197,19 @@ "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "dev": true }, + "codemirror": { + "version": "5.48.0", + "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.48.0.tgz", + "integrity": "sha512-3Ter+tYtRlTNtxtYdYNPxGxBL/b3cMcvPdPm70gvmcOO2Rauv/fUEewWa0tT596Hosv6ea2mtpx28OXBy1mQCg==" + }, + "codemirror-spell-checker": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/codemirror-spell-checker/-/codemirror-spell-checker-1.1.2.tgz", + "integrity": "sha1-HGYPkIlIPMtRE7m6nKGcP0mTNx4=", + "requires": { + "typo-js": "*" + } + }, "collection-visit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", @@ -1855,6 +1892,16 @@ "stream-shift": "^1.0.0" } }, + "easymde": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/easymde/-/easymde-2.6.1.tgz", + "integrity": "sha512-DNdAn7xADNJBGQSULncZJXOlHSyK1IqvOPIaFOSKv18GBKItuCFy/f6KEUhFx47MDLQpWgznJgfvh9VKjavzaQ==", + "requires": { + "codemirror": "^5.47.0", + "codemirror-spell-checker": "1.1.2", + "marked": "^0.6.2" + } + }, "ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", @@ -4170,6 +4217,11 @@ "object-visit": "^1.0.0" } }, + "marked": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/marked/-/marked-0.6.3.tgz", + "integrity": "sha512-Fqa7eq+UaxfMriqzYLayfqAE40WN03jf+zHjT18/uXNuzjq3TY0XTbrAoPeqSJrAmPz11VuUA+kBPYOhHt9oOQ==" + }, "md5.js": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", @@ -7003,6 +7055,11 @@ "integrity": "sha512-7KxJovlYhTX5RaRbUdkAXN1KUZ8PwWlTzQdHV6xNqvuFOs7+WBo10TQUqT19Q/Jz2hk5v9TQDIhyLhhJY4p5AA==", "dev": true }, + "typo-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typo-js/-/typo-js-1.0.3.tgz", + "integrity": "sha1-VNjrx5SfGngQkItgAsaEFSbJnVo=" + }, "ua-parser-js": { "version": "0.7.19", "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.19.tgz", diff --git a/package.json b/package.json index c46e791..03b0157 100755 --- a/package.json +++ b/package.json @@ -14,9 +14,10 @@ "license": "MIT", "dependencies": { "@hibas123/secure-file-wrapper": "^2.5.0", - "@hibas123/theme": "^1.0.5", + "@hibas123/theme": "^1.0.6", "@hibas123/utils": "^2.1.0", "aes-js": "^3.1.2", + "easymde": "^2.6.1", "feather-icons": "^4.22.1", "idb": "^4.0.3", "js-sha256": "^0.9.0", @@ -25,6 +26,7 @@ "uuid": "^3.3.2" }, "devDependencies": { + "@types/codemirror": "0.0.76", "@types/lodash.clonedeep": "^4.5.6", "@types/uikit": "^2.27.7", "@types/uuid": "^3.4.5", diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index c6a3a95..b5537f0 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -56,9 +56,9 @@ export class Footer extends Component<{}, { synced: boolean, syncing: boolean }> text = "not synced"; } } - return