Base electron package initialized.

This commit is contained in:
Patrick Fic
2020-10-13 09:40:02 -07:00
parent cc82bcc810
commit 83aa0a53b0
6 changed files with 16500 additions and 12404 deletions

View File

@@ -0,0 +1 @@
REACT_APP_FIREBASE_CONFIG={"apiKey":"AIzaSyDPLT8GiDHDR1R4nI66Qi0BY1aYviDPioc","authDomain":"imex-dev.firebaseapp.com","databaseURL":"https://imex-dev.firebaseio.com","projectId":"imex-dev","storageBucket":"imex-dev.appspot.com","messagingSenderId":"759548147434","appId":"1:759548147434:web:e8239868a48ceb36700993","measurementId":"G-K5XRBVVB4S"}

View File

@@ -0,0 +1 @@
REACT_APP_FIREBASE_CONFIG={"apiKey":"AIzaSyDPLT8GiDHDR1R4nI66Qi0BY1aYviDPioc","authDomain":"imex-dev.firebaseapp.com","databaseURL":"https://imex-dev.firebaseio.com","projectId":"imex-dev","storageBucket":"imex-dev.appspot.com","messagingSenderId":"759548147434","appId":"1:759548147434:web:e8239868a48ceb36700993","measurementId":"G-K5XRBVVB4S"}

53
electron/main.js Normal file
View File

@@ -0,0 +1,53 @@
const path = require("path");
const { app, BrowserWindow } = require("electron");
const isDev = require("electron-is-dev");
function createWindow() {
// Create the browser window.
const win = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nodeIntegration: true,
},
});
// and load the index.html of the app.
// win.loadFile("index.html");
win.loadURL(
isDev
? "http://localhost:3000"
: `file://${path.join(__dirname, "../build/index.html")}`
);
// Open the DevTools.
if (isDev) {
win.webContents.openDevTools({ mode: "detach" });
}
}
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
app.whenReady().then(createWindow);
// Quit when all windows are closed, except on macOS. There, it's common
// for applications and their menu bar to stay active until the user quits
// explicitly with Cmd + Q.
app.on("window-all-closed", () => {
if (process.platform !== "darwin") {
app.quit();
}
});
app.on("activate", () => {
// On macOS it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (BrowserWindow.getAllWindows().length === 0) {
createWindow();
}
});
// In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and require them here.

16431
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,12 +1,13 @@
{
"name": "bodyshop",
"version": "0.1.0001",
"name": "imexrps",
"version": "0.0.1",
"private": true,
"main": "electron/main.js",
"dependencies": {
"antd": "^4.6.1",
"co": "^4.6.0",
"@fingerprintjs/fingerprintjs": "^2.1.4",
"antd": "^4.7.0",
"dotenv": "^8.2.0",
"fingerprintjs2": "^2.1.2",
"electron-is-dev": "^1.2.0",
"node-sass": "^4.14.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
@@ -17,14 +18,16 @@
"redux-persist": "^6.0.0",
"redux-saga": "^1.1.3",
"reselect": "^4.0.0",
"socket.io-client": "^2.3.0"
"socket.io-client": "^2.3.1"
},
"scripts": {
"analyze": "source-map-explorer 'build/static/js/*.js'",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"dev": "concurrently -k \"npm start\" \"npm:electron\"",
"electron": "electron ."
},
"eslintConfig": {
"extends": "react-app"
@@ -42,8 +45,10 @@
]
},
"devDependencies": {
"concurrently": "^5.3.0",
"electron": "^10.1.3",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.3",
"enzyme-adapter-react-16": "^1.15.5",
"redux-logger": "^3.0.6"
}
}

12395
yarn.lock

File diff suppressed because it is too large Load Diff