-
Notifications
You must be signed in to change notification settings - Fork 0
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
14 changed files
with
524 additions
and
19 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Mirai MAL (mirai) | ||
# Mirai (mirai) | ||
|
||
A modern client for MyAnimeList | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// THIS FEATURE-FLAG FILE IS AUTOGENERATED, | ||
// REMOVAL OR CHANGES WILL CAUSE RELATED TYPES TO STOP WORKING | ||
import "quasar/dist/types/feature-flag"; | ||
|
||
declare module "quasar/dist/types/feature-flag" { | ||
interface QuasarFeatureFlags { | ||
electron: true; | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
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,31 @@ | ||
/** | ||
* This file is used specifically and only for development. It installs | ||
* `electron-debug` & `vue-devtools`. There shouldn't be any need to | ||
* modify this file, but it can be used to extend your development | ||
* environment. | ||
*/ | ||
|
||
import electronDebug from 'electron-debug'; | ||
import installExtension, { VUEJS_DEVTOOLS } from 'electron-devtools-installer'; | ||
import { app } from 'electron'; | ||
|
||
// Install `electron-debug` with `devtron` | ||
electronDebug({ showDevTools: true }); | ||
|
||
// Install vuejs devtools | ||
app | ||
.whenReady() | ||
.then(() => { | ||
installExtension(VUEJS_DEVTOOLS) | ||
.then((ext: string) => { | ||
console.log(`Added Extension: ${ext}`); | ||
}) | ||
.catch(err => { | ||
console.log('An error occurred: ', err); | ||
}); | ||
}) | ||
.catch(err => { | ||
console.log('An error occurred: ', err); | ||
}); | ||
|
||
import './electron-main'; |
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,62 @@ | ||
import { app, BrowserWindow, nativeTheme } from 'electron'; | ||
import * as fs from 'fs'; | ||
import * as path from 'path'; | ||
try { | ||
if ( | ||
process.platform === 'win32' && | ||
nativeTheme.shouldUseDarkColors === true | ||
) { | ||
fs.unlinkSync(path.join(app.getPath('userData'), 'DevTools Extensions')); | ||
} | ||
} catch (_) {} | ||
|
||
/** | ||
* Set `__statics` path to static files in production; | ||
* The reason we are setting it here is that the path needs to be evaluated at runtime | ||
*/ | ||
if (process.env.PROD) { | ||
global.__statics = __dirname; | ||
} | ||
|
||
let mainWindow; | ||
|
||
function createWindow() { | ||
/** | ||
* Initial window options | ||
*/ | ||
mainWindow = new BrowserWindow({ | ||
width: 1000, | ||
height: 600, | ||
titleBarStyle: 'hiddenInset', | ||
useContentSize: true, | ||
webPreferences: { | ||
// Change from /quasar.conf.js > electron > nodeIntegration; | ||
// More info: https://quasar.dev/quasar-cli/developing-electron-apps/node-integration | ||
nodeIntegration: process.env.QUASAR_NODE_INTEGRATION, | ||
nodeIntegrationInWorker: process.env.QUASAR_NODE_INTEGRATION | ||
|
||
// More info: /quasar-cli/developing-electron-apps/electron-preload-script | ||
// preload: path.resolve(__dirname, 'electron-preload.js') | ||
} | ||
}); | ||
|
||
mainWindow.loadURL(process.env.APP_URL).catch(e => console.log(e)); | ||
|
||
mainWindow.on('closed', () => { | ||
mainWindow = null; | ||
}); | ||
} | ||
|
||
app.on('ready', createWindow); | ||
|
||
app.on('window-all-closed', () => { | ||
if (process.platform !== 'darwin') { | ||
app.quit(); | ||
} | ||
}); | ||
|
||
app.on('activate', () => { | ||
if (mainWindow === null) { | ||
createWindow(); | ||
} | ||
}); |
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
Oops, something went wrong.
b781bb3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: