2021-09-21 21:39:28 +02:00
|
|
|
<script>
|
|
|
|
import Home from "./Home.svelte";
|
|
|
|
import AccountSettings from "./AccountSettings.svelte";
|
2021-09-21 22:47:38 +02:00
|
|
|
import APIKeys from "./APIKeys.svelte";
|
2021-11-16 13:58:00 +01:00
|
|
|
import Transactions from "./Transactions.svelte";
|
2021-11-16 21:11:59 +01:00
|
|
|
import Subscription from "./Subscription.svelte";
|
2021-12-20 20:31:39 +01:00
|
|
|
import ConnectApp from "./ConnectApp.svelte";
|
2022-02-01 18:43:52 +01:00
|
|
|
import ActivityLog from "./ActivityLog.svelte";
|
2022-10-18 14:30:50 +02:00
|
|
|
import DepositCredit from "./DepositCredit.svelte";
|
|
|
|
import TabMenu from "../util/TabMenu.svelte";
|
|
|
|
import BandwidthSharing from "./BandwidthSharing.svelte";
|
|
|
|
import EmbeddingControls from "./EmbeddingControls.svelte";
|
|
|
|
import PageBranding from "./PageBranding.svelte";
|
2021-09-21 21:39:28 +02:00
|
|
|
|
2022-10-18 14:30:50 +02:00
|
|
|
let pages = [
|
|
|
|
{
|
|
|
|
path: "/user/home",
|
|
|
|
title: "My Home",
|
|
|
|
icon: "home",
|
|
|
|
component: Home,
|
|
|
|
}, {
|
|
|
|
path: "/user/settings",
|
|
|
|
title: "Settings",
|
|
|
|
icon: "settings",
|
|
|
|
component: AccountSettings,
|
|
|
|
}, {
|
|
|
|
path: "/user/sharing",
|
|
|
|
title: "Sharing",
|
|
|
|
icon: "share",
|
|
|
|
subpages: [
|
|
|
|
{
|
|
|
|
path: "/user/sharing/bandwidth",
|
|
|
|
title: "Bandwidth Sharing",
|
|
|
|
icon: "share",
|
|
|
|
component: BandwidthSharing,
|
|
|
|
}, {
|
|
|
|
path: "/user/sharing/branding",
|
|
|
|
title: "Page Branding",
|
|
|
|
icon: "palette",
|
|
|
|
component: PageBranding,
|
|
|
|
}, {
|
|
|
|
path: "/user/sharing/embedding",
|
|
|
|
title: "Embedding Controls",
|
|
|
|
icon: "code",
|
|
|
|
component: EmbeddingControls,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}, {
|
|
|
|
path: "/user/connect_app",
|
|
|
|
title: "Apps",
|
|
|
|
icon: "app_registration",
|
|
|
|
component: ConnectApp,
|
|
|
|
}, {
|
|
|
|
path: "/user/api_keys",
|
|
|
|
title: "API Keys",
|
|
|
|
icon: "vpn_key",
|
|
|
|
component: APIKeys,
|
|
|
|
}, {
|
|
|
|
path: "/user/activity",
|
|
|
|
title: "Activity Log",
|
|
|
|
icon: "list",
|
|
|
|
component: ActivityLog,
|
|
|
|
}, {
|
|
|
|
path: "/user/prepaid",
|
|
|
|
title: "Prepaid",
|
|
|
|
icon: "receipt_long",
|
|
|
|
subpages: [
|
|
|
|
{
|
|
|
|
path: "/user/prepaid/deposit",
|
|
|
|
title: "Deposit credit",
|
|
|
|
icon: "account_balance_wallet",
|
|
|
|
component: DepositCredit,
|
|
|
|
}, {
|
|
|
|
path: "/user/prepaid/subscriptions",
|
|
|
|
title: "Subscriptions",
|
|
|
|
icon: "shopping_cart",
|
|
|
|
component: Subscription,
|
|
|
|
}, {
|
|
|
|
path: "/user/prepaid/transactions",
|
|
|
|
title: "Transactions",
|
|
|
|
icon: "receipt",
|
|
|
|
component: Transactions,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]
|
2021-09-21 21:39:28 +02:00
|
|
|
</script>
|
|
|
|
|
2022-10-18 14:30:50 +02:00
|
|
|
<TabMenu pages={pages} title="Welcome home, {window.user.username}!"/>
|