mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
🎨 Kernel API supports load plugins https://github.com/siyuan-note/siyuan/issues/8044
This commit is contained in:
parent
9d1a04a12a
commit
75c9dcf407
4 changed files with 163 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ const runCode = (code: string, sourceURL: string) => {
|
|||
}
|
||||
|
||||
export const loadPlugins = (app: App) => {
|
||||
fetchPost("/api/plugin/loadPlugins", {}, response => {
|
||||
fetchPost("/api/petal/loadPetals", {}, response => {
|
||||
let css = "";
|
||||
response.data.forEach((item: { id: string, name: string, jsCode: string, cssCode: string, lang: IObject }) => {
|
||||
const moduleObj = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue