mirror of
https://github.com/logos-storage/logos-storage-installer.git
synced 2026-01-07 16:03:07 +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 { 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();
|
||||||
|
|||||||
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);
|
this.ui.showErrorMessage("Error during download: " + exception);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
showNodeStatus = async () => {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
showLocalData = async () => {
|
||||||
|
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user