From c2f5ec0da6927085f0223f65a6c420f75168975c Mon Sep 17 00:00:00 2001 From: Benji Encalada Mora Date: Sat, 25 Nov 2023 14:33:01 -0600 Subject: [PATCH 1/3] fix: pass share params to editors --- src/js/Editors/Tiles.js | 4 ++-- src/js/Pages/SharePage.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/Editors/Tiles.js b/src/js/Editors/Tiles.js index 09628fc..cb88618 100644 --- a/src/js/Editors/Tiles.js +++ b/src/js/Editors/Tiles.js @@ -100,7 +100,7 @@ const PostTypes = { read: BookTile } -const Tiles = (types, defaultTiles) => { +const Tiles = (types, defaultTiles, params) => { if (!defaultTiles || !defaultTiles.length) { defaultTiles = [ 'note', 'image', 'reply', 'bookmark', 'like', 'article', 'rsvp', 'watch', 'read' ] } @@ -109,7 +109,7 @@ const Tiles = (types, defaultTiles) => { } const tiles = types .filter(pt => PostTypes[pt.type] && defaultTiles.includes(pt.type)) - .map(pt => m(PostTypes[pt.type], { name: pt.name })) || [] + .map(pt => m(PostTypes[pt.type], { name: pt.name, params })) || [] return { view: () => diff --git a/src/js/Pages/SharePage.js b/src/js/Pages/SharePage.js index 3e213fd..7c0c5c9 100644 --- a/src/js/Pages/SharePage.js +++ b/src/js/Pages/SharePage.js @@ -37,7 +37,7 @@ const SharePage = () => { m('b', 'url:'), params.url ]), - m(Tiles(postTypes, [ 'reply', 'bookmark', 'like', 'rsvp' ])) + m(Tiles(postTypes, [ 'reply', 'bookmark', 'like', 'rsvp' ], parameterList.toString())) ]) } } From c1c6febce3eccbc2b9a33a7e89c553915517b7f4 Mon Sep 17 00:00:00 2001 From: Benji Encalada Mora Date: Sat, 25 Nov 2023 14:34:16 -0600 Subject: [PATCH 2/3] ci: add redirects for functions --- netlify.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 02740e7..d52dd9a 100644 --- a/netlify.toml +++ b/netlify.toml @@ -12,5 +12,10 @@ directory = "./src/functions" node_bundler = "esbuild" +[[redirects]] + from = "/*" + to = "/.netlify/functions/:splat" + status = 200 + [template.environment] - VITE_OMDB_API_KEY = "OMDB API Key (optional)" \ No newline at end of file + OMDB_API_KEY = "OMDB API Key" From d4a520b00ffcb58df69ad0215c2561c705f2bd04 Mon Sep 17 00:00:00 2001 From: Benji Encalada Mora Date: Sat, 25 Nov 2023 14:34:52 -0600 Subject: [PATCH 3/3] build: v0.6.2 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index e918511..d7070eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sparkles", - "version": "0.6.1", + "version": "0.6.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "sparkles", - "version": "0.6.1", + "version": "0.6.2", "license": "MIT", "dependencies": { "cheerio": "^1.0.0-rc.12", diff --git a/package.json b/package.json index d929dce..3ab2c45 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sparkles", - "version": "0.6.1", + "version": "0.6.2", "description": "micropub client", "main": "./src/js/app.js", "scripts": {