Skip to content

Commit

Permalink
app: Add plugin-management and convert to ts
Browse files Browse the repository at this point in the history
Because there were errors when importing from outside of tree in
the app builds.

This is temporary into a better solution can be done for sharing
this code between headlamp-plugin and app.

Had to remove env-paths usage because it wasn't working in when
running the build of the app.

Signed-off-by: René Dudfield <renedudfield@microsoft.com>
  • Loading branch information
illume committed Jul 18, 2024
1 parent 00983c3 commit 3e7fab4
Show file tree
Hide file tree
Showing 5 changed files with 573 additions and 18 deletions.
3 changes: 2 additions & 1 deletion app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
/electron/i18n-helper.js
/electron/preload.js
/electron/windowSize.js
electron/windowSize.test.js
/electron/plugin-management.js
electron/windowSize.test.js
2 changes: 1 addition & 1 deletion app/electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import { userInfo } from 'node:os';
import path from 'path';
import url from 'url';
import yargs from 'yargs';
import PluginManager from '../../plugins/headlamp-plugin/plugin-management/plugin-management';
import i18n from './i18next.config';
import { PluginManager } from './plugin-management';
import windowSize from './windowSize';

dotenv.config({ path: path.join(process.resourcesPath, '.env') });
Expand Down
Loading

0 comments on commit 3e7fab4

Please sign in to comment.