-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added onboarding and fixed mods folder wrong location
- Loading branch information
1 parent
0763fa2
commit 17f739d
Showing
5 changed files
with
96 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,6 +136,5 @@ | |
panel={panelOpts} | ||
on:settingsChanged={(e) => { | ||
settingsChanged(e.detail); | ||
console.log(e.detail); | ||
}} | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,48 @@ | ||
<script lang="ts"> | ||
import { loadSettings, saveSettings } from '../ts/settings'; | ||
import * as AlertDialog from '$lib/components/ui/alert-dialog/index.js'; | ||
import { Button } from '$lib/components/ui/button/index.js'; | ||
import { os } from '@neutralinojs/lib'; | ||
</script> | ||
let settings = null; | ||
let show = false; | ||
loadSettings('onboarding').then((s) => { | ||
if (s) { | ||
settings = s; | ||
if (s.show) { | ||
show = true | ||
} | ||
} else { | ||
saveSettings("onboarding",{show: true}) | ||
show = true | ||
console.log(s) | ||
} | ||
}); | ||
</script> | ||
|
||
<AlertDialog.Root bind:open={show}> | ||
<AlertDialog.Content> | ||
<AlertDialog.Header> | ||
<AlertDialog.Title>Welcome to AppleBlox</AlertDialog.Title> | ||
<AlertDialog.Description> | ||
<p>We are thrilled to have you here! For starters, you should check out the <strong>Integrations & FastFlags </strong>tab.</p> | ||
<p>If you want to add <strong>Mods</strong>, you should join the Bloxstrap Discord server from the mods tab.</p> | ||
<br /> | ||
<p> | ||
🌟 Don't forget to leave a <strong>Star</strong> on the <a href="https://github.com/OrigamingWasTaken/appleblox">GitHub repo</a> and join the | ||
<a href="https://appleblox.com/discord">Discord Server</a>! | ||
</p> | ||
<p>Have fun :D</p> | ||
</AlertDialog.Description> | ||
</AlertDialog.Header> | ||
<AlertDialog.Footer> | ||
<AlertDialog.Cancel>Read later</AlertDialog.Cancel> | ||
<AlertDialog.Action | ||
on:click={() => { | ||
saveSettings('onboarding', { show: false }); | ||
show = false; | ||
}}>Continue</AlertDialog.Action | ||
> | ||
</AlertDialog.Footer> | ||
</AlertDialog.Content> | ||
</AlertDialog.Root> |