Skip to content

Commit 939319e

Browse files
author
Roman.Sergeenko
committed
Merge branch 'main' into feature/codeql-fe-fixes
# Conflicts: # redisinsight/ui/src/components/query-card/QueryCardCliPlugin/QueryCardCliPlugin.tsx # redisinsight/ui/src/plugins/pluginImport.ts
2 parents 079be52 + 352874b commit 939319e

File tree

288 files changed

+5532
-2124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

288 files changed

+5532
-2124
lines changed

configs/webpack.config.web.prod.babel.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,20 @@ export default merge(commonConfig, {
122122
test: /\.css$/,
123123
use: ['style-loader', 'css-loader'],
124124
},
125+
// WOFF2 Font
126+
{
127+
test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/,
128+
use: [
129+
{
130+
loader: 'file-loader',
131+
options: {
132+
name: '[hash]-[name].[ext]',
133+
outputPath: 'static',
134+
publicPath: 'static',
135+
},
136+
},
137+
],
138+
},
125139
// TTF Font
126140
{
127141
test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,

package.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@
4848
},
4949
"repository": {
5050
"type": "git",
51-
"url": "git+https://github.com/RedisLabs/redisinsight-v2.git"
51+
"url": "git+https://github.com/RedisInsight/RedisInsight.git"
5252
},
5353
"author": {
5454
"name": "Redis Ltd.",
5555
"email": "[email protected]",
5656
"url": "https://redis.com/redis-enterprise/redis-insight"
5757
},
5858
"bugs": {
59-
"url": "https://github.com/RedisLabs/redisinsight-v2/issues"
59+
"url": "https://github.com/RedisInsight/RedisInsight/issues"
6060
},
6161
"keywords": [
6262
"redisinsight",
@@ -68,14 +68,19 @@
6868
"sass",
6969
"webpack"
7070
],
71-
"homepage": "https://github.com/RedisLabs/redisinsight-v2#readme",
71+
"homepage": "https://github.com/RedisInsight/RedisInsight#readme",
7272
"jest": {
7373
"testURL": "http://localhost/",
7474
"moduleNameMapper": {
7575
"\\.(jpg|jpeg|png|ico|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/redisinsight/__mocks__/fileMock.js",
7676
"\\.(css|less|sass|scss)$": "identity-obj-proxy",
7777
"uiSrc/(.*)": "<rootDir>/redisinsight/ui/src/$1",
78-
"monaco-editor": "<rootDir>/redisinsight/__mocks__/monacoMock.js"
78+
"monaco-editor": "<rootDir>/redisinsight/__mocks__/monacoMock.js",
79+
"unified": "<rootDir>/redisinsight/__mocks__/unified.js",
80+
"remark-parse": "<rootDir>/redisinsight/__mocks__/remarkParse.js",
81+
"remark-rehype": "<rootDir>/redisinsight/__mocks__/remarkRehype.js",
82+
"rehype-stringify": "<rootDir>/redisinsight/__mocks__/rehypeStringify.js",
83+
"unist-util-visit": "<rootDir>/redisinsight/__mocks__/unistUtilsVisit.js"
7984
},
8085
"setupFilesAfterEnv": [
8186
"<rootDir>/redisinsight/ui/src/setup-tests.ts"
@@ -243,7 +248,12 @@
243248
"react-redux": "^7.2.2",
244249
"react-jsx-parser": "^1.28.4",
245250
"react-router-dom": "^5.2.0",
246-
"react-virtualized": "^9.22.2"
251+
"react-virtualized": "^9.22.2",
252+
"remark-parse": "^10.0.1",
253+
"remark-rehype": "^10.0.1",
254+
"rehype-stringify": "^9.0.2",
255+
"unified": "^10.1.1",
256+
"unist-util-visit": "^4.1.0"
247257
},
248258
"devEngines": {
249259
"node": ">=14.x <16",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default jest.fn()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default jest.fn()

redisinsight/__mocks__/remarkRehype.js

Whitespace-only changes.

redisinsight/__mocks__/unified.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const unified = jest.fn()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const visit = jest.fn();

redisinsight/api/config/default.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default {
8080
redijsonUrl: process.env.COMMANDS_REDIJSON_URL
8181
|| 'https://raw.githubusercontent.com/RedisJSON/RedisJSON/master/commands.json',
8282
redistimeseriesUrl: process.env.COMMANDS_REDISTIMESERIES_URL
83-
|| 'https://raw.githubusercontent.com/RedisTimeSeries/RedisTimeSeries/master/src/commands.json',
83+
|| 'https://raw.githubusercontent.com/RedisTimeSeries/RedisTimeSeries/master/commands.json',
8484
redisaiUrl: process.env.COMMANDS_REDISAI_URL
8585
|| 'https://raw.githubusercontent.com/RedisAI/RedisAI/master/commands.json',
8686
redisgraphUrl: process.env.COMMANDS_REDISGRAPH_URL

redisinsight/api/config/production.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { join } from 'path';
22

3-
const homedir = join(require('os').homedir(), process.env.APP_FOLDER_NAME || '.redisinsight-v2.0');
3+
const homedir = join(require('os').homedir(), process.env.APP_FOLDER_NAME || '.redisinsight-preview');
44

55
export default {
66
dir_path: {

redisinsight/api/src/__mocks__/analytics.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ export const mockBrowserAnalyticsService = () => ({
2424
});
2525

2626
export const mockCliAnalyticsService = () => ({
27-
sendCliClientCreatedEvent: jest.fn(),
28-
sendCliClientCreationFailedEvent: jest.fn(),
29-
sendCliClientDeletedEvent: jest.fn(),
30-
sendCliClientRecreatedEvent: jest.fn(),
31-
sendCliCommandExecutedEvent: jest.fn(),
32-
sendCliCommandErrorEvent: jest.fn(),
33-
sendCliClusterCommandExecutedEvent: jest.fn(),
34-
sendCliConnectionErrorEvent: jest.fn(),
27+
sendClientCreatedEvent: jest.fn(),
28+
sendClientCreationFailedEvent: jest.fn(),
29+
sendClientDeletedEvent: jest.fn(),
30+
sendClientRecreatedEvent: jest.fn(),
31+
sendCommandExecutedEvent: jest.fn(),
32+
sendCommandErrorEvent: jest.fn(),
33+
sendClusterCommandExecutedEvent: jest.fn(),
34+
sendConnectionErrorEvent: jest.fn(),
3535
});
3636

3737
export const mockSettingsAnalyticsService = () => ({

0 commit comments

Comments
 (0)