
galiant
18.02.2017
21:24:19
посоветуешь либу ?

Vladimir
18.02.2017
21:24:27
нет
в вебе это webworkers (IE), serviceworkers
в электроне не знаю как

Google

.
18.02.2017
21:50:59

Сергей
19.02.2017
08:24:35

Vladimir
19.02.2017
09:05:17
как ты вообще процесс заблокировал? там не асинк апи?

galiant
19.02.2017
09:15:55
Вообщем немного разобрался в ситуации. чтение из файла бд из main процесса проиходило моментально, блокировался render процесс при передаче в него через webContent.send этих результатов.
при этом если передавать эти результаты через глобальную переменную на стороне chromiuma: require('electron').remote.getGlobal('data').results то все передается моментально
почему же webContent.send очень сильно съедает оперативку и виснит =(

Сергей
19.02.2017
09:23:15
Ну не надо было все передавать в рендерпроцесс
On demand решило было проблему

Storm
19.02.2017
09:24:43
Через ipc передавай

galiant
19.02.2017
09:45:10

Сергей
19.02.2017
09:45:23
Я думаю тебе все данные сразу не нужны

galiant
19.02.2017
09:46:56
нужны, буду наверно через global передавать.. попробую поискать либо по синхронизации redux store между render и main процессами

Google

galiant
19.02.2017
09:47:06
либу*

Сергей
19.02.2017
09:47:31

galiant
19.02.2017
09:49:28
Глобал плохо
а вот документации говорит что неплохо =) http://electron.atom.io/docs/faq/#how-to-share-data-between-web-pages

Сергей
19.02.2017
09:50:52
Явное лучше не явного же

galiant
19.02.2017
09:51:50
ща оберну переменную в global в качестве redux-store и неявное станет явным =)))

joy
20.02.2017
02:25:57
Кто-то работал с большим количеством вебвью?
https://github.com/electron/electron/issues/8622


