mirror of
https://github.com/logos-storage/logos-storage-installer.git
synced 2026-01-03 14:03:08 +00:00
wip
This commit is contained in:
parent
cf66b4ec8e
commit
cddc1c3c26
@ -38,6 +38,7 @@ import { EthersService } from "./services/ethersService.js";
|
||||
import { MarketplaceSetup } from "./ui/marketplaceSetup.js";
|
||||
import { DataService } from "./services/dataService.js";
|
||||
import { DataMenu } from "./ui/dataMenu.js";
|
||||
import { FeedbackService } from "./services/feedbackService.js";
|
||||
|
||||
async function showNavigationMenu() {
|
||||
console.log("\n");
|
||||
@ -151,6 +152,7 @@ export async function main() {
|
||||
);
|
||||
const dataService = new DataService(configService);
|
||||
const dataMenu = new DataMenu(uiService, fsService, dataService);
|
||||
const feedbackService = new FeedbackService();
|
||||
const mainMenu = new MainMenu(
|
||||
uiService,
|
||||
new MenuLoop(),
|
||||
@ -160,6 +162,7 @@ export async function main() {
|
||||
processControl,
|
||||
codexApp,
|
||||
dataMenu,
|
||||
feedbackService,
|
||||
);
|
||||
|
||||
await mainMenu.show();
|
||||
|
||||
12
src/services/feedbackService.js
Normal file
12
src/services/feedbackService.js
Normal 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);
|
||||
};
|
||||
}
|
||||
@ -33,4 +33,12 @@ export class DataMenu {
|
||||
this.ui.showErrorMessage("Error during download: " + exception);
|
||||
}
|
||||
};
|
||||
|
||||
showNodeStatus = async () => {
|
||||
|
||||
};
|
||||
|
||||
showLocalData = async () => {
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ export class InstallMenu {
|
||||
action: this.selectInstallPath,
|
||||
},
|
||||
{
|
||||
label: "Storage provider module: Disabled (todo)",
|
||||
label: "Storage provider module: Disabled (Coming soon!)",
|
||||
action: this.storageProviderOption,
|
||||
},
|
||||
{
|
||||
|
||||
@ -8,6 +8,7 @@ export class MainMenu {
|
||||
processControl,
|
||||
codexApp,
|
||||
dataMenu,
|
||||
feedbackService,
|
||||
) {
|
||||
this.ui = uiService;
|
||||
this.loop = menuLoop;
|
||||
@ -17,6 +18,7 @@ export class MainMenu {
|
||||
this.processControl = processControl;
|
||||
this.codexApp = codexApp;
|
||||
this.dataMenu = dataMenu;
|
||||
this.feedbackService = feedbackService;
|
||||
|
||||
this.loop.initialize(this.promptMainMenu);
|
||||
}
|
||||
@ -63,7 +65,7 @@ export class MainMenu {
|
||||
},
|
||||
{
|
||||
label: "Submit feedback",
|
||||
action: ,
|
||||
action: this.feedbackService.openFeedbackPage,
|
||||
},
|
||||
{
|
||||
label: "Exit",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user