diff --git a/package.json b/package.json index 9052ff5..7bd548a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "drehmal-installer", - "version": "0.0.1", + "version": "0.0.2", "description": "Drehmal, Minecraft map installer", "productName": "Drehmal Installer", "author": "majorlue", @@ -53,4 +53,4 @@ "npm": ">= 6.13.4", "yarn": ">= 1.21.1" } -} +} \ No newline at end of file diff --git a/src-electron/electron-main.ts b/src-electron/electron-main.ts index 7753395..6a3cbc2 100644 --- a/src-electron/electron-main.ts +++ b/src-electron/electron-main.ts @@ -1,5 +1,5 @@ import dayjs from 'dayjs'; -import { app, BrowserWindow, ipcMain } from 'electron'; +import { app, BrowserWindow, ipcMain, shell } from 'electron'; import log from 'electron-log'; import Listeners from './ipcListeners'; const path = require('path'); @@ -52,7 +52,7 @@ function createWindow() { autoHideMenuBar: true, }); - new Listeners(mainWindow, app); + new Listeners(mainWindow, app, shell); mainWindow.loadURL(process.env.APP_URL); diff --git a/src-electron/ipcListeners.ts b/src-electron/ipcListeners.ts index 25721d7..6fa68c1 100644 --- a/src-electron/ipcListeners.ts +++ b/src-electron/ipcListeners.ts @@ -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()); diff --git a/src/assets/images/icons/socials/discord-purple.png b/src/assets/images/icons/socials/discord-purple.png new file mode 100644 index 0000000..7997b56 Binary files /dev/null and b/src/assets/images/icons/socials/discord-purple.png differ diff --git a/src/assets/images/icons/socials/discord-yellow.png b/src/assets/images/icons/socials/discord-yellow.png new file mode 100644 index 0000000..d785e2e Binary files /dev/null and b/src/assets/images/icons/socials/discord-yellow.png differ diff --git a/src/assets/images/icons/socials/github-purple.png b/src/assets/images/icons/socials/github-purple.png new file mode 100644 index 0000000..b39f54f Binary files /dev/null and b/src/assets/images/icons/socials/github-purple.png differ diff --git a/src/assets/images/icons/socials/github-yellow.png b/src/assets/images/icons/socials/github-yellow.png new file mode 100644 index 0000000..954bce0 Binary files /dev/null and b/src/assets/images/icons/socials/github-yellow.png differ diff --git a/src/assets/images/icons/socials/patreon-purple.png b/src/assets/images/icons/socials/patreon-purple.png new file mode 100644 index 0000000..49d4914 Binary files /dev/null and b/src/assets/images/icons/socials/patreon-purple.png differ diff --git a/src/assets/images/icons/socials/patreon-yellow.png b/src/assets/images/icons/socials/patreon-yellow.png new file mode 100644 index 0000000..fdc83db Binary files /dev/null and b/src/assets/images/icons/socials/patreon-yellow.png differ diff --git a/src/assets/images/icons/socials/twitter-purple.png b/src/assets/images/icons/socials/twitter-purple.png new file mode 100644 index 0000000..1666e8e Binary files /dev/null and b/src/assets/images/icons/socials/twitter-purple.png differ diff --git a/src/assets/images/icons/socials/twitter-yellow.png b/src/assets/images/icons/socials/twitter-yellow.png new file mode 100644 index 0000000..56ba121 Binary files /dev/null and b/src/assets/images/icons/socials/twitter-yellow.png differ diff --git a/src/assets/images/icons/socials/website-purple.png b/src/assets/images/icons/socials/website-purple.png new file mode 100644 index 0000000..4397566 Binary files /dev/null and b/src/assets/images/icons/socials/website-purple.png differ diff --git a/src/assets/images/icons/socials/website-yellow.png b/src/assets/images/icons/socials/website-yellow.png new file mode 100644 index 0000000..e3ee8f6 Binary files /dev/null and b/src/assets/images/icons/socials/website-yellow.png differ diff --git a/src/assets/images/icons/socials/x-purple.png b/src/assets/images/icons/socials/x-purple.png new file mode 100644 index 0000000..acfbb34 Binary files /dev/null and b/src/assets/images/icons/socials/x-purple.png differ diff --git a/src/assets/images/icons/socials/x-yellow.png b/src/assets/images/icons/socials/x-yellow.png new file mode 100644 index 0000000..42bedea Binary files /dev/null and b/src/assets/images/icons/socials/x-yellow.png differ diff --git a/src/assets/images/icons/socials/youtube-purple.png b/src/assets/images/icons/socials/youtube-purple.png new file mode 100644 index 0000000..78c9c54 Binary files /dev/null and b/src/assets/images/icons/socials/youtube-purple.png differ diff --git a/src/assets/images/icons/socials/youtube-yellow.png b/src/assets/images/icons/socials/youtube-yellow.png new file mode 100644 index 0000000..e88265e Binary files /dev/null and b/src/assets/images/icons/socials/youtube-yellow.png differ diff --git a/src/assets/images/small_button_arrow_grey.png b/src/assets/images/small_button_arrow_grey.png new file mode 100644 index 0000000..dcdd8cd Binary files /dev/null and b/src/assets/images/small_button_arrow_grey.png differ diff --git a/src/assets/images/small_button_arrow_purple.png b/src/assets/images/small_button_arrow_purple.png new file mode 100644 index 0000000..558b6f0 Binary files /dev/null and b/src/assets/images/small_button_arrow_purple.png differ diff --git a/src/assets/images/small_button_check.png b/src/assets/images/small_button_check.png new file mode 100644 index 0000000..d53fa28 Binary files /dev/null and b/src/assets/images/small_button_check.png differ diff --git a/src/components/DynamicImage.vue b/src/components/DynamicImage.vue new file mode 100644 index 0000000..5db4d8d --- /dev/null +++ b/src/components/DynamicImage.vue @@ -0,0 +1,22 @@ + + + diff --git a/src/components/SocialsGrid.vue b/src/components/SocialsGrid.vue new file mode 100644 index 0000000..3fecd06 --- /dev/null +++ b/src/components/SocialsGrid.vue @@ -0,0 +1,103 @@ + + + diff --git a/src/pages/InstallComplete.vue b/src/pages/InstallComplete.vue new file mode 100644 index 0000000..3b3c5b3 --- /dev/null +++ b/src/pages/InstallComplete.vue @@ -0,0 +1,88 @@ + + + + + diff --git a/src/pages/InstallPage.vue b/src/pages/InstallPage.vue index c9556da..62e49f6 100644 --- a/src/pages/InstallPage.vue +++ b/src/pages/InstallPage.vue @@ -25,7 +25,7 @@ diff --git a/src/router/routes.ts b/src/router/routes.ts index bff0b0a..883e2a5 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -17,10 +17,13 @@ const routes: RouteRecordRaw[] = [ props: true, }, { - // name: 'path', path: '/install/', component: () => import('pages/InstallPage.vue'), - // meta: {title: appTitle} + props: true, + }, + { + path: '/complete/', + component: () => import('pages/InstallComplete.vue'), props: true, },