SettingsModal.svelte 1.13 KB
Newer Older
Timothy J. Baek's avatar
Timothy J. Baek committed
1
<script>
2
	import { getContext } from 'svelte';
Timothy J. Baek's avatar
Timothy J. Baek committed
3
	import Modal from '../common/Modal.svelte';
4
	import Database from './Settings/Database.svelte';
Timothy J. Baek's avatar
Timothy J. Baek committed
5
6
7
8

	import General from './Settings/General.svelte';
	import Users from './Settings/Users.svelte';

Timothy J. Baek's avatar
Timothy J. Baek committed
9
10
	import Banners from '$lib/components/admin/Settings/Banners.svelte';
	import { toast } from 'svelte-sonner';
Timothy J. Baek's avatar
Timothy J. Baek committed
11
	import Pipelines from './Settings/Pipelines.svelte';
Timothy J. Baek's avatar
Timothy J. Baek committed
12

13
14
	const i18n = getContext('i18n');

Timothy J. Baek's avatar
Timothy J. Baek committed
15
16
17
18
19
20
21
	export let show = false;

	let selectedTab = 'general';
</script>

<Modal bind:show>
	<div>
Timothy J. Baek's avatar
Timothy J. Baek committed
22
		<div class=" flex justify-between dark:text-gray-300 px-5 pt-4 pb-2">
23
			<div class=" text-lg font-medium self-center">{$i18n.t('Admin Settings')}</div>
Timothy J. Baek's avatar
Timothy J. Baek committed
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
			<button
				class="self-center"
				on:click={() => {
					show = false;
				}}
			>
				<svg
					xmlns="http://www.w3.org/2000/svg"
					viewBox="0 0 20 20"
					fill="currentColor"
					class="w-5 h-5"
				>
					<path
						d="M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"
					/>
				</svg>
			</button>
		</div>
	</div>
</Modal>