This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Depencias gerais | |
const { app, protocol, BrowserWindow } = require('electron') | |
const isDev = process.env.NODE_ENV === "development"; // Boolean gerado através da variavel de ambiente que define se o aplicativo está rodando como desenvolvimento ou produção | |
// Dependencias do desenvolvimento | |
const port = 40992; // Deve ser a mesma porta do Servidor Vue.js (webpack de desenvolvimento): no arquivo que está em app/config/vue/webpacks/dev.js (partindo da raiz do projeto) | |
const selfHost = `http://localhost:${port}`; | |
// Dependencias de produção | |
const Protocol = require("./app/config/electron/protocol"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<meta charset="UTF-8" /> | |
<base href="app://rse"> | |
</head> | |
<body> | |
<div id="app"></div> | |
</body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "electron-with-vue", | |
"version": "1.0.0", | |
"description": "A base Electron project using Vue.js", | |
"homepage": "https://github.com/gdonega/Medium-BoilerplateElectronWithVue", | |
"repository": "https://github.com/gdonega/Medium-BoilerplateElectronWithVue", | |
"main": "app.main.js", | |
"scripts": { | |
"dev-electron-start-app": "cross-env NODE_ENV=development electron .", | |
"dev-vue-start-server": "cross-env NODE_ENV=development webpack-dev-server --config ./app/config/vue/webpacks/dev.js", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Depencias gerais | |
const { app, protocol, BrowserWindow } = require('electron') | |
const isDev = process.env.NODE_ENV === "development"; // Boolean gerado através da variavel de ambiente que define se o aplicativo está rodando como desenvolvimento ou produção | |
// Dependencias do desenvolvimento | |
const port = 40992; // Deve ser a mesma porta do Servidor Vue.js (webpack de desenvolvimento): no arquivo que está em app/config/vue/webpacks/dev.js (partindo da raiz do projeto) | |
const selfHost = `http://localhost:${port}`; | |
// Dependencias de produção | |
const Protocol = require("./app/config/electron/protocol"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.github.gdonega.shortcuts.generators; | |
import java.util.Random; | |
public class BrazilCepGenerator { | |
private static String randomDe0A9() { | |
return Integer.toString(new Random().nextInt(0, 9 + 1)); | |
} | |
public static String generate() { |
OlderNewer