From 55357311eca6fcaee2172c91118a3259c5b2c98b Mon Sep 17 00:00:00 2001 From: Daniel Santillan Date: Tue, 21 May 2024 16:40:16 +0200 Subject: [PATCH] feat: adding dedicated story viewer page; updated packages --- .vitepress/theme/index.js | 2 + editor/index.md | 5 ++- package-lock.json | 94 ++++++++++++++++++++++++++++++++++----- package.json | 5 ++- stories/index.md | 18 ++------ storyviewer/index.md | 21 +++++++++ 6 files changed, 116 insertions(+), 29 deletions(-) create mode 100644 storyviewer/index.md diff --git a/.vitepress/theme/index.js b/.vitepress/theme/index.js index 3e40096..5a471c0 100644 --- a/.vitepress/theme/index.js +++ b/.vitepress/theme/index.js @@ -18,6 +18,8 @@ export default { app.use(eodash); const jsonform = await import('@eox/jsonform'); app.use(jsonform); + const eoxmap = await import('@eox/map'); + app.use(eoxmap); const storytelling = await import('@eox/storytelling'); app.use(storytelling); } diff --git a/editor/index.md b/editor/index.md index da76595..5af719a 100644 --- a/editor/index.md +++ b/editor/index.md @@ -6,5 +6,6 @@ layout: page top: 50px!important; } - - + + + diff --git a/package-lock.json b/package-lock.json index 03ebf8f..3e78e39 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,8 +6,9 @@ "": { "devDependencies": { "@eodash/eodash": "^5.0.0-alpha.2.1", - "@eox/jsonform": "^0.6.2", - "@eox/storytelling": "^0.6.0", + "@eox/jsonform": "^0.7.0", + "@eox/map": "^1.8.2", + "@eox/storytelling": "^1.0.2", "vitepress": "^1.1.3", "vue": "^3.4.21" } @@ -315,12 +316,13 @@ } }, "node_modules/@eox/jsonform": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/@eox/jsonform/-/jsonform-0.6.2.tgz", - "integrity": "sha512-XoCzjzqmX53YUO+9CoJGP/EPJgSbcWFKc9I1Iayogf26VMurQe6PulJd6r+7vD2gIrtpEnbMtMYXsRBVGLa8lA==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@eox/jsonform/-/jsonform-0.7.0.tgz", + "integrity": "sha512-tGDAtuBGn9Fxfr7rlP/Hmi7UPqU6mE6GzYUM7UVFQquSzmI8KQL5EHzb+sRSGfH+vuxqTDo6vUQD+j/aU75hsw==", "dev": true, "dependencies": { "@json-editor/json-editor": "^2.11.0", + "easymde": "^2.18.0", "toolcool-range-slider": "^4.0.28" }, "engines": { @@ -335,9 +337,9 @@ "dev": true }, "node_modules/@eox/map": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@eox/map/-/map-1.6.1.tgz", - "integrity": "sha512-ynPBR9zqGOh1tnyuKXoy2ECnvRzO6py8cjB/GGCGzdKL4T9krsFlIUBTPK/sRGwO2tOhl0NBthK00gG/CPLPyg==", + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@eox/map/-/map-1.8.2.tgz", + "integrity": "sha512-9ofpFXTSAXTfTT1sJz1gd2a2Oz64NeoXsZMwld/s90Umh7x10lL5lVKybT8eyJj2ID6qw5voU3QcBww/RxUA/A==", "dev": true, "dependencies": { "lit": "^3.0.2", @@ -365,9 +367,9 @@ } }, "node_modules/@eox/storytelling": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@eox/storytelling/-/storytelling-0.6.0.tgz", - "integrity": "sha512-ATQ69ucjpkqdMP+5WDraiy7Gw90TRnsdc2dxPROfvLCKRbsnJJFMO6erHWtDypF4+ZRHTWHaB3lLqYkcyXbX9w==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@eox/storytelling/-/storytelling-1.0.2.tgz", + "integrity": "sha512-61DMpjsPSFQUrEGY9NRmFEkRo0vXoL9ExdonYHuUOqHwAHTFYvN0Lpc0cXukJ/0Yino11ymuxwljklfvr5v3LA==", "dev": true, "dependencies": { "@sindresorhus/slugify": "^2.2.1", @@ -1314,6 +1316,15 @@ "url": "https://opencollective.com/turf" } }, + "node_modules/@types/codemirror": { + "version": "5.60.15", + "resolved": "https://registry.npmjs.org/@types/codemirror/-/codemirror-5.60.15.tgz", + "integrity": "sha512-dTOvwEQ+ouKJ/rE9LT1Ue2hmP6H1mZv5+CCnNWu2qtiOe2LQa9lCprEY20HxiDmV/Bxh+dXjywmy5aKvoGjULA==", + "dev": true, + "dependencies": { + "@types/tern": "*" + } + }, "node_modules/@types/dompurify": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/@types/dompurify/-/dompurify-3.0.5.tgz", @@ -1351,12 +1362,27 @@ "@types/mdurl": "*" } }, + "node_modules/@types/marked": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/@types/marked/-/marked-4.3.2.tgz", + "integrity": "sha512-a79Yc3TOk6dGdituy8hmTTJXjOkZ7zsFYV10L337ttq/rec8lRMDBpV7fL3uLx6TgbFCa5DU/h8FmIBQPSbU0w==", + "dev": true + }, "node_modules/@types/mdurl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-1.0.5.tgz", "integrity": "sha512-6L6VymKTzYSrEf4Nev4Xa1LCHKrlTlYCBMTlQKFuddo1CvQcE52I0mwfOJayueUC7MJuXOeHTcIU683lzd0cUA==", "dev": true }, + "node_modules/@types/tern": { + "version": "0.23.9", + "resolved": "https://registry.npmjs.org/@types/tern/-/tern-0.23.9.tgz", + "integrity": "sha512-ypzHFE/wBzh+BlH6rrBgS5I/Z7RD21pGhZ2rltb/+ZrVM1awdZwjx7hE5XfuYgHWk9uvV5HLZN3SloevCAp3Bw==", + "dev": true, + "dependencies": { + "@types/estree": "*" + } + }, "node_modules/@types/trusted-types": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", @@ -1911,6 +1937,21 @@ "node": ">=12" } }, + "node_modules/codemirror": { + "version": "5.65.16", + "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.65.16.tgz", + "integrity": "sha512-br21LjYmSlVL0vFCPWPfhzUCT34FM/pAdK7rRIZwa0rrtrIdotvP4Oh4GUHsu2E3IrQMCfRkL/fN3ytMNxVQvg==", + "dev": true + }, + "node_modules/codemirror-spell-checker": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/codemirror-spell-checker/-/codemirror-spell-checker-1.1.2.tgz", + "integrity": "sha512-2Tl6n0v+GJRsC9K3MLCdLaMOmvWL0uukajNJseorZJsslaxZyZMgENocPU8R0DyoTAiKsyqiemSOZo7kjGV0LQ==", + "dev": true, + "dependencies": { + "typo-js": "*" + } + }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -2132,6 +2173,19 @@ "integrity": "sha512-/pjZsA1b4RPHbeWZQn66SWS8nZZWLQQ23oE3Eam7aroEFGEvwKAsJfZ9ytiEMycfzXWpca4FA9QIOehf7PocBQ==", "dev": true }, + "node_modules/easymde": { + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/easymde/-/easymde-2.18.0.tgz", + "integrity": "sha512-IxVVUxNWIoXLeqtBU4BLc+eS/ScYhT1Dcb6yF5Wchoj1iXAV+TIIDWx+NCaZhY7RcSHqDPKllbYq7nwGKILnoA==", + "dev": true, + "dependencies": { + "@types/codemirror": "^5.60.4", + "@types/marked": "^4.0.7", + "codemirror": "^5.63.1", + "codemirror-spell-checker": "1.1.2", + "marked": "^4.1.0" + } + }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -2857,6 +2911,18 @@ "markdown-it": "bin/markdown-it.mjs" } }, + "node_modules/marked": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", + "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==", + "dev": true, + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 12" + } + }, "node_modules/mdurl": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", @@ -3561,6 +3627,12 @@ "node": ">=18" } }, + "node_modules/typo-js": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/typo-js/-/typo-js-1.2.4.tgz", + "integrity": "sha512-Oy/k+tFle5NAA3J/yrrYGfvEnPVrDZ8s8/WCwjUE75k331QyKIsFss7byQ/PzBmXLY6h1moRnZbnaxWBe3I3CA==", + "dev": true + }, "node_modules/uc.micro": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", diff --git a/package.json b/package.json index aca343c..ba10786 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,9 @@ }, "devDependencies": { "@eodash/eodash": "^5.0.0-alpha.2.1", - "@eox/jsonform": "^0.6.2", - "@eox/storytelling": "^0.6.0", + "@eox/jsonform": "^0.7.0", + "@eox/storytelling": "^1.0.2", + "@eox/map": "^1.8.2", "vitepress": "^1.1.3", "vue": "^3.4.21" } diff --git a/stories/index.md b/stories/index.md index ca4548c..82e1a95 100644 --- a/stories/index.md +++ b/stories/index.md @@ -2,23 +2,13 @@ layout: page --- - -
-

Story gallery

-
- {{data[key].title}} -
+

Story gallery

+
+ {{data[key].title}}
diff --git a/storyviewer/index.md b/storyviewer/index.md new file mode 100644 index 0000000..0905332 --- /dev/null +++ b/storyviewer/index.md @@ -0,0 +1,21 @@ +--- +layout: page +--- + + + \ No newline at end of file