Sergey
Явное лучше не явного же
Anonymous
ща оберну переменную в global в качестве redux-store и неявное станет явным =)))
Anonymous
Кто-то работал с большим количеством вебвью? https://github.com/electron/electron/issues/8622
Electron.js releases
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
Добрый день, желающие поучаствовать в опросе для проекта уделите 5 минут https://goo.gl/forms/8m8wyHZw4REH6ouV2
Electron.js releases
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)
kdm🇩🇰
Привет! Нужен хороший гайд по интеграции сервера на ноде с электроном в .exe
Sergey
Типа есть сервер и им нужно управлять из гуя?
Sergey
Тут особо гайдов нет. Подойдут по любому языку ибо это общение меж процессами
Sheldhur
как в электроне можно import сделать чтобы путь был какбэ полный, но относительно корня приложения
Sheldhur
т.е. вместо import '../../../utils/helper'; как-то так import '/app/utils/helper';
Sergey
Так же как и в случае ноды
kdm🇩🇰
хорошо, а как например сделать в electron "нажал кнопку запустил команду forever start node.js"?
kdm🇩🇰
как зашифровать файлы в ноде?
Sergey
Как из терминала
kdm🇩🇰
т.е например запущен процесс
kdm🇩🇰
я могу убить его forever stop app(PID)
kdm🇩🇰
?
Sergey
Есть pm2 он удобнее
kdm🇩🇰
а он как работает, он убивает именно процессы ноды ?
kdm🇩🇰
и запускает соответственно
Sergey
Он отлично работает
Sergey
Если у кого появятся вопросы по вебпаку, задавайте их в профильном чатике @webpack_ru, не надо оффтопить здесь
Eugene
тут есть живые люди?
Владимир
да
Eugene
material ui, как видно что-то с иконками
Eugene
мейби было у кого такое же
Дмитрий
Шрифт с иконками подключён?
Eugene
import NavigationClose from 'material-ui/svg-icons/navigation/close';
Eugene
ну как-то так
Eugene
Еще трабл. Установил значение fullscreen: false, а кнопка активна
Алексей
import NavigationClose from 'material-ui/svg-icons/navigation/close';
открой dev tools посмотри что загружаются ли они по факту или нет
Eugene
ну вроде как да
Алексей
у тебя SVG? или Шрифт?
Алексей
скопипасть HTML воткни его в какойнибудь JS-fiddle - посмотри тоже ли самое ресуется.
Алексей
Ок. Видимо дело в версии Webkit электрона. Или баг. Попробуй иконки шрифтом. (Сторонние)
Андрей
Пасаны. А есть хорошнн решение для того чтоб делать drag окна используя действия мыши на представлении рендерингового процесса
Андрей
Тьфу. Короч как тягать окошки не за заголовок окна а за вебкит?
Андрей
Ну мне интересно быстрое с точки зрения производительности решение
Electron.js releases
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)
Sergey
Кайф
Не помню какой
Sergey
Доку надо читать
Sergey
Но там особенность с хэндлингом ивэнтов
Андрей
Я так и предположил почитав доку
Eugene
Не помню какой
-webkit-app-region: drag;
Sergey
-webkit-app-region: drag;
Во. Спасибо
Eugene
А как свою иконку поставить?
Eugene
icon в BrowserWindow пробовал
Sergey
Билд собрать с нужной иконкой
yarastqt [msk +1 week]
Подскажите почему в последней версии иконки с обводкой идут какой-то? И box-shadow не работает
Таймураз
yarastqt [msk +1 week]
Ось? Какая именно последняя версия? Иконки в трее, доке?
mac os, 1.6.3. Не обычно svg инлайнишь через стили, а она какая-то с обводкой
yarastqt [msk +1 week]
щас
yarastqt [msk +1 week]
yarastqt [msk +1 week]
Хотя должен быть просто крестик
Таймураз
Это в приложении?
yarastqt [msk +1 week]
Да
yarastqt [msk +1 week]
мб в хроме баг, хз
Таймураз
Да
Тогда это не по электрону вопрос
Таймураз
мб в хроме баг, хз
Код какой-нибудь показать можешь?
yarastqt [msk +1 week]
https://gist.github.com/yarastqt/65360056c767461ed583abb6dc431b7b
yarastqt [msk +1 week]
да вот обычная svg иконка
yarastqt [msk +1 week]
добавляю её через стили, она у меня с обводкой добавляется и так все иконки
yarastqt [msk +1 week]
С тенью тоже какая-то беда
yarastqt [msk +1 week]
добавляю box-shadow
yarastqt [msk +1 week]
Таймураз
У тебя точно со стилями все норм? И normalize используешь?
yarastqt [msk +1 week]
нету ничего)
yarastqt [msk +1 week]
вообще просто странно, до этого делал все нормально было, но до этого 1.4.1 вроде версия была, тут обновился до текущей и такое
yarastqt [msk +1 week]
ещё кстати в консоль ошибки сыпятся если в дев тулзе элементы инспектишь
yarastqt [msk +1 week]