Install and uninstall plugins from file

Change plugins.edn to key off id as it is unique and all operations
work off of it.
Note: there are still some bugs with certain plugin installs
This commit is contained in:
Gabriel Horner
2022-10-10 11:43:39 -04:00
parent da6c617a5b
commit bf79db9d54
8 changed files with 191 additions and 64 deletions

View File

@@ -212,7 +212,11 @@
(p/then
(js/LSPluginCore.register (bean/->js {:key id :url dst}))
(fn [] (when theme (js/setTimeout #(select-a-plugin-theme id) 300))))
(plugin-config/add-or-update-plugin name (:installed-version payload))
(plugin-config/add-or-update-plugin
{:id id
:name (:name payload)
:version (:installed-version payload)
:repo (:repo payload)})
(notification/show!
(str (t :plugin/installed) (t :plugins) ": " name) :success)))))