pack: add .editorconfig and use tab instead of space

This commit is contained in:
leejooy96 committed 2022-10-29 12:35:12 +09:00
1 parent be3638b9d3
commit be7a8ac3ea
27 files changed
+571 -560

No files matched your search

+11 -11
View File
@@ -1,19 +1,19 @@
import { join } from 'path'
export default class Constants {
static APP_NAME = 'Vutron'
static APP_NAME = 'Vutron'
static IS_DEV_ENV = process.env.NODE_ENV === 'development'
static IS_DEV_ENV = process.env.NODE_ENV === 'development'
static IS_MAC = process.platform === 'darwin'
static IS_MAC = process.platform === 'darwin'
static DEFAULT_WEB_PREFERENCES = {
nodeIntegration: true,
contextIsolation: false,
nodeIntegrationInWorker: true,
enableRemoteModule: true
}
static DEFAULT_WEB_PREFERENCES = {
nodeIntegration: true,
contextIsolation: false,
nodeIntegrationInWorker: true,
enableRemoteModule: true
}
static APP_INDEX_URL_DEV = 'http://localhost:5173/index.html'
static APP_INDEX_URL_PROD = join(__dirname, '../index.html')
static APP_INDEX_URL_DEV = 'http://localhost:5173/index.html'
static APP_INDEX_URL_PROD = join(__dirname, '../index.html')
}
+6 -6
View File
@@ -2,12 +2,12 @@ import { systemPreferences } from 'electron'
import Constants from './Constants'
export default class Menus {
static macOSDisableDefaultMenuItem(): void {
if (Constants.IS_MAC) {
systemPreferences.setUserDefault('NSDisabledDictationMenuItem', 'boolean', true)
systemPreferences.setUserDefault('NSDisabledCharacterPaletteMenuItem', 'boolean', true)
}
}
static macOSDisableDefaultMenuItem(): void {
if (Constants.IS_MAC) {
systemPreferences.setUserDefault('NSDisabledDictationMenuItem', 'boolean', true)
systemPreferences.setUserDefault('NSDisabledCharacterPaletteMenuItem', 'boolean', true)
}
}
}
export const { macOSDisableDefaultMenuItem } = Menus