<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 "./hls.js"
import ServerSettingLayout from "@/layouts/ServerSettingLayout.vue";
import Menu from "./@menu.vue"
import PostForm from "@/components/form/PostForm.vue";
import SubmitButton from "@/components/form/SubmitButton.vue";
import HTTPHLSConfigBox from "@/components/server/HTTPHLSConfigBox.vue";

const ctx = ctxRef(new Context())

</script>

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

		<PostForm @success="ctx.success" action="$">
			<input type="hidden" name="webId" :value="ctx.webId"/>

			<h5 class="!mb-4">HLS加密设置</h5>
			<HTTPHLSConfigBox v-model="ctx.hlsConfig"></HTTPHLSConfigBox>

			<SubmitButton class="mt-4"></SubmitButton>
		</PostForm>
	</ServerSettingLayout>
</template>

<style lang="postcss" scoped>
</style>