Skip to content

Commit 1b7573b

Browse files
authored
feat: webinar app (#181)
* feat: webinar app * chore: deps update * fix: colors * fix: locale
1 parent 20e0b5d commit 1b7573b

36 files changed

Lines changed: 1020 additions & 361 deletions

.github/workflows/docker-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set matrix
2727
id: set-matrix
2828
run: |
29-
APPS=("web-app" "web-storefront" "web-parser" "atrium-telegram" "storefront-telegram" "core-telegram")
29+
APPS=("web-app" "web-storefront" "web-parser" "atrium-telegram" "storefront-telegram" "core-telegram" "webinar")
3030
CHANGED=()
3131
3232
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then

.github/workflows/docker-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Set package in env
3434
id: set-package
3535
run: |
36-
APPS=("web-app" "web-storefront" "web-parser" "atrium-telegram" "storefront-telegram" "core-telegram")
36+
APPS=("web-app" "web-storefront" "web-parser" "atrium-telegram" "storefront-telegram" "core-telegram" "webinar")
3737
MATCH="${{ steps.regex-match.outputs.match }}"
3838
3939
if [ -z "$MATCH" ]; then

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,6 @@
6969
"sonarlint.connectedMode.project": {
7070
"connectionId": "sushi-love",
7171
"projectKey": "sushi-love_roll-stack"
72-
}
72+
},
73+
"findUnusedExports.detectCircularImports": true
7374
}

apps/atrium-telegram/app/components/form/CreateFlowItem.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ const state = ref<Partial<CreateFlowItem>>({
5757
title: undefined,
5858
description: undefined,
5959
type: 'user_post',
60-
userId: userStore.id,
6160
})
6261
6362
async function onSubmit(event: FormSubmitEvent<CreateFlowItem>) {

apps/atrium-telegram/server/api/flow/index.post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default defineEventHandler(async (event) => {
1414
type: data.type,
1515
title: data.title,
1616
description: data.description,
17-
userId: data.userId,
17+
userId: event.context.user.id,
1818
})
1919
if (!item) {
2020
throw createError({

apps/atrium-telegram/shared/services/flow.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ export const createFlowItemSchema = type({
66
title: type('2 <= string <= 150').describe('error.length.invalid'),
77
description: type('string <= 1500 | undefined').describe('error.length.invalid').optional(),
88
type: flowTypeSchema.describe('error.length.invalid'),
9-
userId: type('string | undefined').describe('error.length.invalid').optional(),
109
})
1110
export type CreateFlowItem = typeof createFlowItemSchema.infer

apps/webinar/app/app.config.ts

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
export default defineAppConfig({
2+
ui: {
3+
button: {
4+
slots: {
5+
base: 'font-semibold',
6+
},
7+
variants: {
8+
size: {
9+
xl: {
10+
base: 'px-4 py-3 font-semibold',
11+
},
12+
},
13+
variant: {
14+
gradient: 'text-white bg-linear-to-br from-secondary-400 to-secondary-500 hover:opacity-90 disabled:from-neutral-300 disabled:to-neutral-400 aria-disabled:from-neutral-300 aria-disabled:to-neutral-400 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary',
15+
},
16+
color: {
17+
secondary: '!text-white disabled:!bg-inverted/25',
18+
},
19+
},
20+
},
21+
tabs: {
22+
variants: {
23+
variant: {
24+
pill: {
25+
trigger: 'data-[state=active]:!text-white',
26+
},
27+
gradient: {
28+
list: 'bg-elevated rounded-lg',
29+
trigger: 'data-[state=active]:bg-linear-to-br from-lime-300 to-lime-500 data-[state=active]:text-neutral-950 flex-1 w-full',
30+
indicator: 'rounded-md shadow-xs',
31+
},
32+
},
33+
},
34+
},
35+
modal: {
36+
slots: {
37+
content: 'divide-y-0',
38+
header: 'pb-0 min-h-12',
39+
title: 'text-lg/5 font-semibold',
40+
},
41+
},
42+
navigationMenu: {
43+
slots: {
44+
link: 'text-sm',
45+
},
46+
},
47+
toast: {
48+
slots: {
49+
title: 'text-lg/6',
50+
description: 'leading-4',
51+
icon: 'shrink-0 size-7',
52+
},
53+
},
54+
card: {
55+
slots: {
56+
body: 'p-4 sm:p-4',
57+
},
58+
},
59+
},
60+
})

apps/webinar/app/app.vue

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<template>
2+
<UApp
3+
:locale="locales[locale]"
4+
class="min-h-svh"
5+
>
6+
<NuxtLoadingIndicator :color="false" class="bg-primary h-[2px]" />
7+
<NuxtPage />
8+
</UApp>
9+
</template>
10+
11+
<script setup lang="ts">
12+
import * as locales from '@nuxt/ui/locale'
13+
14+
const { locale } = useI18n()
15+
16+
const lang = computed(() => locales[locale.value].code)
17+
const dir = computed(() => locales[locale.value].dir)
18+
19+
useHead({
20+
htmlAttrs: {
21+
lang,
22+
dir,
23+
},
24+
})
25+
</script>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
h1, h2, h3, h4, h5, h6 {
2+
font-family: var(--font-headers);
3+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<template>
2+
<img
3+
src="/sushi-main-logo.png"
4+
alt=""
5+
class="mx-auto h-20 w-auto motion-preset-pop"
6+
>
7+
</template>

0 commit comments

Comments
 (0)