mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-10-11 20:19:51 +08:00
fix(mcp-server): bundle open.html and js/open.js, the picker of Open Library from > Browser
This commit is contained in:
@@ -31,8 +31,10 @@ js/app.min.js
|
||||
js/bootstrap.js
|
||||
js/extensions.min.js
|
||||
js/main.js
|
||||
js/open.js
|
||||
js/shapes-14-6-5.min.js
|
||||
js/stencils.min.js
|
||||
math4/es5/drawio-mathjax.min.js
|
||||
mxgraph/images/maximize.gif
|
||||
open.html
|
||||
shortcuts.svg
|
||||
|
||||
@@ -327,6 +327,13 @@ async function drive(browser, ui, full) {
|
||||
}
|
||||
console.log(` ${opened} of ${actions.length} actions opened a dialog`)
|
||||
|
||||
// File > Open Library from > Browser (libraries=1): the picker is an
|
||||
// iframe on open.html, which loads js/open.js
|
||||
await frame.evaluate(() => window.__ui.pickLibrary(window.App.MODE_BROWSER))
|
||||
await wait(page, 1000)
|
||||
report("library picker")
|
||||
await closeAll()
|
||||
|
||||
// Menus: the visible menubar items, the toolbar buttons that open a menu
|
||||
// in the other themes, and every menu rendered with its submenus
|
||||
const menubarItems = frame.locator(".geMenubar .geItem:visible")
|
||||
|
||||
Reference in New Issue
Block a user