Commit Graph

73 Commits

Author SHA1 Message Date
Gabriel Horner
0c570a0300 Fix more bugs, move plugins.edn and add enabled
- Move plugins.edn to config/ as it is user configuration
- Add plugin-config enabled flag and moved plugin enabled
- Fixed bugs with manual install
- Refactored plugin-config component to have its own listener
- Split out shared plugin fns to a common ns - plugin-config shouldn't
  need to depend on a component like plugin-handler
- Bump rewrite-edn to include upstream fix and avoid tons of cljs
  warnings with earlier versions
- Fix react warning introduced outside this PR in ui/icon
2022-10-17 10:13:27 -04:00
Gabriel Horner
c8cda90373 Fix plugin install bugs and add plugin-config tests
- Add validation for plugins.edn with malli
- Add bb task using malli schema
- Add first async test that interacts with frontend.fs
- Add test helpers to make future async testing easier
2022-10-17 10:13:27 -04:00
Gabriel Horner
bf79db9d54 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
2022-10-17 10:13:27 -04:00
Gabriel Horner
da6c617a5b First pass at writing plugins.edn on install/update/uninstall 2022-10-17 10:13:27 -04:00
Konstantinos
6007d6061f Enhance: Color system (#6821)
* refactor: remove redundant utility classes

* chore: expose tailwind colors to css vars

* refactor: introduce error/warning/success colors

* fix: move tailwind utilities import

* fix: extend tailwind font sizes

* fix: exclude color classes from purge

* refactor: admonition component

* fix: admonition warning color

* fix: notification icon color

* fix: capitalize icon title

* chore: remove caution color

* feat: highlighting system

* chore: add color title and remove comment

* chore: add color translations

* chore: add missing bg classes

* refactor: highlight system

* fix: color id

* fix: bg color value

* fix: pdf highlight colors

* fix: resolve conflicts

* fix: class directive typo
2022-10-07 11:54:06 +08:00
charlie
424cc3c3ee fix(pdf): calculate highlight selection async 2022-09-21 14:49:20 +08:00
charlie
f8cc6378c3 improve(ui): update built-in icon mode 2022-09-21 14:49:20 +08:00
Andelf
00bc964a9c fix(dev): avoid react same key warnings 2022-09-08 12:35:13 +08:00
charlie
b85937ffbf fix: typos 2022-08-26 18:48:00 +08:00
charlie
04e04e4005 improve(plugin): plugin perf tips for initial loader 2022-08-26 18:48:00 +08:00
yoyurec
722d858158 feat(settings): add plugin pid to buttons and panel 2022-08-16 15:40:40 +08:00
lecoan
0c563facad improve UX design: click the plugin title to open README (#6286)
* improve UX design: click the plugin title to open readme

* improve UX design: let the icon clickable

* improve UX design: rename the function from open-plugin-readme! to get-open-plugin-readme-handler
2022-08-06 21:11:19 +08:00
charlie
6facd22ea0 fix(plugin): occasional memory leak when dynamic slot ui with provide ui 2022-07-14 11:09:10 +08:00
charlie
cc04718576 fix(plugin): occasional memory leak when dynamic slot ui with provide ui 2022-07-14 11:09:10 +08:00
charlie
e008766d2b fix(ui): remove plugin ui items manager from pagebar 2022-07-06 20:17:31 +08:00
Charlie
7c4d7cd61a improve(plugin): fetch marketplace plugins list via system proxy if no proxy configured. (#5716) 2022-06-20 10:33:35 +08:00
charlie
5b14b6f50f fix(plugin): repeat registration key to plugin ui items 2022-06-20 10:33:02 +08:00
charlie
6029a2998f improve(plugin): pin or unpin for plugin ui button from toolbar 2022-06-16 01:43:49 +08:00
charlie
5e67a0f652 improve(ui): add cursor pointer to plugin thumb link element 2022-06-16 01:43:49 +08:00
charlie
de9ab5ed44 enhance(plugin): change marketplace metadata requests to node fetch client 2022-06-13 15:23:07 +08:00
Yue Yang
a6f8584fac fix: move key 2022-05-26 15:46:36 +08:00
charlie
2bd87d5d91 fix(plugin): page crash when checking plugin updates with some network issues #5222 2022-05-24 23:32:31 +08:00
Gabriel Horner
fec0b755a8 Upgrade cljs + shadow
- Upgraded shadow to keep goog compiler versions the same
- Converted some safe-parse-int's to parse-long
- Converted some safe-parse-float's to parse-double
- Simplified impl of safe-parse-* fns
2022-05-19 14:58:33 +08:00
Yue Yang
17b91e51c3 feat: custom theme switching (#4741)
* feat: custom theme switching

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* chore: handle reset-custom-theme

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* fix: unregisterTheme

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* fix: format with ts-standard

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* chore: reset extra formats

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* chore: simplify array types

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* Update lsplugin.core.js

* fix: sync upstream

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* chore: add `no mode` themes into panel

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* fix: ci

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* fix: remove first <hr />

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* fix: lockfile

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* chore: update

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* chore: set-theme! => set-theme-mode!

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* fix: selectTheme

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* perf: reduce unnecessary logic

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
2022-05-19 10:18:43 +08:00
charlie
b29e9cfce2 fix(lint): large vars 2022-05-12 08:26:22 +08:00
charlie
da4d507bcc enhance(ux): test url for proxy settings 2022-05-12 08:26:22 +08:00
charlie
8fcf5b5d60 enhance(ui): show network proxy hints on plugins page if it's settled 2022-05-12 08:26:22 +08:00
Charlie
79bc33e1e3 Enhance/more ns plugin api (#4828)
* improve(plugin): WIP add settings schema

* improve(plugin): add identity for settings modal

* improve(plugin): WIP add settings input

* fix(ui): scrollbar overlay of modal panel content

* improve(plugin): WIP add more render types of setting item

* improve(plugin): WIP polish settings items

* improve(plugin): WIP settings list of plugins

* improve(plugin): more settings types & polish releated ui

* fix(plugin): sometimes disable plugin not work

* improve(plugin): polish ui of plugin settings

* fix(dev): warning of lint

* improve(plugin): add api of settings changed

* chore: build libs core

* fix(ui): width of settings panel wrap

* improve(plugin): separate layouts data from settings aio file

* imporve(plugin): container size of single plugin settings

* fix: add missing state

* improve(plugin): add Git ns

* improve(plugin): git related api

* improve(api): type of git result

* chore: build libs core

* fix(dev): kondo lint

* fix(plugin): use cdn sdk when js entry

* chore: build libs core

* fix(plugin): env condition

* improve(plugin): add UI ns

* fix(api): arguments of datascript query

* enhance(api): manageable message instance of UI tools

* enhance(api): WIP add experiments api

* enhance(api): WIP add resources state of plugin

* improve(plugin): add status of loading script resources

* improve(plugin): more opts for script loader

* improve(plugin): WIP add fenced code renderer hook

* improve(plugin): fenced code renderer hook

* fix(plugin): resource root path of plugin fs location

* imporve(plugin): support local files for loading scripts

* improve(plugin): types of expirements api

* fix: typo of class

* enhance(api): add namespace related apis

* enhance(api): add linked refrences related apis

* enhance(plugin): add sample links to related api comments

* improve(plugin): add db changed hook & optimize strategy of caller for hooks

* improve(plugin): compatible commands registration for old sdk

* improve(plugin): collect user sdk version for plugin local

* improve(plugin): add internal callable apis for user sdk

* chore(plugin): missing files & bump libs version

* improve(plugin): compatiable for old sdk about hook messaging optimization

* improve(plugin): db hook optimization for old sdk

* enhance(ux): auto focus searchbar when open plugins list

* improve(plugin): api of a hook from specific block changed event

* improve(plugin): api of db block change hook

* improve(plugin): add show bracket user config of api

* improve(plugin): api of db block change hook

* fix(api): toggle collapsed of block

* improve(api): try to init grpah with git before exec git commands

* improve(plugin): attributes of sandbox container

* improve(dev): support register command with keybinding

* improve(plugin): add api of register shortcut command

* fix(plugin): reubild slash commands when new command registration

* fix(dev): lint

* improve(dev): lint script of libs codebase

* chore(dev): remove useless codes

* improve(plugin):sanitize path string of plugin repo value

* fix(plugin): rebuild commands list when unregister a plugin

* fix(ui): overflow width of query result table

* chore: rebuild libs core

* improve(plugin): add assets related apis

* chore: rebuild libs core

* improve(plugin): support replace state of into block in page api

* improve(plugin): prepend/append child block in page

* improve(plugin): polished exceptions message of plugin update/install

* fix(plugin): update settings within gui

* improve(ux): debounce change event of input for plugin settings gui

* chore: rebuild libs core

* enhance(plugin): catch exception of hook plugin
2022-04-21 18:43:16 +08:00
Tienson Qin
bcffcd7661 Add large vars hint 2022-04-02 20:05:58 +08:00
charlie
8b8967e85a enhance(ux): filter of marketplace plugins list 2022-04-02 20:05:58 +08:00
Charlie
24b0236b7d Enhance/Settings UI of plugins (#4035)
more settings types & polish releated ui
2022-02-17 10:00:53 +08:00
Gabriel Horner
c6d03b67ab Merge branch 'master' into dev/var-sizes-linter 2022-02-08 12:02:39 -05:00
Tienson Qin
982eba9396 refactor: remove i18n tongue context 2022-02-08 17:31:32 +08:00
Gabriel Horner
e81678fc69 Mark most vars as cleanup-todo
Fixed a few that I knew how to QA and were low risk
2022-02-04 16:57:49 -05:00
Gabriel Horner
b7b3375f62 Lint extensions/ and wrap up hanging frontend dirs
fs/, format/ and logseq/ also added to linting by adding todos for later
inspection
2022-01-12 16:38:17 -05:00
Gabriel Horner
89bef5b26e Merge remote-tracking branch 'origin/master' into test/add-clj-kondo-part-two 2022-01-12 15:38:57 -05:00
Gabriel Horner
f1d15b0e05 Lint components and address comments in review
Start using :clj-kondo/ignore as lint violations that need to be
revisited. They may side effect and should be removed with better
understanding of their context
2022-01-12 15:32:47 -05:00
charlie
53a8c8b96f fix(marketplace): download updates state when network issues 2022-01-12 23:31:22 +08:00
charlie
4bcc4f4b86 improve(marketplace): change sort-by to filter behavior from installed plugins 2022-01-12 23:31:22 +08:00
charlie
de1ea231e3 feat(marketplace): download updates with one click 2022-01-12 23:31:22 +08:00
charlie
9a7698c966 improve(marketplace): add indicator for sorter 2022-01-12 23:31:22 +08:00
charlie
f95ba84204 fix(marketplace): sort by title 2022-01-12 23:31:22 +08:00
charlie
1eecc3b3b6 improve(marketplace): more filter for installed plugins 2022-01-12 23:31:22 +08:00
Charlie
3ea7635daa Enhance/marketplace (#3686)
Marketplace enhancement

Nested modal support
2022-01-07 19:00:35 +08:00
charlie
e63d939c77 improve(plugin): force market flag for plugin card item 2021-12-16 19:23:43 +08:00
Peng Xiao
6fa50fd454 fix: custom macro click issue 2021-11-23 17:19:10 +08:00
charlie
82a522fb05 fix(marketplace): exclude themes for plugins tab 2021-11-22 13:56:36 +08:00
charlie
0f73f5ff2e fix(ui): scrolling not work of main container from some plugins theme 2021-11-22 13:56:36 +08:00
charlie
5a3e93f930 improve(plugin): reset option for slot container 2021-11-16 12:02:18 +08:00
Tienson Qin
179a8de37e enhance: reload commands when toggle any plugin 2021-11-04 17:55:41 +08:00