@frigear-nu/crew 0.0.0-stage → 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/README.md +39 -2
  2. package/dist/module.d.mts +244 -0
  3. package/dist/module.json +9 -0
  4. package/dist/module.mjs +155 -0
  5. package/dist/runtime/access.d.ts +1 -0
  6. package/dist/runtime/access.js +45 -0
  7. package/dist/runtime/app/components/CrewAddMemberSlideover.d.vue.ts +18 -0
  8. package/dist/runtime/app/components/CrewAddMemberSlideover.vue +198 -0
  9. package/dist/runtime/app/components/CrewAddMemberSlideover.vue.d.ts +18 -0
  10. package/dist/runtime/app/components/CrewInviteSlideover.d.vue.ts +14 -0
  11. package/dist/runtime/app/components/CrewInviteSlideover.vue +147 -0
  12. package/dist/runtime/app/components/CrewInviteSlideover.vue.d.ts +14 -0
  13. package/dist/runtime/app/components/CrewMemberSlideover.d.vue.ts +14 -0
  14. package/dist/runtime/app/components/CrewMemberSlideover.vue +126 -0
  15. package/dist/runtime/app/components/CrewMemberSlideover.vue.d.ts +14 -0
  16. package/dist/runtime/app/composables/index.d.ts +4 -0
  17. package/dist/runtime/app/composables/index.js +3 -0
  18. package/dist/runtime/app/composables/useCrewActions.d.ts +45 -0
  19. package/dist/runtime/app/composables/useCrewActions.js +122 -0
  20. package/dist/runtime/app/composables/useCrewLinks.d.ts +9 -0
  21. package/dist/runtime/app/composables/useCrewLinks.js +6 -0
  22. package/dist/runtime/app/composables/useCrewTranslate.d.ts +7 -0
  23. package/dist/runtime/app/composables/useCrewTranslate.js +15 -0
  24. package/dist/runtime/app/dashboard/CrewStatus.d.vue.ts +3 -0
  25. package/dist/runtime/app/dashboard/CrewStatus.vue +78 -0
  26. package/dist/runtime/app/dashboard/CrewStatus.vue.d.ts +3 -0
  27. package/dist/runtime/app/pages/apply.d.vue.ts +3 -0
  28. package/dist/runtime/app/pages/apply.vue +95 -0
  29. package/dist/runtime/app/pages/apply.vue.d.ts +3 -0
  30. package/dist/runtime/app/pages/home.d.vue.ts +3 -0
  31. package/dist/runtime/app/pages/home.vue +21 -0
  32. package/dist/runtime/app/pages/home.vue.d.ts +3 -0
  33. package/dist/runtime/app/pages/invite.d.vue.ts +3 -0
  34. package/dist/runtime/app/pages/invite.vue +86 -0
  35. package/dist/runtime/app/pages/invite.vue.d.ts +3 -0
  36. package/dist/runtime/app/pages/status.d.vue.ts +3 -0
  37. package/dist/runtime/app/pages/status.vue +82 -0
  38. package/dist/runtime/app/pages/status.vue.d.ts +3 -0
  39. package/dist/runtime/app/tabs/Crew.d.vue.ts +9 -0
  40. package/dist/runtime/app/tabs/Crew.vue +590 -0
  41. package/dist/runtime/app/tabs/Crew.vue.d.ts +9 -0
  42. package/dist/runtime/app/utils/admin-crew.d.ts +48 -0
  43. package/dist/runtime/app/utils/admin-crew.js +23 -0
  44. package/dist/runtime/app/widgets/InboxAddToCrew.d.vue.ts +13 -0
  45. package/dist/runtime/app/widgets/InboxAddToCrew.vue +34 -0
  46. package/dist/runtime/app/widgets/InboxAddToCrew.vue.d.ts +13 -0
  47. package/dist/runtime/dashboard.d.ts +8 -0
  48. package/dist/runtime/dashboard.js +14 -0
  49. package/dist/runtime/emails/crew-status-applied.d.vue.ts +16 -0
  50. package/dist/runtime/emails/crew-status-applied.vue +40 -0
  51. package/dist/runtime/emails/crew-status-applied.vue.d.ts +16 -0
  52. package/dist/runtime/emails/crew-status-approved.d.vue.ts +16 -0
  53. package/dist/runtime/emails/crew-status-approved.vue +40 -0
  54. package/dist/runtime/emails/crew-status-approved.vue.d.ts +16 -0
  55. package/dist/runtime/emails/crew-status-rejected.d.vue.ts +15 -0
  56. package/dist/runtime/emails/crew-status-rejected.vue +33 -0
  57. package/dist/runtime/emails/crew-status-rejected.vue.d.ts +15 -0
  58. package/dist/runtime/emails/crew-status-waitlisted.d.vue.ts +16 -0
  59. package/dist/runtime/emails/crew-status-waitlisted.vue +40 -0
  60. package/dist/runtime/emails/crew-status-waitlisted.vue.d.ts +16 -0
  61. package/dist/runtime/emails/crew-status-withdrawn.d.vue.ts +16 -0
  62. package/dist/runtime/emails/crew-status-withdrawn.vue +40 -0
  63. package/dist/runtime/emails/crew-status-withdrawn.vue.d.ts +16 -0
  64. package/dist/runtime/i18n/lang/da.json +237 -0
  65. package/dist/runtime/i18n/lang/en.json +237 -0
  66. package/dist/runtime/menus.d.ts +2 -0
  67. package/dist/runtime/menus.js +17 -0
  68. package/dist/runtime/notifications.d.ts +5 -0
  69. package/dist/runtime/notifications.js +10 -0
  70. package/dist/runtime/server/db/schema.postgresql.d.ts +433 -0
  71. package/dist/runtime/server/db/schema.postgresql.js +43 -0
  72. package/dist/runtime/server/db/schema.sqlite.d.ts +451 -0
  73. package/dist/runtime/server/db/schema.sqlite.js +43 -0
  74. package/dist/runtime/server/db/team-members.postgresql.d.ts +143 -0
  75. package/dist/runtime/server/db/team-members.postgresql.js +20 -0
  76. package/dist/runtime/server/db/team-members.sqlite.d.ts +151 -0
  77. package/dist/runtime/server/db/team-members.sqlite.js +20 -0
  78. package/dist/runtime/server/plugins/forms.d.ts +2 -0
  79. package/dist/runtime/server/plugins/forms.js +27 -0
  80. package/dist/runtime/server/plugins/participation.d.ts +2 -0
  81. package/dist/runtime/server/plugins/participation.js +16 -0
  82. package/dist/runtime/server/policies.d.ts +2 -0
  83. package/dist/runtime/server/policies.js +10 -0
  84. package/dist/runtime/server/routes/admin/forms.get.d.ts +2 -0
  85. package/dist/runtime/server/routes/admin/forms.get.js +8 -0
  86. package/dist/runtime/server/routes/admin/invite.delete.d.ts +2 -0
  87. package/dist/runtime/server/routes/admin/invite.delete.js +13 -0
  88. package/dist/runtime/server/routes/admin/invites.get.d.ts +2 -0
  89. package/dist/runtime/server/routes/admin/invites.get.js +14 -0
  90. package/dist/runtime/server/routes/admin/invites.post.d.ts +2 -0
  91. package/dist/runtime/server/routes/admin/invites.post.js +31 -0
  92. package/dist/runtime/server/routes/admin/member-approve.post.d.ts +2 -0
  93. package/dist/runtime/server/routes/admin/member-approve.post.js +10 -0
  94. package/dist/runtime/server/routes/admin/member-reject.post.d.ts +2 -0
  95. package/dist/runtime/server/routes/admin/member-reject.post.js +9 -0
  96. package/dist/runtime/server/routes/admin/member-submission.get.d.ts +2 -0
  97. package/dist/runtime/server/routes/admin/member-submission.get.js +17 -0
  98. package/dist/runtime/server/routes/admin/member-waitlist.post.d.ts +2 -0
  99. package/dist/runtime/server/routes/admin/member-waitlist.post.js +9 -0
  100. package/dist/runtime/server/routes/admin/member-withdraw.post.d.ts +2 -0
  101. package/dist/runtime/server/routes/admin/member-withdraw.post.js +9 -0
  102. package/dist/runtime/server/routes/admin/member.patch.d.ts +2 -0
  103. package/dist/runtime/server/routes/admin/member.patch.js +10 -0
  104. package/dist/runtime/server/routes/admin/members-approve.post.d.ts +2 -0
  105. package/dist/runtime/server/routes/admin/members-approve.post.js +12 -0
  106. package/dist/runtime/server/routes/admin/members.get.d.ts +2 -0
  107. package/dist/runtime/server/routes/admin/members.get.js +10 -0
  108. package/dist/runtime/server/routes/admin/members.post.d.ts +2 -0
  109. package/dist/runtime/server/routes/admin/members.post.js +30 -0
  110. package/dist/runtime/server/routes/admin/settings.get.d.ts +2 -0
  111. package/dist/runtime/server/routes/admin/settings.get.js +9 -0
  112. package/dist/runtime/server/routes/admin/settings.put.d.ts +2 -0
  113. package/dist/runtime/server/routes/admin/settings.put.js +12 -0
  114. package/dist/runtime/server/routes/admin/users.get.d.ts +2 -0
  115. package/dist/runtime/server/routes/admin/users.get.js +8 -0
  116. package/dist/runtime/server/routes/me/crew.get.d.ts +2 -0
  117. package/dist/runtime/server/routes/me/crew.get.js +5 -0
  118. package/dist/runtime/server/routes/public/apply.get.d.ts +2 -0
  119. package/dist/runtime/server/routes/public/apply.get.js +9 -0
  120. package/dist/runtime/server/routes/public/invite-accept.post.d.ts +2 -0
  121. package/dist/runtime/server/routes/public/invite-accept.post.js +7 -0
  122. package/dist/runtime/server/routes/public/member.get.d.ts +2 -0
  123. package/dist/runtime/server/routes/public/member.get.js +9 -0
  124. package/dist/runtime/server/routes/public/members.get.d.ts +2 -0
  125. package/dist/runtime/server/routes/public/members.get.js +11 -0
  126. package/dist/runtime/server/utils/crew-dto.d.ts +46 -0
  127. package/dist/runtime/server/utils/crew-dto.js +80 -0
  128. package/dist/runtime/server/utils/crew-emails.d.ts +43 -0
  129. package/dist/runtime/server/utils/crew-emails.js +139 -0
  130. package/dist/runtime/server/utils/crew-schemas.d.ts +121 -0
  131. package/dist/runtime/server/utils/crew-schemas.js +69 -0
  132. package/dist/runtime/server/utils/crew-send.d.ts +19 -0
  133. package/dist/runtime/server/utils/crew-send.js +20 -0
  134. package/dist/runtime/server/utils/crew-settings.d.ts +52 -0
  135. package/dist/runtime/server/utils/crew-settings.js +100 -0
  136. package/dist/runtime/server/utils/crew-tokens.d.ts +8 -0
  137. package/dist/runtime/server/utils/crew-tokens.js +9 -0
  138. package/dist/runtime/server/utils/crew.d.ts +172 -0
  139. package/dist/runtime/server/utils/crew.js +502 -0
  140. package/dist/runtime/utils/api.d.ts +44 -0
  141. package/dist/runtime/utils/api.js +47 -0
  142. package/dist/runtime/utils/index.d.ts +8 -0
  143. package/dist/runtime/utils/index.js +6 -0
  144. package/dist/runtime/utils/links.d.ts +25 -0
  145. package/dist/runtime/utils/links.js +14 -0
  146. package/dist/runtime/utils/status.d.ts +36 -0
  147. package/dist/runtime/utils/status.js +39 -0
  148. package/dist/types.d.mts +5 -0
  149. package/package.json +118 -3
