From 573c5832807ed92488c3f7ec4dcc46bc0d91b256 Mon Sep 17 00:00:00 2001 From: Chetachi Ezikeuzor <79069364+chetachiezikeuzor@users.noreply.github.com> Date: Wed, 31 Aug 2022 13:44:26 -0500 Subject: [PATCH] updated: Bumped version --- .gitignore | 3 ++- README.md | 6 +++--- manifest.json | 2 +- package-lock.json | 28 ++++++++++++++-------------- package.json | 4 ++-- src/plugin/contextMenu.ts | 2 +- src/plugin/main.ts | 2 +- src/settings/settingsTab.ts | 2 +- styles.css | 2 +- 9 files changed, 26 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index b2bcccd..3718559 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,5 @@ data.json .history -.DS_Store \ No newline at end of file +.DS_Store +.DS_Store diff --git a/README.md b/README.md index d1a2f96..cc08fec 100644 --- a/README.md +++ b/README.md @@ -33,13 +33,13 @@ Obsidian app version 12.8 adds a powerful custom context menu for easier note-ta -You can also use the new command added in version [1.0.0]() to open your highlighlighter menu. Now, you can open your highlighting menu with a hotkey of your choosing. You will be able to add hotkeys to each individual highlighter color from your highlighter menu, as the plugin creates command for each highlighter as well. +You can also use the new command added in version [1.0.0]() to open your highlighlighter menu. Now, you can open your highlighting menu with a hotkey of your choosing. You will be able to add hotkeys to each individual highlighter color from your highlighter menu, as the plugin creates a command for each highlighter as well. -Version [1.1.2]() add the ability to choose between inline CSS and CSS classes. This will create a new stylesheet that will how all of your highlight colors. Each class is named `hltr-${highlight_title_here}` and are generated from the titles by which you have named your highlights. Although inline CSS is highly encouraged, CSS classes will make your highlights much more flexible and easier to customize. +Version [1.1.2]() adds the ability to choose between inline CSS and CSS classes. This will create a new stylesheet that will how all of your highlight colors. Each class is named `hltr-${highlight_title_here}` and are generated from the titles by which you have named your highlights. Although inline CSS is highly encouraged, CSS classes will make your highlights much more flexible and easier to customize. ## Disclaimer @@ -47,7 +47,7 @@ The plugin component will not work with [cMenu plugin](https://github.com/chetac ## Installation -This plugin is not yet available in the Obsidian community plugin store. You can install it from there once it has been accepted. For a manual installation, you can download the necessary files and place them within your plugins folder. +This plugin is available in the Obsidian community plugin store. You can install it from there. For a manual installation, you can download the necessary files and place them within your plugins folder. --- diff --git a/manifest.json b/manifest.json index 65c4b67..2dc93f2 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "highlightr-plugin", "name": "Highlightr", - "version": "1.2.1", + "version": "1.2.2", "minAppVersion": "0.12.8", "description": "A minimal and aesthetically pleasing highlighting menu that makes color-coded highlighting much easier with a configurable assortment of highlight colors 🎨.", "author": "chetachi", diff --git a/package-lock.json b/package-lock.json index 9f63b46..5a30e39 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,14 +15,14 @@ "react": "^17.0.2", "rollup-plugin-copy": "^3.4.0", "rollup-plugin-css-only": "^3.1.0", - "sortablejs": "^1.14.0" + "sortablejs": "^1.15.0" }, "devDependencies": { "@rollup/plugin-commonjs": "^18.0.0", "@rollup/plugin-node-resolve": "^11.2.1", "@rollup/plugin-typescript": "^8.2.1", "@types/node": "^14.14.37", - "@types/sortablejs": "^1.10.7", + "@types/sortablejs": "^1.13.0", "obsidian": "^0.16.0", "rollup": "^2.32.1", "tslib": "^2.2.0", @@ -223,9 +223,9 @@ } }, "node_modules/@types/sortablejs": { - "version": "1.10.7", - "resolved": "https://registry.npmjs.org/@types/sortablejs/-/sortablejs-1.10.7.tgz", - "integrity": "sha512-lGCwwgpj8zW/ZmaueoPVSP7nnc9t8VqVWXS+ASX3eoUUENmiazv0rlXyTRludXzuX9ALjPsMqBu85TgJNWbTOg==", + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@types/sortablejs/-/sortablejs-1.13.0.tgz", + "integrity": "sha512-C3064MH72iEfeGCYEGCt7FCxXoAXaMPG0QPnstcxvPmbl54erpISu06d++FY37Smja64iWy5L8wOyHHBghWbJQ==", "dev": true }, "node_modules/@types/tern": { @@ -849,9 +849,9 @@ } }, "node_modules/sortablejs": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.14.0.tgz", - "integrity": "sha512-pBXvQCs5/33fdN1/39pPL0NZF20LeRbLQ5jtnheIPN9JQAaufGjKdWduZn4U7wCtVuzKhmRkI0DFYHYRbB2H1w==" + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.15.0.tgz", + "integrity": "sha512-bv9qgVMjUMf89wAvM6AxVvS/4MX3sPeN0+agqShejLU5z5GX4C75ow1O2e5k4L6XItUyAK3gH6AxSbXrOM5e8w==" }, "node_modules/sourcemap-codec": { "version": "1.4.8", @@ -1079,9 +1079,9 @@ } }, "@types/sortablejs": { - "version": "1.10.7", - "resolved": "https://registry.npmjs.org/@types/sortablejs/-/sortablejs-1.10.7.tgz", - "integrity": "sha512-lGCwwgpj8zW/ZmaueoPVSP7nnc9t8VqVWXS+ASX3eoUUENmiazv0rlXyTRludXzuX9ALjPsMqBu85TgJNWbTOg==", + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@types/sortablejs/-/sortablejs-1.13.0.tgz", + "integrity": "sha512-C3064MH72iEfeGCYEGCt7FCxXoAXaMPG0QPnstcxvPmbl54erpISu06d++FY37Smja64iWy5L8wOyHHBghWbJQ==", "dev": true }, "@types/tern": { @@ -1538,9 +1538,9 @@ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" }, "sortablejs": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.14.0.tgz", - "integrity": "sha512-pBXvQCs5/33fdN1/39pPL0NZF20LeRbLQ5jtnheIPN9JQAaufGjKdWduZn4U7wCtVuzKhmRkI0DFYHYRbB2H1w==" + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.15.0.tgz", + "integrity": "sha512-bv9qgVMjUMf89wAvM6AxVvS/4MX3sPeN0+agqShejLU5z5GX4C75ow1O2e5k4L6XItUyAK3gH6AxSbXrOM5e8w==" }, "sourcemap-codec": { "version": "1.4.8", diff --git a/package.json b/package.json index 1e685c0..771862d 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "@rollup/plugin-node-resolve": "^11.2.1", "@rollup/plugin-typescript": "^8.2.1", "@types/node": "^14.14.37", - "@types/sortablejs": "^1.10.7", + "@types/sortablejs": "^1.13.0", "obsidian": "^0.16.0", "rollup": "^2.32.1", "tslib": "^2.2.0", @@ -28,6 +28,6 @@ "react": "^17.0.2", "rollup-plugin-copy": "^3.4.0", "rollup-plugin-css-only": "^3.1.0", - "sortablejs": "^1.14.0" + "sortablejs": "^1.15.0" } } diff --git a/src/plugin/contextMenu.ts b/src/plugin/contextMenu.ts index c7dffab..5593b76 100644 --- a/src/plugin/contextMenu.ts +++ b/src/plugin/contextMenu.ts @@ -19,7 +19,7 @@ export default function contextMenu( item .setTitle("Highlight") .setIcon("highlightr-pen") - .onClick(async (_) => { + .onClick(async (e) => { highlighterMenu(app, settings, editor); }); }); diff --git a/src/plugin/main.ts b/src/plugin/main.ts index 22d03dc..c69aa5a 100644 --- a/src/plugin/main.ts +++ b/src/plugin/main.ts @@ -18,7 +18,7 @@ export default class HighlightrPlugin extends Plugin { settings: HighlightrSettings; async onload() { - console.log("Highlightr v" + this.manifest.version + " loaded"); + console.log(`Highlightr v${this.manifest.version} loaded`); addIcons(); await this.loadSettings(); diff --git a/src/settings/settingsTab.ts b/src/settings/settingsTab.ts index 3c154f0..010ad1c 100644 --- a/src/settings/settingsTab.ts +++ b/src/settings/settingsTab.ts @@ -229,7 +229,7 @@ export class HighlightrSettingTab extends PluginSettingTab { forceFallback: true, fallbackClass: "highlighter-sortable-fallback", easing: "cubic-bezier(1, 0, 0, 1)", - onSort: (command) => { + onSort: (command: { oldIndex: number; newIndex: number }) => { const arrayResult = this.plugin.settings.highlighterOrder; const [removed] = arrayResult.splice(command.oldIndex, 1); arrayResult.splice(command.newIndex, 0, removed); diff --git a/styles.css b/styles.css index 254b819..a779139 100644 --- a/styles.css +++ b/styles.css @@ -205,7 +205,7 @@ details[open] summary.highlight-summary::before { .menu.highlighterContainer .menu-item .menu-item-icon { display: inline-block; - width: 28px; + width: 25px; position: relative; top: 2px; }