Verified Commit 1690f065 authored by hotwater's avatar hotwater
Browse files

changed api url in settings reducer

parent c8e8482d
/**
* Builds the DLL for development electron renderer process
*/
import webpack from 'webpack';
import path from 'path';
import { merge } from 'webpack-merge';
import baseConfig from './webpack.config.base';
import { dependencies } from '../../package.json';
import CheckNodeEnv from '../scripts/CheckNodeEnv';
CheckNodeEnv('development');
const dist = path.join(__dirname, '../dll');
export default merge(baseConfig, {
context: path.join(__dirname, '../..'),
devtool: 'eval',
mode: 'development',
target: 'electron-renderer',
externals: ['fsevents', 'crypto-browserify'],
/**
* Use `module` from `webpack.config.renderer.dev.js`
*/
module: require('./webpack.config.renderer.dev.babel').default.module,
entry: {
renderer: Object.keys(dependencies || {}),
},
output: {
library: 'renderer',
path: dist,
filename: '[name].dev.dll.js',
libraryTarget: 'var',
},
plugins: [
new webpack.DllPlugin({
path: path.join(dist, '[name].json'),
name: '[name]',
}),
/**
* Create global constants which can be configured at compile time.
*
* Useful for allowing different behaviour between development builds and
* release builds
*
* NODE_ENV should be production so that modules do not perform certain
* development checks
*/
new webpack.EnvironmentPlugin({
NODE_ENV: 'development',
}),
new webpack.LoaderOptionsPlugin({
debug: true,
options: {
context: path.join(__dirname, '../../src'),
output: {
path: path.join(__dirname, '../dll'),
},
},
}),
],
});
{
"name": "parrot-software-center",
"productName": "PSC",
"version": "0.2.2",
"version": "1.0.0",
"description": "Parrot Software Center application for ParrotOS",
"scripts": {
"build": "concurrently \"yarn build:main\" \"yarn build:renderer\"",
......@@ -9,8 +9,7 @@
"build:renderer": "cross-env NODE_ENV=production webpack --config ./.erb/configs/webpack.config.renderer.prod.babel.js",
"rebuild": "electron-rebuild --parallel --types prod,dev,optional --module-dir src",
"lint": "cross-env NODE_ENV=development eslint . --cache --ext .js,.jsx,.ts,.tsx",
"package": "rm -rf src/dist && yarn build && electron-builder build --publish never",
"postinstall": "node -r @babel/register .erb/scripts/CheckNativeDep.js && electron-builder install-app-deps && yarn cross-env NODE_ENV=development webpack --config ./.erb/configs/webpack.config.renderer.dev.dll.babel.js && opencollective-postinstall && yarn-deduplicate yarn.lock",
"package": "rm -rf src/dist && yarn build && electron-builder build --linux deb AppImage --publish never",
"start": "node -r @babel/register ./.erb/scripts/CheckPortInUse.js && cross-env yarn start:renderer",
"start:main": "cross-env NODE_ENV=development electron -r ./.erb/scripts/BabelRegister ./src/main.dev.ts",
"start:renderer": "cross-env NODE_ENV=development webpack serve --config ./.erb/configs/webpack.config.renderer.dev.babel.js",
......
......@@ -400,7 +400,7 @@ const Mirrors = ({ darkTheme, resetMirror, changeMirror, readMirror }: MirrorPro
return () => {
active = false
}
}, [])
}, [refreshCurrentMirror, t])
return (
<section className={classes.root}>
......
{
"name": "parrot-software-center",
"productName": "parrot-software-center",
"version": "0.2.2",
"version": "1.0.0",
"description": "Parrot Software Center application for ParrotOS",
"main": "./main.prod.js",
"author": {
......
......@@ -13,7 +13,7 @@ try {
initialSettings = {
loadCVEs: true,
darkTheme: false,
APIUrl: process.env.NODE_ENV === 'development' ? 'localhost' : 'http://165.227.140.210:8000/'
APIUrl: process.env.NODE_ENV === 'development' ? 'localhost' : 'https://confirm.parrotsec.org/'
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment