From 09955f19ae275eb804b7fe5719b00a10917b8172 Mon Sep 17 00:00:00 2001 From: Olli Meier Date: Thu, 3 Oct 2024 16:09:27 +0200 Subject: [PATCH 1/3] Remove "Extensions" menu, delete plugins view --- src/fontra/client/css/plugins.css | 12 ------------ src/fontra/views/editor/editor.js | 15 --------------- src/fontra/views/plugins/plugins.html | 21 --------------------- 3 files changed, 48 deletions(-) delete mode 100644 src/fontra/client/css/plugins.css delete mode 100644 src/fontra/views/plugins/plugins.html diff --git a/src/fontra/client/css/plugins.css b/src/fontra/client/css/plugins.css deleted file mode 100644 index c17f4f93e..000000000 --- a/src/fontra/client/css/plugins.css +++ /dev/null @@ -1,12 +0,0 @@ -.plugins-page { - padding: 2rem; - max-width: 50rem; -} - -#plugin-manager { - font-size: 1.1rem; -} - -.logo { - padding: 1rem; -} diff --git a/src/fontra/views/editor/editor.js b/src/fontra/views/editor/editor.js index 48f44d610..acabf0af6 100644 --- a/src/fontra/views/editor/editor.js +++ b/src/fontra/views/editor/editor.js @@ -802,21 +802,6 @@ export class EditorController { ]; }, }, - { - title: translate("menubar.extensions"), - enabled: () => true, - getItems: () => { - return [ - { - title: translate("menubar.extensions.plugin"), - enabled: () => true, - callback: () => { - window.open("/plugins/plugins.html"); - }, - }, - ]; - }, - }, { title: translate("menubar.help"), enabled: () => true, diff --git a/src/fontra/views/plugins/plugins.html b/src/fontra/views/plugins/plugins.html deleted file mode 100644 index 5b3cd92bf..000000000 --- a/src/fontra/views/plugins/plugins.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - Fontra Plugins - - - -
- - - -
- - From 547aa4143b84d214b579010d0fbe49a0341ac68b Mon Sep 17 00:00:00 2001 From: Olli Meier Date: Thu, 3 Oct 2024 16:12:15 +0200 Subject: [PATCH 2/3] Remove unused menubar.extensions.plugin from translation --- src/fontra/client/lang/en.json | 1 - src/fontra/client/lang/zh-CN.json | 1 - 2 files changed, 2 deletions(-) diff --git a/src/fontra/client/lang/en.json b/src/fontra/client/lang/en.json index 3c9f1e4c6..92fbcb36e 100644 --- a/src/fontra/client/lang/en.json +++ b/src/fontra/client/lang/en.json @@ -109,7 +109,6 @@ "language.zh-cn": "Simplified Chinese", "menubar.edit": "Edit", "menubar.extensions": "Extensions", - "menubar.extensions.plugin": "Plugin Manager", "menubar.file": "File", "menubar.file.new": "New...", "menubar.file.open": "Open...", diff --git a/src/fontra/client/lang/zh-CN.json b/src/fontra/client/lang/zh-CN.json index b0157dd24..931e5cadc 100644 --- a/src/fontra/client/lang/zh-CN.json +++ b/src/fontra/client/lang/zh-CN.json @@ -109,7 +109,6 @@ "language.zh-cn": "简体中文", "menubar.edit": "编辑", "menubar.extensions": "扩展", - "menubar.extensions.plugin": "插件管理器", "menubar.file": "文件", "menubar.file.new": "新建……", "menubar.file.open": "打开……", From f930fe4372ce069ef41c54c2c51141d32bfbad60 Mon Sep 17 00:00:00 2001 From: Olli Meier Date: Thu, 3 Oct 2024 16:27:30 +0200 Subject: [PATCH 3/3] Remove "plugins" from pyproject.toml --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e77b2db63..75ee81aaf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,7 +57,6 @@ fontra-workflow = "fontra.workflow.command:main" [project.entry-points."fontra.views"] editor = "fontra.views.editor" fontinfo = "fontra.views.fontinfo" -plugins = "fontra.views.plugins" applicationsettings = "fontra.views.applicationsettings"