From 7048abaedd9960285e2bf4ce34766713cd77ccec Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Mon, 18 Oct 2021 17:29:18 +1100 Subject: [PATCH] update changelog, add clipboardwrite perm to manifest --- extension/CHANGELOG.md | 6 +++++- extension/env/storage.mjs | 2 -- extension/manifest.json | 1 + extension/repo | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/extension/CHANGELOG.md b/extension/CHANGELOG.md index 0039b2f..0de64c6 100644 --- a/extension/CHANGELOG.md +++ b/extension/CHANGELOG.md @@ -10,6 +10,7 @@ a complete rework of the enhancer including a port to the browser as a chrome ex - new: simplify user installs by depending on the chrome web store and [notion-repackaged](https://github.com/notion-enhancer/notion-repackaged). - new: separate menu profiles for mod configurations. - new: a hotkey option type that allows typing in/pressing a hotkey to enter it, instead of typing. +- new: a rainbow indentation lines style. - improved: split the core mod into separate mods for specific features. - improved: theming variables that are applied more specifically, less laggy, and less complicated. - improved: merged bracketed-links into tweaks. @@ -18,6 +19,8 @@ a complete rework of the enhancer including a port to the browser as a chrome ex - improved: font chooser option for heading fonts. - improved: renamed "property-layout" to "collapse properties", added per-page memory of collapse state. - improved: chevron icon instead of arrow for scroll to top. +- improved: moved word counter to display in the side panel instead of within the page, + implemented a more accurate word counter method. - removed: integrated scrollbar tweak (notion now includes by default). - removed: js insert. css insert moved to tweaks mod. - removed: majority of layout and font size variables - better to leave former to notion and use `ctrl +` for latter. @@ -36,7 +39,8 @@ a complete rework of the enhancer including a port to the browser as a chrome ex - tweak: responsive columns breakpoint (%). - tweak: accented links. - tweak: full width pages. -- bugfixes: many. like many many. all the bugfixes. (mostly a side effect of completely rewriting everything.) +- bugfixes: many. like many many. all the bugfixes. (mostly a side effect of completely rewriting everything, + but reported extension-specific bugs were all intentionally fixed.) **below this point the enhancer was desktop-only. in v0.11.0 it was been ported to also** **run as a chrome extension. changes made to both are indicated above.** diff --git a/extension/env/storage.mjs b/extension/env/storage.mjs index 5204138..3003231 100644 --- a/extension/env/storage.mjs +++ b/extension/env/storage.mjs @@ -21,7 +21,6 @@ const _queue = [], * @returns {Promise} value ?? fallback */ export const get = (path, fallback = undefined) => { - if (typeof path === 'string') path = [path]; if (!path.length) return fallback; return new Promise((res, rej) => chrome.storage.local.get(async (values) => { @@ -45,7 +44,6 @@ export const get = (path, fallback = undefined) => { * @returns {Promise} resolves when data has been saved */ export const set = (path, value) => { - if (typeof path === 'string') path = [path]; if (!path.length) return undefined; const precursor = _queue[_queue.length - 1] || undefined, interaction = new Promise(async (res, rej) => { diff --git a/extension/manifest.json b/extension/manifest.json index 4b8c8a3..84b6b78 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -29,6 +29,7 @@ "permissions": [ "tabs", "storage", + "clipboardWrite", "unlimitedStorage", "https://*.notion.so/*", "https://*.notion.site/*", diff --git a/extension/repo b/extension/repo index 5e4232c..540c9df 160000 --- a/extension/repo +++ b/extension/repo @@ -1 +1 @@ -Subproject commit 5e4232c047e5a89c3664c2a4f77e0c4f81142508 +Subproject commit 540c9dfb477eecaa2b7362f9daba281d8abb7ed6