Skip to content

Commit

Permalink
upd: remove drawio implement
Browse files Browse the repository at this point in the history
  • Loading branch information
purocean committed May 8, 2022
1 parent 4d786ee commit f0bd31e
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 505 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ nohup.out
node_modules
dist
src/renderer/public/vs
src/renderer/public/drawio
src/renderer/public/embed
out
bin
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "drawio"]
path = drawio
url = https://github.com/jgraph/drawio.git
1 change: 0 additions & 1 deletion drawio
Submodule drawio deleted from c03f82
1 change: 1 addition & 0 deletions src/renderer/context/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const ctx = {
showPremium: showPremium,
showExtensionManager: extension.showManager,
getExtensionLoadStatus: extension.getLoadStatus,
getExtensionInitialized: extension.getInitialized,
version: __APP_VERSION__,
}

Expand Down
7 changes: 7 additions & 0 deletions src/renderer/others/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@ async function load (extension: Extension) {
}
}

let initialized = false

export function getInitialized () {
return initialized
}

/**
* Initialization extension system
*/
Expand All @@ -258,5 +264,6 @@ export async function init () {
await load(extension)
}

initialized = true
triggerHook('EXTENSION_READY', { extensions })
}
Loading

1 comment on commit f0bd31e

@vercel
Copy link

@vercel vercel bot commented on f0bd31e May 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.