Skip to content

Commit

Permalink
Update 1.4.4
Browse files Browse the repository at this point in the history
- Fixxed curseforge search
- Added GA for better analytics
- Fixxed the issue for manageing some modpacks that caused to freeze
  • Loading branch information
tribbedev committed Jul 17, 2022
1 parent 36b8fa5 commit b22d747
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 30 deletions.
30 changes: 18 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rplauncher",
"version": "1.4.3",
"version": "1.4.4",
"description": "rPLauncher is simple, yet powerful Minecraft custom launcher with a strong focus on the user experience",
"keywords": [
"minecraft",
Expand Down
11 changes: 7 additions & 4 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
(ga.q = ga.q || []).push(arguments);
};
ga.l = +new Date();
ga('create', 'UA-147631204-1', 'none');
ga('create', 'UA-219984072-2', 'none');
ga('set', 'transport', 'xhr');
ga('set', 'appName', 'rPLauncher');
ga('set', 'checkProtocolTask', null);
Expand All @@ -84,9 +84,12 @@
-->
<title>rPLauncher</title>
</head>
<body style="
background-image: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1124&q=100');background-size: cover;
">
<body
style="
background-image: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1124&q=100');
background-size: cover;
"
>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root">
<div
Expand Down
11 changes: 6 additions & 5 deletions src/common/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,17 +391,18 @@ export const getSearch = async (
}

const params = {
gameId: 432,
categoryId: categoryId || 0,
classId: type === 'mods' ? 6 : 4471,
gameId: 432,
gameVersion: gameVersion || '',
pageSize,
index,
searchFilter,
sortField,
sortOrder: isSortDescending ? 'desc' : 'asc',
gameVersionTypeId: gameVersion || '',
...(modLoaderType === 'fabric' && { modLoaderType: 'Fabric' }),
classId: type === 'mods' ? 6 : 4471,
searchFilter
index
};
console.log(params);
const { data } = await axios.get(url, { params });
return data?.data;
};
Expand Down
8 changes: 1 addition & 7 deletions src/common/modals/InstanceManager/Overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,7 @@ const Overview = ({ instanceName, background, manifest }) => {
const defaultJavaPath = useSelector(state =>
_getJavaPath(state)(javaVersion)
);
const [javaLocalMemory, setJavaLocalMemory] = useState(
scaleMem(config?.javaMemory)
);
const [javaLocalMemory, setJavaLocalMemory] = useState(config?.javaMemory);
const [javaLocalArguments, setJavaLocalArguments] = useState(
config?.javaArgs
);
Expand All @@ -196,14 +194,12 @@ const Overview = ({ instanceName, background, manifest }) => {
const [screenResolution, setScreenResolution] = useState(null);
const [height, setHeight] = useState(config?.resolution?.height);
const [width, setWidth] = useState(config?.resolution?.width);

useEffect(() => {
ipcRenderer
.invoke('getAllDisplaysBounds')
.then(setScreenResolution)
.catch(console.error);
}, []);

const updateJavaMemory = v => {
dispatch(
updateInstanceConfig(instanceName, prev => ({
Expand All @@ -212,7 +208,6 @@ const Overview = ({ instanceName, background, manifest }) => {
}))
);
};

const updateJavaArguments = v => {
dispatch(
updateInstanceConfig(instanceName, prev => ({
Expand All @@ -221,7 +216,6 @@ const Overview = ({ instanceName, background, manifest }) => {
}))
);
};

const updateCustomJavaPath = v => {
dispatch(
updateInstanceConfig(instanceName, prev => ({
Expand Down
2 changes: 1 addition & 1 deletion src/common/modals/InstanceManager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ const InstanceManager = ({ instanceName }) => {
animation-play-state: inherit;
border: solid 3px transparent;
border-bottom-color: ${props =>
props.theme.palette.common.white};
props.theme.palette.common.white};
border-radius: 50%;
content: '';
height: 20px;
Expand Down

0 comments on commit b22d747

Please sign in to comment.