use https for all Electron website URLs
This commit is contained in:
parent
51d6a55061
commit
69f0cb26e7
43 changed files with 85 additions and 85 deletions
|
@ -1,4 +1,4 @@
|
||||||
[![Electron Logo](http://electron.atom.io/images/electron-logo.svg)](http://electron.atom.io/)
|
[![Electron Logo](https://electron.atom.io/images/electron-logo.svg)](https://electron.atom.io/)
|
||||||
|
|
||||||
[![Travis Build Status](https://travis-ci.org/electron/electron.svg?branch=master)](https://travis-ci.org/electron/electron)
|
[![Travis Build Status](https://travis-ci.org/electron/electron.svg?branch=master)](https://travis-ci.org/electron/electron)
|
||||||
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/kvxe4byi7jcxbe26/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/electron)
|
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/kvxe4byi7jcxbe26/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/electron)
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
The Electron framework lets you write cross-platform desktop applications
|
The Electron framework lets you write cross-platform desktop applications
|
||||||
using JavaScript, HTML and CSS. It is based on [Node.js](https://nodejs.org/) and
|
using JavaScript, HTML and CSS. It is based on [Node.js](https://nodejs.org/) and
|
||||||
[Chromium](http://www.chromium.org) and is used by the [Atom
|
[Chromium](http://www.chromium.org) and is used by the [Atom
|
||||||
editor](https://github.com/atom/atom) and many other [apps](http://electron.atom.io/apps).
|
editor](https://github.com/atom/atom) and many other [apps](https://electron.atom.io/apps).
|
||||||
|
|
||||||
Follow [@ElectronJS](https://twitter.com/electronjs) on Twitter for important
|
Follow [@ElectronJS](https://twitter.com/electronjs) on Twitter for important
|
||||||
announcements.
|
announcements.
|
||||||
|
|
|
@ -149,9 +149,9 @@
|
||||||
<span class="header-version vertical-middle"><script>document.write(process.versions.electron)</script></span>
|
<span class="header-version vertical-middle"><script>document.write(process.versions.electron)</script></span>
|
||||||
|
|
||||||
<div class="header-nav vertical-middle">
|
<div class="header-nav vertical-middle">
|
||||||
<a href="http://electron.atom.io/docs/latest">Docs</a>
|
<a href="https://electron.atom.io/docs/latest">Docs</a>
|
||||||
<a href="https://github.com/electron/electron">Repository</a>
|
<a href="https://github.com/electron/electron">Repository</a>
|
||||||
<a href="http://electron.atom.io/blog">Blog</a>
|
<a href="https://electron.atom.io/blog">Blog</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,7 @@ app.once('ready', () => {
|
||||||
{
|
{
|
||||||
label: 'Learn More',
|
label: 'Learn More',
|
||||||
click () {
|
click () {
|
||||||
shell.openExternal('http://electron.atom.io')
|
shell.openExternal('https://electron.atom.io')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@ Le numéro de version devrait faire partie de l'URL de la page.
|
||||||
Si ce n'est pas le cas, vous utilisez probablement la documentation d'une
|
Si ce n'est pas le cas, vous utilisez probablement la documentation d'une
|
||||||
branche de développement qui peut contenir des changements API qui ne sont pas
|
branche de développement qui peut contenir des changements API qui ne sont pas
|
||||||
compatibles avec votre version d'Electron. Si c'est le cas, vous pouvez changer
|
compatibles avec votre version d'Electron. Si c'est le cas, vous pouvez changer
|
||||||
de version sur la liste [versions disponibles](http://electron.atom.io/docs/),
|
de version sur la liste [versions disponibles](https://electron.atom.io/docs/),
|
||||||
ou, si vous utilisez l'interface de GitHub, ouvrez la liste déroulante "Switch
|
ou, si vous utilisez l'interface de GitHub, ouvrez la liste déroulante "Switch
|
||||||
branches/tags" afin de sélectionner le tag de votre version.
|
branches/tags" afin de sélectionner le tag de votre version.
|
||||||
|
|
||||||
|
|
|
@ -241,7 +241,7 @@ $ npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
Pour plus d'exemples app, consultez la section
|
Pour plus d'exemples app, consultez la section
|
||||||
[list of boilerplates](http://electron.atom.io/community/#boilerplates)
|
[list of boilerplates](https://electron.atom.io/community/#boilerplates)
|
||||||
Créé par la communauté impressionnante d'électrons.
|
Créé par la communauté impressionnante d'électrons.
|
||||||
|
|
||||||
[share-data]: ../faq.md#how-to-share-data-between-web-pages
|
[share-data]: ../faq.md#how-to-share-data-between-web-pages
|
||||||
|
|
|
@ -4,7 +4,7 @@ Se cos<6F> non fosse, stai probabilmente utilizzando una documentazione facente
|
||||||
parte di una branch di sviluppo che potrebbe contenere modifiche all'API che non
|
parte di una branch di sviluppo che potrebbe contenere modifiche all'API che non
|
||||||
sono compatibili con la tua versione di Electron. In questo caso, puoi passare a
|
sono compatibili con la tua versione di Electron. In questo caso, puoi passare a
|
||||||
una differente versione della documentazione dalla lista di
|
una differente versione della documentazione dalla lista di
|
||||||
[versioni disponibili](http://electron.atom.io/docs/) su atom.io, o nel caso tu
|
[versioni disponibili](https://electron.atom.io/docs/) su atom.io, o nel caso tu
|
||||||
stia usando l'interfaccia di GitHub, apri il menu a tendina "Switch
|
stia usando l'interfaccia di GitHub, apri il menu a tendina "Switch
|
||||||
branches/tags" e seleziona il tag che corrisponde alla tua versione.
|
branches/tags" e seleziona il tag che corrisponde alla tua versione.
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
使用している Electron のバージョンに応じたドキュメントを使うように確認してください。
|
使用している Electron のバージョンに応じたドキュメントを使うように確認してください。
|
||||||
ドキュメントのバージョン番号はページの URL の一部になっています。
|
ドキュメントのバージョン番号はページの URL の一部になっています。
|
||||||
そうでない場合、おそらくご使用の Electron のバージョンと互換性のない API 変更を含んだ development ブランチのドキュメントを使っているものと思われます。
|
そうでない場合、おそらくご使用の Electron のバージョンと互換性のない API 変更を含んだ development ブランチのドキュメントを使っているものと思われます。
|
||||||
その場合、atom.io の [available versions](http://electron.atom.io/docs/) リストにある別のバージョンのドキュメントに切り替えることができます。また GitHub で閲覧している場合、"Switch branches/tags" ドロップダウンを開いて、バージョンに対応したタグを選ぶこともできます。
|
その場合、atom.io の [available versions](https://electron.atom.io/docs/) リストにある別のバージョンのドキュメントに切り替えることができます。また GitHub で閲覧している場合、"Switch branches/tags" ドロップダウンを開いて、バージョンに対応したタグを選ぶこともできます。
|
||||||
|
|
||||||
_リンクになっていないリストは未翻訳のものです。_
|
_リンクになっていないリストは未翻訳のものです。_
|
||||||
## FAQ
|
## FAQ
|
||||||
|
|
|
@ -129,7 +129,7 @@ var template = [
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: 'Learn More',
|
label: 'Learn More',
|
||||||
click: function () { require('electron').shell.openExternal('http://electron.atom.io') }
|
click: function () { require('electron').shell.openExternal('https://electron.atom.io') }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -148,7 +148,7 @@ Electronアプリ内でウェブページのような外部コンテンツを埋
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<webview src="https://github.com" partition="persist:github"></webview>
|
<webview src="https://github.com" partition="persist:github"></webview>
|
||||||
<webview src="http://electron.atom.io" partition="electron"></webview>
|
<webview src="https://electron.atom.io" partition="electron"></webview>
|
||||||
```
|
```
|
||||||
|
|
||||||
ページで使用されるセッションを設定します。もし、`partition`が`persist:`から始まる場合、アプリ上の同じ`partition`を指定した全てのページで有効な永続セッションを使用します。
|
ページで使用されるセッションを設定します。もし、`partition`が`persist:`から始まる場合、アプリ上の同じ`partition`を指定した全てのページで有効な永続セッションを使用します。
|
||||||
|
|
|
@ -156,4 +156,4 @@ Electronはリビルドせずにアプリケーションをテストするため
|
||||||
もしくは、アプリのフォルダーを引数にしてElectronバイナリを実行します。これによって、Electronのリソースディレクトリにアプリをコピー&ペーストする必要がなくなります。
|
もしくは、アプリのフォルダーを引数にしてElectronバイナリを実行します。これによって、Electronのリソースディレクトリにアプリをコピー&ペーストする必要がなくなります。
|
||||||
|
|
||||||
[chrome-driver]: https://sites.google.com/a/chromium.org/chromedriver/
|
[chrome-driver]: https://sites.google.com/a/chromium.org/chromedriver/
|
||||||
[spectron]: http://electron.atom.io/spectron
|
[spectron]: https://electron.atom.io/spectron
|
||||||
|
|
|
@ -102,7 +102,7 @@ Returns `Object`:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
clipboard.write({
|
clipboard.write({
|
||||||
text: 'http://electron.atom.io',
|
text: 'https://electron.atom.io',
|
||||||
bookmark: 'Electron Homepage'
|
bookmark: 'Electron Homepage'
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
|
@ -104,7 +104,7 @@ const template = [
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: 'Learn More',
|
label: 'Learn More',
|
||||||
click () { require('electron').shell.openExternal('http://electron.atom.io') }
|
click () { require('electron').shell.openExternal('https://electron.atom.io') }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,7 +166,7 @@ API를 사용할 수 있습니다. 이를 지정하면 내부에서 로우레벨
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<webview src="https://github.com" partition="persist:github"></webview>
|
<webview src="https://github.com" partition="persist:github"></webview>
|
||||||
<webview src="http://electron.atom.io" partition="electron"></webview>
|
<webview src="https://electron.atom.io" partition="electron"></webview>
|
||||||
```
|
```
|
||||||
|
|
||||||
페이지에서 사용하는 세션을 설정합니다.
|
페이지에서 사용하는 세션을 설정합니다.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[![Electron Logo](http://electron.atom.io/images/electron-logo.svg)](http://electron.atom.io/)
|
[![Electron Logo](https://electron.atom.io/images/electron-logo.svg)](https://electron.atom.io/)
|
||||||
|
|
||||||
[![Travis Build Status](https://travis-ci.org/electron/electron.svg?branch=master)](https://travis-ci.org/electron/electron)
|
[![Travis Build Status](https://travis-ci.org/electron/electron.svg?branch=master)](https://travis-ci.org/electron/electron)
|
||||||
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/kvxe4byi7jcxbe26/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/electron)
|
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/kvxe4byi7jcxbe26/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/electron)
|
||||||
|
@ -9,7 +9,7 @@ Electron 프레임워크는 JavaScript, HTML 그리고 CSS를 사용하여
|
||||||
Cross-Platform 데스크톱 애플리케이션을 개발할 수 있도록 해주는 프레임워크입니다.
|
Cross-Platform 데스크톱 애플리케이션을 개발할 수 있도록 해주는 프레임워크입니다.
|
||||||
[Node.js](https://nodejs.org/)와 [Chromium](http://www.chromium.org)을 기반으로
|
[Node.js](https://nodejs.org/)와 [Chromium](http://www.chromium.org)을 기반으로
|
||||||
만들어졌으며 [Atom Editor](https://github.com/atom/atom)에 사용되고 있습니다.
|
만들어졌으며 [Atom Editor](https://github.com/atom/atom)에 사용되고 있습니다.
|
||||||
더 많은 애플리케이션은 [이곳](http://electron.atom.io/apps)에서 확인하세요.
|
더 많은 애플리케이션은 [이곳](https://electron.atom.io/apps)에서 확인하세요.
|
||||||
|
|
||||||
Electron에 대한 중요한 알림을 받고 싶다면 Twitter에서
|
Electron에 대한 중요한 알림을 받고 싶다면 Twitter에서
|
||||||
[@ElectronJS](https://twitter.com/electronjs)를 팔로우 하세요.
|
[@ElectronJS](https://twitter.com/electronjs)를 팔로우 하세요.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Electron 에 대하여
|
# Electron 에 대하여
|
||||||
|
|
||||||
[Electron](http://electron.atom.io) 은 HTML, CSS 와 Javascript 로 크로스플랫폼
|
[Electron](https://electron.atom.io) 은 HTML, CSS 와 Javascript 로 크로스플랫폼
|
||||||
데스크톱 애플리케이션을 위해 Github 에서 개발한 오픈소스 라이브러리 입니다.
|
데스크톱 애플리케이션을 위해 Github 에서 개발한 오픈소스 라이브러리 입니다.
|
||||||
Electron 은 [Chromium](https://www.chromium.org/Home) 와
|
Electron 은 [Chromium](https://www.chromium.org/Home) 와
|
||||||
[Node.js](https://nodejs.org) 를 단일 실행으로 합치고 앱을 Mac, Windows 와
|
[Node.js](https://nodejs.org) 를 단일 실행으로 합치고 앱을 Mac, Windows 와
|
||||||
|
@ -47,7 +47,7 @@ Chromium 이 사용하는 버전. 대부분은 동작하지만 가끔 Node.js
|
||||||
Node.js 와 Chromium 에 대한 의존성이 강해서, Electron 은 버전관리가 까다롭고
|
Node.js 와 Chromium 에 대한 의존성이 강해서, Electron 은 버전관리가 까다롭고
|
||||||
[`semver`을 따르지 않습니다](http://semver.org). 그러므로 항상 Electron 의 특정
|
[`semver`을 따르지 않습니다](http://semver.org). 그러므로 항상 Electron 의 특정
|
||||||
버전을 참조해야 합니다. [Electron 의 버전관리]
|
버전을 참조해야 합니다. [Electron 의 버전관리]
|
||||||
(http://electron.atom.io/docs/tutorial/electron-versioning/)를 읽거나
|
(https://electron.atom.io/docs/tutorial/electron-versioning/)를 읽거나
|
||||||
[현재 쓰이는 버전](https://electron.atom.io/#electron-versions)을 보세요.
|
[현재 쓰이는 버전](https://electron.atom.io/#electron-versions)을 보세요.
|
||||||
|
|
||||||
### LTS
|
### LTS
|
||||||
|
@ -57,7 +57,7 @@ Node.js 와 Chromium 에 대한 의존성이 강해서, Electron 은 버전관
|
||||||
새버전으로 업그레이드 해야합니다.
|
새버전으로 업그레이드 해야합니다.
|
||||||
|
|
||||||
주 버전은 `v1.0.0` 입니다. 아직 이 버전을 사용중이지 않다면,
|
주 버전은 `v1.0.0` 입니다. 아직 이 버전을 사용중이지 않다면,
|
||||||
[v1.0.0 변화에 대해 읽어보세요](http://electron.atom.io/blog/2016/05/11/electron-1-0).
|
[v1.0.0 변화에 대해 읽어보세요](https://electron.atom.io/blog/2016/05/11/electron-1-0).
|
||||||
|
|
||||||
## 중심 철학
|
## 중심 철학
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ Electron 을 작고 (파일 크기) 지속가능하게 (의존성 및 API 의
|
||||||
|
|
||||||
Electron 에 추가된 새로운 기능은 주로 네이티브 API 입니다. 기능은 가능한한
|
Electron 에 추가된 새로운 기능은 주로 네이티브 API 입니다. 기능은 가능한한
|
||||||
Node.js 모듈로 해야합니다. [커뮤니티에 의해 개발된 Electron 도구들]
|
Node.js 모듈로 해야합니다. [커뮤니티에 의해 개발된 Electron 도구들]
|
||||||
(http://electron.atom.io/community)을 보세요.
|
(https://electron.atom.io/community)을 보세요.
|
||||||
|
|
||||||
## 이력
|
## 이력
|
||||||
|
|
||||||
|
@ -81,6 +81,6 @@ Node.js 모듈로 해야합니다. [커뮤니티에 의해 개발된 Electron
|
||||||
| **2013년 4월**| [Atom Shell 탄생](https://github.com/electron/electron/commit/6ef8875b1e93787fa9759f602e7880f28e8e6b45).|
|
| **2013년 4월**| [Atom Shell 탄생](https://github.com/electron/electron/commit/6ef8875b1e93787fa9759f602e7880f28e8e6b45).|
|
||||||
| **2014년 5월** | [Atom Shell 오픈소스화](http://blog.atom.io/2014/05/06/atom-is-now-open-source.html). |
|
| **2014년 5월** | [Atom Shell 오픈소스화](http://blog.atom.io/2014/05/06/atom-is-now-open-source.html). |
|
||||||
| **2015년 4월** | [Electron 으로 개명](https://github.com/electron/electron/pull/1389). |
|
| **2015년 4월** | [Electron 으로 개명](https://github.com/electron/electron/pull/1389). |
|
||||||
| **2016년 5월** | [Electron v1.0.0 출시](http://electron.atom.io/blog/2016/05/11/electron-1-0).|
|
| **2016년 5월** | [Electron v1.0.0 출시](https://electron.atom.io/blog/2016/05/11/electron-1-0).|
|
||||||
| **2016년 5월** | [Electron 앱이 Mac App Store 와 호환](http://electron.atom.io/docs/tutorial/mac-app-store-submission-guide).|
|
| **2016년 5월** | [Electron 앱이 Mac App Store 와 호환](https://electron.atom.io/docs/tutorial/mac-app-store-submission-guide).|
|
||||||
| **2016년 8월** | [Windows Store 의 Electron 앱 지원](http://electron.atom.io/docs/tutorial/windows-store-guide).|
|
| **2016년 8월** | [Windows Store 의 Electron 앱 지원](https://electron.atom.io/docs/tutorial/windows-store-guide).|
|
||||||
|
|
|
@ -14,7 +14,7 @@ HTML 입니다. 그러나 검사를 위한 URL 이 없기 때문에 Electron 앱
|
||||||
이 새 기능들은 Electron 앱에 검사 도구를 제공합니다. Spectron 으로 테스트 하기
|
이 새 기능들은 Electron 앱에 검사 도구를 제공합니다. Spectron 으로 테스트 하기
|
||||||
위한 검사를 추가 하거나 Devtron 으로 개발자 도구의 것을 사용할 수 있습니다.
|
위한 검사를 추가 하거나 Devtron 으로 개발자 도구의 것을 사용할 수 있습니다.
|
||||||
자세한 정보는 도구의 요약이나
|
자세한 정보는 도구의 요약이나
|
||||||
[접근성 문서](http://electron.atom.io/docs/tutorial/accessibility) 를 읽어보세요.
|
[접근성 문서](https://electron.atom.io/docs/tutorial/accessibility) 를 읽어보세요.
|
||||||
|
|
||||||
### Spectron
|
### Spectron
|
||||||
|
|
||||||
|
@ -47,5 +47,5 @@ Devtron 에서 앱의 페이지를 검사할 수 있는 접근성 탭이 생겼
|
||||||
통해 더 알아볼 수 있습니다.
|
통해 더 알아볼 수 있습니다.
|
||||||
|
|
||||||
Electron 을 위한 다른 훌륭한 접근성 도구를 알고계시다면,
|
Electron 을 위한 다른 훌륭한 접근성 도구를 알고계시다면,
|
||||||
[접근성 문서](http://electron.atom.io/docs/tutorial/accessibility) 에 풀
|
[접근성 문서](https://electron.atom.io/docs/tutorial/accessibility) 에 풀
|
||||||
요청과 함께 추가해 주세요.
|
요청과 함께 추가해 주세요.
|
||||||
|
|
|
@ -243,7 +243,7 @@ $ npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
더 많은 예시 앱을 보려면 대단한 Electron 커뮤니티에 의해 만들어진
|
더 많은 예시 앱을 보려면 대단한 Electron 커뮤니티에 의해 만들어진
|
||||||
[보일러플레이트 리스트](http://electron.atom.io/community/#boilerplates)를
|
[보일러플레이트 리스트](https://electron.atom.io/community/#boilerplates)를
|
||||||
참고하세요.
|
참고하세요.
|
||||||
|
|
||||||
[share-data]: ../faq.md#어떻게-웹-페이지-간에-데이터를-공유할-수-있나요
|
[share-data]: ../faq.md#어떻게-웹-페이지-간에-데이터를-공유할-수-있나요
|
||||||
|
|
|
@ -167,4 +167,4 @@ client
|
||||||
디렉터리로 복사하는 불필요한 과정을 생략할 수 있습니다.
|
디렉터리로 복사하는 불필요한 과정을 생략할 수 있습니다.
|
||||||
|
|
||||||
[chrome-driver]: https://sites.google.com/a/chromium.org/chromedriver/
|
[chrome-driver]: https://sites.google.com/a/chromium.org/chromedriver/
|
||||||
[spectron]: http://electron.atom.io/spectron
|
[spectron]: https://electron.atom.io/spectron
|
||||||
|
|
|
@ -2,7 +2,7 @@ Por favor, certifique-se de que está utilizando a documentação que correspond
|
||||||
O número da versão deve ser uma parte da URL da página. Se não for, você provavelmente está utilizando
|
O número da versão deve ser uma parte da URL da página. Se não for, você provavelmente está utilizando
|
||||||
a documentação de um branch de desenvolvimento que pode conter mudanças na API que não são compatíveis
|
a documentação de um branch de desenvolvimento que pode conter mudanças na API que não são compatíveis
|
||||||
com a sua versão do Electron. Se este for o caso, você pode mudar para uma versão diferente da
|
com a sua versão do Electron. Se este for o caso, você pode mudar para uma versão diferente da
|
||||||
documentação na lista de [versões disponíveis](http://electron.atom.io/docs/) em atom.io,
|
documentação na lista de [versões disponíveis](https://electron.atom.io/docs/) em atom.io,
|
||||||
ou se você estiver usando a interface do GitHub, abra o *dropdown* "Switch branches/tags" e
|
ou se você estiver usando a interface do GitHub, abra o *dropdown* "Switch branches/tags" e
|
||||||
selecione a *tag* que corresponde à sua versão.
|
selecione a *tag* que corresponde à sua versão.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[![Electron Logo](http://electron.atom.io/images/electron-logo.svg)](http://electron.atom.io/)
|
[![Electron Logo](https://electron.atom.io/images/electron-logo.svg)](https://electron.atom.io/)
|
||||||
|
|
||||||
[![Travis Build Status](https://travis-ci.org/electron/electron.svg?branch=master)](https://travis-ci.org/electron/electron)
|
[![Travis Build Status](https://travis-ci.org/electron/electron.svg?branch=master)](https://travis-ci.org/electron/electron)
|
||||||
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/kvxe4byi7jcxbe26/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/electron)
|
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/kvxe4byi7jcxbe26/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/electron)
|
||||||
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
:memo: Available Translations: [Korean](https://github.com/electron/electron/tree/master/docs-translations/ko-KR/project/README.md) | [Simplified Chinese](https://github.com/electron/electron/tree/master/docs-translations/zh-CN/project/README.md) | [Brazilian Portuguese](https://github.com/electron/electron/tree/master/docs-translations/pt-BR/project/README.md)
|
:memo: Available Translations: [Korean](https://github.com/electron/electron/tree/master/docs-translations/ko-KR/project/README.md) | [Simplified Chinese](https://github.com/electron/electron/tree/master/docs-translations/zh-CN/project/README.md) | [Brazilian Portuguese](https://github.com/electron/electron/tree/master/docs-translations/pt-BR/project/README.md)
|
||||||
|
|
||||||
O framework Electron permite escrever aplicações desktop multi-plataforma usando JavaScript, HTML e CSS. Baseia-se em [Node.js](https://nodejs.org/) e [Chromium](http://www.chromium.org) e é usado pelo [editor Atom](https://github.com/atom/atom) e muitas outras [aplicações](http://electron.atom.io/apps).
|
O framework Electron permite escrever aplicações desktop multi-plataforma usando JavaScript, HTML e CSS. Baseia-se em [Node.js](https://nodejs.org/) e [Chromium](http://www.chromium.org) e é usado pelo [editor Atom](https://github.com/atom/atom) e muitas outras [aplicações](https://electron.atom.io/apps).
|
||||||
|
|
||||||
Siga [@ElectronJS](https://twitter.com/electronjs) no Twitter para anúncios importantes.
|
Siga [@ElectronJS](https://twitter.com/electronjs) no Twitter para anúncios importantes.
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
# Acessibilidade
|
# Acessibilidade
|
||||||
|
|
||||||
Fazendo aplicações acessíveis é importante e nós estamos felizes em apresentar uma nova funcionalidade para [Devtron](http://electron.atom.io/devtron) e [Spectron](http://electron.atom.io/spectron) que dá aos desenvolvedores a oportunidade de fazer as suas aplicações melhor para todos.
|
Fazendo aplicações acessíveis é importante e nós estamos felizes em apresentar uma nova funcionalidade para [Devtron](https://electron.atom.io/devtron) e [Spectron](https://electron.atom.io/spectron) que dá aos desenvolvedores a oportunidade de fazer as suas aplicações melhor para todos.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Preocupações de acessibilidade em aplicações Electron são semelhantes aos de websites, porque eles são ambos em última análise HTML. Com aplicativos Electron, no entanto, você não pode usar recursos on-line para auditorias de acessibilidade porque a sua aplicação não tem uma URL para apontar para o auditor.
|
Preocupações de acessibilidade em aplicações Electron são semelhantes aos de websites, porque eles são ambos em última análise HTML. Com aplicativos Electron, no entanto, você não pode usar recursos on-line para auditorias de acessibilidade porque a sua aplicação não tem uma URL para apontar para o auditor.
|
||||||
|
|
||||||
Esses novos recursos trazem essas ferramentas de auditoria para a sua aplicação Electron. Você pode optar por adicionar auditorias aos seus testes com Spectron ou usá-los dentro do DevTools com Devtron. Leia a seguir para obter um resumo das ferramentas ou verifique nossa [documentação de acessibilidade](http://electron.atom.io/docs/tutorial/accessibility) para obter mais informações.
|
Esses novos recursos trazem essas ferramentas de auditoria para a sua aplicação Electron. Você pode optar por adicionar auditorias aos seus testes com Spectron ou usá-los dentro do DevTools com Devtron. Leia a seguir para obter um resumo das ferramentas ou verifique nossa [documentação de acessibilidade](https://electron.atom.io/docs/tutorial/accessibility) para obter mais informações.
|
||||||
|
|
||||||
### Spectron
|
### Spectron
|
||||||
|
|
||||||
|
@ -30,4 +30,4 @@ Em Devtron há uma nova guia de acessibilidade que permitirá auditar uma págin
|
||||||
|
|
||||||
Ambas as ferramentas estão usando a biblioteca [Accessibility Developer Tools](https://github.com/GoogleChrome/accessibility-developer-tools) construída pela Google for Chrome. Você pode aprender mais sobre as regras de auditoria da biblioteca de acessibilidade no [wiki do repositório](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules).
|
Ambas as ferramentas estão usando a biblioteca [Accessibility Developer Tools](https://github.com/GoogleChrome/accessibility-developer-tools) construída pela Google for Chrome. Você pode aprender mais sobre as regras de auditoria da biblioteca de acessibilidade no [wiki do repositório](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules).
|
||||||
|
|
||||||
Se você souber de outras ferramentas de acessibilidade para o Electron, adicione-as à [documentação de acessibilidade](http://electron.atom.io/docs/tutorial/accessibility) através de um pull request.
|
Se você souber de outras ferramentas de acessibilidade para o Electron, adicione-as à [documentação de acessibilidade](https://electron.atom.io/docs/tutorial/accessibility) através de um pull request.
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
возможно, используете документацию ветки разработки, которая может содержать изменения api,
|
возможно, используете документацию ветки разработки, которая может содержать изменения api,
|
||||||
которые не совместимы с вашей версией Electron. Если это так,
|
которые не совместимы с вашей версией Electron. Если это так,
|
||||||
Вы можете переключиться на другую версию документации в списке
|
Вы можете переключиться на другую версию документации в списке
|
||||||
[доступные версии](http://electron.atom.io/docs/) на [atom.io](atom.io), или
|
[доступные версии](https://electron.atom.io/docs/) на [atom.io](atom.io), или
|
||||||
если Вы используете интерфейс GitHub, откройте список "переключение ветки/тега" и
|
если Вы используете интерфейс GitHub, откройте список "переключение ветки/тега" и
|
||||||
выберите тег, который соответствует вашей версии.
|
выберите тег, который соответствует вашей версии.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# เกี่ยวกับ Electron
|
# เกี่ยวกับ Electron
|
||||||
|
|
||||||
[Electron](http://electron.atom.io) เป็นโอเพ่นซอร์สไลบรารี พัฒนา โดย GitHub สำหรับการสร้างการใช้งานเดสก์ทอปข้ามแพลตฟอร์มกับ HTML, CSS และ JavaScript Electron เกิดขึ้นได้โดยการ่วม [Chromium](https://www.chromium.org/Home) กับ [Node.js](https://nodejs.org) เข้าด้วยกันเป็นหนึงruntimeและปพลิเคชันสามารถบรรจุสำหรับ Mac, Windows และ Linux
|
[Electron](https://electron.atom.io) เป็นโอเพ่นซอร์สไลบรารี พัฒนา โดย GitHub สำหรับการสร้างการใช้งานเดสก์ทอปข้ามแพลตฟอร์มกับ HTML, CSS และ JavaScript Electron เกิดขึ้นได้โดยการ่วม [Chromium](https://www.chromium.org/Home) กับ [Node.js](https://nodejs.org) เข้าด้วยกันเป็นหนึงruntimeและปพลิเคชันสามารถบรรจุสำหรับ Mac, Windows และ Linux
|
||||||
|
|
||||||
Electron began in 2013 as the framework on which [Atom](https://atom.io), GitHub's hackable text editor, would be built. The two were open sourced in the Spring of 2014.
|
Electron began in 2013 as the framework on which [Atom](https://atom.io), GitHub's hackable text editor, would be built. The two were open sourced in the Spring of 2014.
|
||||||
|
|
||||||
|
@ -27,13 +27,13 @@ When a new version of Node.js is released, Electron usually waits about a month
|
||||||
|
|
||||||
### Versioning
|
### Versioning
|
||||||
|
|
||||||
Due to the hard dependency on Node.js and Chromium, Electron is in a tricky versioning position and [does not follow `semver`](http://semver.org). You should therefore always reference a specific version of Electron. [Read more about Electron's versioning](http://electron.atom.io/docs/tutorial/electron-versioning/) or see the [versions currently in use](https://electron.atom.io/#electron-versions).
|
Due to the hard dependency on Node.js and Chromium, Electron is in a tricky versioning position and [does not follow `semver`](http://semver.org). You should therefore always reference a specific version of Electron. [Read more about Electron's versioning](https://electron.atom.io/docs/tutorial/electron-versioning/) or see the [versions currently in use](https://electron.atom.io/#electron-versions).
|
||||||
|
|
||||||
### LTS
|
### LTS
|
||||||
|
|
||||||
Long term support of older versions of Electron does not currently exist. If your current version of Electron works for you, you can stay on it for as long as you'd like. If you want to make use of new features as they come in you should upgrade to a newer version.
|
Long term support of older versions of Electron does not currently exist. If your current version of Electron works for you, you can stay on it for as long as you'd like. If you want to make use of new features as they come in you should upgrade to a newer version.
|
||||||
|
|
||||||
A major update came with version `v1.0.0`. If you're not yet using this version, you should [read more about the `v1.0.0` changes](http://electron.atom.io/blog/2016/05/11/electron-1-0).
|
A major update came with version `v1.0.0`. If you're not yet using this version, you should [read more about the `v1.0.0` changes](https://electron.atom.io/blog/2016/05/11/electron-1-0).
|
||||||
|
|
||||||
## Core Philosophy
|
## Core Philosophy
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ In order to keep Electron small (file size) and sustainable (the spread of depen
|
||||||
|
|
||||||
For instance, Electron uses just the rendering library from Chromium rather than all of Chromium. This makes it easier to upgrade Chromium but also means some browser features found in Google Chrome do not exist in Electron.
|
For instance, Electron uses just the rendering library from Chromium rather than all of Chromium. This makes it easier to upgrade Chromium but also means some browser features found in Google Chrome do not exist in Electron.
|
||||||
|
|
||||||
New features added to Electron should primarily be native APIs. If a feature can be its own Node.js module, it probably should be. See the [Electron tools built by the community](http://electron.atom.io/community).
|
New features added to Electron should primarily be native APIs. If a feature can be its own Node.js module, it probably should be. See the [Electron tools built by the community](https://electron.atom.io/community).
|
||||||
|
|
||||||
## History
|
## History
|
||||||
|
|
||||||
|
@ -52,6 +52,6 @@ Below are milestones in Electron's history.
|
||||||
| **April 2013**| [Atom Shell is started](https://github.com/electron/electron/commit/6ef8875b1e93787fa9759f602e7880f28e8e6b45).|
|
| **April 2013**| [Atom Shell is started](https://github.com/electron/electron/commit/6ef8875b1e93787fa9759f602e7880f28e8e6b45).|
|
||||||
| **May 2014** | [Atom Shell is open sourced](http://blog.atom.io/2014/05/06/atom-is-now-open-source.html). |
|
| **May 2014** | [Atom Shell is open sourced](http://blog.atom.io/2014/05/06/atom-is-now-open-source.html). |
|
||||||
| **April 2015** | [Atom Shell is re-named Electron](https://github.com/electron/electron/pull/1389). |
|
| **April 2015** | [Atom Shell is re-named Electron](https://github.com/electron/electron/pull/1389). |
|
||||||
| **May 2016** | [Electron releases `v1.0.0`](http://electron.atom.io/blog/2016/05/11/electron-1-0).|
|
| **May 2016** | [Electron releases `v1.0.0`](https://electron.atom.io/blog/2016/05/11/electron-1-0).|
|
||||||
| **May 2016** | [Electron apps compatible with Mac App Store](http://electron.atom.io/docs/tutorial/mac-app-store-submission-guide).|
|
| **May 2016** | [Electron apps compatible with Mac App Store](https://electron.atom.io/docs/tutorial/mac-app-store-submission-guide).|
|
||||||
| **August 2016** | [Windows Store support for Electron apps](http://electron.atom.io/docs/tutorial/windows-store-guide).|
|
| **August 2016** | [Windows Store support for Electron apps](https://electron.atom.io/docs/tutorial/windows-store-guide).|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# การเข้าถึง (Accessibility)
|
# การเข้าถึง (Accessibility)
|
||||||
|
|
||||||
การที่จะทำให้แอพพิเคชั่นนั้นเข้าถึงได้เป็นเรื่องที่สำคัญมาก และ เรามีความสุขที่จะต้อนรับความสามารถใหม่ของเราสู่ [Devtron](http://electron.atom.io/devtron) และ [Spectron](http://electron.atom.io/spectron) ซึ่งได้ให้โอกาสผู้พัฒนาในการที่จะสร้างแอพพิเคชั่นที่ดีขึ้นเพื่อทุกๆคน
|
การที่จะทำให้แอพพิเคชั่นนั้นเข้าถึงได้เป็นเรื่องที่สำคัญมาก และ เรามีความสุขที่จะต้อนรับความสามารถใหม่ของเราสู่ [Devtron](https://electron.atom.io/devtron) และ [Spectron](https://electron.atom.io/spectron) ซึ่งได้ให้โอกาสผู้พัฒนาในการที่จะสร้างแอพพิเคชั่นที่ดีขึ้นเพื่อทุกๆคน
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
ความสามารถใหม่ๆนี้นำอุปกรณ์การแก้ไขต่างๆเข้ามาใส่แอพ Electron ของคุณ คุณสามารถเลือกที่จะแก้ไขบททดสองของคุณได้ด้วย Spectron หรือว่าใช้มันใน DevTools ด้วย Devtron
|
ความสามารถใหม่ๆนี้นำอุปกรณ์การแก้ไขต่างๆเข้ามาใส่แอพ Electron ของคุณ คุณสามารถเลือกที่จะแก้ไขบททดสองของคุณได้ด้วย Spectron หรือว่าใช้มันใน DevTools ด้วย Devtron
|
||||||
|
|
||||||
กรุณาอ่านต่อเพื่อบทสรุปของอุปกรณ์หรือดู [เอกสารการเข้าถึง](http://electron.atom.io/docs/tutorial/accessibility) ของเราสำหรับข้อมูลเพิ่มเติม
|
กรุณาอ่านต่อเพื่อบทสรุปของอุปกรณ์หรือดู [เอกสารการเข้าถึง](https://electron.atom.io/docs/tutorial/accessibility) ของเราสำหรับข้อมูลเพิ่มเติม
|
||||||
|
|
||||||
### Spectron
|
### Spectron
|
||||||
|
|
||||||
|
@ -37,4 +37,4 @@ app.client.autidAccessibility().then(function (audit) {
|
||||||
|
|
||||||
คุณสามารถศึกษาเพิ่มเติมเกี่ยวกับมันได้ที่ [รีโปนี้](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules)
|
คุณสามารถศึกษาเพิ่มเติมเกี่ยวกับมันได้ที่ [รีโปนี้](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules)
|
||||||
|
|
||||||
ถ้าคุณมีความรู้เกี่ยวกับอุปกรณือื่นๆที่สามารถใช้กับ Electron ได้ โปรดใส่มันเพิ่มใน [เอกสารการเข้าถึง](http://electron.atom.io/docs/tutorial/accessibility) ด้วยการขอดึงจาก Electron (pull request)
|
ถ้าคุณมีความรู้เกี่ยวกับอุปกรณือื่นๆที่สามารถใช้กับ Electron ได้ โปรดใส่มันเพิ่มใน [เอกสารการเข้าถึง](https://electron.atom.io/docs/tutorial/accessibility) ด้วยการขอดึงจาก Electron (pull request)
|
||||||
|
|
|
@ -238,7 +238,7 @@ $ npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
For more example apps, see the
|
For more example apps, see the
|
||||||
[list of boilerplates](http://electron.atom.io/community/#boilerplates)
|
[list of boilerplates](https://electron.atom.io/community/#boilerplates)
|
||||||
created by the awesome electron community.
|
created by the awesome electron community.
|
||||||
|
|
||||||
[share-data]: ../faq.md#how-to-share-data-between-web-pages
|
[share-data]: ../faq.md#how-to-share-data-between-web-pages
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Lütfen kullandığınız dokümanın Electron versiyonunuzla aynı olduğundan emin olun.
|
Lütfen kullandığınız dokümanın Electron versiyonunuzla aynı olduğundan emin olun.
|
||||||
Versiyon numarası okuduğunuz dokümanın URL'sindekiyle aynı olmalı. Eğer aynı değilse, muhtemelen geliştirme aşamasındaki API değişikliklerini içerebilecek dokümantasyonudur.
|
Versiyon numarası okuduğunuz dokümanın URL'sindekiyle aynı olmalı. Eğer aynı değilse, muhtemelen geliştirme aşamasındaki API değişikliklerini içerebilecek dokümantasyonudur.
|
||||||
Eğer öyleyse, atom.io üzerinden [mevcut sürümler](http://electron.atom.io/docs/)e göz atabilirsiniz ya da eğer GitHub arayüzünü kullanıyorsanız "Switch branches/tags" açılır menüsünden versiyonunuza uygun olanı seçebilirsiniz.
|
Eğer öyleyse, atom.io üzerinden [mevcut sürümler](https://electron.atom.io/docs/)e göz atabilirsiniz ya da eğer GitHub arayüzünü kullanıyorsanız "Switch branches/tags" açılır menüsünden versiyonunuza uygun olanı seçebilirsiniz.
|
||||||
|
|
||||||
## SSS(Sıkça Sorulan Sorular)
|
## SSS(Sıkça Sorulan Sorular)
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
використовуєте документацію із development гілки,
|
використовуєте документацію із development гілки,
|
||||||
яка може містити зміни в API, які не сумісні з вашою версією Electron.
|
яка може містити зміни в API, які не сумісні з вашою версією Electron.
|
||||||
Якщо це так, тоді Ви можете переключитись на іншу версію документації
|
Якщо це так, тоді Ви можете переключитись на іншу версію документації
|
||||||
із списку [доступних версій](http://electron.atom.io/docs/) на atom.io,
|
із списку [доступних версій](https://electron.atom.io/docs/) на atom.io,
|
||||||
або якщо ви використовуєте інтеррфейс GitHub,
|
або якщо ви використовуєте інтеррфейс GitHub,
|
||||||
тоді відкрийте список "Switch branches/tags" і виберіть потрібну вам
|
тоді відкрийте список "Switch branches/tags" і виберіть потрібну вам
|
||||||
версію із списку тегів.
|
версію із списку тегів.
|
||||||
|
|
|
@ -172,7 +172,7 @@ const template = [
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: 'Learn More',
|
label: 'Learn More',
|
||||||
click () { require('electron').shell.openExternal('http://electron.atom.io') }
|
click () { require('electron').shell.openExternal('https://electron.atom.io') }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -147,7 +147,7 @@ CSS通过 `flex` 布局设置 `width` 和 `height`,并允许元素缩小到0px
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<webview src="https://github.com" partition="persist:github"></webview>
|
<webview src="https://github.com" partition="persist:github"></webview>
|
||||||
<webview src="http://electron.atom.io" partition="electron"></webview>
|
<webview src="https://electron.atom.io" partition="electron"></webview>
|
||||||
```
|
```
|
||||||
|
|
||||||
为 page 设置 session。如果初始值为 `partition` ,这个 page 将会为app中的所有 page 应用同一个持续有效的 session。如果没有 `persist:` 前缀, 这个 page 将会使用一个历史 session。通过分配使用相同的 `partition`, 所有的 page 都可以分享相同的session。如果 `partition` 没有设置,那 app 将使用默认的 session。
|
为 page 设置 session。如果初始值为 `partition` ,这个 page 将会为app中的所有 page 应用同一个持续有效的 session。如果没有 `persist:` 前缀, 这个 page 将会使用一个历史 session。通过分配使用相同的 `partition`, 所有的 page 都可以分享相同的session。如果 `partition` 没有设置,那 app 将使用默认的 session。
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[![Electron Logo](http://electron.atom.io/images/electron-logo.svg)](http://electron.atom.io/)
|
[![Electron Logo](https://electron.atom.io/images/electron-logo.svg)](https://electron.atom.io/)
|
||||||
|
|
||||||
[![Travis Build Status](https://travis-ci.org/electron/electron.svg?branch=master)](https://travis-ci.org/electron/electron)
|
[![Travis Build Status](https://travis-ci.org/electron/electron.svg?branch=master)](https://travis-ci.org/electron/electron)
|
||||||
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/kvxe4byi7jcxbe26/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/electron)
|
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/kvxe4byi7jcxbe26/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/electron)
|
||||||
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
Electron框架,让您可使用JavaScript, HTML 及 CSS 编写桌面程序。
|
Electron框架,让您可使用JavaScript, HTML 及 CSS 编写桌面程序。
|
||||||
它是基于[Node.js](https://nodejs.org/)和[Chromium](http://www.chromium.org)开发的,
|
它是基于[Node.js](https://nodejs.org/)和[Chromium](http://www.chromium.org)开发的,
|
||||||
[Atom editor](https://github.com/atom/atom)以及很多其他的[apps](http://electron.atom.io/apps)就是使用Electron编写的。
|
[Atom editor](https://github.com/atom/atom)以及很多其他的[apps](https://electron.atom.io/apps)就是使用Electron编写的。
|
||||||
|
|
||||||
请关注Twitter [@ElectronJS](https://twitter.com/electronjs) 以获得重要通告。
|
请关注Twitter [@ElectronJS](https://twitter.com/electronjs) 以获得重要通告。
|
||||||
|
|
||||||
|
|
|
@ -195,6 +195,6 @@ $ cd electron-quick-start
|
||||||
$ npm install && npm start
|
$ npm install && npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
更多 apps 例子,查看 electron 社区创建的 [list of boilerplates](http://electron.atom.io/community/#boilerplates)。
|
更多 apps 例子,查看 electron 社区创建的 [list of boilerplates](https://electron.atom.io/community/#boilerplates)。
|
||||||
|
|
||||||
[share-data]: ../faq.md#how-to-share-data-between-web-pages
|
[share-data]: ../faq.md#how-to-share-data-between-web-pages
|
||||||
|
|
|
@ -155,4 +155,4 @@ client
|
||||||
当然,你也可以在运行 Electron 时传入参数指定你 app 的所在文件夹。这步可以免去你拷贝-粘贴你的 app 到 Electron 的资源目录。
|
当然,你也可以在运行 Electron 时传入参数指定你 app 的所在文件夹。这步可以免去你拷贝-粘贴你的 app 到 Electron 的资源目录。
|
||||||
|
|
||||||
[chrome-driver]: https://sites.google.com/a/chromium.org/chromedriver/
|
[chrome-driver]: https://sites.google.com/a/chromium.org/chromedriver/
|
||||||
[spectron]: http://electron.atom.io/spectron
|
[spectron]: https://electron.atom.io/spectron
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[![Electron Logo](http://electron.atom.io/images/electron-logo.svg)](http://electron.atom.io/)
|
[![Electron Logo](https://electron.atom.io/images/electron-logo.svg)](https://electron.atom.io/)
|
||||||
|
|
||||||
[![Travis Build Status](https://travis-ci.org/electron/electron.svg?branch=master)](https://travis-ci.org/electron/electron)
|
[![Travis Build Status](https://travis-ci.org/electron/electron.svg?branch=master)](https://travis-ci.org/electron/electron)
|
||||||
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/kvxe4byi7jcxbe26/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/electron)
|
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/kvxe4byi7jcxbe26/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/electron)
|
||||||
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
Electron框架讓你可以用JavaScript, HTML 和 CSS 編寫跨平台的應用程式。
|
Electron框架讓你可以用JavaScript, HTML 和 CSS 編寫跨平台的應用程式。
|
||||||
它是基於[Node.js](https://nodejs.org/)和[Chromium](http://www.chromium.org),
|
它是基於[Node.js](https://nodejs.org/)和[Chromium](http://www.chromium.org),
|
||||||
並且被[Atom editor](https://github.com/atom/atom)及許多其他的[apps](http://electron.atom.io/apps)所使用。
|
並且被[Atom editor](https://github.com/atom/atom)及許多其他的[apps](https://electron.atom.io/apps)所使用。
|
||||||
|
|
||||||
請關注[@ElectronJS](https://twitter.com/electronjs)的Twitter以獲得重要公告。
|
請關注[@ElectronJS](https://twitter.com/electronjs)的Twitter以獲得重要公告。
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
# 關於 Electron
|
# 關於 Electron
|
||||||
|
|
||||||
[Electron](http://electron.atom.io) 是 GitHub 為了透過 HTML, CSS 和 JavaScript 開發跨平台桌面應用程式, 所使用的一個開放原始碼函式庫。為了達成這個目標,Electron 把 [Chromium](https://www.chromium.org/Home) 和 [Node.js](https://nodejs.org) 整合成單一的執行程式,應用程式可以在 Mac, Windows, 和 Linux 作業系統下執行。
|
[Electron](https://electron.atom.io) 是 GitHub 為了透過 HTML, CSS 和 JavaScript 開發跨平台桌面應用程式, 所使用的一個開放原始碼函式庫。為了達成這個目標,Electron 把 [Chromium](https://www.chromium.org/Home) 和 [Node.js](https://nodejs.org) 整合成單一的執行程式,應用程式可以在 Mac, Windows, 和 Linux 作業系統下執行。
|
||||||
|
|
||||||
Electron 在 2013 年創立,做為 [Atom](https://atom.io) (一款由GitHub 推出,可以快速修改調整的文字編輯器) 的程式框架, 這兩個專案在 2014 年春天開放原始碼。
|
Electron 在 2013 年創立,做為 [Atom](https://atom.io) (一款由GitHub 推出,可以快速修改調整的文字編輯器) 的程式框架, 這兩個專案在 2014 年春天開放原始碼。
|
||||||
|
|
||||||
在這之後,Electron 變成一個非成流行的工具,為許多開放原始碼開發者、新創事業,以及已發展的公司所使用(請見[Apps](http://electron.atom.io/apps/))。
|
在這之後,Electron 變成一個非成流行的工具,為許多開放原始碼開發者、新創事業,以及已發展的公司所使用(請見[Apps](https://electron.atom.io/apps/))。
|
||||||
|
|
||||||
若要了解更多關於 Electron 開發者或發行版的資訊,或想要開始使用 Electron 開發應用程式,可以參考[快速入門](https://github.com/electron/electron/blob/master/docs-translations/zh-TW/tutorial/quick-start.md)
|
若要了解更多關於 Electron 開發者或發行版的資訊,或想要開始使用 Electron 開發應用程式,可以參考[快速入門](https://github.com/electron/electron/blob/master/docs-translations/zh-TW/tutorial/quick-start.md)
|
||||||
|
|
||||||
|
@ -27,13 +27,13 @@ Electron 在 Chromium 提出新的穩定版本時會提出更新,時間通常
|
||||||
|
|
||||||
### 版本控制
|
### 版本控制
|
||||||
|
|
||||||
由於同時高度依賴 Node.js 和 Chromium, Electron 在版本控制上處於一個有點特別的情況,所以不太遵照[ `semver`規範](http://semver.org)。你必須隨時參考一個特定的 Electron 版本。請參考 [Read more about Electron's versioning](http://electron.atom.io/docs/tutorial/electron-versioning/) 或是察看 [versions currently in use](https://electron.atom.io/#electron-versions).
|
由於同時高度依賴 Node.js 和 Chromium, Electron 在版本控制上處於一個有點特別的情況,所以不太遵照[ `semver`規範](http://semver.org)。你必須隨時參考一個特定的 Electron 版本。請參考 [Read more about Electron's versioning](https://electron.atom.io/docs/tutorial/electron-versioning/) 或是察看 [versions currently in use](https://electron.atom.io/#electron-versions).
|
||||||
|
|
||||||
### 長期支援
|
### 長期支援
|
||||||
|
|
||||||
Electron 目前並未對舊的版本提供長期支援,如果你目前使用的 Electron 版本可以運作, 你可以隨自己的喜好持續使用。如果你想使用新版本所提供的功能,你必須更新到較新的版本。
|
Electron 目前並未對舊的版本提供長期支援,如果你目前使用的 Electron 版本可以運作, 你可以隨自己的喜好持續使用。如果你想使用新版本所提供的功能,你必須更新到較新的版本。
|
||||||
|
|
||||||
一個主要的更新是在 `v1.0.0` 版本。如果你使用比這個版本更舊的 Electron,你必須參考 [read more about the `v1.0.0` changes](http://electron.atom.io/blog/2016/05/11/electron-1-0).
|
一個主要的更新是在 `v1.0.0` 版本。如果你使用比這個版本更舊的 Electron,你必須參考 [read more about the `v1.0.0` changes](https://electron.atom.io/blog/2016/05/11/electron-1-0).
|
||||||
|
|
||||||
## 核心哲學
|
## 核心哲學
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ Electron 目前並未對舊的版本提供長期支援,如果你目前使用
|
||||||
|
|
||||||
舉例來說, Electron 只使用 Chromium 在圖形渲染上的函式庫,而不使用整個 Chromium,這讓它更容易隨著 Chromium 更新,但也表示有些在 Google Chrome 瀏覽器上擁有的功能,在 Electron中並不存在。
|
舉例來說, Electron 只使用 Chromium 在圖形渲染上的函式庫,而不使用整個 Chromium,這讓它更容易隨著 Chromium 更新,但也表示有些在 Google Chrome 瀏覽器上擁有的功能,在 Electron中並不存在。
|
||||||
|
|
||||||
會加入 Electron 的新功能,主要是原生的 APIs。如果某個功能被與它相關的 Node.js 模組所擁有,它在 Electron 中也必須存在。請參考[Electron tools built by the community](http://electron.atom.io/community).
|
會加入 Electron 的新功能,主要是原生的 APIs。如果某個功能被與它相關的 Node.js 模組所擁有,它在 Electron 中也必須存在。請參考[Electron tools built by the community](https://electron.atom.io/community).
|
||||||
|
|
||||||
## 歷史
|
## 歷史
|
||||||
|
|
||||||
|
@ -52,6 +52,6 @@ Electron 目前並未對舊的版本提供長期支援,如果你目前使用
|
||||||
| **2013年4月**| [Atom Shell 專案開始](https://github.com/electron/electron/commit/6ef8875b1e93787fa9759f602e7880f28e8e6b45).|
|
| **2013年4月**| [Atom Shell 專案開始](https://github.com/electron/electron/commit/6ef8875b1e93787fa9759f602e7880f28e8e6b45).|
|
||||||
| **2014年5月** | [Atom Shell 專案開放原始碼](http://blog.atom.io/2014/05/06/atom-is-now-open-source.html). |
|
| **2014年5月** | [Atom Shell 專案開放原始碼](http://blog.atom.io/2014/05/06/atom-is-now-open-source.html). |
|
||||||
| **2015年4月** | [Atom Shell 專案重新命名為 Electron](https://github.com/electron/electron/pull/1389). |
|
| **2015年4月** | [Atom Shell 專案重新命名為 Electron](https://github.com/electron/electron/pull/1389). |
|
||||||
| **2016年5月** | [Electron 發行 `v1.0.0` 版](http://electron.atom.io/blog/2016/05/11/electron-1-0).|
|
| **2016年5月** | [Electron 發行 `v1.0.0` 版](https://electron.atom.io/blog/2016/05/11/electron-1-0).|
|
||||||
| **2016年5月** | [Electron 應用程式可以和 Mac App 市集相容](http://electron.atom.io/docs/tutorial/mac-app-store-submission-guide).|
|
| **2016年5月** | [Electron 應用程式可以和 Mac App 市集相容](https://electron.atom.io/docs/tutorial/mac-app-store-submission-guide).|
|
||||||
| **2016年8月** | [Windows 市集支援 Electron 應用程式](http://electron.atom.io/docs/tutorial/windows-store-guide).|
|
| **2016年8月** | [Windows 市集支援 Electron 應用程式](https://electron.atom.io/docs/tutorial/windows-store-guide).|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
# 可存取性
|
# 可存取性
|
||||||
|
|
||||||
產生具可存取性的應用程式是非常重要的,我們非常高興能介紹 [Devtron](http://electron.atom.io/devtron) 和 [Spectron](http://electron.atom.io/spectron) 這兩個新功能,這可以讓開發者更有機會能開發對大家來說更棒的應用程式。
|
產生具可存取性的應用程式是非常重要的,我們非常高興能介紹 [Devtron](https://electron.atom.io/devtron) 和 [Spectron](https://electron.atom.io/spectron) 這兩個新功能,這可以讓開發者更有機會能開發對大家來說更棒的應用程式。
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
在 Electron 應用程式中,可存取性的議題和在開發網站時非常類似,因為在根本上兩者都使用 HTML。然而對 Electron 應用程式來說,你不能為了增加可存取性而使用線上的程式審計機制,因為你的應用程式並沒有一個 URL 連結能夠引導審計者.
|
在 Electron 應用程式中,可存取性的議題和在開發網站時非常類似,因為在根本上兩者都使用 HTML。然而對 Electron 應用程式來說,你不能為了增加可存取性而使用線上的程式審計機制,因為你的應用程式並沒有一個 URL 連結能夠引導審計者.
|
||||||
|
|
||||||
這些新的功能也為你的 Electron 應用程式帶來新的審計工具,你可以選擇要透過 Spectron 為你的測試增加審計,或是透過 Devtron 在開發者工具中使用。請參考 [accessibility documentation](http://electron.atom.io/docs/tutorial/accessibility) 以獲得更多資訊。
|
這些新的功能也為你的 Electron 應用程式帶來新的審計工具,你可以選擇要透過 Spectron 為你的測試增加審計,或是透過 Devtron 在開發者工具中使用。請參考 [accessibility documentation](https://electron.atom.io/docs/tutorial/accessibility) 以獲得更多資訊。
|
||||||
|
|
||||||
### Spectron
|
### Spectron
|
||||||
|
|
||||||
|
@ -30,4 +30,4 @@ app.client.auditAccessibility().then(function (audit) {
|
||||||
|
|
||||||
這兩個工具都使用 Google 為 Chrome 所建立的 [Accessibility Developer Tools](https://github.com/GoogleChrome/accessibility-developer-tools) 函式庫。你可以在 [repository's wiki](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules) 學到更多在這個函式庫中有關可存取性審計的資訊。
|
這兩個工具都使用 Google 為 Chrome 所建立的 [Accessibility Developer Tools](https://github.com/GoogleChrome/accessibility-developer-tools) 函式庫。你可以在 [repository's wiki](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules) 學到更多在這個函式庫中有關可存取性審計的資訊。
|
||||||
|
|
||||||
如果你知道其他有關 Electron 可存取性來說更好的工具, 請把他們透過 pull request 加入 [accessibility documentation](http://electron.atom.io/docs/tutorial/accessibility) 。
|
如果你知道其他有關 Electron 可存取性來說更好的工具, 請把他們透過 pull request 加入 [accessibility documentation](https://electron.atom.io/docs/tutorial/accessibility) 。
|
||||||
|
|
|
@ -103,7 +103,7 @@ clipboard.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
clipboard.write({
|
clipboard.write({
|
||||||
text: 'http://electron.atom.io',
|
text: 'https://electron.atom.io',
|
||||||
bookmark: 'Electron Homepage'
|
bookmark: 'Electron Homepage'
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
|
@ -192,7 +192,7 @@ const template = [
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: 'Learn More',
|
label: 'Learn More',
|
||||||
click () { require('electron').shell.openExternal('http://electron.atom.io') }
|
click () { require('electron').shell.openExternal('https://electron.atom.io') }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,7 +177,7 @@ Web security is enabled by default.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<webview src="https://github.com" partition="persist:github"></webview>
|
<webview src="https://github.com" partition="persist:github"></webview>
|
||||||
<webview src="http://electron.atom.io" partition="electron"></webview>
|
<webview src="https://electron.atom.io" partition="electron"></webview>
|
||||||
```
|
```
|
||||||
|
|
||||||
Sets the session used by the page. If `partition` starts with `persist:`, the
|
Sets the session used by the page. If `partition` starts with `persist:`, the
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
# About Electron
|
# About Electron
|
||||||
|
|
||||||
[Electron](http://electron.atom.io) is an open source library developed by GitHub for building cross-platform desktop applications with HTML, CSS, and JavaScript. Electron accomplishes this by combining [Chromium](https://www.chromium.org/Home) and [Node.js](https://nodejs.org) into a single runtime and apps can be packaged for Mac, Windows, and Linux.
|
[Electron](https://electron.atom.io) is an open source library developed by GitHub for building cross-platform desktop applications with HTML, CSS, and JavaScript. Electron accomplishes this by combining [Chromium](https://www.chromium.org/Home) and [Node.js](https://nodejs.org) into a single runtime and apps can be packaged for Mac, Windows, and Linux.
|
||||||
|
|
||||||
Electron began in 2013 as the framework on which [Atom](https://atom.io), GitHub's hackable text editor, would be built. The two were open sourced in the Spring of 2014.
|
Electron began in 2013 as the framework on which [Atom](https://atom.io), GitHub's hackable text editor, would be built. The two were open sourced in the Spring of 2014.
|
||||||
|
|
||||||
It has since become a popular tool used by open source developers, startups, and established companies. [See who is building on Electron](http://electron.atom.io/apps/).
|
It has since become a popular tool used by open source developers, startups, and established companies. [See who is building on Electron](https://electron.atom.io/apps/).
|
||||||
|
|
||||||
Read on to learn more about the contributors and releases of Electron or get started building with Electron in the [Quick Start Guide](quick-start.md).
|
Read on to learn more about the contributors and releases of Electron or get started building with Electron in the [Quick Start Guide](quick-start.md).
|
||||||
|
|
||||||
|
@ -27,13 +27,13 @@ In Electron, Node.js and Chromium share a single V8 instance—usually the versi
|
||||||
|
|
||||||
### Versioning
|
### Versioning
|
||||||
|
|
||||||
Due to the hard dependency on Node.js and Chromium, Electron is in a tricky versioning position and [does not follow `semver`](http://semver.org). You should therefore always reference a specific version of Electron. [Read more about Electron's versioning](http://electron.atom.io/docs/tutorial/electron-versioning/) or see the [versions currently in use](https://electron.atom.io/#electron-versions).
|
Due to the hard dependency on Node.js and Chromium, Electron is in a tricky versioning position and [does not follow `semver`](http://semver.org). You should therefore always reference a specific version of Electron. [Read more about Electron's versioning](https://electron.atom.io/docs/tutorial/electron-versioning/) or see the [versions currently in use](https://electron.atom.io/#electron-versions).
|
||||||
|
|
||||||
### LTS
|
### LTS
|
||||||
|
|
||||||
Long term support of older versions of Electron does not currently exist. If your current version of Electron works for you, you can stay on it for as long as you'd like. If you want to make use of new features as they come in you should upgrade to a newer version.
|
Long term support of older versions of Electron does not currently exist. If your current version of Electron works for you, you can stay on it for as long as you'd like. If you want to make use of new features as they come in you should upgrade to a newer version.
|
||||||
|
|
||||||
A major update came with version `v1.0.0`. If you're not yet using this version, you should [read more about the `v1.0.0` changes](http://electron.atom.io/blog/2016/05/11/electron-1-0).
|
A major update came with version `v1.0.0`. If you're not yet using this version, you should [read more about the `v1.0.0` changes](https://electron.atom.io/blog/2016/05/11/electron-1-0).
|
||||||
|
|
||||||
## Core Philosophy
|
## Core Philosophy
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ In order to keep Electron small (file size) and sustainable (the spread of depen
|
||||||
|
|
||||||
For instance, Electron uses just the rendering library from Chromium rather than all of Chromium. This makes it easier to upgrade Chromium but also means some browser features found in Google Chrome do not exist in Electron.
|
For instance, Electron uses just the rendering library from Chromium rather than all of Chromium. This makes it easier to upgrade Chromium but also means some browser features found in Google Chrome do not exist in Electron.
|
||||||
|
|
||||||
New features added to Electron should primarily be native APIs. If a feature can be its own Node.js module, it probably should be. See the [Electron tools built by the community](http://electron.atom.io/community).
|
New features added to Electron should primarily be native APIs. If a feature can be its own Node.js module, it probably should be. See the [Electron tools built by the community](https://electron.atom.io/community).
|
||||||
|
|
||||||
## History
|
## History
|
||||||
|
|
||||||
|
@ -52,6 +52,6 @@ Below are milestones in Electron's history.
|
||||||
| **April 2013**| [Atom Shell is started](https://github.com/electron/electron/commit/6ef8875b1e93787fa9759f602e7880f28e8e6b45).|
|
| **April 2013**| [Atom Shell is started](https://github.com/electron/electron/commit/6ef8875b1e93787fa9759f602e7880f28e8e6b45).|
|
||||||
| **May 2014** | [Atom Shell is open sourced](http://blog.atom.io/2014/05/06/atom-is-now-open-source.html). |
|
| **May 2014** | [Atom Shell is open sourced](http://blog.atom.io/2014/05/06/atom-is-now-open-source.html). |
|
||||||
| **April 2015** | [Atom Shell is re-named Electron](https://github.com/electron/electron/pull/1389). |
|
| **April 2015** | [Atom Shell is re-named Electron](https://github.com/electron/electron/pull/1389). |
|
||||||
| **May 2016** | [Electron releases `v1.0.0`](http://electron.atom.io/blog/2016/05/11/electron-1-0).|
|
| **May 2016** | [Electron releases `v1.0.0`](https://electron.atom.io/blog/2016/05/11/electron-1-0).|
|
||||||
| **May 2016** | [Electron apps compatible with Mac App Store](http://electron.atom.io/docs/tutorial/mac-app-store-submission-guide).|
|
| **May 2016** | [Electron apps compatible with Mac App Store](https://electron.atom.io/docs/tutorial/mac-app-store-submission-guide).|
|
||||||
| **August 2016** | [Windows Store support for Electron apps](http://electron.atom.io/docs/tutorial/windows-store-guide).|
|
| **August 2016** | [Windows Store support for Electron apps](https://electron.atom.io/docs/tutorial/windows-store-guide).|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
# Accessibility
|
# Accessibility
|
||||||
|
|
||||||
Making accessible applications is important and we're happy to introduce new functionality to [Devtron](http://electron.atom.io/devtron) and [Spectron](http://electron.atom.io/spectron) that gives developers the opportunity to make their apps better for everyone.
|
Making accessible applications is important and we're happy to introduce new functionality to [Devtron](https://electron.atom.io/devtron) and [Spectron](https://electron.atom.io/spectron) that gives developers the opportunity to make their apps better for everyone.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Accessibility concerns in Electron applications are similar to those of websites because they're both ultimately HTML. With Electron apps, however, you can't use the online resources for accessibility audits because your app doesn't have a URL to point the auditor to.
|
Accessibility concerns in Electron applications are similar to those of websites because they're both ultimately HTML. With Electron apps, however, you can't use the online resources for accessibility audits because your app doesn't have a URL to point the auditor to.
|
||||||
|
|
||||||
These new features bring those auditing tools to your Electron app. You can choose to add audits to your tests with Spectron or use them within DevTools with Devtron. Read on for a summary of the tools or checkout our [accessibility documentation](http://electron.atom.io/docs/tutorial/accessibility) for more information.
|
These new features bring those auditing tools to your Electron app. You can choose to add audits to your tests with Spectron or use them within DevTools with Devtron. Read on for a summary of the tools or checkout our [accessibility documentation](https://electron.atom.io/docs/tutorial/accessibility) for more information.
|
||||||
|
|
||||||
### Spectron
|
### Spectron
|
||||||
|
|
||||||
|
@ -30,4 +30,4 @@ In Devtron, there is a new accessibility tab which will allow you to audit a pag
|
||||||
|
|
||||||
Both of these tools are using the [Accessibility Developer Tools](https://github.com/GoogleChrome/accessibility-developer-tools) library built by Google for Chrome. You can learn more about the accessibility audit rules this library uses on that [repository's wiki](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules).
|
Both of these tools are using the [Accessibility Developer Tools](https://github.com/GoogleChrome/accessibility-developer-tools) library built by Google for Chrome. You can learn more about the accessibility audit rules this library uses on that [repository's wiki](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules).
|
||||||
|
|
||||||
If you know of other great accessibility tools for Electron, add them to the [accessibility documentation](http://electron.atom.io/docs/tutorial/accessibility) with a pull request.
|
If you know of other great accessibility tools for Electron, add them to the [accessibility documentation](https://electron.atom.io/docs/tutorial/accessibility) with a pull request.
|
||||||
|
|
|
@ -238,7 +238,7 @@ $ npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
For more example apps, see the
|
For more example apps, see the
|
||||||
[list of boilerplates](http://electron.atom.io/community/#boilerplates)
|
[list of boilerplates](https://electron.atom.io/community/#boilerplates)
|
||||||
created by the awesome electron community.
|
created by the awesome electron community.
|
||||||
|
|
||||||
[share-data]: ../faq.md#how-to-share-data-between-web-pages
|
[share-data]: ../faq.md#how-to-share-data-between-web-pages
|
||||||
|
|
|
@ -169,4 +169,4 @@ your app's folder. This eliminates the need to copy-paste your app into
|
||||||
Electron's resource directory.
|
Electron's resource directory.
|
||||||
|
|
||||||
[chrome-driver]: https://sites.google.com/a/chromium.org/chromedriver/
|
[chrome-driver]: https://sites.google.com/a/chromium.org/chromedriver/
|
||||||
[spectron]: http://electron.atom.io/spectron
|
[spectron]: https://electron.atom.io/spectron
|
||||||
|
|
|
@ -45,10 +45,10 @@ describe('clipboard module', function () {
|
||||||
it('returns title and url', function () {
|
it('returns title and url', function () {
|
||||||
if (process.platform === 'linux') return
|
if (process.platform === 'linux') return
|
||||||
|
|
||||||
clipboard.writeBookmark('a title', 'http://electron.atom.io')
|
clipboard.writeBookmark('a title', 'https://electron.atom.io')
|
||||||
assert.deepEqual(clipboard.readBookmark(), {
|
assert.deepEqual(clipboard.readBookmark(), {
|
||||||
title: 'a title',
|
title: 'a title',
|
||||||
url: 'http://electron.atom.io'
|
url: 'https://electron.atom.io'
|
||||||
})
|
})
|
||||||
|
|
||||||
clipboard.writeText('no bookmark')
|
clipboard.writeText('no bookmark')
|
||||||
|
|
Loading…
Reference in a new issue