diff --git a/CHANGELOG.md b/CHANGELOG.md
index bbbd44e49..77b8c2360 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,402 +1,11 @@
-# 0.13.2 (2018.1.31)
-- Hot Module Reload (HMR) fixes
-- Bumped all dependencies to latest semver
-- Prevent error propagation of `CheckNativeDeps` script
-
-# 0.13.1 (2018.1.13)
-- Hot Module Reload (HMR) fixes
-- Bumped all dependencies to latest semver
-- Fixed electron-rebuild script
-- Fixed tests scripts to run on all platforms
-- Skip redux logs in console in test ENV
-
-# 0.13.0 (2018.1.6)
-
-#### Additions
-- Add native dependencies check on postinstall
-- Updated all dependencies to latest semver
-
-# 0.12.0 (2017.7.8)
-
-#### Misc
-- Removed `babel-polyfill`
-- Renamed and alphabetized npm scripts
-
-#### Breaking
-- Changed node dev `__dirname` and `__filename` to node built in fn's (https://github.com/chentsulin/electron-react-boilerplate/pull/1035)
-- Renamed `app/bundle.js` to `app/renderer.prod.js` for consistency
-- Renamed `dll/vendor.js` to `dll/renderer.dev.dll.js` for consistency
-
-#### Additions
-- Enable node_modules cache on CI
-
-# 0.11.2 (2017.5.1)
-
-Yay! Another patch release. This release mostly includes refactorings and router bug fixes. Huge thanks to @anthonyraymond!
-
-⚠️ Windows electron builds are failing because of [this issue](https://github.com/electron/electron/issues/9321). This is not an issue with the boilerplate ⚠️
-
-#### Breaking
-- **Renamed `./app/main.development.js` => `./app/main.{dev,prod}.js`:** [#963](https://github.com/chentsulin/electron-react-boilerplate/pull/963)
-
-#### Fixes
-- **Fixed reloading when not on `/` path:** [#958](https://github.com/chentsulin/electron-react-boilerplate/pull/958) [#949](https://github.com/chentsulin/electron-react-boilerplate/pull/949)
-
-#### Additions
-- **Added support for stylefmt:** [#960](https://github.com/chentsulin/electron-react-boilerplate/pull/960)
-
-# 0.11.1 (2017.4.23)
-
-You can now debug the production build with devtools like so:
-```
-DEBUG_PROD=true npm run package
-```
-
-🎉🎉🎉
-
-#### Additions
-- **Added support for debugging production build:** [#fab245a](https://github.com/chentsulin/electron-react-boilerplate/pull/941/commits/fab245a077d02a09630f74270806c0c534a4ff95)
-
-#### Bug Fixes
-- **Fixed bug related to importing native dependencies:** [#933](https://github.com/chentsulin/electron-react-boilerplate/pull/933)
-
-#### Improvements
-- **Updated all deps to latest semver**
-
-# 0.11.0 (2017.4.19)
-
-Here's the most notable changes since `v0.10.0`. Its been about a year since a release has been pushed. Expect a new release to be published every 3-4 weeks.
-
-#### Breaking Changes
-
-- **Dropped support for node < 6**
-- **Refactored webpack config files**
-- **Migrate to two-package.json project structure**
-- **Updated all devDeps to latest semver**
-- **Migrated to Jest:** [#768](https://github.com/chentsulin/electron-react-boilerplate/pull/768)
-- **Migrated to `react-router@4`**
-- **Migrated to `electron-builder@4`**
-- **Migrated to `webpack@2`**
-- **Migrated to `react-hot-loader@3`**
-- **Changed default live reload server PORT to `1212` from `3000`**
-
-#### Additions
-
-- **Added support for Yarn:** [#451](https://github.com/chentsulin/electron-react-boilerplate/pull/451)
-- **Added support for Flow:** [#425](https://github.com/chentsulin/electron-react-boilerplate/pull/425)
-- **Added support for stylelint:** [#911](https://github.com/chentsulin/electron-react-boilerplate/pull/911)
-- **Added support for electron-builder:** [#876](https://github.com/chentsulin/electron-react-boilerplate/pull/876)
-- **Added optional support for SASS:** [#880](https://github.com/chentsulin/electron-react-boilerplate/pull/880)
-- **Added support for eslint-plugin-flowtype:** [#911](https://github.com/chentsulin/electron-react-boilerplate/pull/911)
-- **Added support for appveyor:** [#280](https://github.com/chentsulin/electron-react-boilerplate/pull/280)
-- **Added support for webpack dlls:** [#860](https://github.com/chentsulin/electron-react-boilerplate/pull/860)
-- **Route based code splitting:** [#884](https://github.com/chentsulin/electron-react-boilerplate/pull/884)
-- **Added support for Webpack Bundle Analyzer:** [#922](https://github.com/chentsulin/electron-react-boilerplate/pull/922)
-
-#### Improvements
-
-- **Parallelize renderer and main build processes when running `npm run build`**
-- **Dynamically generate electron app menu**
-- **Improved vscode integration:** [#856](https://github.com/chentsulin/electron-react-boilerplate/pull/856)
-
-#### Bug Fixes
-
-- **Fixed hot module replacement race condition bug:** [#917](https://github.com/chentsulin/electron-react-boilerplate/pull/917) [#920](https://github.com/chentsulin/electron-react-boilerplate/pull/920)
-
-# 0.10.0 (2016.4.18)
-
-#### Improvements
-
-- **Use Babel in main process with Webpack build:** [#201](https://github.com/chentsulin/electron-react-boilerplate/pull/201)
-- **Change targets to built-in support by webpack:** [#197](https://github.com/chentsulin/electron-react-boilerplate/pull/197)
-- **use es2015 syntax for webpack configs:** [#195](https://github.com/chentsulin/electron-react-boilerplate/pull/195)
-- **Open application when webcontent is loaded:** [#192](https://github.com/chentsulin/electron-react-boilerplate/pull/192)
-- **Upgraded dependencies**
-
-#### Bug fixed
-
-- **Fix `npm list electron-prebuilt` in package.js:** [#188](https://github.com/chentsulin/electron-react-boilerplate/pull/188)
-
-
-# 0.9.0 (2016.3.23)
-
-#### Improvements
-
-- **Added [redux-logger](https://github.com/fcomb/redux-logger)**
-- **Upgraded [react-router-redux](https://github.com/reactjs/react-router-redux) to v4**
-- **Upgraded dependencies**
-- **Added `npm run dev` command:** [#162](https://github.com/chentsulin/electron-react-boilerplate/pull/162)
-- **electron to v0.37.2**
-
-#### Breaking Changes
-
-- **css module as default:** [#154](https://github.com/chentsulin/electron-react-boilerplate/pull/154).
-- **set default NODE_ENV to production:** [#140](https://github.com/chentsulin/electron-react-boilerplate/issues/140)
-
-
-# 0.8.0 (2016.2.17)
-
-#### Bug fixed
-
-- **Fix lint errors**
-- **Fix Webpack publicPath for production builds**: [#119](https://github.com/chentsulin/electron-react-boilerplate/issues/119).
-- **package script now chooses correct OS icon extension**
-
-#### Improvements
-
-- **babel 6**
-- **Upgrade Dependencies**
-- **Enable CSS source maps**
-- **Add json-loader**: [#128](https://github.com/chentsulin/electron-react-boilerplate/issues/128).
-- **react-router 2.0 and react-router-redux 3.0**
-
-
-# 0.7.1 (2015.12.27)
-
-#### Bug fixed
-
-- **Fixed npm script on windows 10:** [#103](https://github.com/chentsulin/electron-react-boilerplate/issues/103).
-- **history and react-router version bump**: [#109](https://github.com/chentsulin/electron-react-boilerplate/issues/109), [#110](https://github.com/chentsulin/electron-react-boilerplate/pull/110).
-
-#### Improvements
-
-- **electron 0.36**
-
-
-
-# 0.7.0 (2015.12.16)
-
-#### Bug fixed
-
-- **Fixed process.env.NODE_ENV variable in webpack:** [#74](https://github.com/chentsulin/electron-react-boilerplate/pull/74).
-- **add missing object-assign**: [#76](https://github.com/chentsulin/electron-react-boilerplate/pull/76).
-- **packaging in npm@3:** [#77](https://github.com/chentsulin/electron-react-boilerplate/pull/77).
-- **compatibility in windows:** [#100](https://github.com/chentsulin/electron-react-boilerplate/pull/100).
-- **disable chrome debugger in production env:** [#102](https://github.com/chentsulin/electron-react-boilerplate/pull/102).
-
-#### Improvements
-
-- **redux**
-- **css-modules**
-- **upgrade to react-router 1.x**
-- **unit tests**
-- **e2e tests**
-- **travis-ci**
-- **upgrade to electron 0.35.x**
-- **use es2015**
-- **check dev engine for node and npm**
-
-
-# 0.6.5 (2015.11.7)
-
-#### Improvements
-
-- **Bump style-loader to 0.13**
-- **Bump css-loader to 0.22**
-
-
-# 0.6.4 (2015.10.27)
-
-#### Improvements
-
-- **Bump electron-debug to 0.3**
-
-
-# 0.6.3 (2015.10.26)
-
-#### Improvements
-
-- **Initialize ExtractTextPlugin once:** [#64](https://github.com/chentsulin/electron-react-boilerplate/issues/64).
-
-
-# 0.6.2 (2015.10.18)
-
-#### Bug fixed
-
-- **Babel plugins production env not be set properly:** [#57](https://github.com/chentsulin/electron-react-boilerplate/issues/57).
-
-
-# 0.6.1 (2015.10.17)
-
-#### Improvements
-
-- **Bump electron to v0.34.0**
-
-
-# 0.6.0 (2015.10.16)
-
-#### Breaking Changes
-
-- **From react-hot-loader to react-transform**
-
-
-# 0.5.2 (2015.10.15)
-
-#### Improvements
-
-- **Run tests with babel-register:** [#29](https://github.com/chentsulin/electron-react-boilerplate/issues/29).
-
-
-# 0.5.1 (2015.10.12)
-
-#### Bug fixed
-
-- **Fix #51:** use `path.join(__dirname` instead of `./`.
-
-
-# 0.5.0 (2015.10.11)
-
-#### Improvements
-
-- **Simplify webpack config** see [#50](https://github.com/chentsulin/electron-react-boilerplate/pull/50).
-
-#### Breaking Changes
-
-- **webpack configs**
-- **port changed:** changed default port from 2992 to 3000.
-- **npm scripts:** remove `start-dev` and `dev-server`. rename `hot-dev-server` to `hot-server`.
-
-
-# 0.4.3 (2015.9.22)
-
-#### Bug fixed
-
-- **Fix #45 zeromq crash:** bump version of `electron-prebuilt`.
-
-
-# 0.4.2 (2015.9.15)
-
-#### Bug fixed
-
-- **run start-hot breaks chrome refresh(CTRL+R) (#42)**: bump `electron-debug` to `0.2.1`
-
-
-# 0.4.1 (2015.9.11)
-
-#### Improvements
-
-- **use electron-prebuilt version for packaging (#33)**
-
-
-# 0.4.0 (2015.9.5)
-
-#### Improvements
-
-- **update dependencies**
-
-
-# 0.3.0 (2015.8.31)
-
-#### Improvements
-
-- **eslint-config-airbnb**
-
-
-# 0.2.10 (2015.8.27)
-
-#### Features
-
-- **custom placeholder icon**
-
-#### Improvements
-
-- **electron-renderer as target:** via [webpack-target-electron-renderer](https://github.com/chentsulin/webpack-target-electron-renderer)
-
-
-# 0.2.9 (2015.8.18)
-
-#### Bug fixed
-
-- **Fix hot-reload**
-
-
-# 0.2.8 (2015.8.13)
-
-#### Improvements
-
-- **bump electron-debug**
-- **babelrc**
-- **organize webpack scripts**
-
-
-# 0.2.7 (2015.7.9)
-
-#### Bug fixed
-
-- **defaultProps:** fix typos.
-
-
-# 0.2.6 (2015.7.3)
-
-#### Features
-
-- **menu**
-
-#### Bug fixed
-
-- **package.js:** include webpack build.
-
-
-# 0.2.5 (2015.7.1)
-
-#### Features
-
-- **NPM Script:** support multi-platform
-- **package:** `--all` option
-
-
-# 0.2.4 (2015.6.9)
-
-#### Bug fixed
-
-- **Eslint:** typo, [#17](https://github.com/chentsulin/electron-react-boilerplate/issues/17) and improve `.eslintrc`
-
-
-# 0.2.3 (2015.6.3)
-
-#### Features
-
-- **Package Version:** use latest release electron version as default
-- **Ignore Large peerDependencies**
-
-#### Bug fixed
-
-- **Npm Script:** typo, [#6](https://github.com/chentsulin/electron-react-boilerplate/pull/6)
-- **Missing css:** [#7](https://github.com/chentsulin/electron-react-boilerplate/pull/7)
-
-
-# 0.2.2 (2015.6.2)
-
-#### Features
-
-- **electron-debug**
-
-#### Bug fixed
-
-- **Webpack:** add `.json` and `.node` to extensions for imitating node require.
-- **Webpack:** set `node_modules` to externals for native module support.
-
-
-# 0.2.1 (2015.5.30)
-
-#### Bug fixed
-
-- **Webpack:** #1, change build target to `atom`.
-
-
-# 0.2.0 (2015.5.30)
-
-#### Features
-
-- **Ignore:** `test`, `tools`, `release` folder and devDependencies in `package.json`.
-- **Support asar**
-- **Support icon**
-
-
-# 0.1.0 (2015.5.27)
-
-#### Features
-
-- **Webpack:** babel, react-hot, ...
-- **Flux:** actions, api, components, containers, stores..
-- **Package:** darwin (osx), linux and win32 (windows) platform.
+# 0.9.3 (6.1.2019)
+- Fixed ram being reset when toggling java autodetect [#128](https://github.com/gorilla-devs/GDLauncher/issues/128)
+- Updated every console.log to log.log. Now every log is written to the log file
+- Added a new theme (Bloody Murder)
+- Added more checks for legacy config. Now when the launcher is updated, the old config file should be updated to the new formats if needed [#128](https://github.com/gorilla-devs/GDLauncher/issues/128)
+- Fixed the CurseForge modpacks search. It's now more responsive and should give more consistent results [#126](https://github.com/gorilla-devs/GDLauncher/issues/126) [#115](https://github.com/gorilla-devs/GDLauncher/issues/115)
+- Started updating the changelog :) [#130](https://github.com/gorilla-devs/GDLauncher/issues/130)
+- Added the modpack explorer dialog [#117](https://github.com/gorilla-devs/GDLauncher/issues/117) [#108](https://github.com/gorilla-devs/GDLauncher/issues/108)
+- Improved lazy loading performance
+- Fixed a bug where clearing the searchbox in the modpacks browser caused the launcher to crash [#125](https://github.com/gorilla-devs/GDLauncher/issues/125) [#116](https://github.com/gorilla-devs/GDLauncher/issues/116)
+- Fixed the ram slider color. It now adapts to the themes
\ No newline at end of file
diff --git a/app/actions/downloadManager.js b/app/actions/downloadManager.js
index 0f5e50716..c3b0e80a5 100644
--- a/app/actions/downloadManager.js
+++ b/app/actions/downloadManager.js
@@ -4,6 +4,7 @@ import { promisify } from 'util';
import axios from 'axios';
import makeDir from 'make-dir';
import fse from 'fs-extra';
+import log from 'electron-log';
import Promise from 'bluebird';
import fs from 'fs';
import Zip from 'adm-zip';
@@ -238,7 +239,7 @@ export function downloadPack(pack) {
);
mods = await getModsList(manifest.files, pack);
} catch (err) {
- console.error(err);
+ log.error(err);
}
const totalFiles =
diff --git a/app/actions/instancesManager.js b/app/actions/instancesManager.js
index 36b2162cd..894bd326a 100644
--- a/app/actions/instancesManager.js
+++ b/app/actions/instancesManager.js
@@ -43,11 +43,11 @@ export function startInstance(instanceName) {
{ cwd: path.join(PACKS_PATH, instanceName) },
(error, stdout, stderr) => {
if (error) {
- console.error(`exec error: ${error}`);
+ log.error(`Cannot start this instance. Error: ${error}`);
return;
}
- console.log(`stdout: ${stdout}`);
- console.log(`stderr: ${stderr}`);
+ log.log(`stdout: ${stdout}`);
+ log.log(`stderr: ${stderr}`);
}
);
dispatch({
diff --git a/app/actions/settings.js b/app/actions/settings.js
index e23060aae..fcd4fc494 100644
--- a/app/actions/settings.js
+++ b/app/actions/settings.js
@@ -27,7 +27,11 @@ export function loadSettings() {
const javaSettings = {
autodetected: true, path: null, memory: 3072
};
- if (!settings.java || Object.keys(settings.java).length === 0 || isLegacy(javaSettings, settings.java)) {
+ if (!settings.java ||
+ Object.keys(settings.java).length === 0 ||
+ isLegacy(javaSettings, settings.java) ||
+ typeof settings.java.memory != 'number'
+ ) {
store.set('settings.java', javaSettings);
}
// Reads the settings again after patching
diff --git a/app/app.global.scss b/app/app.global.scss
index 5bf991d19..638ae1a1a 100644
--- a/app/app.global.scss
+++ b/app/app.global.scss
@@ -414,6 +414,19 @@ a:hover {
background: var(--secondary-color-2);
}
+.ant-slider-track, .ant-slider:hover .ant-slider-track {
+ background-color: var(--primary);
+}
+
+.ant-slider-handle,
+.ant-slider-dot-active,
+.ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open),
+.ant-slider-handle .ant-tooltip-open {
+ background-color: var(--secondary-color-3);
+ border: solid 2px var(--primary);
+ border-color: var(--primary) !important;
+}
+
.container {
max-width: 24rem;
margin: 1rem auto;
diff --git a/app/components/CurseModpackExplorerModal/CurseModpackExplorerModal.js b/app/components/CurseModpackExplorerModal/CurseModpackExplorerModal.js
new file mode 100644
index 000000000..4446cea39
--- /dev/null
+++ b/app/components/CurseModpackExplorerModal/CurseModpackExplorerModal.js
@@ -0,0 +1,53 @@
+import React, { useState, useEffect } from 'react';
+import ContentLoader from 'react-content-loader';
+import axios from 'axios';
+import Modal from '../Common/Modal/Modal';
+import { CURSEMETA_API_URL } from '../../constants';
+import styles from './CurseModpackExplorerModal.scss';
+
+const Loader = () => {packData.name}
+