From e022492857f77f6472aba5e9c2e019e2736a4bad Mon Sep 17 00:00:00 2001 From: Moy Date: Sun, 23 Mar 2025 00:29:45 +0800 Subject: [PATCH] Update the settings interface to comply with plugin development standards --- manifest.json | 2 +- src/i18n.ts | 5 +---- src/main.ts | 3 --- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/manifest.json b/manifest.json index 78610f6..c9adeca 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "easy-copy", "name": "Easy Copy", - "version": "1.0.0", + "version": "1.0.2", "minAppVersion": "0.15.0", "description": "Easily copy the text inside inline code, or quickly obtain a elegant link to heading.", "author": "Moy", diff --git a/src/i18n.ts b/src/i18n.ts index 734670f..f512858 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -8,7 +8,7 @@ export enum Language { // 定义翻译键值类型 export type TranslationKey = | 'no-file' | 'no-content' | 'inline-code-copied' | 'block-id-copied' - | 'note-link-copied' | 'heading-copied' | 'general' | 'format' + | 'note-link-copied' | 'heading-copied' | 'format' | 'add-to-menu' | 'add-to-menu-desc' | 'show-notice' | 'show-notice-desc' | 'use-heading-as-display' | 'use-heading-as-display-desc' | 'link-format' | 'link-format-desc' | 'markdown-link' | 'wiki-link' | 'contextual-copy' @@ -33,7 +33,6 @@ export const translations: Record> = { 'italic-copied': 'Italic text copied!', // 设置界面 - 'general': 'General', 'format': 'Format', 'target': 'Target', 'add-to-menu': 'Add to menu', @@ -73,7 +72,6 @@ export const translations: Record> = { 'italic-copied': '斜体文本已复制!', // 设置界面 - 'general': '常规', 'format': '格式', 'target': '复制对象', 'add-to-menu': '添加到菜单', @@ -113,7 +111,6 @@ export const translations: Record> = { 'italic-copied': '斜體文本已複製!', // 設置界面 - 'general': '常規', 'format': '格式', 'target': '複製對象', 'add-to-menu': '添加到菜單', diff --git a/src/main.ts b/src/main.ts index 1e0cc8f..c5325a6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -385,9 +385,6 @@ class EasyCopySettingTab extends PluginSettingTab { containerEl.empty(); - // 加一个二级标题 - containerEl.createEl('h2', {text: this.plugin.t('general')}); - new Setting(containerEl) .setName(this.plugin.t('add-to-menu')) .setDesc(this.plugin.t('add-to-menu-desc'))