@@ -0,0 +1,13 @@
1
+ type __VLS_Props = {
2
+ threadId: string;
3
+ contact: {
4
+ name: string | null;
5
+ email?: string | null;
6
+ phone?: string | null;
7
+ userId?: number | null;
8
+ } | null;
9
+ onChanged?: () => unknown;
10
+ };
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,34 @@
1
+ <script setup>
2
+ import { useCrewActions, useModuleT } from "#imports";
3
+ defineOptions({ name: "CrewInboxAddToCrew" });
4
+ const props = defineProps({
5
+ threadId: { type: String, required: true },
6
+ contact: { type: [Object, null], required: true },
7
+ onChanged: { type: Function, required: false }
8
+ });
9
+ const t = useModuleT("crew");
10
+ const actions = useCrewActions();
11
+ async function addToCrew() {
12
+ const contact = props.contact;
13
+ const userId = contact?.userId ?? void 0;
14
+ const prefill = contact && !userId ? { ...contact.name ? { name: contact.name } : {}, ...contact.email ? { email: contact.email } : {}, ...contact.phone ? { phone: contact.phone } : {} } : void 0;
15
+ const added = await actions.add(void 0, {
16
+ inboxThreadId: props.threadId,
17
+ ...userId ? { userId, selected: [{ id: userId, name: contact?.name ?? null, email: contact?.email ?? null }] } : {},
18
+ ...prefill ? { prefill } : {}
19
+ });
20
+ if (added) await props.onChanged?.();
21
+ }
22
+ </script>
23
+
24
+ <template>
25
+ <UButton
26
+ color="neutral"
27
+ variant="outline"
28
+ size="sm"
29
+ icon="i-lucide-hand-heart"
30
+ :label="t('admin.addToCrew', 'Add to crew')"
31
+ data-crew-add-to-crew
32
+ @click="addToCrew"
33
+ />
34
+ </template>
@@ -0,0 +1,13 @@
1
+ type __VLS_Props = {
2
+ threadId: string;
3
+ contact: {
4
+ name: string | null;
5
+ email?: string | null;
6
+ phone?: string | null;
7
+ userId?: number | null;
8
+ } | null;
9
+ onChanged?: () => unknown;
10
+ };
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import type { DashboardItem } from '@frigear-nu/dashboard/types';
2
+ /** The dashboard crew adds its items to, and renders on its home page (`/crew`). */
3
+ export declare const CREW_DASHBOARD = "crew.home";
4
+ /**
5
+ * The items crew adds to `crew.home`. `resolve` turns a path relative to `module.ts` into an absolute one. Kept apart
6
+ * from the module so a test can register them without a Nuxt build.
7
+ */
8
+ export declare function crewDashboardItems(resolve: (path: string) => string): DashboardItem[];
@@ -0,0 +1,14 @@
1
+ import { crewAccess } from "./access.js";
2
+ export const CREW_DASHBOARD = "crew.home";
3
+ export function crewDashboardItems(resolve) {
4
+ return [
5
+ {
6
+ id: "crew.status",
7
+ component: resolve("./runtime/app/dashboard/CrewStatus.vue"),
8
+ title: "My crew status",
9
+ titleKey: "crew.dashboard.status",
10
+ order: 10,
11
+ permission: crewAccess.permissions.read
12
+ }
13
+ ];
14
+ }
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ name: string;
3
+ operationName: string;
4
+ teamName?: string;
5
+ role?: string;
6
+ subject: string;
7
+ message: string;
8
+ statusUrl?: string | null;
9
+ /** The person's language: the greeting line, the heading and the button. English by default. */
10
+ greeting?: string;
11
+ heading?: string;
12
+ button?: string;
13
+ };
14
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,40 @@
1
+ <script setup>
2
+ import { EmailButton, EmailDivider, EmailHeading, EmailLayout, EmailText } from "@frigear-nu/email-templates/components";
3
+ defineProps({
4
+ name: { type: String, required: true },
5
+ operationName: { type: String, required: true },
6
+ teamName: { type: String, required: false, default: void 0 },
7
+ role: { type: String, required: false, default: void 0 },
8
+ subject: { type: String, required: true },
9
+ message: { type: String, required: true },
10
+ statusUrl: { type: [String, null], required: false, default: null },
11
+ greeting: { type: String, required: false, default: void 0 },
12
+ heading: { type: String, required: false, default: "We received your application" },
13
+ button: { type: String, required: false, default: "See your application" }
14
+ });
15
+ </script>
16
+
17
+ <template>
18
+ <EmailLayout :preview="subject">
19
+ <ESubject>{{ subject }}</ESubject>
20
+ <EmailHeading>
21
+ {{ heading }}
22
+ </EmailHeading>
23
+ <EmailDivider />
24
+ <EmailText>
25
+ {{ greeting ?? `Hi ${name},` }}
26
+ </EmailText>
27
+ <EmailText
28
+ v-for="(part, index) in message.split(/\n{2,}/)"
29
+ :key="index"
30
+ >
31
+ {{ part }}
32
+ </EmailText>
33
+ <EmailButton
34
+ v-if="statusUrl"
35
+ :href="statusUrl"
36
+ >
37
+ {{ button }}
38
+ </EmailButton>
39
+ </EmailLayout>
40
+ </template>
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ name: string;
3
+ operationName: string;
4
+ teamName?: string;
5
+ role?: string;
6
+ subject: string;
7
+ message: string;
8
+ statusUrl?: string | null;
9
+ /** The person's language: the greeting line, the heading and the button. English by default. */
10
+ greeting?: string;
11
+ heading?: string;
12
+ button?: string;
13
+ };
14
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ name: string;
3
+ operationName: string;
4
+ teamName?: string;
5
+ role?: string;
6
+ subject: string;
7
+ message: string;
8
+ statusUrl?: string | null;
9
+ /** The person's language: the greeting line, the heading and the button. English by default. */
10
+ greeting?: string;
11
+ heading?: string;
12
+ button?: string;
13
+ };
14
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,40 @@
1
+ <script setup>
2
+ import { EmailButton, EmailDivider, EmailHeading, EmailLayout, EmailText } from "@frigear-nu/email-templates/components";
3
+ defineProps({
4
+ name: { type: String, required: true },
5
+ operationName: { type: String, required: true },
6
+ teamName: { type: String, required: false, default: void 0 },
7
+ role: { type: String, required: false, default: void 0 },
8
+ subject: { type: String, required: true },
9
+ message: { type: String, required: true },
10
+ statusUrl: { type: [String, null], required: false, default: null },
11
+ greeting: { type: String, required: false, default: void 0 },
12
+ heading: { type: String, required: false, default: "You are on the crew" },
13
+ button: { type: String, required: false, default: "See your crew status" }
14
+ });
15
+ </script>
16
+
17
+ <template>
18
+ <EmailLayout :preview="subject">
19
+ <ESubject>{{ subject }}</ESubject>
20
+ <EmailHeading>
21
+ {{ heading }}
22
+ </EmailHeading>
23
+ <EmailDivider />
24
+ <EmailText>
25
+ {{ greeting ?? `Hi ${name},` }}
26
+ </EmailText>
27
+ <EmailText
28
+ v-for="(part, index) in message.split(/\n{2,}/)"
29
+ :key="index"
30
+ >
31
+ {{ part }}
32
+ </EmailText>
33
+ <EmailButton
34
+ v-if="statusUrl"
35
+ :href="statusUrl"
36
+ >
37
+ {{ button }}
38
+ </EmailButton>
39
+ </EmailLayout>
40
+ </template>
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ name: string;
3
+ operationName: string;
4
+ teamName?: string;
5
+ role?: string;
6
+ subject: string;
7
+ message: string;
8
+ statusUrl?: string | null;
9
+ /** The person's language: the greeting line, the heading and the button. English by default. */
10
+ greeting?: string;
11
+ heading?: string;
12
+ button?: string;
13
+ };
14
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,15 @@
1
+ type __VLS_Props = {
2
+ name: string;
3
+ operationName: string;
4
+ teamName?: string;
5
+ role?: string;
6
+ subject: string;
7
+ message: string;
8
+ statusUrl?: string | null;
9
+ /** The person's language: the greeting line, the heading and the button. English by default. */
10
+ greeting?: string;
11
+ heading?: string;
12
+ };
13
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,33 @@
1
+ <script setup>
2
+ import { EmailDivider, EmailHeading, EmailLayout, EmailText } from "@frigear-nu/email-templates/components";
3
+ defineProps({
4
+ name: { type: String, required: true },
5
+ operationName: { type: String, required: true },
6
+ teamName: { type: String, required: false, default: void 0 },
7
+ role: { type: String, required: false, default: void 0 },
8
+ subject: { type: String, required: true },
9
+ message: { type: String, required: true },
10
+ statusUrl: { type: [String, null], required: false, default: null },
11
+ greeting: { type: String, required: false, default: void 0 },
12
+ heading: { type: String, required: false, default: "About your application" }
13
+ });
14
+ </script>
15
+
16
+ <template>
17
+ <EmailLayout :preview="subject">
18
+ <ESubject>{{ subject }}</ESubject>
19
+ <EmailHeading>
20
+ {{ heading }}
21
+ </EmailHeading>
22
+ <EmailDivider />
23
+ <EmailText>
24
+ {{ greeting ?? `Hi ${name},` }}
25
+ </EmailText>
26
+ <EmailText
27
+ v-for="(part, index) in message.split(/\n{2,}/)"
28
+ :key="index"
29
+ >
30
+ {{ part }}
31
+ </EmailText>
32
+ </EmailLayout>
33
+ </template>
@@ -0,0 +1,15 @@
1
+ type __VLS_Props = {
2
+ name: string;
3
+ operationName: string;
4
+ teamName?: string;
5
+ role?: string;
6
+ subject: string;
7
+ message: string;
8
+ statusUrl?: string | null;
9
+ /** The person's language: the greeting line, the heading and the button. English by default. */
10
+ greeting?: string;
11
+ heading?: string;
12
+ };
13
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ name: string;
3
+ operationName: string;
4
+ teamName?: string;
5
+ role?: string;
6
+ subject: string;
7
+ message: string;
8
+ statusUrl?: string | null;
9
+ /** The person's language: the greeting line, the heading and the button. English by default. */
10
+ greeting?: string;
11
+ heading?: string;
12
+ button?: string;
13
+ };
14
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,40 @@
1
+ <script setup>
2
+ import { EmailButton, EmailDivider, EmailHeading, EmailLayout, EmailText } from "@frigear-nu/email-templates/components";
3
+ defineProps({
4
+ name: { type: String, required: true },
5
+ operationName: { type: String, required: true },
6
+ teamName: { type: String, required: false, default: void 0 },
7
+ role: { type: String, required: false, default: void 0 },
8
+ subject: { type: String, required: true },
9
+ message: { type: String, required: true },
10
+ statusUrl: { type: [String, null], required: false, default: null },
11
+ greeting: { type: String, required: false, default: void 0 },
12
+ heading: { type: String, required: false, default: "You are on the waiting list" },
13
+ button: { type: String, required: false, default: "See your application" }
14
+ });
15
+ </script>
16
+
17
+ <template>
18
+ <EmailLayout :preview="subject">
19
+ <ESubject>{{ subject }}</ESubject>
20
+ <EmailHeading>
21
+ {{ heading }}
22
+ </EmailHeading>
23
+ <EmailDivider />
24
+ <EmailText>
25
+ {{ greeting ?? `Hi ${name},` }}
26
+ </EmailText>
27
+ <EmailText
28
+ v-for="(part, index) in message.split(/\n{2,}/)"
29
+ :key="index"
30
+ >
31
+ {{ part }}
32
+ </EmailText>
33
+ <EmailButton
34
+ v-if="statusUrl"
35
+ :href="statusUrl"
36
+ >
37
+ {{ button }}
38
+ </EmailButton>
39
+ </EmailLayout>
40
+ </template>
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ name: string;
3
+ operationName: string;
4
+ teamName?: string;
5
+ role?: string;
6
+ subject: string;
7
+ message: string;
8
+ statusUrl?: string | null;
9
+ /** The person's language: the greeting line, the heading and the button. English by default. */
10
+ greeting?: string;
11
+ heading?: string;
12
+ button?: string;
13
+ };
14
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ name: string;
3
+ operationName: string;
4
+ teamName?: string;
5
+ role?: string;
6
+ subject: string;
7
+ message: string;
8
+ statusUrl?: string | null;
9
+ /** The person's language: the greeting line, the heading and the button. English by default. */
10
+ greeting?: string;
11
+ heading?: string;
12
+ button?: string;
13
+ };
14
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,40 @@
1
+ <script setup>
2
+ import { EmailButton, EmailDivider, EmailHeading, EmailLayout, EmailText } from "@frigear-nu/email-templates/components";
3
+ defineProps({
4
+ name: { type: String, required: true },
5
+ operationName: { type: String, required: true },
6
+ teamName: { type: String, required: false, default: void 0 },
7
+ role: { type: String, required: false, default: void 0 },
8
+ subject: { type: String, required: true },
9
+ message: { type: String, required: true },
10
+ statusUrl: { type: [String, null], required: false, default: null },
11
+ greeting: { type: String, required: false, default: void 0 },
12
+ heading: { type: String, required: false, default: "You withdrew from the crew" },
13
+ button: { type: String, required: false, default: "See your crew status" }
14
+ });
15
+ </script>
16
+
17
+ <template>
18
+ <EmailLayout :preview="subject">
19
+ <ESubject>{{ subject }}</ESubject>
20
+ <EmailHeading>
21
+ {{ heading }}
22
+ </EmailHeading>
23
+ <EmailDivider />
24
+ <EmailText>
25
+ {{ greeting ?? `Hi ${name},` }}
26
+ </EmailText>
27
+ <EmailText
28
+ v-for="(part, index) in message.split(/\n{2,}/)"
29
+ :key="index"
30
+ >
31
+ {{ part }}
32
+ </EmailText>
33
+ <EmailButton
34
+ v-if="statusUrl"
35
+ :href="statusUrl"
36
+ >
37
+ {{ button }}
38
+ </EmailButton>
39
+ </EmailLayout>
40
+ </template>
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ name: string;
3
+ operationName: string;
4
+ teamName?: string;
5
+ role?: string;
6
+ subject: string;
7
+ message: string;
8
+ statusUrl?: string | null;
9
+ /** The person's language: the greeting line, the heading and the button. English by default. */
10
+ greeting?: string;
11
+ heading?: string;
12
+ button?: string;
13
+ };
14
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;