mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-06 21:49:03 +00:00
changelogs, css insert, tweaks
This commit is contained in:
parent
ecfb3c1e50
commit
86723e28eb
355
extension/CHANGELOG.md
Normal file
355
extension/CHANGELOG.md
Normal file
@ -0,0 +1,355 @@
|
||||
# changelog
|
||||
|
||||
### v0.11.0-extension (wip)
|
||||
|
||||
a rework of the enhancer and port to the browser as a chrome extension.
|
||||
|
||||
- new: cross-environment helpers api
|
||||
- new: cross-environment mod loader structure
|
||||
|
||||
#### todo
|
||||
|
||||
- jsdoc helpers?
|
||||
|
||||
**changelog below this point is a mix of the app enhancer and all mods.**
|
||||
**above this, changelogs have been split: see the**
|
||||
**[app enhancer changelog](https://github.com/notion-enhancer/app/blob/dev/CHANGELOG.md)**
|
||||
**and the [mods changelog](https://github.com/notion-enhancer/mods/blob/dev/CHANGELOG.md).**
|
||||
|
||||
### v0.10.2 (2020-12-05)
|
||||
|
||||
again, an emergency release for bugfixes.
|
||||
not properly documented and new features have not yet been fully reviewed/edited.
|
||||
|
||||
- new: side panel - adds an extra sidebar on the right for use by other mods,
|
||||
toggleable with `ctrl+shift+backslash`.
|
||||
- improved: notion icons uses spritesheets for faster loading of icons.
|
||||
- improved: icon sets can be hidden/toggled.
|
||||
- improved: toggles in the enhancer menu follow the same style as notion's toggles.
|
||||
- improved: separate quote font variable & option in the font chooser mod (`--theme_[dark|light]--font_quote`).
|
||||
- improved: option to hide the "page details" text for the word counter extension.
|
||||
- bugfix: notion icons tab is now visible in fullpage databases.
|
||||
- bugfix: code line numbers handles wrapped code blocks.
|
||||
- bugfix: file explorer no longer opens when enhancer menu is opened.
|
||||
- bugfix: enable the remote module in webviews (windows/tabs) for compatibility with the
|
||||
updated version of electron used by new notion builds (>= 2.0.10).
|
||||
- bugfix: add support for enhancing an `app` folder if there is no `app.asar` file present.
|
||||
- extension: "outliner" = table of contents in right sidebar.
|
||||
- extension: "panel sites" = embed sites on the site panel.
|
||||
- extension: "indentation lines" = adds vertical relationship lines to make list trees easier to follow.
|
||||
- extension: "truncated table titles" = see the full text of the truncated table titles on hover over.
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.10.2`
|
||||
|
||||
### v0.10.1 (2020-11-18)
|
||||
|
||||
essentially a prerelease for v0.11.0: pushed out for urgent bugfixes during
|
||||
exam/study weeks when there's no time to code a full release.
|
||||
|
||||
note that this means new features have not yet been fully documented and
|
||||
may not be fully ready for ideal use yet. however, things overall will
|
||||
work more reliably than v0.10.0.
|
||||
|
||||
- new: different css entrypoints for different components (tabs, menu, app).
|
||||
- improved: use an svg for the scroll-to-top button.
|
||||
- improved: use a better-matching icon and add transitions to the property layout toggle.
|
||||
- improved: themes are directly applied to tabs and menu rather than sync-ed between (infinite loading).
|
||||
- improved: error message "is notion running?" --> clearer "make sure notion isn't running!"
|
||||
- improved: auto-shrink system for tabs (max of 15 open in a window).
|
||||
- bugfix: disable fadein of selected block halo with snappy transitions.
|
||||
- bugfix: increase contrast of `--theme_dark--interactive_hover` in dark+ and dracula.
|
||||
- bugfix: tabs are focused properly for input.
|
||||
- bugfix: keyboard shortcut listeners are stricter so they don't conflict.
|
||||
- bugfix: dots indicating draggability are no longer next to the tabs mod in the menu.
|
||||
- bugfix: prevent empty hotkeys from triggering every keypress.
|
||||
- bugfix: don't try loading an empty default page url (infinite loading).
|
||||
- bugfix: remove `* { z-index: 1}` rule so format dropdowns in table view can be opened.
|
||||
- extension: "topbar icons" = replaces the topbar buttons with icons.
|
||||
- extension: "code line numbers" = adds line numbers to code blocks.
|
||||
- extension: "notion icons" = use custom icon sets directly in notion.
|
||||
- tweak: vertical indentation/relationship lines for lists.
|
||||
- tweak: scroll database toolbars horizontally if partially hidden.
|
||||
- tweak: condense bullet points (decrease line spacing).
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.10.1`
|
||||
|
||||
### v0.10.0 (2020-11-02)
|
||||
|
||||
a flexibility update.
|
||||
|
||||
- new: mods can be reordered in the menu to control what order styling/scripts are added/executed in.
|
||||
higher up on the list = higher priority of application = loaded last in order to override others.
|
||||
(excluding the core, which though pinned to the top of the list is always loaded first so theming
|
||||
variables can be modified.)
|
||||
- new: relaunch button in tray menu.
|
||||
- new: a core mod option for a default page id/url (all new windows will load it instead of the
|
||||
normal "most recent" page).
|
||||
- new: css variables for increasing line spacing/paragraph margins.
|
||||
- new: patch the notion:// url scheme/protocol to work on linux.
|
||||
- new: menu shows theme conflicts + a core mod option to auto-resolve theme conflicts.
|
||||
- new: a `-n` cli option.
|
||||
- improved: menu will now respect integrated titlebar setting.
|
||||
- improved: use keyup listeners instead of a globalShortcut for the enhancements menu toggle.
|
||||
- improved: overwrite `app.asar.bak` if already exists (e.g. for app updates).
|
||||
- improved: additional menu option descriptions on hover.
|
||||
- improved: listen to prefers-color-scheme to better change theme in night shift.
|
||||
- improved: platform-specific option overrides for features not required on macOS.
|
||||
- improved: made extra padding at the bottom with the "focus mode" extension toggleable.
|
||||
- bugfix: removed messenger emoji set as the provider no longer supports it.
|
||||
- bugfix: remove shadow around light mode board headers.
|
||||
- bugfix: properly detect/respond to `EACCES`/`EBUSY` errors.
|
||||
- bugfix: night shift checks every interaction,
|
||||
will respond to system changes without any manual changes.
|
||||
- bugfix: toc blocks can have text colours.
|
||||
- bugfix: bypass preview extension works with the back/forward keyboard shortcuts.
|
||||
- bugfix: (maybe) fix csp issues under proxy.
|
||||
- bugfix: remove focus mode footer from neutral theme + better contrast in calendar views.
|
||||
- bugfix: improvements to the colour theming, particularly to make real- and fake-light/dark
|
||||
modes (as applied by the night shift extension) look consistent.
|
||||
relevant variables (assuming all are prefixed by `--theme_[dark|light]--`):
|
||||
`box-shadow`, `box-shadow_strong`, `select_input`, and `ui-border`
|
||||
- bugfix: font sizing applied to overlays/previews.
|
||||
- bugfix: removed typo in variable name for brown text.
|
||||
- bugfix: primary-colour text (mainly in "add a \_" popups) is now properly themed.
|
||||
- bugfix: right-to-left extension applies to text in columns.
|
||||
- bugfix: block text colour applies to text with backgrounds.
|
||||
- bugfix: font applied to wrong mode with littlepig dark.
|
||||
- bugfix: keep "empty" top bar visible in the menu.
|
||||
- bugfix: set NSRequiresAquaSystemAppearance to false in /Applications/Notion.app/Contents/Info.plist
|
||||
so system dark/light mode can be properly detected.
|
||||
- bugfix: make ctrl+f popover shadow less extreme.
|
||||
- bugfix: "weekly" calendar view name made case insensitive.
|
||||
- bugfix: re-show hidden windows when clicking on the dock.
|
||||
- tweak: sticky table/list rows.
|
||||
- theme: "material ocean" = an oceanic colour palette.
|
||||
- theme: "cherry cola" = a delightfully plummy, cherry cola flavored theme.
|
||||
- theme: "dracula" = a theme based on the popular dracula color palette
|
||||
originally by zeno rocha and friends.
|
||||
- extension: "tabs" = have multiple notion pages open in a single window. tabs can be controlled
|
||||
with keyboard shortcuts and dragged/reordered within/between windows.
|
||||
- extension: "scroll to top" = add an arrow above the help button to scroll back to the top of a page.
|
||||
- extension: "tweaks" = common style/layout changes. includes:
|
||||
- new: make transitions snappy/0s.
|
||||
- new: in-page columns are disabled/wrapped and pages are wider when
|
||||
the window is narrower than 600px for improved responsiveness.
|
||||
- new: thicker bold text for better visibility.
|
||||
- new: more readable line spacing.
|
||||
- moved: smooth scrollbars.
|
||||
- moved: change dragarea height.
|
||||
- moved: hide help.
|
||||
|
||||
a fork of notion-deb-builder that does generate an app.asar has been created and is once again supported.
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.10.0`
|
||||
|
||||
### v0.9.1 (2020-09-26)
|
||||
|
||||
- bugfix: font chooser will continue iterating through fonts after encountering a blank option.
|
||||
- bugfix: block indents are no longer overriden.
|
||||
- bugfix: neutral does not force full width pages.
|
||||
- bugfix: bypass preview extension works with the back/forward arrows.
|
||||
- bugfix: check all views on a page for a weekly calendar.
|
||||
- bugfix: emoji sets no longer modifies the user agent = doesn't break hotkeys.
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.9.1`
|
||||
|
||||
### v0.9.0 (2020-09-20)
|
||||
|
||||
a feature and cleanup update.
|
||||
|
||||
- improved: halved the number of css rules used -> much better performance.
|
||||
- improved: font imports must be define in the `mod.js` so that they can also be used in
|
||||
the enhancements menu.
|
||||
- improved: tiling window-manager support (can hide titlebars entirely without dragarea/buttons).
|
||||
- improved: extensions menu search is now case insensitive and includes options, inputs and versions.
|
||||
the search box can also for focused with `CMD/CTRL+F`.
|
||||
- improved: extensions menu filters shown either a ✓ or × to help understand the current state.
|
||||
- improved: added individual text-colour rules for different background colours.
|
||||
- improved: added variables for callout colouring.
|
||||
- improved: replaced with `helpers.getNotion()` with the constant `helpers.__notion` to reduce
|
||||
repeated function calls.
|
||||
- improved: added variables for page width.
|
||||
- improved/bugfix: emoji sets extension should now work on macOS and will change user agent to use
|
||||
real emojis instead of downloading images when system default is selected.
|
||||
- bugfix: enhancer settings should no longer reset on update (though this will not have
|
||||
effect until the release after this one).
|
||||
- bugfix: blue select tags are no longer purple.
|
||||
- bugfix: page titles now respond to small-text mode.
|
||||
- bugfix: weekly calendar view height is now sized correctly according to its contents.
|
||||
- bugfix: made the open enhancements menu hotkey configurable and changed the default to `ALT+E`.
|
||||
to remove conflict with the inline code highlight shortcut.
|
||||
- bugfix: update property-layout to match notion changes again.
|
||||
- bugfix: updated some of the tweak styling to match notion changes.
|
||||
- bugfix: block-level text colours are now changed properly.
|
||||
- bugfix: do not require data folder during installation, to prevent `sudo` attempting to
|
||||
create it in `/var/root/`.
|
||||
- bugfix: bullet points/checkboxes will now align properly in the right-to-left extension.
|
||||
- themes: "littlepig" (light + dark) = monospaced themes using emojis and colourful text.
|
||||
- extension: "font chooser" = customize fonts. for each option, type in the name of the font you would like to use,
|
||||
or leave it blank to not change anything.
|
||||
- extension: "always on top" = add an arrow/button to show the notion window on top of other windows
|
||||
even if it's not focused.
|
||||
- extension: "calendar scroll" = add a button to scroll down to the current week in fullpage/infinite-scroll calendars.
|
||||
- extension: "hide help button" = hide the help button if you don't need it.
|
||||
- extension: "bypass preview" = go straight to the normal full view when opening a page.
|
||||
- extension: "word counter" = add page details: word/character/sentence/block count & speaking/reading times.
|
||||
|
||||
notion-deb-builder has been discovered to not generate an app.asar and so is no longer supported.
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.9.0`
|
||||
|
||||
### v0.8.5 (2020-08-29)
|
||||
|
||||
- bugfix: separate text highlight and select tag variables.
|
||||
- bugfix: bypass CSP for the `enhancement://` protocol - was failing on some platforms?
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.8.5`
|
||||
|
||||
### v0.8.4 (2020-08-29)
|
||||
|
||||
- bugfix: property-layout now works consistently with or without a banner.
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.8.4`
|
||||
|
||||
### v0.8.3 (2020-08-29)
|
||||
|
||||
previous release was a mistake: it did as intended on linux, but broke windows.
|
||||
this should achieve the same thing in a more compatible way.
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.8.3`
|
||||
|
||||
### v0.8.2 (2020-08-28)
|
||||
|
||||
some things you just can't test until production... fixed the auto-installer
|
||||
to use `./bin.js` instead of `notion-enhancer`
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.8.2`
|
||||
|
||||
### v0.8.1 (2020-08-28)
|
||||
|
||||
a clarity and stability update.
|
||||
|
||||
- improved: more informative cli error messages (original ones can be accessed with the `-d/--dev` flag).
|
||||
- bugfix: gallery variable didn't apply on fullpage.
|
||||
- bugfix: date picker hid current date number.
|
||||
- bugfix: small-text pages should now work as expected.
|
||||
- bugfix: padding issues in page previews.
|
||||
- bugfix: property-layout extension had been broken by internal notion changes.
|
||||
- bugfix: linux installer path typo.
|
||||
- bugfix: caret-color was being mistaken for color and block-level text colouring was broken.
|
||||
- improved: auto-application on install.
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.8.1`
|
||||
|
||||
### v0.8.0 (2020-08-27)
|
||||
|
||||
complete rewrite with node.js.
|
||||
|
||||
- new: simpler cli installation system (inc. commands: `apply`, `remove`, and `check`).
|
||||
- new: mod loading system (easier to create new mods, adds to notion rather than overwriting).
|
||||
- new: mod configuration menu.
|
||||
- improved: more theming variable coverage - inc. light theme and sizing/spacing.
|
||||
- bugfix: non-reproducable errors with python.
|
||||
- bugfix: better launcher patching on linux.
|
||||
- bugfix: fix frameless window issue introduced by notion desktop 2.0.9.
|
||||
- extension: "custom inserts" = link files for small client-side tweaks.
|
||||
- extension: "bracketed links" = render links surrounded with \[\[brackets]] instead of underlined.
|
||||
- extension: "focus mode" = hide the titlebar/menubar if the sidebar is closed (will be shown on hover).
|
||||
- theme: "dark+" = a vivid-colour near-black theme.
|
||||
- theme: "neutral" = smoother colours and fonts, designed to be more pleasing to the eye.
|
||||
- theme: "gameish" = a purple, "gamer-styled" theme with a blocky-font.
|
||||
- theme: "pastel dark" = a smooth-transition true dark theme with a hint of pastel.
|
||||
- extension: "emoji sets" = pick from a variety of emoji styles to use.
|
||||
- extension: "night shift" = sync dark/light theme with the system (overrides normal theme setting).
|
||||
- extension: "right-to-left" = enables auto rtl/ltr text direction detection. (ported from [github.com/obahareth/notion-rtl](https://github.com/obahareth/notion-rtl).)
|
||||
- extension: "weekly view" = calendar views named "weekly" will show only the 7 days of this week. (ported from [github.com/adihd/notionweeklyview](https://github.com/adihd/notionweeklyview).)]
|
||||
- extension: "property layout" = auto-collapse page properties that usually push down page content. (ported from [github.com/alexander-kazakov/notion-layout-extension](https://github.com/alexander-kazakov/notion-layout-extension).)
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.8.0`
|
||||
|
||||
### v0.7.0 (2020-07-09)
|
||||
|
||||
- new: tray option to use system default emojis (instead of twitter's emojiset).
|
||||
- new: mac support (identical functionality to other platforms with the
|
||||
exception of the native minimise/maximise/close buttons being kept, as they integrate
|
||||
better with the OS while not being out-of-place in notion).
|
||||
- new: notion-deb-builder support for linux.
|
||||
- new: an alert will be shown if there is an update available for the enhancer.
|
||||
- improved: replaced button symbols with svgs for multi-platform support.
|
||||
- improved: window close button is now red on hover (thanks to [@torchatlas](https://github.com/torchatlas)).
|
||||
- bugfix: `cleaner.py` patched for linux.
|
||||
- bugfix: tray now operates as expected on linux.
|
||||
- bugfix: odd mix of `\\` and `/` being used for windows filepaths.
|
||||
- bugfix: app no longer crashes when sidebar is toggled.
|
||||
|
||||
> 📥 [notion-enhancer.v0.7.0.zip](https://github.com/notion-enhancer/notion-enhancer/archive/v0.7.0.zip)
|
||||
|
||||
### v0.6.0 (2020-06-30)
|
||||
|
||||
- style: custom fonts.
|
||||
- style: font resizing.
|
||||
- style: hide discussions (thanks to [u/Roosmaryn](https://www.reddit.com/user/Roosmaryn/)).
|
||||
- new: custom colour theming, demonstrated via the dark+ theme.
|
||||
- new: linux support (thanks to [@Blacksuan19](https://github.com/Blacksuan19)).
|
||||
- improved: if hotkey is pressed while notion is unfocused, it will bring it to the front rather than hiding it.
|
||||
- improved: stop window buttons breaking at smaller widths.
|
||||
- improved: more obviously visible drag area.
|
||||
- bugfix: specify UTF-8 encoding to prevent multibyte/gbk codec errors (thanks to [@etnperlong](https://github.com/etnperlong)).
|
||||
|
||||
> 📥 [notion-enhancer.v0.6.0.zip](https://github.com/notion-enhancer/notion-enhancer/archive/v0.6.0.zip)
|
||||
|
||||
### v0.5.0 (2020-05-23)
|
||||
|
||||
- new: running from the wsl.
|
||||
- new: reload window with f5.
|
||||
- improved: code has been refactored and cleaned up,
|
||||
inc. file renaming and a `customiser.py` that doesn't require
|
||||
a run of `cleaner.py` to build modifications.
|
||||
improved: scrollbar colours that fit better with notion's theming.
|
||||
- bugfix: un-break having multiple notion windows open.
|
||||
|
||||
> 📥 [notion-enhancer.v0.5.0.zip](https://github.com/notion-enhancer/notion-enhancer/archive/v0.5.0.zip)
|
||||
|
||||
**development here taken over by [@dragonwocky](https://github.com/dragonwocky).**
|
||||
|
||||
**the ~~crossed out~~ features below are no longer features included by default,**
|
||||
**but can still easily be added as [custom tweaks](https://github.com/notion-enhancer/tweaks).**
|
||||
|
||||
### v0.4.1 (2020-02-13)
|
||||
|
||||
- bugfix: wider table & the "+" button not working in database pages.
|
||||
|
||||
> 📥 [notion-enhancer.v4.1.zip](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/d239a3cf-d553-4ef3-ab04-8b47892d9f9a/Notion_Customization_v4.1.zip)
|
||||
|
||||
### v0.4.0
|
||||
|
||||
- new: tray icon.
|
||||
- new: app startup options (+ saving).
|
||||
- new: `Reset.py`
|
||||
- improved: better output from `Customization Patcher.py`.
|
||||
- bugfix: wider tables in "short page" mode.
|
||||
- bugfix: unclickable buttons/draggable area (of titlebar).
|
||||
|
||||
### v0.3.0
|
||||
|
||||
- new: show/hide window hotkey.
|
||||
- new: app startup options.
|
||||
- ~~style: smaller table icons.~~
|
||||
|
||||
> 📥 [notion-enhancer.v3.zip](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/b01aa446-5727-476a-a25e-395472bfb1be/NotionScriptsV3.zip)
|
||||
|
||||
### v0.2.0
|
||||
|
||||
- new: light/dark theme support for window control buttons + scrollbars.
|
||||
- new: custom styles directly linked to the enhancer resources + compatible with web version.
|
||||
- ~~improved: making table column width go below 100px.~~
|
||||
|
||||
### v0.1.0
|
||||
|
||||
- new: custom window control buttons.
|
||||
- removed: default titlebar/menubar.
|
||||
- ~~removed: huge padding of board view.~~
|
||||
- ~~removed: huge padding of table view.~~
|
||||
- ~~optional: making table column width go below 100px.~~
|
||||
- ~~style: thinner cover image + higher content block.~~
|
||||
- style: scrollbars.
|
@ -432,6 +432,19 @@ registry.validate = async (mod, err, check) => {
|
||||
option.tooltip,
|
||||
!option.tooltip || typeof option.tooltip === 'string'
|
||||
),
|
||||
check(
|
||||
'option.environments',
|
||||
option.environments,
|
||||
!option.environments || Array.isArray(option.environments)
|
||||
).then((environments) =>
|
||||
environments
|
||||
? environments === ERROR
|
||||
? ERROR
|
||||
: environments.map((env) =>
|
||||
check('option.environment', env, typeof env === 'string')
|
||||
)
|
||||
: undefined
|
||||
),
|
||||
];
|
||||
})
|
||||
),
|
||||
|
363
extension/repo/CHANGELOG.md
Normal file
363
extension/repo/CHANGELOG.md
Normal file
@ -0,0 +1,363 @@
|
||||
# changelog
|
||||
|
||||
### v0.11.0-mods (wip)
|
||||
|
||||
- improved: split the core mod into the theming & menu mods.
|
||||
- improved: new larger menu layout, with individual mod pages.
|
||||
- removed: integrated scrollbar tweak (notion now includes by default).
|
||||
|
||||
#### todo
|
||||
|
||||
- tag sort
|
||||
- documentation e.g. \_file
|
||||
- complete/bugfix theming variables
|
||||
- clear file pickers
|
||||
- color pickers
|
||||
|
||||
#### app-specific
|
||||
|
||||
- dragarea height tweak
|
||||
- tray
|
||||
|
||||
**changelog below this point is a mix of the app enhancer and all mods.**
|
||||
**above this, changelogs have been split: see the**
|
||||
**[browser enhancer changelog](https://github.com/notion-enhancer/extension/blob/dev/CHANGELOG.md)**
|
||||
**and the [mods changelog](https://github.com/notion-enhancer/mods/blob/dev/CHANGELOG.md).**
|
||||
|
||||
### v0.10.2 (2020-12-05)
|
||||
|
||||
again, an emergency release for bugfixes.
|
||||
not properly documented and new features have not yet been fully reviewed/edited.
|
||||
|
||||
- new: side panel - adds an extra sidebar on the right for use by other mods,
|
||||
toggleable with `ctrl+shift+backslash`.
|
||||
- improved: notion icons uses spritesheets for faster loading of icons.
|
||||
- improved: icon sets can be hidden/toggled.
|
||||
- improved: toggles in the enhancer menu follow the same style as notion's toggles.
|
||||
- improved: separate quote font variable & option in the font chooser mod (`--theme_[dark|light]--font_quote`).
|
||||
- improved: option to hide the "page details" text for the word counter extension.
|
||||
- bugfix: notion icons tab is now visible in fullpage databases.
|
||||
- bugfix: code line numbers handles wrapped code blocks.
|
||||
- bugfix: file explorer no longer opens when enhancer menu is opened.
|
||||
- bugfix: enable the remote module in webviews (windows/tabs) for compatibility with the
|
||||
updated version of electron used by new notion builds (>= 2.0.10).
|
||||
- bugfix: add support for enhancing an `app` folder if there is no `app.asar` file present.
|
||||
- extension: "outliner" = table of contents in right sidebar.
|
||||
- extension: "panel sites" = embed sites on the site panel.
|
||||
- extension: "indentation lines" = adds vertical relationship lines to make list trees easier to follow.
|
||||
- extension: "truncated table titles" = see the full text of the truncated table titles on hover over.
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.10.2`
|
||||
|
||||
### v0.10.1 (2020-11-18)
|
||||
|
||||
essentially a prerelease for v0.11.0: pushed out for urgent bugfixes during
|
||||
exam/study weeks when there's no time to code a full release.
|
||||
|
||||
note that this means new features have not yet been fully documented and
|
||||
may not be fully ready for ideal use yet. however, things overall will
|
||||
work more reliably than v0.10.0.
|
||||
|
||||
- new: different css entrypoints for different components (tabs, menu, app).
|
||||
- improved: use an svg for the scroll-to-top button.
|
||||
- improved: use a better-matching icon and add transitions to the property layout toggle.
|
||||
- improved: themes are directly applied to tabs and menu rather than sync-ed between (infinite loading).
|
||||
- improved: error message "is notion running?" --> clearer "make sure notion isn't running!"
|
||||
- improved: auto-shrink system for tabs (max of 15 open in a window).
|
||||
- bugfix: disable fadein of selected block halo with snappy transitions.
|
||||
- bugfix: increase contrast of `--theme_dark--interactive_hover` in dark+ and dracula.
|
||||
- bugfix: tabs are focused properly for input.
|
||||
- bugfix: keyboard shortcut listeners are stricter so they don't conflict.
|
||||
- bugfix: dots indicating draggability are no longer next to the tabs mod in the menu.
|
||||
- bugfix: prevent empty hotkeys from triggering every keypress.
|
||||
- bugfix: don't try loading an empty default page url (infinite loading).
|
||||
- bugfix: remove `* { z-index: 1}` rule so format dropdowns in table view can be opened.
|
||||
- extension: "topbar icons" = replaces the topbar buttons with icons.
|
||||
- extension: "code line numbers" = adds line numbers to code blocks.
|
||||
- extension: "notion icons" = use custom icon sets directly in notion.
|
||||
- tweak: vertical indentation/relationship lines for lists.
|
||||
- tweak: scroll database toolbars horizontally if partially hidden.
|
||||
- tweak: condense bullet points (decrease line spacing).
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.10.1`
|
||||
|
||||
### v0.10.0 (2020-11-02)
|
||||
|
||||
a flexibility update.
|
||||
|
||||
- new: mods can be reordered in the menu to control what order styling/scripts are added/executed in.
|
||||
higher up on the list = higher priority of application = loaded last in order to override others.
|
||||
(excluding the core, which though pinned to the top of the list is always loaded first so theming
|
||||
variables can be modified.)
|
||||
- new: relaunch button in tray menu.
|
||||
- new: a core mod option for a default page id/url (all new windows will load it instead of the
|
||||
normal "most recent" page).
|
||||
- new: css variables for increasing line spacing/paragraph margins.
|
||||
- new: patch the notion:// url scheme/protocol to work on linux.
|
||||
- new: menu shows theme conflicts + a core mod option to auto-resolve theme conflicts.
|
||||
- new: a `-n` cli option.
|
||||
- improved: menu will now respect integrated titlebar setting.
|
||||
- improved: use keyup listeners instead of a globalShortcut for the enhancements menu toggle.
|
||||
- improved: overwrite `app.asar.bak` if already exists (e.g. for app updates).
|
||||
- improved: additional menu option descriptions on hover.
|
||||
- improved: listen to prefers-color-scheme to better change theme in night shift.
|
||||
- improved: platform-specific option overrides for features not required on macOS.
|
||||
- improved: made extra padding at the bottom with the "focus mode" extension toggleable.
|
||||
- bugfix: removed messenger emoji set as the provider no longer supports it.
|
||||
- bugfix: remove shadow around light mode board headers.
|
||||
- bugfix: properly detect/respond to `EACCES`/`EBUSY` errors.
|
||||
- bugfix: night shift checks every interaction,
|
||||
will respond to system changes without any manual changes.
|
||||
- bugfix: toc blocks can have text colours.
|
||||
- bugfix: bypass preview extension works with the back/forward keyboard shortcuts.
|
||||
- bugfix: (maybe) fix csp issues under proxy.
|
||||
- bugfix: remove focus mode footer from neutral theme + better contrast in calendar views.
|
||||
- bugfix: improvements to the colour theming, particularly to make real- and fake-light/dark
|
||||
modes (as applied by the night shift extension) look consistent.
|
||||
relevant variables (assuming all are prefixed by `--theme_[dark|light]--`):
|
||||
`box-shadow`, `box-shadow_strong`, `select_input`, and `ui-border`
|
||||
- bugfix: font sizing applied to overlays/previews.
|
||||
- bugfix: removed typo in variable name for brown text.
|
||||
- bugfix: primary-colour text (mainly in "add a \_" popups) is now properly themed.
|
||||
- bugfix: right-to-left extension applies to text in columns.
|
||||
- bugfix: block text colour applies to text with backgrounds.
|
||||
- bugfix: font applied to wrong mode with littlepig dark.
|
||||
- bugfix: keep "empty" top bar visible in the menu.
|
||||
- bugfix: set NSRequiresAquaSystemAppearance to false in /Applications/Notion.app/Contents/Info.plist
|
||||
so system dark/light mode can be properly detected.
|
||||
- bugfix: make ctrl+f popover shadow less extreme.
|
||||
- bugfix: "weekly" calendar view name made case insensitive.
|
||||
- bugfix: re-show hidden windows when clicking on the dock.
|
||||
- tweak: sticky table/list rows.
|
||||
- theme: "material ocean" = an oceanic colour palette.
|
||||
- theme: "cherry cola" = a delightfully plummy, cherry cola flavored theme.
|
||||
- theme: "dracula" = a theme based on the popular dracula color palette
|
||||
originally by zeno rocha and friends.
|
||||
- extension: "tabs" = have multiple notion pages open in a single window. tabs can be controlled
|
||||
with keyboard shortcuts and dragged/reordered within/between windows.
|
||||
- extension: "scroll to top" = add an arrow above the help button to scroll back to the top of a page.
|
||||
- extension: "tweaks" = common style/layout changes. includes:
|
||||
- new: make transitions snappy/0s.
|
||||
- new: in-page columns are disabled/wrapped and pages are wider when
|
||||
the window is narrower than 600px for improved responsiveness.
|
||||
- new: thicker bold text for better visibility.
|
||||
- new: more readable line spacing.
|
||||
- moved: smooth scrollbars.
|
||||
- moved: change dragarea height.
|
||||
- moved: hide help.
|
||||
|
||||
a fork of notion-deb-builder that does generate an app.asar has been created and is once again supported.
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.10.0`
|
||||
|
||||
### v0.9.1 (2020-09-26)
|
||||
|
||||
- bugfix: font chooser will continue iterating through fonts after encountering a blank option.
|
||||
- bugfix: block indents are no longer overriden.
|
||||
- bugfix: neutral does not force full width pages.
|
||||
- bugfix: bypass preview extension works with the back/forward arrows.
|
||||
- bugfix: check all views on a page for a weekly calendar.
|
||||
- bugfix: emoji sets no longer modifies the user agent = doesn't break hotkeys.
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.9.1`
|
||||
|
||||
### v0.9.0 (2020-09-20)
|
||||
|
||||
a feature and cleanup update.
|
||||
|
||||
- improved: halved the number of css rules used -> much better performance.
|
||||
- improved: font imports must be define in the `mod.js` so that they can also be used in
|
||||
the enhancements menu.
|
||||
- improved: tiling window-manager support (can hide titlebars entirely without dragarea/buttons).
|
||||
- improved: extensions menu search is now case insensitive and includes options, inputs and versions.
|
||||
the search box can also for focused with `CMD/CTRL+F`.
|
||||
- improved: extensions menu filters shown either a ✓ or × to help understand the current state.
|
||||
- improved: added individual text-colour rules for different background colours.
|
||||
- improved: added variables for callout colouring.
|
||||
- improved: replaced with `helpers.getNotion()` with the constant `helpers.__notion` to reduce
|
||||
repeated function calls.
|
||||
- improved: added variables for page width.
|
||||
- improved/bugfix: emoji sets extension should now work on macOS and will change user agent to use
|
||||
real emojis instead of downloading images when system default is selected.
|
||||
- bugfix: enhancer settings should no longer reset on update (though this will not have
|
||||
effect until the release after this one).
|
||||
- bugfix: blue select tags are no longer purple.
|
||||
- bugfix: page titles now respond to small-text mode.
|
||||
- bugfix: weekly calendar view height is now sized correctly according to its contents.
|
||||
- bugfix: made the open enhancements menu hotkey configurable and changed the default to `ALT+E`.
|
||||
to remove conflict with the inline code highlight shortcut.
|
||||
- bugfix: update property-layout to match notion changes again.
|
||||
- bugfix: updated some of the tweak styling to match notion changes.
|
||||
- bugfix: block-level text colours are now changed properly.
|
||||
- bugfix: do not require data folder during installation, to prevent `sudo` attempting to
|
||||
create it in `/var/root/`.
|
||||
- bugfix: bullet points/checkboxes will now align properly in the right-to-left extension.
|
||||
- themes: "littlepig" (light + dark) = monospaced themes using emojis and colourful text.
|
||||
- extension: "font chooser" = customize fonts. for each option, type in the name of the font you would like to use,
|
||||
or leave it blank to not change anything.
|
||||
- extension: "always on top" = add an arrow/button to show the notion window on top of other windows
|
||||
even if it's not focused.
|
||||
- extension: "calendar scroll" = add a button to scroll down to the current week in fullpage/infinite-scroll calendars.
|
||||
- extension: "hide help button" = hide the help button if you don't need it.
|
||||
- extension: "bypass preview" = go straight to the normal full view when opening a page.
|
||||
- extension: "word counter" = add page details: word/character/sentence/block count & speaking/reading times.
|
||||
|
||||
notion-deb-builder has been discovered to not generate an app.asar and so is no longer supported.
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.9.0`
|
||||
|
||||
### v0.8.5 (2020-08-29)
|
||||
|
||||
- bugfix: separate text highlight and select tag variables.
|
||||
- bugfix: bypass CSP for the `enhancement://` protocol - was failing on some platforms?
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.8.5`
|
||||
|
||||
### v0.8.4 (2020-08-29)
|
||||
|
||||
- bugfix: property-layout now works consistently with or without a banner.
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.8.4`
|
||||
|
||||
### v0.8.3 (2020-08-29)
|
||||
|
||||
previous release was a mistake: it did as intended on linux, but broke windows.
|
||||
this should achieve the same thing in a more compatible way.
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.8.3`
|
||||
|
||||
### v0.8.2 (2020-08-28)
|
||||
|
||||
some things you just can't test until production... fixed the auto-installer
|
||||
to use `./bin.js` instead of `notion-enhancer`
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.8.2`
|
||||
|
||||
### v0.8.1 (2020-08-28)
|
||||
|
||||
a clarity and stability update.
|
||||
|
||||
- improved: more informative cli error messages (original ones can be accessed with the `-d/--dev` flag).
|
||||
- bugfix: gallery variable didn't apply on fullpage.
|
||||
- bugfix: date picker hid current date number.
|
||||
- bugfix: small-text pages should now work as expected.
|
||||
- bugfix: padding issues in page previews.
|
||||
- bugfix: property-layout extension had been broken by internal notion changes.
|
||||
- bugfix: linux installer path typo.
|
||||
- bugfix: caret-color was being mistaken for color and block-level text colouring was broken.
|
||||
- improved: auto-application on install.
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.8.1`
|
||||
|
||||
### v0.8.0 (2020-08-27)
|
||||
|
||||
complete rewrite with node.js.
|
||||
|
||||
- new: simpler cli installation system (inc. commands: `apply`, `remove`, and `check`).
|
||||
- new: mod loading system (easier to create new mods, adds to notion rather than overwriting).
|
||||
- new: mod configuration menu.
|
||||
- improved: more theming variable coverage - inc. light theme and sizing/spacing.
|
||||
- bugfix: non-reproducable errors with python.
|
||||
- bugfix: better launcher patching on linux.
|
||||
- bugfix: fix frameless window issue introduced by notion desktop 2.0.9.
|
||||
- extension: "custom inserts" = link files for small client-side tweaks.
|
||||
- extension: "bracketed links" = render links surrounded with \[\[brackets]] instead of underlined.
|
||||
- extension: "focus mode" = hide the titlebar/menubar if the sidebar is closed (will be shown on hover).
|
||||
- theme: "dark+" = a vivid-colour near-black theme.
|
||||
- theme: "neutral" = smoother colours and fonts, designed to be more pleasing to the eye.
|
||||
- theme: "gameish" = a purple, "gamer-styled" theme with a blocky-font.
|
||||
- theme: "pastel dark" = a smooth-transition true dark theme with a hint of pastel.
|
||||
- extension: "emoji sets" = pick from a variety of emoji styles to use.
|
||||
- extension: "night shift" = sync dark/light theme with the system (overrides normal theme setting).
|
||||
- extension: "right-to-left" = enables auto rtl/ltr text direction detection. (ported from [github.com/obahareth/notion-rtl](https://github.com/obahareth/notion-rtl).)
|
||||
- extension: "weekly view" = calendar views named "weekly" will show only the 7 days of this week. (ported from [github.com/adihd/notionweeklyview](https://github.com/adihd/notionweeklyview).)]
|
||||
- extension: "property layout" = auto-collapse page properties that usually push down page content. (ported from [github.com/alexander-kazakov/notion-layout-extension](https://github.com/alexander-kazakov/notion-layout-extension).)
|
||||
|
||||
> 📥 `npm i -g notion-enhancer@0.8.0`
|
||||
|
||||
### v0.7.0 (2020-07-09)
|
||||
|
||||
- new: tray option to use system default emojis (instead of twitter's emojiset).
|
||||
- new: mac support (identical functionality to other platforms with the
|
||||
exception of the native minimise/maximise/close buttons being kept, as they integrate
|
||||
better with the OS while not being out-of-place in notion).
|
||||
- new: notion-deb-builder support for linux.
|
||||
- new: an alert will be shown if there is an update available for the enhancer.
|
||||
- improved: replaced button symbols with svgs for multi-platform support.
|
||||
- improved: window close button is now red on hover (thanks to [@torchatlas](https://github.com/torchatlas)).
|
||||
- bugfix: `cleaner.py` patched for linux.
|
||||
- bugfix: tray now operates as expected on linux.
|
||||
- bugfix: odd mix of `\\` and `/` being used for windows filepaths.
|
||||
- bugfix: app no longer crashes when sidebar is toggled.
|
||||
|
||||
> 📥 [notion-enhancer.v0.7.0.zip](https://github.com/notion-enhancer/notion-enhancer/archive/v0.7.0.zip)
|
||||
|
||||
### v0.6.0 (2020-06-30)
|
||||
|
||||
- style: custom fonts.
|
||||
- style: font resizing.
|
||||
- style: hide discussions (thanks to [u/Roosmaryn](https://www.reddit.com/user/Roosmaryn/)).
|
||||
- new: custom colour theming, demonstrated via the dark+ theme.
|
||||
- new: linux support (thanks to [@Blacksuan19](https://github.com/Blacksuan19)).
|
||||
- improved: if hotkey is pressed while notion is unfocused, it will bring it to the front rather than hiding it.
|
||||
- improved: stop window buttons breaking at smaller widths.
|
||||
- improved: more obviously visible drag area.
|
||||
- bugfix: specify UTF-8 encoding to prevent multibyte/gbk codec errors (thanks to [@etnperlong](https://github.com/etnperlong)).
|
||||
|
||||
> 📥 [notion-enhancer.v0.6.0.zip](https://github.com/notion-enhancer/notion-enhancer/archive/v0.6.0.zip)
|
||||
|
||||
### v0.5.0 (2020-05-23)
|
||||
|
||||
- new: running from the wsl.
|
||||
- new: reload window with f5.
|
||||
- improved: code has been refactored and cleaned up,
|
||||
inc. file renaming and a `customiser.py` that doesn't require
|
||||
a run of `cleaner.py` to build modifications.
|
||||
improved: scrollbar colours that fit better with notion's theming.
|
||||
- bugfix: un-break having multiple notion windows open.
|
||||
|
||||
> 📥 [notion-enhancer.v0.5.0.zip](https://github.com/notion-enhancer/notion-enhancer/archive/v0.5.0.zip)
|
||||
|
||||
**development here taken over by [@dragonwocky](https://github.com/dragonwocky).**
|
||||
|
||||
**the ~~crossed out~~ features below are no longer features included by default,**
|
||||
**but can still easily be added as [custom tweaks](https://github.com/notion-enhancer/tweaks).**
|
||||
|
||||
### v0.4.1 (2020-02-13)
|
||||
|
||||
- bugfix: wider table & the "+" button not working in database pages.
|
||||
|
||||
> 📥 [notion-enhancer.v4.1.zip](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/d239a3cf-d553-4ef3-ab04-8b47892d9f9a/Notion_Customization_v4.1.zip)
|
||||
|
||||
### v0.4.0
|
||||
|
||||
- new: tray icon.
|
||||
- new: app startup options (+ saving).
|
||||
- new: `Reset.py`
|
||||
- improved: better output from `Customization Patcher.py`.
|
||||
- bugfix: wider tables in "short page" mode.
|
||||
- bugfix: unclickable buttons/draggable area (of titlebar).
|
||||
|
||||
### v0.3.0
|
||||
|
||||
- new: show/hide window hotkey.
|
||||
- new: app startup options.
|
||||
- ~~style: smaller table icons.~~
|
||||
|
||||
> 📥 [notion-enhancer.v3.zip](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/b01aa446-5727-476a-a25e-395472bfb1be/NotionScriptsV3.zip)
|
||||
|
||||
### v0.2.0
|
||||
|
||||
- new: light/dark theme support for window control buttons + scrollbars.
|
||||
- new: custom styles directly linked to the enhancer resources + compatible with web version.
|
||||
- ~~improved: making table column width go below 100px.~~
|
||||
|
||||
### v0.1.0
|
||||
|
||||
- new: custom window control buttons.
|
||||
- removed: default titlebar/menubar.
|
||||
- ~~removed: huge padding of board view.~~
|
||||
- ~~removed: huge padding of table view.~~
|
||||
- ~~optional: making table column width go below 100px.~~
|
||||
- ~~style: thinner cover image + higher content block.~~
|
||||
- style: scrollbars.
|
@ -1,54 +0,0 @@
|
||||
{
|
||||
"name": "custom-inserts",
|
||||
"id": "2f914210-faae-4803-8e3d-f2bf358a5864",
|
||||
"version": "0.11.0",
|
||||
"description": "the enhancer's [graphical](https://github.com) menu, related buttons and shortcuts.",
|
||||
"preview": "https://raw.githubusercontent.com/notion-enhancer/notion-enhancer/dev/notion-enhancer%20v0.10.0%20banner.jpg",
|
||||
"tags": ["theme", "light"],
|
||||
"authors": [
|
||||
{
|
||||
"name": "dragonwocky",
|
||||
"email": "thedragonring.bod@gmail.com",
|
||||
"url": "https://dragonwocky.me/",
|
||||
"icon": "https://dragonwocky.me/avatar.jpg"
|
||||
}
|
||||
],
|
||||
"js": {},
|
||||
"options": [
|
||||
{
|
||||
"type": "toggle",
|
||||
"key": "toggle",
|
||||
"label": "toggle",
|
||||
"value": true,
|
||||
"tooltip": "a toggle"
|
||||
},
|
||||
{
|
||||
"type": "select",
|
||||
"key": "select",
|
||||
"label": "select",
|
||||
"values": ["option a", "option b", "option c"],
|
||||
"tooltip": "a select"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"key": "text",
|
||||
"label": "text",
|
||||
"value": "default",
|
||||
"tooltip": "a text input"
|
||||
},
|
||||
{
|
||||
"type": "number",
|
||||
"key": "number",
|
||||
"label": "number",
|
||||
"value": 0,
|
||||
"tooltip": "a number input"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"key": "file",
|
||||
"label": "file picker (.css only)",
|
||||
"extensions": [".css"],
|
||||
"tooltip": "a file picker"
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
/*
|
||||
* notion-enhancer: custom-inserts
|
||||
* (c) 2021 dragonwocky <thedragonring.bod@gmail.com> (https://dragonwocky.me/)
|
||||
* (https://notion-enhancer.github.io/) under the MIT license
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const _id = 'b4b0aced-2059-43bf-8d1d-ccd757ee5ebb';
|
||||
import { env, storage, web } from '../../helpers.js';
|
||||
|
||||
const inserts = {
|
||||
js: await storage.get(_id, '_file.js'),
|
||||
css: await storage.get(_id, '_file.css'),
|
||||
};
|
||||
|
||||
if (inserts.js) {
|
||||
// eval(inserts.js);
|
||||
}
|
||||
|
||||
if (inserts.css) {
|
||||
document.body.append(
|
||||
web.createElement(web.html`<style id="custom-inserts@${_id}.css">${inserts.css}</style>`)
|
||||
);
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "custom-inserts",
|
||||
"id": "b4b0aced-2059-43bf-8d1d-ccd757ee5ebb",
|
||||
"version": "0.2.0",
|
||||
"description": "link files for small client-side tweaks.",
|
||||
"tags": ["extension", "customisation"],
|
||||
"authors": [
|
||||
{
|
||||
"name": "dragonwocky",
|
||||
"email": "thedragonring.bod@gmail.com",
|
||||
"url": "https://dragonwocky.me/",
|
||||
"icon": "https://dragonwocky.me/avatar.jpg"
|
||||
}
|
||||
],
|
||||
"js": {
|
||||
"client": ["client.js"]
|
||||
},
|
||||
"options": [
|
||||
{
|
||||
"type": "file",
|
||||
"key": "css",
|
||||
"label": "css insert",
|
||||
"extensions": [".css"]
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"key": "js",
|
||||
"label": "client js insert",
|
||||
"extensions": [".js"]
|
||||
}
|
||||
]
|
||||
}
|
@ -305,7 +305,7 @@ label [data-icon='fa/question-circle'] {
|
||||
height: 0.8rem;
|
||||
width: 0.8rem;
|
||||
left: 0.325rem;
|
||||
top: 0.18rem;
|
||||
top: 0.225rem;
|
||||
position: absolute;
|
||||
border-radius: 100%;
|
||||
background: var(--theme--toggle_dot);
|
||||
|
@ -21,7 +21,7 @@ document
|
||||
.addEventListener('click', env.focusNotion);
|
||||
web.hotkeyListener(await storage.get(_id, 'hotkey.focustoggle'), env.focusNotion);
|
||||
|
||||
const hovertip = {
|
||||
const tooltips = {
|
||||
$el: document.querySelector('.tooltip'),
|
||||
add($parent, selector, text) {
|
||||
text = fmt.md.render(text);
|
||||
@ -157,12 +157,12 @@ components.options = {
|
||||
${state ? 'checked' : ''}/>
|
||||
<p>
|
||||
<span data-tooltip>${web.escapeHtml(label)}
|
||||
<i data-icon="fa/question-circle"></i></span>
|
||||
${tooltip ? web.html`<i data-icon="fa/question-circle"></i>` : ''}</span>
|
||||
<span class="library--toggle"></span>
|
||||
</p>
|
||||
</label>`);
|
||||
opt.addEventListener('change', (event) => storage.set(id, key, event.target.checked));
|
||||
hovertip.add(opt, '[data-tooltip]', tooltip);
|
||||
if (tooltip) tooltips.add(opt, '[data-tooltip]', tooltip);
|
||||
return opt;
|
||||
},
|
||||
async select(id, { key, label, tooltip, values }) {
|
||||
@ -172,7 +172,7 @@ components.options = {
|
||||
class="library--select_label"
|
||||
>
|
||||
<p><span data-tooltip>${web.escapeHtml(label)}
|
||||
<i data-icon="fa/question-circle"></i></span></p>
|
||||
${tooltip ? web.html`<i data-icon="fa/question-circle"></i>` : ''}</span></p>
|
||||
<p class="library--select">
|
||||
<span><i data-icon="fa/caret-down"></i></span>
|
||||
<select id="select--${web.escapeHtml(`${id}.${key}`)}">
|
||||
@ -186,7 +186,7 @@ components.options = {
|
||||
</p>
|
||||
</label>`);
|
||||
opt.addEventListener('change', (event) => storage.set(id, key, event.target.value));
|
||||
hovertip.add(opt, '[data-tooltip]', tooltip);
|
||||
if (tooltip) tooltips.add(opt, '[data-tooltip]', tooltip);
|
||||
return opt;
|
||||
},
|
||||
async text(id, { key, label, tooltip }) {
|
||||
@ -196,7 +196,7 @@ components.options = {
|
||||
class="library--text_label"
|
||||
>
|
||||
<p><span data-tooltip>${web.escapeHtml(label)}
|
||||
<i data-icon="fa/question-circle"></i></span></p>
|
||||
${tooltip ? web.html`<i data-icon="fa/question-circle"></i>` : ''}</span></p>
|
||||
<textarea id="text--${web.escapeHtml(`${id}.${key}`)}"
|
||||
rows="1">${web.escapeHtml(state)}</textarea>
|
||||
</label>`);
|
||||
@ -208,7 +208,7 @@ components.options = {
|
||||
);
|
||||
});
|
||||
opt.addEventListener('change', (event) => storage.set(id, key, event.target.value));
|
||||
hovertip.add(opt, '[data-tooltip]', tooltip);
|
||||
if (tooltip) tooltips.add(opt, '[data-tooltip]', tooltip);
|
||||
return opt;
|
||||
},
|
||||
async number(id, { key, label, tooltip }) {
|
||||
@ -218,12 +218,12 @@ components.options = {
|
||||
class="library--number_label"
|
||||
>
|
||||
<p><span data-tooltip>${web.escapeHtml(label)}
|
||||
<i data-icon="fa/question-circle"></i></span></p>
|
||||
${tooltip ? web.html`<i data-icon="fa/question-circle"></i>` : ''}</span></p>
|
||||
<input id="number--${web.escapeHtml(`${id}.${key}`)}"
|
||||
type="number" value="${web.escapeHtml(state.toString())}"/>
|
||||
</label>`);
|
||||
opt.addEventListener('change', (event) => storage.set(id, key, event.target.value));
|
||||
hovertip.add(opt, '[data-tooltip]', tooltip);
|
||||
if (tooltip) tooltips.add(opt, '[data-tooltip]', tooltip);
|
||||
return opt;
|
||||
},
|
||||
async file(id, { key, label, tooltip, extensions }) {
|
||||
@ -261,12 +261,13 @@ components.options = {
|
||||
opt.addEventListener('click', (event) => {
|
||||
document.documentElement.scrollTop = 0;
|
||||
});
|
||||
hovertip.add(
|
||||
tooltips.add(
|
||||
opt,
|
||||
'[data-tooltip]',
|
||||
`${tooltip}\n\n**warning:** browser extensions do not have true filesystem access,
|
||||
so the content of the file is saved on selection. after editing it,
|
||||
the file will need to be re-selected.`
|
||||
`${
|
||||
tooltip ? `${tooltip}\n\n` : ''
|
||||
}**warning:** browser extensions do not have true filesystem access,
|
||||
so file content is only saved on selection. re-select files to apply edits.`
|
||||
);
|
||||
return opt;
|
||||
},
|
||||
@ -275,7 +276,11 @@ components.options = {
|
||||
card.querySelector('.library--expand').remove();
|
||||
if (mod.options && mod.options.length) {
|
||||
const options = web.createElement(web.html`<div class="library--options"></div>`),
|
||||
inputs = await Promise.all(mod.options.map((opt) => this[opt.type](mod.id, opt)));
|
||||
inputs = await Promise.all(
|
||||
mod.options
|
||||
.filter((opt) => !opt.environments || opt.environments.includes(env.name))
|
||||
.map((opt) => this[opt.type](mod.id, opt))
|
||||
);
|
||||
inputs.forEach((opt) => options.append(opt));
|
||||
card.append(options);
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
[
|
||||
"menu@a6621988-551d-495a-97d8-3c568bca2e9e",
|
||||
"theming@0f0bf8b6-eae6-4273-b307-8fc43f2ee082",
|
||||
"custom-inserts@2f914210-faae-4803-8e3d-f2bf358a5864",
|
||||
"custom-inserts@b4b0aced-2059-43bf-8d1d-ccd757ee5ebb",
|
||||
"tweaks@5174a483-c88d-4bf8-a95f-35cd330b76e2"
|
||||
]
|
||||
|
@ -0,0 +1,46 @@
|
||||
/*
|
||||
* notion-enhancer: tweaks
|
||||
* (c) 2021 dragonwocky <thedragonring.bod@gmail.com> (https://dragonwocky.me/)
|
||||
* (https://notion-enhancer.github.io/) under the MIT license
|
||||
*/
|
||||
|
||||
.tweak--snappy_transitions * {
|
||||
animation-duration: 0s !important;
|
||||
transition-duration: 0s !important;
|
||||
}
|
||||
.tweak--snappy_transitions .notion-selectable-halo {
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
.tweak--hide_help .notion-help-button {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.tweak--thicker_bold .notion-page-content span[style*='font-weight:600'] {
|
||||
font-weight: 700 !important;
|
||||
}
|
||||
|
||||
.tweak--spaced_lines {
|
||||
--theme--text_block-line_height: 1.65;
|
||||
--theme--text_block-margin_top: 0.75em;
|
||||
}
|
||||
|
||||
.tweak--condensed_bullets .notion-selectable.notion-bulleted_list-block {
|
||||
margin-top: -1.5px !important;
|
||||
margin-bottom: -1.5px !important;
|
||||
}
|
||||
|
||||
.tweak--scroll_db_toolbars .notion-collection_view-block > [style*=' height: 42px'] {
|
||||
overflow-x: auto !important;
|
||||
}
|
||||
|
||||
.tweak--responsive_breakpoint .notion-column_list-block [style='display: flex;'] > div {
|
||||
width: 100% !important;
|
||||
}
|
||||
.tweak--responsive_breakpoint .notion-column_list-block [style='display: flex;'] {
|
||||
flex-direction: column !important;
|
||||
}
|
||||
.tweak--responsive_breakpoint .notion-app-inner {
|
||||
--theme--page-width: 100%;
|
||||
--theme--page-padding: calc(48px + env(safe-area-inset-left));
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* notion-enhancer: tweaks
|
||||
* (c) 2021 dragonwocky <thedragonring.bod@gmail.com> (https://dragonwocky.me/)
|
||||
* (https://notion-enhancer.github.io/) under the MIT license
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const _id = '5174a483-c88d-4bf8-a95f-35cd330b76e2';
|
||||
import { env, storage, web } from '../../helpers.js';
|
||||
|
||||
web.whenReady().then(async () => {
|
||||
if (['linux', 'win32'].includes(env.name)) {
|
||||
// 'dragarea_height',
|
||||
}
|
||||
|
||||
for (const tweak of [
|
||||
'snappy_transitions',
|
||||
'thicker_bold',
|
||||
'spaced_lines',
|
||||
'hide_help',
|
||||
'condensed_bullets',
|
||||
'scroll_db_toolbars',
|
||||
]) {
|
||||
if (await storage.get(_id, `tweak.${tweak}`)) {
|
||||
document.body.classList.add(`tweak--${tweak}`);
|
||||
}
|
||||
}
|
||||
|
||||
const responsiveBreakpoint = await storage.get(_id, 'tweak.responsive_breakpoint'),
|
||||
addResponsiveBreakpoint = () => {
|
||||
document.body.classList.remove('tweak--responsive_breakpoint');
|
||||
console.log(window.outerWidth, responsiveBreakpoint);
|
||||
if (window.innerWidth <= responsiveBreakpoint) {
|
||||
document.body.classList.add('tweak--responsive_breakpoint');
|
||||
}
|
||||
};
|
||||
window.addEventListener('resize', addResponsiveBreakpoint);
|
||||
addResponsiveBreakpoint();
|
||||
});
|
@ -1,10 +1,9 @@
|
||||
{
|
||||
"name": "tweaks",
|
||||
"id": "5174a483-c88d-4bf8-a95f-35cd330b76e2",
|
||||
"version": "0.11.0",
|
||||
"description": "the enhancer's [graphical](https://github.com) menu, related buttons and shortcuts.",
|
||||
"preview": "https://raw.githubusercontent.com/notion-enhancer/notion-enhancer/dev/notion-enhancer%20v0.10.0%20banner.jpg",
|
||||
"tags": ["theme", "light"],
|
||||
"version": "0.2.0",
|
||||
"description": "common style/layout changes.",
|
||||
"tags": ["extension", "customisation"],
|
||||
"authors": [
|
||||
{
|
||||
"name": "dragonwocky",
|
||||
@ -13,42 +12,67 @@
|
||||
"icon": "https://dragonwocky.me/avatar.jpg"
|
||||
}
|
||||
],
|
||||
"js": {},
|
||||
"css": {
|
||||
"client": ["client.css"]
|
||||
},
|
||||
"js": {
|
||||
"client": ["client.js"]
|
||||
},
|
||||
"options": [
|
||||
{
|
||||
"type": "toggle",
|
||||
"key": "toggle",
|
||||
"label": "toggle",
|
||||
"value": true,
|
||||
"tooltip": "a toggle"
|
||||
},
|
||||
{
|
||||
"type": "select",
|
||||
"key": "select",
|
||||
"label": "select",
|
||||
"values": ["option a", "option b", "option c"],
|
||||
"tooltip": "a select"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"key": "text",
|
||||
"label": "text",
|
||||
"value": "default",
|
||||
"tooltip": "a text input"
|
||||
},
|
||||
{
|
||||
"key": "tweak.dragarea_height",
|
||||
"label": "height of frameless dragarea:",
|
||||
"tooltip": "the rectangle added at the top of a window in 'integrated titlebar' mode, used to drag/move the window.",
|
||||
"type": "number",
|
||||
"key": "number",
|
||||
"label": "number",
|
||||
"value": 0,
|
||||
"tooltip": "a number input"
|
||||
"value": 15,
|
||||
"environments": ["linux", "win32"]
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"key": "file",
|
||||
"label": "file picker (.css only)",
|
||||
"extensions": [".css"],
|
||||
"tooltip": "a file picker"
|
||||
"key": "tweak.responsive_breakpoint",
|
||||
"label": "responsive columns breakpoint (px)",
|
||||
"tooltip": "the width in pixels below which in-page columns are resized to appear full-width so content isn't squished.",
|
||||
"type": "number",
|
||||
"value": 600
|
||||
},
|
||||
{
|
||||
"key": "tweak.snappy_transitions",
|
||||
"label": "snappy transitions",
|
||||
"tooltip": "set animation time for all css-driven animations to 0s. may not affect element motion e.g. the sidebar popping out.",
|
||||
"type": "toggle",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"key": "tweak.hide_help",
|
||||
"label": "hide help button",
|
||||
"type": "toggle",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"key": "tweak.thicker_bold",
|
||||
"label": "thicker bold text",
|
||||
"type": "toggle",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"key": "tweak.spaced_lines",
|
||||
"label": "readable line spacing",
|
||||
"tooltip": "greater line spacing between text blocks.",
|
||||
"type": "toggle",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"key": "tweak.condensed_bullets",
|
||||
"label": "condense bullet points",
|
||||
"tooltip": "tighter line spacing between bullet point blocks.",
|
||||
"type": "toggle",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"key": "tweak.scroll_db_toolbars",
|
||||
"label": "horizontally scroll dbs with shift",
|
||||
"tooltip": "hold the shift key down while scrolling. up = left, down = right.",
|
||||
"type": "toggle",
|
||||
"value": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user