electron packages front-end projects into desktop applications

electron integrates nodejs with chromium.So it also "inherits" chromium's logic for handling js and rendering pages, and what you now know is that it supports multiple process modes.The node environment needs to be configured first. Pre-environmental setup and testing can be referred to ht ...

Posted by php-phan on Mon, 10 Feb 2020 19:22:13 -0800

Build your own tool library (similar to lodash) from 0 to a series and publish it to npm

By 2020, we need to try to build our own tool links to make things even more lazy_development_ Final example @magic-zhu/helper This is a demo package we published to npm by ourselves Then use it in your project npm install @magic-zhu/helper const helper = require ('@magic-zhu/helper') let {typeOf} = ...

Posted by ClyssaN on Sun, 09 Feb 2020 18:52:14 -0800

axios in vue

axios promise based on http client for browser and nodejs characteristic Browser side initiates XMLHttpRequests request http request from node Support Promise API Listen for requests and returns Conversion request and return Cancellation request Automatically convert json data Client support mitigation install Using npm: npm install axios -- ...

Posted by mjahkoh on Fri, 07 Feb 2020 10:38:51 -0800

vue uses JSEncrypt to implement rsa encryption and mount method

Mount global method rsa encryption with jsencrypt Original link: Js parameter RSA encrypted transmission, use of jsencrypt.js - CSDN blog* https://blog.csdn.net/p312011150/article/details/80264144 (there is a mistake in the original text. There is no need to convert +, rsa has already done base64 transcoding.) 1.Installation dependency   npm in ...

Posted by Hitwalker on Fri, 07 Feb 2020 10:27:33 -0800

Hexo Serverless Framework, simple three steps to build your personal blog

Many people want to have their own personal blog, but also look beautiful and cool.Especially for developers, not only can they share their technological insights, but they can also add points during interviews.Here are two useful artifacts. They can be done in 3 minutes without having to be busy at the ...

Posted by willchoong on Tue, 04 Feb 2020 17:41:05 -0800

Hexo Blog Configuration SSL Certificate

Hexo doesn't have to convert to a static web page and hand it over to a tool publishing site like Nginx, tomcat, which has a built-in server.By default, however, there is no SSL certificate. Effect Display All three servers use Hexo to provide web services. Basic steps 1. Prepare the SSL cert ...

Posted by glory452 on Fri, 31 Jan 2020 18:23:56 -0800

Android native integration React Native

1. Create an empty directory RNDemo 2. Create a subdirectory android in RNDemo 3. Copy the android project to the subdirectory android, as shown in the project structure below. 4. Create the package.json file in RNDemo and add the following contents: { "name": "MyReactNativeApp", "version": "0.0.1", "private": true, "s ...

Posted by Minase on Fri, 31 Jan 2020 09:33:06 -0800

cordova custom plugin

Preparation Install cordova npm install -g cordova Create cordova project and add android platform cordova create Project name Package name cd Project name cordova platform add android Install plugman npm install -g plugman Create plugin Create a plug-in (this blog demo plug-in name mytoast, package name com.digi ...

Posted by mikegzarejoyce on Thu, 30 Jan 2020 08:26:38 -0800

Remake a todolist using vue cli

First, enter the project directory and start the project npm run start / npm run dev with the command [please refer to the package.json file in the project directory] (where the x.vue file is a single file component) Next, change the single file component x.vue Note that the vue syntax requires that the. vue file, in the &lt ...

Posted by brash on Mon, 27 Jan 2020 08:31:31 -0800

How to use locally installed packages in node modules?

How to use the local version of the module in node.js. For example, in my application, I installed coffee script: npm install coffee-script This will install it in. / node \ u modules, while the coffee command is in. / node \ u modules /. Bin / coffee. Can I run this command when I am in the project's home folder? I guess I'm looking for ...

Posted by nerya on Mon, 27 Jan 2020 02:23:08 -0800