2023-07-01 13:46:23 +00:00
|
|
|
import {
|
|
|
|
accountSettingsEventHandlers,
|
|
|
|
accountSettingsSteps,
|
|
|
|
homepageEventHandlers,
|
|
|
|
homepageSteps,
|
|
|
|
} from "./interface/exports.js";
|
2023-06-15 12:53:00 +00:00
|
|
|
import {introductionSteps} from "./introduction.js";
|
|
|
|
|
2023-07-01 13:46:23 +00:00
|
|
|
export * from "./shared/exports.js";
|
|
|
|
|
2023-07-01 10:41:54 +00:00
|
|
|
export enum TourId {
|
2023-07-01 13:46:23 +00:00
|
|
|
InterfaceAccountSettings = "interface-account-settings",
|
2023-07-01 10:41:54 +00:00
|
|
|
InterfaceHomepage = "interface-homepage",
|
|
|
|
Introduction = "introduction",
|
|
|
|
}
|
2023-06-15 12:53:00 +00:00
|
|
|
|
2023-07-01 13:46:23 +00:00
|
|
|
export type TourRequirement = {
|
|
|
|
mustBeLoggedIn: boolean;
|
|
|
|
path: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type TourIdsAndSteps = Array<
|
|
|
|
[TourId, TourStepOptions[], TourStepEventHandler[], TourRequirement]
|
|
|
|
>;
|
|
|
|
|
|
|
|
export const tourIdsAndSteps: TourIdsAndSteps = [
|
|
|
|
[
|
|
|
|
TourId.Introduction,
|
|
|
|
introductionSteps,
|
|
|
|
[],
|
|
|
|
{
|
|
|
|
mustBeLoggedIn: false,
|
|
|
|
path: "/",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
TourId.InterfaceAccountSettings,
|
|
|
|
accountSettingsSteps,
|
|
|
|
accountSettingsEventHandlers,
|
|
|
|
{
|
|
|
|
mustBeLoggedIn: true,
|
|
|
|
path: "/settings",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
TourId.InterfaceHomepage,
|
|
|
|
homepageSteps,
|
|
|
|
homepageEventHandlers,
|
|
|
|
{
|
|
|
|
mustBeLoggedIn: false,
|
|
|
|
path: "/",
|
|
|
|
},
|
|
|
|
],
|
2023-06-15 12:53:00 +00:00
|
|
|
];
|