This commit is contained in:
Ben 2025-06-03 09:57:05 +02:00
parent cf66b4ec8e
commit cddc1c3c26
No known key found for this signature in database
GPG Key ID: 0F16E812E736C24B
5 changed files with 27 additions and 2 deletions

View File

@ -38,6 +38,7 @@ import { EthersService } from "./services/ethersService.js";
import { MarketplaceSetup } from "./ui/marketplaceSetup.js"; import { MarketplaceSetup } from "./ui/marketplaceSetup.js";
import { DataService } from "./services/dataService.js"; import { DataService } from "./services/dataService.js";
import { DataMenu } from "./ui/dataMenu.js"; import { DataMenu } from "./ui/dataMenu.js";
import { FeedbackService } from "./services/feedbackService.js";
async function showNavigationMenu() { async function showNavigationMenu() {
console.log("\n"); console.log("\n");
@ -151,6 +152,7 @@ export async function main() {
); );
const dataService = new DataService(configService); const dataService = new DataService(configService);
const dataMenu = new DataMenu(uiService, fsService, dataService); const dataMenu = new DataMenu(uiService, fsService, dataService);
const feedbackService = new FeedbackService();
const mainMenu = new MainMenu( const mainMenu = new MainMenu(
uiService, uiService,
new MenuLoop(), new MenuLoop(),
@ -160,6 +162,7 @@ export async function main() {
processControl, processControl,
codexApp, codexApp,
dataMenu, dataMenu,
feedbackService,
); );
await mainMenu.show(); await mainMenu.show();

View File

@ -0,0 +1,12 @@
import open from "open";
export class FeedbackService {
openFeedbackPage = async () => {
const segments = [
"https://tally.so/r/w2DlXb",
];
const url = segments.join("");
open(url);
};
}

View File

@ -33,4 +33,12 @@ export class DataMenu {
this.ui.showErrorMessage("Error during download: " + exception); this.ui.showErrorMessage("Error during download: " + exception);
} }
}; };
showNodeStatus = async () => {
};
showLocalData = async () => {
};
} }

View File

@ -29,7 +29,7 @@ export class InstallMenu {
action: this.selectInstallPath, action: this.selectInstallPath,
}, },
{ {
label: "Storage provider module: Disabled (todo)", label: "Storage provider module: Disabled (Coming soon!)",
action: this.storageProviderOption, action: this.storageProviderOption,
}, },
{ {

View File

@ -8,6 +8,7 @@ export class MainMenu {
processControl, processControl,
codexApp, codexApp,
dataMenu, dataMenu,
feedbackService,
) { ) {
this.ui = uiService; this.ui = uiService;
this.loop = menuLoop; this.loop = menuLoop;
@ -17,6 +18,7 @@ export class MainMenu {
this.processControl = processControl; this.processControl = processControl;
this.codexApp = codexApp; this.codexApp = codexApp;
this.dataMenu = dataMenu; this.dataMenu = dataMenu;
this.feedbackService = feedbackService;
this.loop.initialize(this.promptMainMenu); this.loop.initialize(this.promptMainMenu);
} }
@ -63,7 +65,7 @@ export class MainMenu {
}, },
{ {
label: "Submit feedback", label: "Submit feedback",
action: , action: this.feedbackService.openFeedbackPage,
}, },
{ {
label: "Exit", label: "Exit",