<!--
 - @copyright Copyright (c) 2019 Joas Schilling <coding@schilljs.com>
 -
 - @author Joas Schilling <coding@schilljs.com>
 -
 - @license GNU AGPL version 3 or any later version
 -
 - This program is free software: you can redistribute it and/or modify
 - it under the terms of the GNU Affero General Public License as
 - published by the Free Software Foundation, either version 3 of the
 - License, or (at your option) any later version.
 -
 - This program is distributed in the hope that it will be useful,
 - but WITHOUT ANY WARRANTY; without even the implied warranty of
 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 - GNU Affero General Public License for more details.
 -
 - You should have received a copy of the GNU Affero General Public License
 - along with this program. If not, see <http://www.gnu.org/licenses/>.
 -
 -->

<template>
	<div>
		<GeneralSettings />
		<MatterbridgeIntegration />
		<AllowedGroups />
		<Commands />
		<WebServerSetupChecks />
		<StunServers />
		<TurnServers />
		<SignalingServers />
		<HostedSignalingServer />
		<SIPBridge />
	</div>
</template>

<script>
import AllowedGroups from '../components/AdminSettings/AllowedGroups.vue'
import Commands from '../components/AdminSettings/Commands.vue'
import GeneralSettings from '../components/AdminSettings/GeneralSettings.vue'
import HostedSignalingServer from '../components/AdminSettings/HostedSignalingServer.vue'
import MatterbridgeIntegration from '../components/AdminSettings/MatterbridgeIntegration.vue'
import SignalingServers from '../components/AdminSettings/SignalingServers.vue'
import SIPBridge from '../components/AdminSettings/SIPBridge.vue'
import StunServers from '../components/AdminSettings/StunServers.vue'
import TurnServers from '../components/AdminSettings/TurnServers.vue'
import WebServerSetupChecks from '../components/AdminSettings/WebServerSetupChecks.vue'

export default {
	name: 'AdminSettings',

	components: {
		AllowedGroups,
		Commands,
		GeneralSettings,
		HostedSignalingServer,
		MatterbridgeIntegration,
		SignalingServers,
		SIPBridge,
		StunServers,
		TurnServers,
		WebServerSetupChecks,
	},
}
</script>

<style lang="scss" scoped>
::v-deep {
	input {
		width: 300px;
		vertical-align: middle;
	}

	select {
		vertical-align: middle;
	}

	.icon-delete,
	.icon-checkmark-color,
	.icon-category-monitoring,
	.icon-checkmark,
	.icon-error {
		display: inline-block;
		width: 44px;
		height: 44px;
		vertical-align: middle;
	}

	.icon-checkmark-color.hidden {
		display: none;
	}

	.error {
		border-color: var(--color-error);
	}
}
</style>
