<script setup>
// Copyright 2024 FlexCDN root@flexcdn.cn. All rights reserved. Official site: https://flexcdn.cn .

import ctxRef from "@/utils/ctx_ref.js"
import Context from "./scheduling.js"
import ServerSettingLayout from "@/layouts/ServerSettingLayout.vue";
import Menu from "./@menu.vue"
import OriginSchedulingViewBox from "@/components/server/OriginSchedulingViewBox.vue";

const ctx = ctxRef(new Context())

</script>

<template>
	<ServerSettingLayout :ctx="ctx">
		<Menu :ctx="ctx" active-tab="scheduling"></Menu>

		<OriginSchedulingViewBox :v-scheduling="ctx.scheduling" :v-params="'type=server&serverId=' + ctx.serverId + '&reverseProxyId=' + ctx.reverseProxyId"></OriginSchedulingViewBox>
	</ServerSettingLayout>
</template>

<style lang="postcss" scoped src="@/views/servers/style/server.pcss"></style>