chore: Prettified Code

[ci skip]
This commit is contained in:
coredev-uk 2023-06-06 01:29:17 +00:00 committed by cider-chore[bot]
parent 27a3a73124
commit 246450fde3
4 changed files with 75 additions and 76 deletions

View file

@ -1048,7 +1048,7 @@ export class BrowserWindow {
});
ipcMain.on("get-i18n-listing", (event) => {
const translations = utils.i18n
const translations = utils.i18n;
const i18nListing: any = [];
for (const lang in translations) {

View file

@ -8,7 +8,7 @@ import fetch from "electron-fetch";
import ElectronStore from "electron-store";
export class utils {
static crowdinClient: OtaClient = new OtaClient('fda9a6528649ea90dee35390wog')
static crowdinClient: OtaClient = new OtaClient("fda9a6528649ea90dee35390wog");
static i18n: any = {};
/**
@ -106,7 +106,7 @@ export class utils {
}
static async initializeTranslations() {
this.i18n = await this.crowdinClient.getTranslations()
this.i18n = await this.crowdinClient.getTranslations();
}
/**
@ -116,7 +116,7 @@ export class utils {
* @returns {string | Object} The locale value.
*/
static getLocale(language: string, key?: string): string | object {
let i18n: any = {}
let i18n: any = {};
if (!this.i18n[language]) {
i18n = this.i18n["en"][0].content;
} else {

View file

@ -32,7 +32,7 @@ const CiderPlug = new Plugins();
* App Event Handlers
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
app.on("ready", async () => {
await utils.initializeTranslations()
await utils.initializeTranslations();
Cider.ready(CiderPlug);
console.log("[Cider] Application is Ready. Creating Window.");
@ -40,10 +40,10 @@ app.on("ready", async () => {
console.info("[Cider] Running in development mode.");
require("vue-devtools").install();
}
console.log("aa")
console.log("aa");
components.whenReady().then(async () => {
const bw = new BrowserWindow();
console.log("[Cider] Creating Window.")
console.log("[Cider] Creating Window.");
const win = await bw.createWindow();
app.getGPUInfo("complete").then((gpuInfo) => {
@ -112,4 +112,3 @@ app.on("widevine-error", (error) => {
console.log("[Cider][Widevine] Widevine installation encountered an error: " + error);
app.exit();
});

View file

@ -18,7 +18,7 @@ export default class Thumbar {
private isNotMac: boolean = process.platform !== "darwin";
private isMac: boolean = process.platform === "darwin";
private _menuTemplate: any = []
private _menuTemplate: any = [];
/*******************************************************************************************
* Public Methods