📝 Update Korean docs as upstream
[ci skip]
This commit is contained in:
parent
31f2ac8bf3
commit
a454cc8260
9 changed files with 130 additions and 47 deletions
|
@ -370,7 +370,7 @@ npm 모듈 규칙에 따라 대부분의 경우 `package.json`의 `name` 필드
|
||||||
|
|
||||||
**참고:** 패키징된 앱을 배포할 때, `locales` 폴더도 같이 배포해야 합니다.
|
**참고:** 패키징된 앱을 배포할 때, `locales` 폴더도 같이 배포해야 합니다.
|
||||||
|
|
||||||
**참고:** Windows에선 `ready` 이벤트가 발생한 이후에 이 메서드를 사용해야 합니다.
|
**참고:** Windows에선 `ready` 이벤트가 발생한 이후에 이 메서드를 호출해야 합니다.
|
||||||
|
|
||||||
### `app.addRecentDocument(path)` _OS X_ _Windows_
|
### `app.addRecentDocument(path)` _OS X_ _Windows_
|
||||||
|
|
||||||
|
@ -445,9 +445,7 @@ Windows에서 사용할 수 있는 JumpList의 [Tasks][tasks] 카테고리에 `t
|
||||||
아이콘을 가지고 있을 경우, 사용할 아이콘의 인덱스를 이 옵션으로 지정해 주어야 합니다.
|
아이콘을 가지고 있을 경우, 사용할 아이콘의 인덱스를 이 옵션으로 지정해 주어야 합니다.
|
||||||
단, 아이콘을 하나만 포함하고 있는 경우 0을 지정하면 됩니다.
|
단, 아이콘을 하나만 포함하고 있는 경우 0을 지정하면 됩니다.
|
||||||
|
|
||||||
### `app.allowNTLMCredentialsForAllDomains(allow)`
|
### `app.allowNTLMCredentialsForAllDomains()`
|
||||||
|
|
||||||
* `allow` Boolean
|
|
||||||
|
|
||||||
항상 동적으로 HTTP NTLM 또는 Negotiate 인증에 자격 증명을 보낼 것인지 설정합니다.
|
항상 동적으로 HTTP NTLM 또는 Negotiate 인증에 자격 증명을 보낼 것인지 설정합니다.
|
||||||
|
|
||||||
|
@ -455,6 +453,8 @@ Windows에서 사용할 수 있는 JumpList의 [Tasks][tasks] 카테고리에 `t
|
||||||
보냅니다. (같은 도메인 내에서) 그러나 기업 네트워크가 잘못 구성된 경우 종종 작업에
|
보냅니다. (같은 도메인 내에서) 그러나 기업 네트워크가 잘못 구성된 경우 종종 작업에
|
||||||
실패할 수 있습니다. 이때 이 메서드를 통해 모든 URL을 허용할 수 있습니다.
|
실패할 수 있습니다. 이때 이 메서드를 통해 모든 URL을 허용할 수 있습니다.
|
||||||
|
|
||||||
|
**참고:** 이 메서드는 `ready` 이벤트가 발생하기 전에 호출해야 합니다.
|
||||||
|
|
||||||
### `app.makeSingleInstance(callback)`
|
### `app.makeSingleInstance(callback)`
|
||||||
|
|
||||||
* `callback` Function
|
* `callback` Function
|
||||||
|
@ -508,6 +508,11 @@ app.on('ready', () => {
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### `app.releaseSingleInstance()`
|
||||||
|
|
||||||
|
모든 `makeSingleInstance`에 의해 생성된 제한을 해제합니다. 이 메서드는 다시 여러
|
||||||
|
인스턴스의 어플리케이션이 나란히 실행될 수 있도록 합니다.
|
||||||
|
|
||||||
### `app.setUserActivity(type, userInfo[, webpageURL])` _OS X_
|
### `app.setUserActivity(type, userInfo[, webpageURL])` _OS X_
|
||||||
|
|
||||||
* `type` String - 고유하게 activity를 식별합니다.
|
* `type` String - 고유하게 activity를 식별합니다.
|
||||||
|
|
|
@ -63,8 +63,9 @@ win.show();
|
||||||
* `fullscreen` Boolean - 윈도우의 전체화면 활성화 여부. 이 속성을 명시적으로
|
* `fullscreen` Boolean - 윈도우의 전체화면 활성화 여부. 이 속성을 명시적으로
|
||||||
`false`로 지정했을 경우, OS X에선 전체화면 버튼이 숨겨지거나 비활성됩니다. 기본값은
|
`false`로 지정했을 경우, OS X에선 전체화면 버튼이 숨겨지거나 비활성됩니다. 기본값은
|
||||||
`false` 입니다.
|
`false` 입니다.
|
||||||
* `fullscreenable` Boolean - OS X의 최대화/줌 버튼이 전체화면 모드 또는 윈도우
|
* `fullscreenable` Boolean - 윈도우가 전체화면 모드로 전환될 수 있는지 여부입니다.
|
||||||
최대화를 토글할 수 있게 할지 여부입니다. 기본값은 `true` 입니다.
|
또한 OS X에선, 최대화/줌 버튼이 전체화면 모드 또는 윈도우 최대화를 실행할지 여부도
|
||||||
|
포함됩니다. 기본값은 `true`입니다.
|
||||||
* `skipTaskbar` Boolean - 작업표시줄 어플리케이션 아이콘 표시 스킵 여부. 기본값은
|
* `skipTaskbar` Boolean - 작업표시줄 어플리케이션 아이콘 표시 스킵 여부. 기본값은
|
||||||
`false`입니다.
|
`false`입니다.
|
||||||
* `kiosk` Boolean - Kiosk(키오스크) 모드. 기본값은 `false`입니다.
|
* `kiosk` Boolean - Kiosk(키오스크) 모드. 기본값은 `false`입니다.
|
||||||
|
|
|
@ -1,21 +1,8 @@
|
||||||
# process
|
# process
|
||||||
|
|
||||||
> 현재 작동중인 어플리케이션의 정보를 가져옵니다.
|
> process 객체에 대한 확장 기능.
|
||||||
|
|
||||||
Electron의 `process` 객체는 기존의 node와는 달리 약간의 차이점이 있습니다:
|
`process` 객체는 Electron에서 약간 추가적인 기능이 있으며 API는 다음과 같습니다:
|
||||||
|
|
||||||
* `process.type` String - 프로세스의 타입, `browser` (메인 프로세스) 또는
|
|
||||||
`renderer`가 됩니다.
|
|
||||||
* `process.versions.electron` String - Electron의 버전.
|
|
||||||
* `process.versions.chrome` String - Chromium의 버전.
|
|
||||||
* `process.resourcesPath` String - JavaScript 소스 코드의 경로.
|
|
||||||
* `process.mas` Boolean - Mac 앱 스토어용 빌드일 때 `true`로 지정됩니다. 다른
|
|
||||||
빌드일 땐 `undefined`로 지정됩니다.
|
|
||||||
* `process.windowsStore` Boolean - 만약 앱이 Windows Store 앱 (appx)으로 작동하고
|
|
||||||
있다면, 이 값이 `true`로 지정되며 다른 빌드인 경우엔 `undefined`로 지정됩니다.
|
|
||||||
* `process.defaultApp` Boolean - 어플리케이션이 기본 어플리케이션 형식으로 전달되는
|
|
||||||
인수와 함께 실행됐을 때, 메인 프로세스에서 이 값이 `true`가 되며 다른 경우엔
|
|
||||||
`undefined`가 됩니다.
|
|
||||||
|
|
||||||
## Events
|
## Events
|
||||||
|
|
||||||
|
@ -41,6 +28,96 @@ process.once('loaded', () => {
|
||||||
|
|
||||||
### `process.noAsar`
|
### `process.noAsar`
|
||||||
|
|
||||||
|
Setting this to `true` can disable the support for `asar` archives in Node's
|
||||||
|
built-in modules.
|
||||||
|
|
||||||
|
### `process.type`
|
||||||
|
|
||||||
|
Current process's type, can be `"browser"` (i.e. main process) or `"renderer"`.
|
||||||
|
|
||||||
|
### `process.versions.electron`
|
||||||
|
|
||||||
|
Electron's version string.
|
||||||
|
|
||||||
|
### `process.versions.chrome`
|
||||||
|
|
||||||
|
Chrome's version string.
|
||||||
|
|
||||||
|
### `process.resourcesPath`
|
||||||
|
|
||||||
|
Path to the resources directory.
|
||||||
|
|
||||||
|
### `process.mas`
|
||||||
|
|
||||||
|
For Mac App Store build, this property is `true`, for other builds it is
|
||||||
|
`undefined`.
|
||||||
|
|
||||||
|
### `process.windowsStore`
|
||||||
|
|
||||||
|
If the app is running as a Windows Store app (appx), this property is `true`,
|
||||||
|
for otherwise it is `undefined`.
|
||||||
|
|
||||||
|
### `process.defaultApp`
|
||||||
|
|
||||||
|
When app is started by being passed as parameter to the default app, this
|
||||||
|
property is `true` in the main process, otherwise it is `undefined`.
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
The `process` object has the following method:
|
||||||
|
|
||||||
|
### `process.crash()`
|
||||||
|
|
||||||
|
Causes the main thread of the current process crash.
|
||||||
|
|
||||||
|
### `process.hang()`
|
||||||
|
|
||||||
|
Causes the main thread of the current process hang.
|
||||||
|
|
||||||
|
### `process.setFdLimit(maxDescriptors)` _OS X_ _Linux_
|
||||||
|
|
||||||
|
* `maxDescriptors` Integer
|
||||||
|
|
||||||
|
Sets the file descriptor soft limit to `maxDescriptors` or the OS hard
|
||||||
|
limit, whichever is lower for the current process.
|
||||||
|
|
||||||
|
### `process.getProcessMemoryInfo()`
|
||||||
|
|
||||||
|
Returns an object giving memory usage statistics about the current process. Note
|
||||||
|
that all statistics are reported in Kilobytes.
|
||||||
|
|
||||||
|
* `workingSetSize` - The amount of memory currently pinned to actual physical
|
||||||
|
RAM.
|
||||||
|
* `peakWorkingSetSize` - The maximum amount of memory that has ever been pinned
|
||||||
|
to actual physical RAM.
|
||||||
|
* `privateBytes` - The amount of memory not shared by other processes, such as
|
||||||
|
JS heap or HTML content.
|
||||||
|
* `sharedBytes` - The amount of memory shared between processes, typically
|
||||||
|
memory consumed by the Electron code itself
|
||||||
|
|
||||||
|
### `process.getSystemMemoryInfo()`
|
||||||
|
|
||||||
|
Returns an object giving memory usage statistics about the entire system. Note
|
||||||
|
that all statistics are reported in Kilobytes.
|
||||||
|
|
||||||
|
* `total` - The total amount of physical memory in Kilobytes available to the
|
||||||
|
system.
|
||||||
|
* `free` - The total amount of memory not being used by applications or disk
|
||||||
|
cache.
|
||||||
|
|
||||||
|
On Windows / Linux:
|
||||||
|
|
||||||
|
* `swapTotal` - The total amount of swap memory in Kilobytes available to the
|
||||||
|
system.
|
||||||
|
* `swapFree` - The free amount of swap memory in Kilobytes available to the
|
||||||
|
system.
|
||||||
|
|
||||||
|
----------------------------------------
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
### `process.noAsar`
|
||||||
|
|
||||||
이 속성을 `true`로 지정하면 Node 빌트인 모듈의 `asar` 아카이브 지원을 비활성화 시킬
|
이 속성을 `true`로 지정하면 Node 빌트인 모듈의 `asar` 아카이브 지원을 비활성화 시킬
|
||||||
수 있습니다.
|
수 있습니다.
|
||||||
|
|
||||||
|
|
|
@ -433,19 +433,19 @@ Service worker에 대한 개발자 도구를 엽니다.
|
||||||
|
|
||||||
* `action` String - [`<webview>.findInPage`](web-view-tag.md#webviewtagfindinpage)
|
* `action` String - [`<webview>.findInPage`](web-view-tag.md#webviewtagfindinpage)
|
||||||
요청이 종료되었을 때 일어날 수 있는 작업을 지정합니다.
|
요청이 종료되었을 때 일어날 수 있는 작업을 지정합니다.
|
||||||
* `clearSelection` - 선택을 일반 선택으로 변경합니다.
|
* `clearSelection` - 선택을 취소합니다.
|
||||||
* `keepSelection` - 선택을 취소합니다.
|
* `keepSelection` - 선택을 일반 선택으로 변경합니다.
|
||||||
* `activateSelection` - 포커스한 후 선택된 노드를 클릭합니다.
|
* `activateSelection` - 포커스한 후 선택된 노드를 클릭합니다.
|
||||||
|
|
||||||
제공된 `action`에 대한 `webContents`의 모든 `findInPage` 요청을 중지합니다.
|
제공된 `action`에 대한 `webContents`의 모든 `findInPage` 요청을 중지합니다.
|
||||||
|
|
||||||
### `<webview>.print([options])`
|
### `<webview>.print([options])`
|
||||||
|
|
||||||
Webview 페이지를 인쇄합니다. `webContents.print([options])` 메서드와 같습니다.
|
`webview` 페이지를 인쇄합니다. `webContents.print([options])` 메서드와 같습니다.
|
||||||
|
|
||||||
### `<webview>.printToPDF(options, callback)`
|
### `<webview>.printToPDF(options, callback)`
|
||||||
|
|
||||||
Webview 페이지를 PDF 형식으로 인쇄합니다.
|
`webview` 페이지를 PDF 형식으로 인쇄합니다.
|
||||||
`webContents.printToPDF(options, callback)` 메서드와 같습니다.
|
`webContents.printToPDF(options, callback)` 메서드와 같습니다.
|
||||||
|
|
||||||
### `<webview>.send(channel[, arg1][, arg2][, ...])`
|
### `<webview>.send(channel[, arg1][, arg2][, ...])`
|
||||||
|
@ -463,7 +463,7 @@ Webview 페이지를 PDF 형식으로 인쇄합니다.
|
||||||
|
|
||||||
* `event` Object
|
* `event` Object
|
||||||
|
|
||||||
페이지에 input `event`를 보냅니다.
|
페이지에 입력 `event`를 보냅니다.
|
||||||
|
|
||||||
`event` 객체에 대해 자세히 알아보려면 [webContents.sendInputEvent](web-contents.md##webcontentssendinputeventevent)를
|
`event` 객체에 대해 자세히 알아보려면 [webContents.sendInputEvent](web-contents.md##webcontentssendinputeventevent)를
|
||||||
참고하세요.
|
참고하세요.
|
||||||
|
@ -617,7 +617,7 @@ webview.addEventListener('found-in-page', (e) => {
|
||||||
webview.stopFindInPage('keepSelection');
|
webview.stopFindInPage('keepSelection');
|
||||||
});
|
});
|
||||||
|
|
||||||
const rquestId = webview.findInPage('test');
|
const requestId = webview.findInPage('test');
|
||||||
```
|
```
|
||||||
|
|
||||||
### Event: 'new-window'
|
### Event: 'new-window'
|
||||||
|
|
|
@ -105,6 +105,14 @@ MyApp.app/Contents
|
||||||
아이콘은 [.desktop](https://developer.gnome.org/integration-guide/stable/desktop-files.html.en)
|
아이콘은 [.desktop](https://developer.gnome.org/integration-guide/stable/desktop-files.html.en)
|
||||||
파일을 사용하여 지정할 수 있습니다.
|
파일을 사용하여 지정할 수 있습니다.
|
||||||
|
|
||||||
|
## 패키징 툴
|
||||||
|
|
||||||
|
어플리케이션을 일일이 수동으로 패키지로 만드는 대신, 서드 파티 패키징 툴을 사용하며
|
||||||
|
이러한 작업을 자동화 시킬 수 있습니다:
|
||||||
|
|
||||||
|
* [electron-packager](https://github.com/maxogden/electron-packager)
|
||||||
|
* [electron-builder](https://github.com/loopline-systems/electron-builder)
|
||||||
|
|
||||||
## Electron 소스 코드를 다시 빌드하여 리소스 수정하기
|
## Electron 소스 코드를 다시 빌드하여 리소스 수정하기
|
||||||
|
|
||||||
또한 Electron 소스 코드를 다시 빌드할 때 어플리케이션 이름을 변경할 수 있습니다.
|
또한 Electron 소스 코드를 다시 빌드할 때 어플리케이션 이름을 변경할 수 있습니다.
|
||||||
|
@ -137,11 +145,3 @@ Electron의 소스코드를 수정하고 다시 빌드하는 작업은 상당히
|
||||||
|
|
||||||
이 툴을 사용하면 자동으로 `.gyp`파일을 수정하고 다시 빌드합니다. 그리고 어플리케이션의
|
이 툴을 사용하면 자동으로 `.gyp`파일을 수정하고 다시 빌드합니다. 그리고 어플리케이션의
|
||||||
네이티브 Node 모듈 또한 새로운 실행파일 이름으로 일치시킵니다.
|
네이티브 Node 모듈 또한 새로운 실행파일 이름으로 일치시킵니다.
|
||||||
|
|
||||||
## 패키징 툴
|
|
||||||
|
|
||||||
어플리케이션을 일일이 수동으로 패키지로 만드는 대신, 서드 파티 패키징 툴을 사용하며
|
|
||||||
이러한 작업을 자동화 시킬 수 있습니다:
|
|
||||||
|
|
||||||
* [electron-packager](https://github.com/maxogden/electron-packager)
|
|
||||||
* [electron-builder](https://github.com/loopline-systems/electron-builder)
|
|
||||||
|
|
Loading…
Reference in a new issue