Skip to content

Commit fdf8245

Browse files
committed
#RI-5280 - Rename application
1 parent 257da22 commit fdf8245

Some content is hidden

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

63 files changed

+260
-101
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ licenses
6767
/tests/e2e/remote
6868
/tests/e2e/.redisinsight-v2
6969
/tests/e2e/.redisinsight-app
70+
/tests/e2e/.redisinsight-insight
7071

7172
# Parcel
7273
.parcel-cache

docs/plugins/installation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ authors to avoid automatic execution of malicious code.
99

1010
1. Download the plugin for the Workbench.
1111
2. Open the `plugins` folder with the following path
12-
* For MacOs: `<usersHomeDir>/.redisinsight-app/plugins`
13-
* For Windows: `C:/Users/{Username}/.redisinsight-app/plugins`
14-
* For Linux: `<usersHomeDir>/.redisinsight-app/plugins`
12+
* For MacOs: `<usersHomeDir>/.redis-insight/plugins`
13+
* For Windows: `C:/Users/{Username}/.redis-insight/plugins`
14+
* For Linux: `<usersHomeDir>/.redis-insight/plugins`
1515
3. Add the folder with plugin to the `plugins` folder
1616

1717
To see the uploaded plugin visualizations in the command results, reload the Workbench

redisinsight/api/config/production.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { join } from 'path';
22
import * as os from 'os';
33

44
const homedir = process.env.RI_APP_FOLDER_ABSOLUTE_PATH
5-
|| (join(os.homedir(), process.env.RI_APP_FOLDER_NAME || '.redisinsight-app'));
5+
|| (join(os.homedir(), process.env.RI_APP_FOLDER_NAME || '.redis-insight'));
66

7-
const prevHomedir = join(os.homedir(), '.redisinsight-v2');
7+
const prevHomedir = join(os.homedir(), '.redisinsight-app');
88

99
export default {
1010
dir_path: {
@@ -14,11 +14,15 @@ export default {
1414
customPlugins: join(homedir, 'plugins'),
1515
customTutorials: join(homedir, 'custom-tutorials'),
1616
commands: join(homedir, 'commands'),
17-
guides: process.env.RI_GUIDES_PATH || join(homedir, 'guides'),
1817
tutorials: process.env.RI_TUTORIALS_PATH || join(homedir, 'tutorials'),
1918
content: process.env.RI_CONTENT_PATH || join(homedir, 'content'),
2019
caCertificates: join(homedir, 'ca_certificates'),
2120
clientCertificates: join(homedir, 'client_certificates'),
21+
oldFolders: [
22+
join(os.homedir(), '.redisinsight-preview'),
23+
join(os.homedir(), '.redisinsight-v2'),
24+
process.env.RI_GUIDES_PATH || join(homedir, 'guides'),
25+
]
2226
},
2327
server: {
2428
env: 'production',

redisinsight/api/src/init-helper.ts

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,35 @@ export const migrateHomeFolder = async () => {
3434
join(PATH_CONFIG.homedir, target),
3535
)));
3636
}
37+
38+
return true
3739
} catch (e) {
3840
// continue initialization even without migration
41+
return false
3942
}
4043
};
4144

4245
/**
43-
* Remove old guides folder
46+
* Remove old folders
4447
*/
45-
export const removeGuidesFolder = async () => {
48+
export const removeOldFolders = async () => {
4649
try {
47-
if (await fs.pathExists(PATH_CONFIG.guides)) {
48-
await fs.rm(PATH_CONFIG.guides, { recursive: true, force: true });
50+
// remove old folders
51+
await PATH_CONFIG.oldFolders?.map(removeFolder)
52+
} catch (e) {
53+
// continue initialization even without removing
54+
}
55+
};
56+
57+
/**
58+
* Remove a folder
59+
*/
60+
export const removeFolder = async (path: string) => {
61+
try {
62+
if (await fs.pathExists(path)) {
63+
await fs.rm(path, { recursive: true, force: true });
4964
}
5065
} catch (e) {
51-
// continue initialization even without migration
66+
// continue initialization even without removing
5267
}
5368
};

redisinsight/api/src/main.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import * as bodyParser from 'body-parser';
77
import { WinstonModule } from 'nest-winston';
88
import { GlobalExceptionFilter } from 'src/exceptions/global-exception.filter';
99
import { get, Config } from 'src/utils';
10-
import { migrateHomeFolder, removeGuidesFolder } from 'src/init-helper';
10+
import { migrateHomeFolder, removeOldFolders } from 'src/init-helper';
1111
import { LogFileProvider } from 'src/modules/profiler/providers/log-file.provider';
1212
import { WindowsAuthAdapter } from 'src/modules/auth/window-auth/adapters/window-auth.adapter';
1313
import { AppModule } from './app.module';
@@ -23,8 +23,7 @@ interface IApp {
2323
}
2424

2525
export default async function bootstrap(apiPort?: number): Promise<IApp> {
26-
await migrateHomeFolder();
27-
await removeGuidesFolder();
26+
await migrateHomeFolder() && await removeOldFolders();
2827

2928
const { port, host } = serverConfig;
3029
const logger = WinstonModule.createLogger(LOGGER_CONFIG);

redisinsight/desktop/splash.ejs

Lines changed: 14 additions & 7 deletions
Large diffs are not rendered by default.

redisinsight/desktop/views/cloud_outh_callback/callback.html

Lines changed: 10 additions & 9 deletions
Large diffs are not rendered by default.
-14.7 KB
Binary file not shown.
429 Bytes
Loading

redisinsight/desktop/views/cloud_outh_callback/styles.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)