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

import PopupLayout from "@/layouts/PopupLayout.vue";
import ctxRef from "@/utils/ctx_ref.js"
import Context from "./statPopup.js"
import "./statPopup.css"
import TLabel from "@/components/ui/TLabel.vue";

const ctx = ctxRef(new Context())

</script>

<template>
	<PopupLayout>
		<header class="flex flex-row">记录"{{ ctx.record.name }}"解析量统计
			<div class="inline-block">
				<div class="label-group">
					<TLabel style="padding: 0.1em 0.5em; font-size: 0.5em" outlined="" v-for="routeName in ctx.record.routeNames">{{ routeName }}</TLabel>
				</div>
			</div>
		</header>

		<div id="stat-chart"></div>
	</PopupLayout>
</template>

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