docker improvements + delete unused package
This commit is contained in:
@@ -7,13 +7,22 @@
|
||||
export let isPageNavHidden = false;
|
||||
|
||||
$: padding = isPageNavHidden ? `pb-20 px-4` : padding;
|
||||
|
||||
function handleKeydown(event) {
|
||||
if (event.key === 'Enter' || event.key === ' ') {
|
||||
onClick();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<div
|
||||
role="button"
|
||||
tabindex="0"
|
||||
class="overflow-y-auto {isPageNavHidden
|
||||
? 'h-[calc(100vh-65px)] lg:h-[calc(100vh-127px)]'
|
||||
: 'h-[calc(100vh-127px)]'} mx-auto mt-4 {width} {className} relative {padding}"
|
||||
on:click={onClick}
|
||||
on:keydown={handleKeydown}
|
||||
>
|
||||
{#if $$slots.header}
|
||||
<div
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { env } from '$env/dynamic/private';
|
||||
import { createClient, SupabaseClient } from '@supabase/supabase-js';
|
||||
import { config } from '$lib/config';
|
||||
import { createClient, type SupabaseClient } from '@supabase/supabase-js';
|
||||
|
||||
export let supabase: SupabaseClient;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { config } from '$lib/config';
|
||||
import { createClient, SupabaseClient } from '@supabase/supabase-js';
|
||||
import { createClient, type SupabaseClient } from '@supabase/supabase-js';
|
||||
|
||||
export let supabase: SupabaseClient;
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// Code from https://github.com/vercel/platforms/blob/1ed55b13bcae97b037c69ec40b4c32df21c2412c/lib/domains.ts
|
||||
|
||||
import {
|
||||
DomainResponse,
|
||||
import { env } from '$env/dynamic/private';
|
||||
import type {
|
||||
DomainConfigResponse,
|
||||
DomainResponse,
|
||||
DomainVerificationResponse
|
||||
} from '$lib/utils/types/org';
|
||||
import { env } from '$env/dynamic/private';
|
||||
|
||||
export const addDomainToVercel = async (domain: string) => {
|
||||
return await fetch(
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { writable, derived } from 'svelte/store';
|
||||
import { dev, browser } from '$app/environment';
|
||||
import { browser, dev } from '$app/environment';
|
||||
import { env } from '$env/dynamic/public';
|
||||
import { STEPS } from '../constants/quiz';
|
||||
import type { Writable } from 'svelte/store';
|
||||
import type { CurrentOrg, OrgTeamMember, OrgAudience } from '../types/org';
|
||||
import { ROLE } from '$lib/utils/constants/roles';
|
||||
import type { UserLessonDataType } from '$lib/utils/types';
|
||||
import { PLAN } from 'shared/src/plans/constants';
|
||||
import type { Writable } from 'svelte/store';
|
||||
import { derived, writable } from 'svelte/store';
|
||||
import { STEPS } from '../constants/quiz';
|
||||
import type { CurrentOrg, OrgAudience, OrgTeamMember } from '../types/org';
|
||||
|
||||
export const defaultCurrentOrgState: CurrentOrg = {
|
||||
id: '',
|
||||
@@ -86,9 +86,31 @@ export const deleteModal = writable({
|
||||
isQuestion: false
|
||||
});
|
||||
|
||||
export const quizesStore = writable([]);
|
||||
interface QuizOption {
|
||||
id: number;
|
||||
label: string;
|
||||
isCorrect: boolean;
|
||||
}
|
||||
|
||||
export const quizStore = writable({
|
||||
interface QuizQuestion {
|
||||
id: number;
|
||||
label: string;
|
||||
type: string;
|
||||
options: QuizOption[];
|
||||
}
|
||||
|
||||
interface QuizStore {
|
||||
uuid: string;
|
||||
title: string;
|
||||
questions: QuizQuestion[];
|
||||
timelimit: string;
|
||||
theme: string;
|
||||
pin: string;
|
||||
}
|
||||
|
||||
export const quizesStore = writable<QuizStore[]>([]);
|
||||
|
||||
export const quizStore = writable<QuizStore>({
|
||||
uuid: '',
|
||||
title: '',
|
||||
questions: [],
|
||||
|
||||
Reference in New Issue
Block a user