Electron.js releases
21.02.2017
18:37:31
electron v1.6.1 beta
https://github.com/electron/electron/releases/tag/v1.6.1
Note: This is a beta release. This is the second release running on an
upgraded version of Chrome and may have some instability and/or regressions.
Please file new issues for any bugs you find in it.
This release is published to npm (https://www.npmjs.com/package/electron) under the beta tag and can be installed via npm install electron@beta.
Bug Fixes
Node's Buffer class is no longer available on the window global when
Node integration is disabled. #8605 (https://github.com/electron/electron/pull/8605)
Fixed an issue where certain modules, like coffee-script, threw errors
when required. #8618 (https://github.com/electron/electron/pull/8618)
Fixed an issue where the focused window would lose focus when an invisible
window was created. #8676 (https://github.com/electron/electron/pull/8676)
The minimumFontSize, defaultFontSize, and defaultMonospaceFontSize
settings can now be configured via the webpreferences attribute of a
tag. #8542 (https://github.com/electron/electron/pull/8542)
Fixed a crash where the browser context did not shutdown cleanly. #8654 (https://github.com/electron/electron/pull/8654)
Fixed a crash on file lock verification. #8679 (https://github.com/electron/electron/pull/8679)
macOS
Fixed an issue where a titleBarStyle value of hidden-inset did not work on
certain OS versions. #8619 (https://github.com/electron/electron/pull/8619)
Fixed an issue where private OS APIs were being used in the Mac App Store
build causing apps to be rejected. #8668 (https://github.com/electron/electron/pull/8668)
Fixed the scroll-touch-end event not firing. #8673 (https://github.com/electron/electron/pull/8673)
Fixed BrowserWindow.setVibrancy not working on certain OS versions. #8717 (https://github.com/electron/electron/pull/8717)
API Changes
Added a app.getFileIcon(path, callback) API to get the native icon for a
file type. #7851 (https://github.com/electron/electron/pull/7851)
The callback specified to the session.setCertificateVerifyProc API is now
provided the certificate verification result and can be rejected with any
error code supported by Chrome. #7955 (https://github.com/electron/electron/pull/7955)
The dialog.showMessageBox API now supports showing a checkbox with a
message in the dialog. The state of the checkbox will be provided to the
callback. #8590 (https://github.com/electron/electron/pull/8590)
webContents now emits a will-attach-webview event that can be used to
configure the settings of a tag before it is attached.
Calling event.preventDefault() will destroy the . #8584 (https://github.com/electron/electron/pull/8584)
The zoom preferences on webContents are now persisted in a session on a
per-origin basis. #8537 (https://github.com/electron/electron/pull/8537)
Added support for webContents.invalidate() on non-offscreen pages to
schedule a paint of the entire view. #8628 (https://github.com/electron/electron/pull/8628)
macOS
dialog.showSaveDialog now supports message, nameFieldLabel, and
showsTagField options. #8556 (https://github.com/electron/electron/pull/8556)
dialog.showOpenDialog now supports a message option. #8556 (https://github.com/electron/electron/pull/8556)
dialog.showOpenDialog now supports a noResolveAliases property to
disable automatic alias (symlink) resolution. #8617 (https://github.com/electron/electron/pull/8617)
Added a crashReporter.setExtraParameter API to adjust the extra data sent
on crashes. #8648 (https://github.com/electron/electron/pull/8648)


Sultan
26.02.2017
08:55:58
Добрый день, желающие поучаствовать в опросе для проекта уделите 5 минут https://goo.gl/forms/8m8wyHZw4REH6ouV2


Electron.js releases
01.03.2017
20:48:29
electron v1.6.2 beta
https://github.com/electron/electron/releases/tag/v1.6.2
Note: This is a beta release. This is the third release running on an
upgraded version of Chrome and may have some instability and/or regressions.
Please file new issues for any bugs you find in it.
This release is published to npm (https://www.npmjs.com/package/electron) under the beta tag and can be installed via npm install electron@beta.
Bug Fixes
Fixed an issue where the flash context menu would throw an error when
opened when fullscreen. #8739 (https://github.com/electron/electron/pull/8739)
Fixed an issue where the Buffer global would be unavailable in modules
required from preload scripts when node integration was disabled. #8758 (https://github.com/electron/electron/pull/8758)
Fixed a console warning message about a potential listener leak when more
than 10 tags were in a page. #8742 (https://github.com/electron/electron/pull/8742)
Fixed an issue where no such module errors would be incorrectly thrown in the
renderer process referencing browser process Electron modules. #8766 (https://github.com/electron/electron/pull/8766)
macOS
Fixed an issue where Quick Look would not work correctly when opened from a
file dialog. #8745 (https://github.com/electron/electron/pull/8745)
API Changes
Added a new async option to the menu.popup API that causes the method
to return immediately instead of after the menu is closed on all platforms
and also no longer blocks rendering updates on macOS. #8702 (https://github.com/electron/electron/pull/8702)
macOS
The dialog.showMessageBox API now supports the cancelId property
similar to other platforms. #8733 (https://github.com/electron/electron/pull/8733)


Lulz
02.03.2017
18:56:08
Привет! Нужен хороший гайд по интеграции сервера на ноде с электроном в .exe

Сергей
02.03.2017
20:43:50
Типа есть сервер и им нужно управлять из гуя?
Тут особо гайдов нет. Подойдут по любому языку ибо это общение меж процессами

Sheldhur
03.03.2017
01:05:35
как в электроне можно import сделать чтобы путь был какбэ полный, но относительно корня приложения
т.е. вместо import '../../../utils/helper'; как-то так import '/app/utils/helper';

Сергей
03.03.2017
04:57:17
Так же как и в случае ноды

Lulz
03.03.2017
05:16:22
хорошо, а как например сделать в electron "нажал кнопку запустил команду forever start node.js"?
как зашифровать файлы в ноде?

Сергей
03.03.2017
06:18:54

Google

Сергей
03.03.2017
06:19:03
Как из терминала

Lulz
03.03.2017
06:19:13
т.е например запущен процесс
я могу убить его forever stop app(PID)
?

Сергей
03.03.2017
06:19:48
Есть pm2 он удобнее

Lulz
03.03.2017
06:20:06
а он как работает, он убивает именно процессы ноды ?
и запускает соответственно

Сергей
03.03.2017
06:20:34
Он отлично работает
Если у кого появятся вопросы по вебпаку, задавайте их в профильном чатике @webpack_ru, не надо оффтопить здесь

Evjeni
07.03.2017
10:27:30
тут есть живые люди?

Vladimir
07.03.2017
10:27:33
да

Evjeni
07.03.2017
10:28:00
мейби было у кого такое же

Storm
07.03.2017
10:28:53
Шрифт с иконками подключён?

Evjeni
07.03.2017
10:30:25
import NavigationClose from 'material-ui/svg-icons/navigation/close';
ну как-то так

Алексей
07.03.2017
13:20:06

Evjeni
07.03.2017
13:23:08

Алексей
07.03.2017
13:23:54
у тебя SVG? или Шрифт?

Google

Evjeni
07.03.2017
13:24:13

Алексей
07.03.2017
13:24:55
скопипасть HTML воткни его в какойнибудь JS-fiddle - посмотри тоже ли самое ресуется.

Evjeni
07.03.2017
13:27:09

Алексей
07.03.2017
13:28:07
Ок. Видимо дело в версии Webkit электрона. Или баг. Попробуй иконки шрифтом. (Сторонние)

Evjeni
07.03.2017
17:59:24

Andrey
07.03.2017
19:25:20
Пасаны. А есть хорошнн решение для того чтоб делать drag окна используя действия мыши на представлении рендерингового процесса
Тьфу. Короч как тягать окошки не за заголовок окна а за вебкит?
Ну мне интересно быстрое с точки зрения производительности решение


Electron.js releases
07.03.2017
20:17:42
electron v1.6.3 beta
https://github.com/electron/electron/releases/tag/v1.6.3
Note: This is a beta release. This is release is running on an
upgraded version of Chrome and may have some instability and/or regressions.
Please file new issues for any bugs you find in it.
This release is published to npm (https://www.npmjs.com/package/electron) under the beta tag and can be installed via npm install electron@beta.
Bug Fixes
Fixed a crash in preload scripts when using the fetch API when context
isolation was enabled. #8804 (https://github.com/electron/electron/pull/8804)
The Node environment is now properly destroyed when V8 contexts are released.
#8811 (https://github.com/electron/electron/pull/8811)
Fixed an issue where the done event would be emitted twice for canceled
DownloadItem instances. #8678 (https://github.com/electron/electron/pull/8678)
Fixed a crash when loading a URL while there was a pending navigation entry.
#8724 (https://github.com/electron/electron/pull/8724)
Fixed an issue where the promise returned from webContents.executeJavaScript
would not resolve when no callback was specified. #8744 (https://github.com/electron/electron/pull/8744)
Windows
Fixed an issue where process.windowStore would be incorrect on machines with
a non-standard WindowsApps folder location. #8806 (https://github.com/electron/electron/pull/8806)
API Changes
Added a baseURLForDataURL option to the loadURL API that can be used
to set the base URL to load relative paths from in data URLs. #8799 (https://github.com/electron/electron/pull/8799)
macOS
Added an experimental touch bar API that can be set on a window via
BrowserWindow.setTouchBar. #8096 (https://github.com/electron/electron/pull/8096)


Сергей
07.03.2017
20:45:24

Andrey
07.03.2017
20:50:33

Сергей
07.03.2017
20:59:47
Доку надо читать
Но там особенность с хэндлингом ивэнтов

Andrey
07.03.2017
21:10:14
Я так и предположил почитав доку

Evjeni
07.03.2017
21:26:20