Skip to content

Commit

Permalink
Merge pull request #91 from JerryI/updates
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
JerryI authored Mar 27, 2024
2 parents 7e601d5 + 3c97388 commit ea01651
Show file tree
Hide file tree
Showing 17 changed files with 1,545 additions and 52 deletions.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 5 additions & 1 deletion Components/FakeMenu.wlx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ With[{Layout =
<button data-name="docsx" class="block w-full hover:bg-teal-400 hover:text-white text-black group flex items-center px-1 my-1 py-1 rounded text-sm leading-4 dark:text-gray-400" role="menuitem" tabindex="-1">

Docs
</button>
</button>
<button data-name="browser" class="block w-full hover:bg-teal-400 hover:text-white text-black group flex items-center px-1 my-1 py-1 rounded text-sm leading-4 dark:text-gray-400" role="menuitem" tabindex="-1">

Open in browser
</button>
<button data-name="exit" class="block w-full hover:bg-teal-400 hover:text-white text-black group flex items-center px-1 my-1 py-1 rounded text-sm leading-4 dark:text-gray-400" role="menuitem" tabindex="-1">

Exit
Expand Down
Binary file added Electron/.DS_Store
Binary file not shown.
Binary file added Electron/build/.DS_Store
Binary file not shown.
Binary file added Electron/build/256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Electron/build/256x256_new.ico
Binary file not shown.
Binary file modified Electron/build/512x512.icns
Binary file not shown.
Binary file added Electron/build/512x512.ico
Binary file not shown.
Binary file modified Electron/build/512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,021 changes: 1,021 additions & 0 deletions Electron/build/512x512_new.ai

Large diffs are not rendered by default.

Binary file added Electron/build/512x512_new.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Electron/build/orig_new.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions Electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,13 @@ const buildMenu = (opts) => {
create_window({url: server.url.default('local') + `/` + encodeURIComponent(path.join(installationFolder, 'Examples')), title: 'Examples'});
}
},

{
label: 'Reopen in browser',
click: async(ev) => {
shell.openExternal(windows.focused.win.webContents.getURL());
}
},
{
label: 'Locate AppData',
click: async(ev) => {
Expand Down Expand Up @@ -501,6 +508,11 @@ callFakeMenu["new"] = async(ev) => {
windows.focused.call('newnotebook', true);
}

callFakeMenu["browser"] = async(ev) => {

shell.openExternal(windows.focused.win.webContents.getURL());
}

callFakeMenu["abort"] = () => {
windows.focused.call('abort', true);
}
Expand Down
Binary file modified Examples/.DS_Store
Binary file not shown.
453 changes: 453 additions & 0 deletions Examples/Mixing languages/Javascript Integration.wln

Large diffs are not rendered by default.

103 changes: 53 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
},
"win": {
"target": "NSIS",
"icon": "./Electron/build/256x256.ico"
"icon": "./Electron/build/512x512.ico"
},
"files": [
"./Electron/main.js",
Expand Down

0 comments on commit ea01651

Please sign in to comment.