Add shared contract launcher link
This commit is contained in:
parent
d1632dc5d8
commit
0074f0e10c
2 changed files with 14 additions and 0 deletions
|
|
@ -673,6 +673,16 @@ function openRepo(): void {
|
||||||
window.location.assign("https://repo.andraxion.net/");
|
window.location.assign("https://repo.andraxion.net/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function openSharedContractNote(): void {
|
||||||
|
const noteUrl = new URL("./Future - Shared Contract.html", window.location.href);
|
||||||
|
const popup = window.open(noteUrl.toString(), "_blank", "noopener,noreferrer");
|
||||||
|
if (popup) {
|
||||||
|
popup.focus();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
window.location.assign(noteUrl.toString());
|
||||||
|
}
|
||||||
|
|
||||||
function openAdminPanelWindow(): boolean {
|
function openAdminPanelWindow(): boolean {
|
||||||
const nextUrl = new URL(window.location.href);
|
const nextUrl = new URL(window.location.href);
|
||||||
nextUrl.searchParams.set("admin", "requests");
|
nextUrl.searchParams.set("admin", "requests");
|
||||||
|
|
@ -1354,6 +1364,9 @@ function WorldshaperLauncher() {
|
||||||
<button type="button" className="launcher-primary-btn" onClick={() => void handleLaunch()} disabled={isBusy}>
|
<button type="button" className="launcher-primary-btn" onClick={() => void handleLaunch()} disabled={isBusy}>
|
||||||
Launch
|
Launch
|
||||||
</button>
|
</button>
|
||||||
|
<button type="button" className="launcher-secondary-btn" onClick={openSharedContractNote} disabled={isBusy}>
|
||||||
|
Shared Contract
|
||||||
|
</button>
|
||||||
<button type="button" className="launcher-secondary-btn" onClick={openRepo} disabled={isBusy}>
|
<button type="button" className="launcher-secondary-btn" onClick={openRepo} disabled={isBusy}>
|
||||||
Open Repo
|
Open Repo
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ export default defineConfig({
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
input: {
|
input: {
|
||||||
main: resolve(__dirname, "index.html"),
|
main: resolve(__dirname, "index.html"),
|
||||||
|
futureSharedContract: resolve(__dirname, "Future - Shared Contract.html"),
|
||||||
worldshaperStudio: resolve(__dirname, "worldshaper-studio.html"),
|
worldshaperStudio: resolve(__dirname, "worldshaper-studio.html"),
|
||||||
worldshaperHeightViewer: resolve(__dirname, "worldshaper-height-viewer.html"),
|
worldshaperHeightViewer: resolve(__dirname, "worldshaper-height-viewer.html"),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue