electron

How to build the Electron application for the Window Store?

狂风中的少年 提交于 2020-04-10 14:55:46
问题 Help build the Electron application for Window Stor. I compiled a simple application for electron. I try according to instructions from the official site. I run the command: electron-windows-store --input-directory C:\Brain ++ --output-directory C:\output\Brain ++ --flatten true --package-version 1.0.0.0 --package-name Brain ++ When assembling it asks the following questions: ? Did you download and install the Desktop App Converter? - I answer yes ? You need to install a development

What should I use as backend in electron application? [closed]

给你一囗甜甜゛ 提交于 2020-04-10 06:43:24
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . I understand I can design the UI with HTML CSS JavaScript or any other frontend framework. I even understand that I can connect to any remote API. what if I want a standalone application with database. How should I connect to the database ? where should I write my application

What's the proper way to handle forms in Electron?

家住魔仙堡 提交于 2020-04-08 19:01:33
问题 The form html and submit event is part of the "renderer". The submitted data should be available in the main process. What's the proper way to submit the form and make that data accessible in main.js ? Should I simply use the "remote" module to pass the data to a function from main.js or is there a better approach? 回答1: We use a service (Angular) to process form data in a window. Then notify the remote , if needed. From your renderer you can send data to the ipc , then in your main.js you

What's the proper way to handle forms in Electron?

最后都变了- 提交于 2020-04-08 18:48:08
问题 The form html and submit event is part of the "renderer". The submitted data should be available in the main process. What's the proper way to submit the form and make that data accessible in main.js ? Should I simply use the "remote" module to pass the data to a function from main.js or is there a better approach? 回答1: We use a service (Angular) to process form data in a window. Then notify the remote , if needed. From your renderer you can send data to the ipc , then in your main.js you

Electron: Firebase and Facebook authentication?

人盡茶涼 提交于 2020-04-07 05:41:23
问题 I'm trying to provide additional authentication for user within an app. With email/password auth already implemented, I wanted to add Facebook/ Google authentication as well. I've tried with firebaseui : const ui = new firebaseui.auth.AuthUI(firebase.auth()); ui.start(selector, { callbacks: { signInSuccessWithAuthResult(authResult) { that.handleAuthentication(authResult); return false; }, }, credentialHelper: firebaseui.auth.CredentialHelper.NONE, signInFlow: 'redirect', signInOptions: [ {

Win7安装VisualStdio2015提示组件包损坏解决办法

瘦欲@ 提交于 2020-04-06 17:02:36
最近编译Electron项目,由于用到了JavaScript调用原生C++能力,在Windows7 SP1上需要安装Visual Studio2015,遇到了总是提示组件包丢失或者损坏的提示。 解决办法如下: (1)开始-运行-MMC (2)文件-添加/删除管理单元 (3)证书-计算机账户 (4)证书-受信任的根证书颁发架构-证书 (5)右键菜单-所有任务-导入 (6)选择证书:2010和2011的根证书导入即可。 下载地址(vs2015需要ie 10+): 链接: https://pan.baidu.com/s/14gfX1-SMVpS2rg98wtgFGA 提取码:s4wn 来源: oschina 链接: https://my.oschina.net/u/4380905/blog/3221333

大话Electron应用自动更新

江枫思渺然 提交于 2020-04-06 16:57:24
一、Windows下更新特有的问题 软件更新在Linux和macOS还好说,但是在Windows上可能会遇到UAC问题,常用的方法是:Windows计划任务、Windows Service,本质上这两种方式还是提权,Windows Service 与 Windows计划任务相比最大的特点就是可以与应用交互,Windows的更新就是使用Windows Update服务,即使在macOS的Edge浏览器也是使用的Microsoft Update服务。 二、手动更新 手动更新是下载完整的安装包,用户手动安装,如果数据需要保存在本地,那么不要将数据保存在应用安装目录,而是用户目录。 手动更新适合用户粘性高,非频繁更新的应用,在macOS的App Store中,通常只要上传安装包,用户终端可以自动更新。手动更新一般会有比较大的安装包,因为是完全下载。一般作为降级更新方案使用。 三、覆盖更新 程序自动替换,下载更新过程快,只需要重启应用,甚至不需要重启,但是容易出现写入文件失败,而且实现复杂,适合打补丁。 四、自动更新 应用程序自动下载,再次启动以后重新加载最新版本即可,一般这样的应用结构是由一个固定的应用启动程序读取不同的应用版本。 这样更新速度快,异步更新并且适合高频更新的应用。缺点就是实现有一定的难度。 五、Electron应用更新 (1)Web化 将业务视图存放到远程HTTPS服务器

Tips on solving 'DevTools was disconnected from the page' and Electron Helper dies

你离开我真会死。 提交于 2020-04-06 01:56:52
问题 I've a problem with Electron where the app goes blank. i.e. It becomes a white screen. If I open the dev tools it displays the following message. In ActivityMonitor I can see the number of Electron Helper processes drops from 3 to 2 when this happens. Plus it seems I'm not the only person to come across it. e.g. Facing "Devtools was disconnected from the page. Once page is reloaded, Devtools will automatically reconnect." Electron dying without any information, what now? But I've yet to find

最流行的编程语言 JavaScript 能做什么?

谁都会走 提交于 2020-04-05 18:36:14
首先很遗憾的一点是,“PHP虽然是最好的语言”,但是它不是最流行的语言。 同时对不起的还有刚刚在4月TIOBE编程语言排行榜上上榜的各个语言: 你们都很棒,但是你们都担当不了这个大任。 在开始之前,我先说一下我常用的三个语言:Java、JavaScript、Python。 Java,让我学到了很多架构层级的知识,这一点可以参考我之前写的架构相关文档。虽然我一点儿也不喜欢这个语言,但是它真的很棒。 Python,它真的足够简单,以至于我喜欢拿它学习各种理论知识,如推荐系统、贝叶斯定理、自然语言处理等等。 JavaScript,看下文。 数据可视化 在过去我阅读的一些书籍里面,主要是以Processing作为可视化的语言——它起始于2001年,它最初是面向美术工作者和设计者创建的,后来变成了全面的设计和原型工具,可以用于创建复杂数据可视化领域。 Processing被带入了到Web领域产生了Processing.js,还出现了D3.js。 当然还有Plotly、Leaflet、Sigma JS等等的工具。 移动端应用: Cordova 接着就是PhoneGap(今天的Cordova),将WebView带向了移动应用,也将JavaScript带向了移动应用。 使用Cordova,可以让我们一次开发多平台发布。我们也顺便提一下Ionic,作为混合应用的翘楚: 移动端应用: React