Compare commits

..

4 Commits

Author SHA1 Message Date
jeffvli 9fe088174d remove discord-rpc import in renderer 2026-04-10 01:30:33 -07:00
jeffvli 515638c063 fix invalid dynamic imports in renderer 2026-04-10 01:20:52 -07:00
jeffvli 9b48671dcd increase node memory limit 2026-04-10 01:14:52 -07:00
jeffvli debec2e236 remove dynamic import for platform features 2026-04-10 01:07:30 -07:00
2 changed files with 3 additions and 21 deletions
+3 -20
View File
@@ -1,5 +1,6 @@
import { initClient, initContract } from '@ts-rest/core';
import axios, { AxiosError, AxiosRequestConfig, AxiosResponse, isAxiosError } from 'axios';
import omitBy from 'lodash/omitBy';
import qs from 'qs';
import { z } from 'zod';
@@ -379,26 +380,8 @@ axiosClient.interceptors.response.use(
const parsePath = (fullPath: string) => {
const [path, params] = fullPath.split('?');
const url = new URLSearchParams(params);
const notNilParams: Record<string, string[]> = {};
for (const [key, value] of url) {
if (value === 'undefined' || value === 'null') {
continue;
}
let realKey = key;
if (key.includes('[') && key.includes(']')) {
realKey = key.split('[')[0];
}
if (realKey in notNilParams) {
notNilParams[realKey].push(value);
} else {
notNilParams[realKey] = [value];
}
}
const parsedParams = qs.parse(params, { arrayLimit: 99999, parameterLimit: 99999 });
const notNilParams = omitBy(parsedParams, (value) => value === 'undefined' || value === 'null');
return {
params: notNilParams,
@@ -146,7 +146,6 @@ export const ThemeSettings = memo(() => {
}
}}
renderOption={renderThemeOption}
searchable
width={240}
/>
),