-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
239 additions
and
9 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
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,15 +1,29 @@ | ||
import { ipcMain, BrowserWindow, app as ElectronApp } from 'electron'; | ||
import { | ||
ipcMain, | ||
BrowserWindow, | ||
app as ElectronApp, | ||
shell as ElectronShell, | ||
} from 'electron'; | ||
import log from 'electron-log'; | ||
// import path from 'path'; | ||
// log.info('IPC Listener'); | ||
let browserWindow: BrowserWindow; | ||
let app: typeof ElectronApp; | ||
let shell: typeof ElectronShell; | ||
|
||
export default class Listeners { | ||
constructor(window: BrowserWindow, electronApp: typeof ElectronApp) { | ||
constructor( | ||
window: BrowserWindow, | ||
electronApp: typeof ElectronApp, | ||
electronShell: typeof ElectronShell | ||
) { | ||
browserWindow = window; | ||
app = electronApp; | ||
shell = electronShell; | ||
} | ||
} | ||
|
||
ipcMain.handle('getAppPath', () => app.getAppPath()); | ||
ipcMain.handle('getAppDataPath', () => app.getPath('appData')); | ||
ipcMain.handle('openInBrowser', (_event, url) => shell.openExternal(url)); | ||
ipcMain.handle('quit', () => app.quit()); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<template> | ||
<img :src="imagePath" alt="img" /> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
item: String, | ||
}, | ||
data() { | ||
return { | ||
imagePath: null, | ||
}; | ||
}, | ||
async mounted() { | ||
this.imagePath = await import( | ||
// `src/assets/images/icons/socials/${this.item}-purple.png` | ||
`../assets/images/${this.item}.png` | ||
); | ||
}, | ||
}; | ||
</script> |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<template> | ||
<div class="border-body"> | ||
<q-layout view="hHh lpR fFf"> | ||
<q-header> | ||
<div class="border-header"> | ||
<div class="header"> | ||
<img src="../assets/images/title-img.png" alt="" /> | ||
</div> | ||
</div> | ||
</q-header> | ||
|
||
<q-page-container> | ||
<div class="body"> | ||
<hr /> | ||
<p> | ||
Thanks for downloading Drehmal! To get started, open the Minecraft | ||
launcher and select the Drehmal Apotheosis profile, then hit play. | ||
</p> | ||
<img | ||
src="../assets/images/transparent-logo.png" | ||
style="max-width: 224px" | ||
/> | ||
<!-- <p> | ||
Next steps: | ||
<q-list bordered separator dense padding> | ||
<q-item>Open the Minecraft Launcher</q-item> | ||
<q-item>From the profile list, select Drehmal Apotheosis</q-item> | ||
<q-item>Press play!</q-item> | ||
</q-list> | ||
</p> | ||
<p>Check out our socials using any of the buttons below</p> --> | ||
</div> | ||
</q-page-container> | ||
|
||
<q-footer> | ||
<!-- don't touch these class names--> | ||
<div class="border-footer"> | ||
<div class="footer"> | ||
<!-- Footer Content --> | ||
<div class="nav-footer"> | ||
<!-- <next-button path="/path/"></next-button> --> | ||
<div> | ||
<q-btn | ||
size="20px" | ||
color="secondary" | ||
@click="closeInstaller" | ||
label="Close Installer" | ||
class="close-btn" | ||
> | ||
</q-btn> | ||
<socials-grid /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</q-footer> | ||
</q-layout> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import log from 'electron-log'; | ||
const { ipcRenderer } = require('electron'); | ||
import SocialsGrid from '../components/SocialsGrid.vue'; | ||
const closeInstaller = () => { | ||
log.info('Opening Minecraft Launcher and closing process'); | ||
// Send call to main process to close application | ||
ipcRenderer.invoke('quit'); | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
.nav-footer { | ||
/* display: flex; */ | ||
/* flex-direction: column; */ | ||
/* gap: 50px; */ | ||
margin-bottom: 10px; | ||
} | ||
.close-btn { | ||
margin-bottom: 20px; | ||
} | ||
.nav-footer img { | ||
height: 128px; | ||
width: 128px; | ||
} | ||
</style> |
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