ffplayout/frontend/pages/configure.vue

67 lines
2.1 KiB
Vue
Raw Normal View History

2020-04-09 12:30:28 -04:00
<template>
<div class="flex w-full h-[calc(100vh-60px)] ps-1">
2024-06-17 12:05:56 -04:00
<div class="flex-none w-[70px] join join-vertical me-3 pt-7">
2024-04-04 17:28:25 -04:00
<button
2024-04-05 12:51:50 -04:00
class="join-item w-full btn btn-sm btn-primary duration-500"
2024-04-04 17:28:25 -04:00
:class="activeConf === 1 && 'btn-secondary'"
@click="activeConf = 1"
>
{{ t('config.channel') }}
2024-04-04 17:28:25 -04:00
</button>
<button
v-if="authStore.role === 'GlobalAdmin'"
2024-06-17 12:05:56 -04:00
class="join-item w-full btn btn-sm btn-primary duration-500"
2024-04-04 17:28:25 -04:00
:class="activeConf === 2 && 'btn-secondary'"
@click="activeConf = 2"
>
2024-06-17 12:05:56 -04:00
Advanced
2024-04-04 17:28:25 -04:00
</button>
<button
2024-04-05 12:51:50 -04:00
class="join-item w-full btn btn-sm btn-primary mt-1 duration-500"
2024-04-04 17:28:25 -04:00
:class="activeConf === 3 && 'btn-secondary'"
@click="activeConf = 3"
2024-06-17 12:05:56 -04:00
>
Playout
</button>
<button
class="join-item w-full btn btn-sm btn-primary mt-1 duration-500"
:class="activeConf === 4 && 'btn-secondary'"
@click="activeConf = 4"
2024-04-04 17:28:25 -04:00
>
{{ t('config.user') }}
2024-04-04 17:28:25 -04:00
</button>
</div>
<div class="w-[calc(100%-70px)] mt-6 px-6 overflow-auto">
<div>
<div v-if="activeConf === 1" class="w-full flex justify-center">
<ConfigChannel />
</div>
2024-04-04 17:28:25 -04:00
<div v-if="activeConf === 2" class="w-full flex justify-center">
<ConfigAdvanced />
</div>
2024-04-04 17:28:25 -04:00
<div v-else-if="activeConf === 3" class="w-full flex justify-center">
<ConfigPlayout />
</div>
2024-06-17 12:05:56 -04:00
<div v-else-if="activeConf === 4" class="w-full flex justify-center">
<ConfigUser />
</div>
2023-01-11 04:54:25 -05:00
</div>
</div>
2020-04-09 12:30:28 -04:00
</div>
</template>
2023-01-11 04:54:25 -05:00
<script setup lang="ts">
2024-04-16 08:07:50 -04:00
const { t } = useI18n()
2024-06-18 02:56:12 -04:00
const authStore = useAuth()
2023-01-11 04:54:25 -05:00
useHead({
2024-04-16 08:07:50 -04:00
title: `${t('button.configure')} | ffplayout`,
2023-01-11 04:54:25 -05:00
})
2020-12-30 16:08:54 -05:00
2024-04-04 17:28:25 -04:00
const activeConf = ref(1)
2020-04-09 12:30:28 -04:00
</script>