diff --git a/repo/calendar-scroll/calendar-scroll.png b/repo/calendar-scroll/calendar-scroll.png new file mode 100644 index 0000000..dd7056c Binary files /dev/null and b/repo/calendar-scroll/calendar-scroll.png differ diff --git a/repo/calendar-scroll/mod.json b/repo/calendar-scroll/mod.json index 380b95f..5dbd371 100644 --- a/repo/calendar-scroll/mod.json +++ b/repo/calendar-scroll/mod.json @@ -3,6 +3,7 @@ "id": "b1c7db33-dfee-489a-a76c-0dd66f7ed29a", "version": "0.2.0", "description": "adds a button to jump down to the current week in fullpage/infinite-scroll calendars.", + "preview": "calendar-scroll.png", "tags": ["extension", "shortcut"], "authors": [ { diff --git a/repo/cherry-cola/preview.png b/repo/cherry-cola/cherry-cola.png similarity index 100% rename from repo/cherry-cola/preview.png rename to repo/cherry-cola/cherry-cola.png diff --git a/repo/cherry-cola/mod.json b/repo/cherry-cola/mod.json index 631ee30..e81c336 100644 --- a/repo/cherry-cola/mod.json +++ b/repo/cherry-cola/mod.json @@ -3,7 +3,7 @@ "id": "ec5c4640-68d4-4d25-aefd-62c7e9737cfb", "version": "0.2.0", "description": "a delightfully plummy, cherry cola flavored theme.", - "preview": "preview.png", + "preview": "cherry-cola.png", "tags": ["theme", "dark"], "authors": [ { diff --git a/repo/code-line-numbers/code-line-numbers.png b/repo/code-line-numbers/code-line-numbers.png new file mode 100644 index 0000000..0b4ad85 Binary files /dev/null and b/repo/code-line-numbers/code-line-numbers.png differ diff --git a/repo/code-line-numbers/mod.json b/repo/code-line-numbers/mod.json index 492e70c..4e9c0d4 100644 --- a/repo/code-line-numbers/mod.json +++ b/repo/code-line-numbers/mod.json @@ -3,6 +3,7 @@ "id": "d61dc8a7-b195-465b-935f-53eea9efe74e", "version": "0.4.0", "description": "adds line numbers to code blocks.", + "preview": "code-line-numbers.png", "tags": ["extension", "usability"], "authors": [ { diff --git a/repo/collapsible-headers/collapsible-headers.gif b/repo/collapsible-headers/collapsible-headers.gif new file mode 100644 index 0000000..9865279 Binary files /dev/null and b/repo/collapsible-headers/collapsible-headers.gif differ diff --git a/repo/collapsible-headers/mod.json b/repo/collapsible-headers/mod.json index eb11cf2..dff3efd 100644 --- a/repo/collapsible-headers/mod.json +++ b/repo/collapsible-headers/mod.json @@ -3,6 +3,7 @@ "id": "548fe2d7-174a-44dd-88d8-35c7f9a093a7", "version": "0.2.0", "description": "adds toggles to collapse header sections of pages.", + "preview": "collapsible-headers.gif", "tags": ["extension", "layout"], "authors": [ { diff --git a/repo/collapsible-properties/collapsible-properties.jpg b/repo/collapsible-properties/collapsible-properties.jpg new file mode 100644 index 0000000..fb7d46b Binary files /dev/null and b/repo/collapsible-properties/collapsible-properties.jpg differ diff --git a/repo/collapsible-properties/mod.json b/repo/collapsible-properties/mod.json index 1516af5..7ef89df 100644 --- a/repo/collapsible-properties/mod.json +++ b/repo/collapsible-properties/mod.json @@ -3,6 +3,7 @@ "id": "4034a578-7dd3-4633-80c6-f47ac5b7b160", "version": "0.3.0", "description": "adds a button to quickly collapse/expand page properties that usually push down page content.", + "preview": "collapsible-properties.jpg", "tags": ["extension", "layout"], "authors": [ { diff --git a/repo/dark+/preview.png b/repo/dark+/dark+.png similarity index 100% rename from repo/dark+/preview.png rename to repo/dark+/dark+.png diff --git a/repo/dark+/mod.json b/repo/dark+/mod.json index 2c4e334..1bef8f6 100644 --- a/repo/dark+/mod.json +++ b/repo/dark+/mod.json @@ -3,7 +3,7 @@ "id": "c86cfe98-e645-4822-aa6b-e2de1e08bafa", "version": "0.2.0", "description": "a vivid-colour near-black theme, with configurable accents.", - "preview": "preview.png", + "preview": "dark+.png", "tags": ["theme", "dark"], "authors": [ { diff --git a/repo/dracula/preview.png b/repo/dracula/dracula.png similarity index 100% rename from repo/dracula/preview.png rename to repo/dracula/dracula.png diff --git a/repo/dracula/mod.json b/repo/dracula/mod.json index 75f4183..3eb186b 100644 --- a/repo/dracula/mod.json +++ b/repo/dracula/mod.json @@ -3,7 +3,7 @@ "id": "033bff54-50ba-4cec-bdc0-b2ca7e307086", "version": "0.3.0", "description": "a theme based on the popular dracula color palette originally by zeno rocha and friends.", - "preview": "preview.png", + "preview": "dracula.png", "tags": ["theme", "dark"], "authors": [ { diff --git a/repo/emoji-sets/emoji-sets.jpg b/repo/emoji-sets/emoji-sets.jpg new file mode 100644 index 0000000..d3739d9 Binary files /dev/null and b/repo/emoji-sets/emoji-sets.jpg differ diff --git a/repo/emoji-sets/mod.json b/repo/emoji-sets/mod.json index 4d55270..ac3ba3e 100644 --- a/repo/emoji-sets/mod.json +++ b/repo/emoji-sets/mod.json @@ -3,6 +3,7 @@ "id": "a2401ee1-93ba-4b8c-9781-7f570bf5d71e", "version": "0.4.0", "description": "pick from a variety of emoji styles to use.", + "preview": "emoji-sets.jpg", "tags": ["extension", "customisation"], "authors": [ { diff --git a/repo/global-block-links/global-block-links.jpg b/repo/global-block-links/global-block-links.jpg new file mode 100644 index 0000000..5cc79bb Binary files /dev/null and b/repo/global-block-links/global-block-links.jpg differ diff --git a/repo/global-block-links/mod.json b/repo/global-block-links/mod.json index 0513248..995790c 100644 --- a/repo/global-block-links/mod.json +++ b/repo/global-block-links/mod.json @@ -3,6 +3,7 @@ "id": "74856af4-6970-455d-bd86-0a385a402dd1", "version": "0.1.0", "description": "easily copy the global link of a page or block.", + "preview": "global-block-links.jpg", "tags": ["extension", "shortcut"], "authors": [ { diff --git a/repo/gruvbox-dark/preview.png b/repo/gruvbox-dark/gruvbox-dark.png similarity index 100% rename from repo/gruvbox-dark/preview.png rename to repo/gruvbox-dark/gruvbox-dark.png diff --git a/repo/gruvbox-dark/mod.json b/repo/gruvbox-dark/mod.json index 7d4c8d9..13b088b 100644 --- a/repo/gruvbox-dark/mod.json +++ b/repo/gruvbox-dark/mod.json @@ -3,7 +3,7 @@ "id": "ad0f5c5c-8b62-4b20-8a54-929e663ea368", "version": "0.3.0", "description": "a gray, 'retro groove' palette based on the vim theme of the same name.", - "preview": "preview.png", + "preview": "gruvbox-dark.png", "tags": ["theme", "dark"], "authors": [ { diff --git a/repo/gruvbox-light/preview.png b/repo/gruvbox-light/gruvbox-light.png similarity index 100% rename from repo/gruvbox-light/preview.png rename to repo/gruvbox-light/gruvbox-light.png diff --git a/repo/gruvbox-light/mod.json b/repo/gruvbox-light/mod.json index b431fbe..272b2ec 100644 --- a/repo/gruvbox-light/mod.json +++ b/repo/gruvbox-light/mod.json @@ -3,7 +3,7 @@ "id": "54f01911-60fc-4c9d-85b5-5c5ca3dd6b81", "version": "0.3.0", "description": "a sepia, 'retro groove' palette based on the vim theme of the same name.", - "preview": "preview.png", + "preview": "gruvbox-light.png", "tags": ["theme", "light"], "authors": [ { diff --git a/repo/icon-sets/client.mjs b/repo/icon-sets/client.mjs index c21886d..1cc4aa8 100644 --- a/repo/icon-sets/client.mjs +++ b/repo/icon-sets/client.mjs @@ -275,6 +275,7 @@ export default async function ({ web, fs, components, notion }, db) { const submitLinkIcon = () => { const url = $iconsLinkInput.firstElementChild.value; + if (!url) return; setIcon(url); recentUploads.push({ signed: notion.sign(url, notion.getPageID()), url: url }); db.set(['recent_uploads'], recentUploads); @@ -285,7 +286,7 @@ export default async function ({ web, fs, components, notion }, db) { $iconsLinkSubmit.onclick = submitLinkIcon; // upload file to aws, then submit link - $iconsUploadSubmit.onclick = $iconsUploadFile.click; + $iconsUploadSubmit.onclick = () => $iconsUploadFile.click(); $iconsUploadFile.onchange = async (event) => { const file = event.target.files[0], url = await notion.upload(file); diff --git a/repo/icon-sets/icon-sets.jpg b/repo/icon-sets/icon-sets.jpg new file mode 100644 index 0000000..8b0b851 Binary files /dev/null and b/repo/icon-sets/icon-sets.jpg differ diff --git a/repo/icon-sets/mod.json b/repo/icon-sets/mod.json index 9727803..258294c 100644 --- a/repo/icon-sets/mod.json +++ b/repo/icon-sets/mod.json @@ -3,6 +3,7 @@ "id": "2d1f4809-9581-40dd-9bf3-4239db406483", "version": "0.4.0", "description": "upload, save and reuse custom icons directly from the icon picker. check out the [icons page](https://notion-enhancer.github.io/mods/icon-sets) for instructions on loading entire sets.", + "preview": "icon-sets.jpg", "tags": ["integration", "customisation"], "authors": [ { diff --git a/repo/indentation-lines/indentation-lines.jpg b/repo/indentation-lines/indentation-lines.jpg new file mode 100644 index 0000000..1bf4362 Binary files /dev/null and b/repo/indentation-lines/indentation-lines.jpg differ diff --git a/repo/indentation-lines/mod.json b/repo/indentation-lines/mod.json index d73c754..61ab0be 100644 --- a/repo/indentation-lines/mod.json +++ b/repo/indentation-lines/mod.json @@ -3,6 +3,7 @@ "id": "35815b3b-3916-4dc6-8769-c9c2448f8b57", "version": "0.2.0", "description": "adds vertical relationship lines to make list trees easier to follow.", + "preview": "indentation-lines.jpg", "tags": ["extension", "usability"], "authors": [ { diff --git a/repo/light+/preview.png b/repo/light+/light+.png similarity index 100% rename from repo/light+/preview.png rename to repo/light+/light+.png diff --git a/repo/light+/mod.json b/repo/light+/mod.json index d66bff9..cf7fc57 100644 --- a/repo/light+/mod.json +++ b/repo/light+/mod.json @@ -3,7 +3,7 @@ "id": "336cbc54-67b9-4b00-b4a2-9cc86eef763b", "version": "0.2.0", "description": "a simple white theme that brightens coloured text and blocks, with configurable accents.", - "preview": "preview.png", + "preview": "light+.png", "tags": ["theme", "light"], "authors": [ { diff --git a/repo/material-ocean/preview.png b/repo/material-ocean/material-ocean.png similarity index 100% rename from repo/material-ocean/preview.png rename to repo/material-ocean/material-ocean.png diff --git a/repo/material-ocean/mod.json b/repo/material-ocean/mod.json index 8c6361b..00a46aa 100644 --- a/repo/material-ocean/mod.json +++ b/repo/material-ocean/mod.json @@ -3,7 +3,7 @@ "id": "69e7ccb2-4aef-484c-876d-3de1b433d2b9", "version": "0.2.0", "description": "an oceanic colour palette.", - "preview": "preview.png", + "preview": "material-ocean.png", "tags": ["theme", "dark"], "authors": [ { diff --git a/repo/neutral/mod.json b/repo/neutral/mod.json index 49cb6ef..dc17747 100644 --- a/repo/neutral/mod.json +++ b/repo/neutral/mod.json @@ -3,7 +3,7 @@ "id": "c4435543-4705-4d68-8cf7-d11c342f8089", "version": "0.2.0", "description": "smoother colours and text sizing, designed to be more pleasing to the eye.", - "preview": "preview.png", + "preview": "neutral.png", "tags": ["theme", "dark"], "authors": [ { diff --git a/repo/neutral/preview.png b/repo/neutral/neutral.png similarity index 100% rename from repo/neutral/preview.png rename to repo/neutral/neutral.png diff --git a/repo/nord/mod.json b/repo/nord/mod.json index e75e261..67f266f 100644 --- a/repo/nord/mod.json +++ b/repo/nord/mod.json @@ -3,7 +3,7 @@ "id": "d64ad391-1494-4112-80ae-0a3b6f4b0c3f", "version": "0.2.0", "description": "an arctic, north-bluish color palette.", - "preview": "preview.png", + "preview": "nord.png", "tags": ["theme", "dark"], "authors": [ { diff --git a/repo/nord/preview.png b/repo/nord/nord.png similarity index 100% rename from repo/nord/preview.png rename to repo/nord/nord.png diff --git a/repo/outliner/mod.json b/repo/outliner/mod.json index 12a83ba..2ebbb48 100644 --- a/repo/outliner/mod.json +++ b/repo/outliner/mod.json @@ -3,6 +3,7 @@ "id": "87e077cc-5402-451c-ac70-27cc4ae65546", "version": "0.4.0", "description": "adds a table of contents to the side panel.", + "preview": "outliner.png", "tags": ["extension", "panel"], "authors": [ { diff --git a/repo/outliner/outliner.png b/repo/outliner/outliner.png new file mode 100644 index 0000000..3bb38e3 Binary files /dev/null and b/repo/outliner/outliner.png differ diff --git a/repo/pastel-dark/mod.json b/repo/pastel-dark/mod.json index 5c61105..ba6058b 100644 --- a/repo/pastel-dark/mod.json +++ b/repo/pastel-dark/mod.json @@ -3,7 +3,7 @@ "id": "ed48c585-4a0d-4756-a3e6-9ae662732dac", "version": "0.2.0", "description": "a smooth-transition true dark theme with a hint of pastel.", - "preview": "preview.png", + "preview": "pastel-dark.png", "tags": ["theme", "dark"], "authors": [ { diff --git a/repo/pastel-dark/preview.png b/repo/pastel-dark/pastel-dark.png similarity index 100% rename from repo/pastel-dark/preview.png rename to repo/pastel-dark/pastel-dark.png diff --git a/repo/pinky-boom/mod.json b/repo/pinky-boom/mod.json index f8dec0c..f6e1f74 100644 --- a/repo/pinky-boom/mod.json +++ b/repo/pinky-boom/mod.json @@ -3,7 +3,7 @@ "id": "b5f43232-391b-415a-9099-4334dc6c7b55", "version": "0.2.0", "description": "pinkify your life.", - "preview": "preview.png", + "preview": "pinky-boom.png", "tags": ["theme", "light"], "authors": [ { diff --git a/repo/pinky-boom/preview.png b/repo/pinky-boom/pinky-boom.png similarity index 100% rename from repo/pinky-boom/preview.png rename to repo/pinky-boom/pinky-boom.png diff --git a/repo/playful-purple/mod.json b/repo/playful-purple/mod.json index cb658b2..ce4c4af 100644 --- a/repo/playful-purple/mod.json +++ b/repo/playful-purple/mod.json @@ -3,7 +3,7 @@ "id": "ae7862a9-5dbe-4f2c-9931-940f3ba5015d", "version": "0.2.0", "description": "a purple-shaded theme with bright highlights.", - "preview": "preview.png", + "preview": "playful-purple.png", "tags": ["theme", "dark"], "authors": [ { diff --git a/repo/playful-purple/preview.png b/repo/playful-purple/playful-purple.png similarity index 100% rename from repo/playful-purple/preview.png rename to repo/playful-purple/playful-purple.png diff --git a/repo/quick-note/mod.json b/repo/quick-note/mod.json index 79ffd37..5166a3f 100644 --- a/repo/quick-note/mod.json +++ b/repo/quick-note/mod.json @@ -3,6 +3,7 @@ "id": "5d7c1677-6f6d-4fb5-8d6f-5067bcd0e24c", "version": "0.1.0", "description": "adds a hotkey & a button in the bottom right corner to jump to a new page in a notes database (target database id must be set).", + "preview": "quick-note.png", "tags": ["integration", "shortcut"], "authors": [ { diff --git a/repo/quick-note/quick-note.png b/repo/quick-note/quick-note.png new file mode 100644 index 0000000..4eb53eb Binary files /dev/null and b/repo/quick-note/quick-note.png differ diff --git a/repo/right-to-left/mod.json b/repo/right-to-left/mod.json index eed89d0..1a1d396 100644 --- a/repo/right-to-left/mod.json +++ b/repo/right-to-left/mod.json @@ -3,6 +3,7 @@ "id": "b28ee2b9-4d34-4e36-be8a-ab5be3d79f51", "version": "1.5.0", "description": "enables auto rtl/ltr text direction detection.", + "preview": "right-to-left.jpg", "tags": ["extension", "usability"], "authors": [ { diff --git a/repo/right-to-left/right-to-left.jpg b/repo/right-to-left/right-to-left.jpg new file mode 100644 index 0000000..3741f30 Binary files /dev/null and b/repo/right-to-left/right-to-left.jpg differ diff --git a/repo/scroll-to-top/mod.json b/repo/scroll-to-top/mod.json index 6e16702..cf57cd8 100644 --- a/repo/scroll-to-top/mod.json +++ b/repo/scroll-to-top/mod.json @@ -3,6 +3,7 @@ "id": "0a958f5a-17c5-48b5-8713-16190cae1959", "version": "0.3.0", "description": "adds an arrow in the bottom right corner to scroll back to the top of a page.", + "preview": "scroll-to-top.png", "tags": ["extension", "shortcut"], "authors": [ { diff --git a/repo/scroll-to-top/scroll-to-top.png b/repo/scroll-to-top/scroll-to-top.png new file mode 100644 index 0000000..70a662b Binary files /dev/null and b/repo/scroll-to-top/scroll-to-top.png differ diff --git a/repo/simpler-databases/mod.json b/repo/simpler-databases/mod.json index 966f20b..62d45e3 100644 --- a/repo/simpler-databases/mod.json +++ b/repo/simpler-databases/mod.json @@ -3,6 +3,7 @@ "id": "752933b5-1258-44e3-b49a-61b4885f8bda", "version": "0.2.0", "description": "adds a menu to inline databases to toggle ui elements.", + "preview": "simpler-databases.jpg", "tags": ["extension", "layout"], "authors": [ { diff --git a/repo/simpler-databases/simpler-databases.jpg b/repo/simpler-databases/simpler-databases.jpg new file mode 100644 index 0000000..c7bd332 Binary files /dev/null and b/repo/simpler-databases/simpler-databases.jpg differ diff --git a/repo/topbar-icons/mod.json b/repo/topbar-icons/mod.json index ae1d093..895872e 100644 --- a/repo/topbar-icons/mod.json +++ b/repo/topbar-icons/mod.json @@ -3,6 +3,7 @@ "id": "e0700ce3-a9ae-45f5-92e5-610ded0e348d", "version": "0.3.0", "description": "choose between text or icons for the topbar buttons.", + "preview": "topbar-icons.jpg", "tags": ["extension", "customisation"], "authors": [ { diff --git a/repo/topbar-icons/topbar-icons.jpg b/repo/topbar-icons/topbar-icons.jpg new file mode 100644 index 0000000..89746f0 Binary files /dev/null and b/repo/topbar-icons/topbar-icons.jpg differ diff --git a/repo/truncated-titles/mod.json b/repo/truncated-titles/mod.json index 846bab8..a2acb2b 100644 --- a/repo/truncated-titles/mod.json +++ b/repo/truncated-titles/mod.json @@ -3,6 +3,7 @@ "id": "1794c0bd-7b96-46ad-aa0b-fc4bd76fc7fb", "version": "0.2.0", "description": "see the full text of a truncated title on hover.", + "preview": "truncated-titles.jpg", "tags": ["extension", "layout"], "authors": [ { diff --git a/repo/truncated-titles/truncated-titles.jpg b/repo/truncated-titles/truncated-titles.jpg new file mode 100644 index 0000000..17fce69 Binary files /dev/null and b/repo/truncated-titles/truncated-titles.jpg differ diff --git a/repo/weekly-view/mod.json b/repo/weekly-view/mod.json index 151ca6a..6128450 100644 --- a/repo/weekly-view/mod.json +++ b/repo/weekly-view/mod.json @@ -3,6 +3,7 @@ "id": "4c7acaea-6596-4590-85e5-8ac5a1455e8f", "version": "0.6.0", "description": "calendar views named \"weekly\" will show only the current week.", + "preview": "weekly-view.jpg", "tags": ["extension", "layout"], "authors": [ { diff --git a/repo/weekly-view/weekly-view.jpg b/repo/weekly-view/weekly-view.jpg new file mode 100644 index 0000000..e6a8948 Binary files /dev/null and b/repo/weekly-view/weekly-view.jpg differ diff --git a/repo/word-counter/mod.json b/repo/word-counter/mod.json index 97fad0e..ad52d9f 100644 --- a/repo/word-counter/mod.json +++ b/repo/word-counter/mod.json @@ -3,6 +3,7 @@ "id": "b99deb52-6955-43d2-a53b-a31540cd19a5", "version": "0.3.0", "description": "view word/character/sentence/block count & speaking/reading times in the side panel.", + "preview": "word-counter.jpg", "tags": ["extension", "panel"], "authors": [ { diff --git a/repo/word-counter/word-counter.jpg b/repo/word-counter/word-counter.jpg new file mode 100644 index 0000000..3a76a22 Binary files /dev/null and b/repo/word-counter/word-counter.jpg differ