From bb494b7ba3f1bb98233ae0c44b908283af9b6e91 Mon Sep 17 00:00:00 2001 From: Antonio Date: Sat, 6 Jan 2024 13:39:04 +0200 Subject: [PATCH] style: move inline styles to css file --- main.ts | 4 +--- manifest.json | 2 +- package.json | 2 +- src/settings.ts | 3 --- styles.css | 13 +++++-------- versions.json | 3 ++- 6 files changed, 10 insertions(+), 17 deletions(-) diff --git a/main.ts b/main.ts index 3e9b426..49fdce0 100644 --- a/main.ts +++ b/main.ts @@ -17,7 +17,7 @@ export default class IBookHighlightsPlugin extends Plugin { async onload() { await this.loadSettings(); - const ribbonIconEl = this.addRibbonIcon('book-open', pluginName, async () => { + this.addRibbonIcon('book-open', pluginName, async () => { await this.importHighlights().then(() => { new Notice('Apple Books highlights imported successfully'); }).catch((error) => { @@ -26,8 +26,6 @@ export default class IBookHighlightsPlugin extends Plugin { }); }); - ribbonIconEl.addClass('my-plugin-ribbon-class'); - this.addSettingTab(new IBookHighlightsSettingTab(this.app, this)); this.addCommand({ diff --git a/manifest.json b/manifest.json index 9c0a99c..1146e7d 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "apple-books-import-highlights", "name": "Apple Books - Import Highlights", - "version": "1.0.0", + "version": "1.0.1", "minAppVersion": "0.15.0", "description": "Import your Apple Books highlights and notes to Obsidian.", "author": "bandantonio", diff --git a/package.json b/package.json index 8b9b490..878c8e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-apple-books-highlights-plugin", - "version": "1.0.0", + "version": "1.0.1", "description": "Import highlights and notes from your Apple Books to Obsidian", "main": "main.js", "scripts": { diff --git a/src/settings.ts b/src/settings.ts index 66be2b8..d65c55f 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -49,9 +49,6 @@ class IBookHighlightsSettingTab extends PluginSettingTab { .setDesc('Template for highlight files') .setClass("ibooks-highlights-template") .addTextArea((text) => { - text.inputEl.style.width = '100%'; - text.inputEl.style.height = '300px'; - text.inputEl.style.overflow = 'auto'; text .setPlaceholder('Template') .setValue(this.plugin.settings.template) diff --git a/styles.css b/styles.css index 71cc60f..472b5ed 100644 --- a/styles.css +++ b/styles.css @@ -1,8 +1,5 @@ -/* - -This CSS file will be included with your plugin, and -available in the app when your plugin is enabled. - -If your plugin does not need CSS, delete this file. - -*/ +.ibooks-highlights-template > .setting-item-control > textarea { + width: 100%; + height: 350px; + overflow: auto; +} \ No newline at end of file diff --git a/versions.json b/versions.json index 26382a1..189c17e 100644 --- a/versions.json +++ b/versions.json @@ -1,3 +1,4 @@ { - "1.0.0": "0.15.0" + "1.0.0": "0.15.0", + "1.0.1": "0.15.0" }