logseq/libs
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
..
src feat: custom theme switching (#4741) 2022-05-19 10:18:43 +08:00
.npmignore feat(plugin): merge implementation 2021-05-08 20:32:20 +08:00
.prettierrc.js Enhance/more ns plugin api (#4828) 2022-04-21 18:43:16 +08:00
README.md chore(plugin): build libs core & update README.md 2022-04-29 18:51:25 +08:00
index.d.ts feat(plugin): merge implementation 2021-05-08 20:32:20 +08:00
package.json chore(plugin): bump libs minor version 2022-04-29 18:51:25 +08:00
tsconfig.json improve(plugin): simplify caller 2021-08-23 18:19:06 +08:00
webpack.config.core.js Enhance/plugin apis (#3355) 2021-12-08 10:43:58 +08:00
webpack.config.js Enhance/more ns plugin api (#4828) 2022-04-21 18:43:16 +08:00
yarn.lock Enhance/more ns plugin api (#4828) 2022-04-21 18:43:16 +08:00

README.md

@logseq/libs

🚀 Logseq SDK libraries.

Installation

yarn add @logseq/libs

Usage

Load logseq plugin sdk as global namespace

import "@logseq/libs"

APIs & Samples

Community templates

  1. https://github.com/pengx17/logseq-plugin-template-react
  2. https://github.com/pengx17/logseq-plugin-template-svelte
  3. https://github.com/tiensonqin/logseq-cljs-playground

Feedback

If you have any feedback or encounter any issues, feel free to join Logseq's discord group. https://discord.gg/KpN4eHY