Skip to content

Commit 2f5e8c0

Browse files
RI-7745: poc/temporary fix of redisearch plugin (#5215)
1 parent 1f13bb9 commit 2f5e8c0

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

redisinsight/ui/src/components/base/icons/iconRegistry.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,4 +305,4 @@ export const SlowLogIcon = createIconComponent(SlowLogSvg)
305305
export const WorkbenchIcon = createIconComponent(WorkbenchSvg)
306306

307307
export const ShieldIcon = createIconComponent(ShieldSvg)
308-
export const RedisSoftwareIcon = createIconComponent(RedisSoftwareSvg)
308+
export const RedisSoftwareIcon = createIconComponent(RedisSoftwareSvg)

redisinsight/ui/src/contexts/themeContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import 'modern-normalize/modern-normalize.css'
1010
import '@redis-ui/styles/normalized-styles.css'
1111
import '@redis-ui/styles/fonts.css'
1212

13-
import { ipcThemeChange } from 'uiSrc/electron/utils'
13+
import { ipcThemeChange } from 'uiSrc/electron/utils/ipcThemeChange'
1414
import {
1515
BrowserStorageItem,
1616
Theme,

redisinsight/ui/src/packages/vite.config.mjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import react from '@vitejs/plugin-react';
44
import svgr from 'vite-plugin-svgr';
55
import { ViteEjsPlugin } from 'vite-plugin-ejs';
66
import { viteStaticCopy } from 'vite-plugin-static-copy';
7-
import path, { resolve } from 'path'
8-
import { fileURLToPath } from 'url'
7+
import path, { resolve } from 'path';
8+
import { fileURLToPath } from 'url';
9+
import { defaultConfig } from '../config/default';
910

1011
const riPlugins = [
1112
{ name: 'redisearch', entry: 'src/main.tsx' },
@@ -94,7 +95,7 @@ export default defineConfig({
9495
'/main.scss',
9596
'/App.scss',
9697
'/packages/clients-list/src/styles/styles.scss',
97-
'/packages/redisearch/src/styles/styles.scss'
98+
'/packages/redisearch/src/styles/styles.scss',
9899
];
99100
if (skipFiles.every((file) => !filename.endsWith(file))) {
100101
return `
@@ -112,6 +113,8 @@ export default defineConfig({
112113
define: {
113114
global: 'globalThis',
114115
'process.env': {},
116+
// setup default riConfig since it might be used in constants
117+
riConfig: defaultConfig,
115118
},
116119
});
117120

0 commit comments

Comments
 (0)