This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
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.
Merge pull request #2 from 2skydev/dev
전체적인 패키지 업데이트 및 속도 개선
- Loading branch information
Showing
30 changed files
with
2,139 additions
and
2,105 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ yarn-error.log* | |
dist | ||
/resources/windows/chromium | ||
chrome_data | ||
release | ||
release | ||
dist-electron |
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
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 @@ | ||
/// <reference types="vite-electron-plugin/electron-env" /> |
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,6 +1,6 @@ | ||
import MyApp from './app'; | ||
import AppContext from './app'; | ||
|
||
(async () => { | ||
const myApp = new MyApp(); | ||
await myApp.bootstrap(); | ||
const context = new AppContext(); | ||
await context.bootstrap(); | ||
})(); |
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
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,24 @@ | ||
import { Log } from '../modules/developers'; | ||
import { AppControlAction } from '../modules/general'; | ||
import { UpdateEvent, UpdateStatus } from '../modules/update'; | ||
import { ConfigStoreValues } from '../stores/config'; | ||
|
||
export interface ElectronRendererContext { | ||
onUpdate: (callback: (event: UpdateEvent, data: any) => void) => void; | ||
|
||
initlizeUpdater: () => void; | ||
appControl: (action: AppControlAction) => void; | ||
openExternal: (link: string) => void; | ||
checkForUpdate: () => void; | ||
quitAndInstall: () => void; | ||
|
||
getConfig: () => Promise<ConfigStoreValues>; | ||
setConfig: (config: ConfigStoreValues) => Promise<ConfigStoreValues>; | ||
|
||
getVersion: () => Promise<string>; | ||
getUpdaterStatus: () => Promise<UpdateStatus>; | ||
|
||
getStorePath: () => Promise<string>; | ||
getLogs: () => Promise<Log[]>; | ||
clearLogs: () => Promise<boolean>; | ||
} |
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,14 @@ | ||
import glob from 'glob'; | ||
import { resolve as pathResolve } from 'path'; | ||
|
||
export interface GlobImportOptions extends glob.IOptions { | ||
cwd: string; | ||
} | ||
|
||
export const globImport = (pattern: string, options: GlobImportOptions) => | ||
new Promise<any[]>((resolve, reject) => { | ||
glob(pattern, options, async (err, paths) => { | ||
if (err) return reject(err); | ||
resolve(paths.map(path => require(pathResolve(options.cwd, path)))); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.