@nyuccl/smile 0.2.0-beta.2 → 0.2.0-beta.21
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.
- package/dist/module.json +1 -1
- package/dist/module.mjs +23 -9
- package/dist/runtime/components/builtins/AdvertisementView.vue +2 -1
- package/dist/runtime/components/builtins/DebriefView.vue +2 -1
- package/dist/runtime/components/builtins/DemographicSurveyView.vue +8 -6
- package/dist/runtime/components/builtins/DeviceSurveyView.vue +5 -3
- package/dist/runtime/components/builtins/ExpView.vue +3 -1
- package/dist/runtime/components/builtins/ExperimentStatusBar.vue +3 -0
- package/dist/runtime/components/builtins/FavoriteColor.vue +3 -1
- package/dist/runtime/components/builtins/FavoriteNumber.vue +3 -1
- package/dist/runtime/components/builtins/InformedConsentModal.vue +3 -1
- package/dist/runtime/components/builtins/InformedConsentView.vue +1 -0
- package/dist/runtime/components/builtins/InstructionsQuiz.vue +7 -5
- package/dist/runtime/components/builtins/InstructionsView.vue +4 -2
- package/dist/runtime/components/builtins/MTurkRecruitView.vue +1 -0
- package/dist/runtime/components/builtins/PresentationModeView.vue +1 -0
- package/dist/runtime/components/builtins/StatusBar.vue +6 -3
- package/dist/runtime/components/builtins/StudyPreviewText.vue +4 -2
- package/dist/runtime/components/builtins/TaskFeedbackSurveyView.vue +3 -1
- package/dist/runtime/components/builtins/ThanksView.vue +18 -16
- package/dist/runtime/components/builtins/WindowSizerView.vue +5 -3
- package/dist/runtime/components/builtins/WithdrawModal.vue +4 -2
- package/dist/runtime/components/builtins/WithdrawView.vue +4 -2
- package/dist/runtime/components/dev/RecruitmentChooserView.vue +21 -19
- package/dist/runtime/components/dev/ResponsiveDeviceContainer.vue +7 -5
- package/dist/runtime/components/dev/console/ConfigList.vue +4 -2
- package/dist/runtime/components/dev/console/ConsoleConfigPanel.vue +3 -1
- package/dist/runtime/components/dev/console/ConsoleDatabaseBrowsePanel.vue +3 -1
- package/dist/runtime/components/dev/console/ConsoleLogPanel.vue +17 -14
- package/dist/runtime/components/dev/console/DatabaseList.vue +4 -2
- package/dist/runtime/components/dev/console/SmileDevConsole.vue +6 -4
- package/dist/runtime/components/dev/menu/DevConfigPanel.vue +3 -1
- package/dist/runtime/components/dev/menu/ResponsiveDeviceSelect.vue +1 -0
- package/dist/runtime/components/dev/menu/SmileDevAppMenu.vue +9 -7
- package/dist/runtime/components/dev/navbar/ColorModeButton.vue +4 -3
- package/dist/runtime/components/dev/navbar/DatabaseButtonGroup.vue +6 -4
- package/dist/runtime/components/dev/navbar/FullScreenButton.vue +4 -2
- package/dist/runtime/components/dev/navbar/ReloadButton.vue +3 -1
- package/dist/runtime/components/dev/navbar/ResetButton.vue +3 -1
- package/dist/runtime/components/dev/navbar/RouteJumper.vue +7 -4
- package/dist/runtime/components/dev/navbar/SmileDevNavBar.vue +4 -2
- package/dist/runtime/components/dev/navbar/StepInfoButtonGroup.vue +5 -3
- package/dist/runtime/components/dev/navbar/ViewButton.vue +1 -0
- package/dist/runtime/components/dev/navbar/ViewInfoButtonGroup.vue +12 -10
- package/dist/runtime/components/dev/presentation/DarkModeButton.vue +4 -3
- package/dist/runtime/components/dev/presentation/LogoutButton.vue +2 -1
- package/dist/runtime/components/dev/presentation/PresentationModeResetButton.vue +2 -1
- package/dist/runtime/components/dev/presentation/PresentationNavBar.vue +3 -2
- package/dist/runtime/components/dev/presentation/QRCodeButton.vue +4 -2
- package/dist/runtime/components/dev/sidebar/AppProgressPanel.vue +4 -3
- package/dist/runtime/components/dev/sidebar/DatabaseStatusInfoPanel.vue +1 -0
- package/dist/runtime/components/dev/sidebar/RandomizationSidebarPanel.vue +1 -0
- package/dist/runtime/components/dev/sidebar/SmileDevSideBar.vue +1 -0
- package/dist/runtime/components/dev/sidebar/StepDataViewer.d.vue.ts +2 -2
- package/dist/runtime/components/dev/sidebar/StepDataViewer.vue.d.ts +2 -2
- package/dist/runtime/components/dev/sidebar/StepExplorerPanel.vue +8 -6
- package/dist/runtime/components/dev/sidebar/StepNode.vue +3 -2
- package/dist/runtime/components/forms/MonthYearDayPicker.vue +1 -0
- package/dist/runtime/components/layouts/ConstrainedPage.d.vue.ts +1 -1
- package/dist/runtime/components/layouts/ConstrainedPage.vue.d.ts +1 -1
- package/dist/runtime/components/layouts/ConstrainedTaskWindow.d.vue.ts +2 -2
- package/dist/runtime/components/layouts/ConstrainedTaskWindow.vue.d.ts +2 -2
- package/dist/runtime/components/layouts/TitleTwoCol.d.vue.ts +1 -1
- package/dist/runtime/components/layouts/TitleTwoCol.vue.d.ts +1 -1
- package/dist/runtime/components/layouts/TwoCol.d.vue.ts +1 -1
- package/dist/runtime/components/layouts/TwoCol.vue.d.ts +1 -1
- package/dist/runtime/components/ui/avatar/Avatar.vue +1 -0
- package/dist/runtime/components/ui/avatar/AvatarFallback.vue +1 -0
- package/dist/runtime/components/ui/badge/Badge.vue +1 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.vue +1 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbItem.vue +1 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.vue +1 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbList.vue +1 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbPage.vue +1 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.vue +1 -0
- package/dist/runtime/components/ui/button/Button.vue +1 -0
- package/dist/runtime/components/ui/button/index.d.ts +1 -1
- package/dist/runtime/components/ui/button-group/ButtonGroup.d.vue.ts +1 -1
- package/dist/runtime/components/ui/button-group/ButtonGroup.vue +1 -0
- package/dist/runtime/components/ui/button-group/ButtonGroup.vue.d.ts +1 -1
- package/dist/runtime/components/ui/button-group/ButtonGroupItem.vue +1 -0
- package/dist/runtime/components/ui/calendar/Calendar.vue +1 -0
- package/dist/runtime/components/ui/calendar/CalendarCell.vue +1 -0
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.vue +1 -0
- package/dist/runtime/components/ui/calendar/CalendarGrid.vue +1 -0
- package/dist/runtime/components/ui/calendar/CalendarGridRow.vue +1 -0
- package/dist/runtime/components/ui/calendar/CalendarHeadCell.vue +1 -0
- package/dist/runtime/components/ui/calendar/CalendarHeader.vue +1 -0
- package/dist/runtime/components/ui/calendar/CalendarHeading.vue +1 -0
- package/dist/runtime/components/ui/calendar/CalendarNextButton.vue +1 -0
- package/dist/runtime/components/ui/calendar/CalendarPrevButton.vue +1 -0
- package/dist/runtime/components/ui/card/Card.vue +1 -0
- package/dist/runtime/components/ui/card/CardAction.vue +1 -0
- package/dist/runtime/components/ui/card/CardContent.vue +1 -0
- package/dist/runtime/components/ui/card/CardDescription.vue +1 -0
- package/dist/runtime/components/ui/card/CardFooter.vue +1 -0
- package/dist/runtime/components/ui/card/CardHeader.vue +1 -0
- package/dist/runtime/components/ui/card/CardTitle.vue +1 -0
- package/dist/runtime/components/ui/checkbox/Checkbox.d.vue.ts +5 -5
- package/dist/runtime/components/ui/checkbox/Checkbox.vue +1 -0
- package/dist/runtime/components/ui/checkbox/Checkbox.vue.d.ts +5 -5
- package/dist/runtime/components/ui/checkbox/index.d.ts +1 -1
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.d.vue.ts +4 -4
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +1 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +4 -4
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.d.vue.ts +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue +1 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.d.vue.ts +1 -1
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue +1 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +1 -1
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.d.vue.ts +1 -1
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.vue +1 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +1 -1
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +1 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSeparator.vue +1 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuShortcut.vue +1 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.d.vue.ts +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue +1 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.d.vue.ts +1 -1
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +1 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +1 -1
- package/dist/runtime/components/ui/input/Input.d.vue.ts +4 -4
- package/dist/runtime/components/ui/input/Input.vue +1 -0
- package/dist/runtime/components/ui/input/Input.vue.d.ts +4 -4
- package/dist/runtime/components/ui/label/Label.vue +1 -0
- package/dist/runtime/components/ui/multiselect/MultiSelect.d.vue.ts +1 -1
- package/dist/runtime/components/ui/multiselect/MultiSelect.vue +1 -0
- package/dist/runtime/components/ui/multiselect/MultiSelect.vue.d.ts +1 -1
- package/dist/runtime/components/ui/pagination/Pagination.vue +1 -0
- package/dist/runtime/components/ui/pagination/PaginationContent.vue +1 -0
- package/dist/runtime/components/ui/pagination/PaginationEllipsis.vue +1 -0
- package/dist/runtime/components/ui/pagination/PaginationFirst.vue +1 -0
- package/dist/runtime/components/ui/pagination/PaginationItem.vue +1 -0
- package/dist/runtime/components/ui/pagination/PaginationLast.vue +1 -0
- package/dist/runtime/components/ui/pagination/PaginationNext.vue +1 -0
- package/dist/runtime/components/ui/pagination/PaginationPrevious.vue +1 -0
- package/dist/runtime/components/ui/popover/PopoverContent.d.vue.ts +2 -2
- package/dist/runtime/components/ui/popover/PopoverContent.vue +1 -0
- package/dist/runtime/components/ui/popover/PopoverContent.vue.d.ts +2 -2
- package/dist/runtime/components/ui/progress/Progress.vue +1 -0
- package/dist/runtime/components/ui/resizable/ResizableHandle.vue +1 -0
- package/dist/runtime/components/ui/resizable/ResizablePanelGroup.vue +1 -0
- package/dist/runtime/components/ui/select/SelectContent.d.vue.ts +2 -2
- package/dist/runtime/components/ui/select/SelectContent.vue +1 -0
- package/dist/runtime/components/ui/select/SelectContent.vue.d.ts +2 -2
- package/dist/runtime/components/ui/select/SelectItem.vue +1 -0
- package/dist/runtime/components/ui/select/SelectLabel.vue +1 -0
- package/dist/runtime/components/ui/select/SelectScrollDownButton.vue +1 -0
- package/dist/runtime/components/ui/select/SelectScrollUpButton.vue +1 -0
- package/dist/runtime/components/ui/select/SelectSeparator.vue +1 -0
- package/dist/runtime/components/ui/select/SelectTrigger.vue +1 -0
- package/dist/runtime/components/ui/separator/Separator.d.vue.ts +1 -1
- package/dist/runtime/components/ui/separator/Separator.vue +1 -0
- package/dist/runtime/components/ui/separator/Separator.vue.d.ts +1 -1
- package/dist/runtime/components/ui/sheet/SheetContent.vue +1 -0
- package/dist/runtime/components/ui/sheet/SheetDescription.vue +1 -0
- package/dist/runtime/components/ui/sheet/SheetFooter.vue +1 -0
- package/dist/runtime/components/ui/sheet/SheetHeader.vue +1 -0
- package/dist/runtime/components/ui/sheet/SheetOverlay.vue +1 -0
- package/dist/runtime/components/ui/sheet/SheetTitle.vue +1 -0
- package/dist/runtime/components/ui/sidebar/Sidebar.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarContent.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarFooter.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroup.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupAction.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupContent.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupLabel.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarHeader.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarInput.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarInset.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenu.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuBadge.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.d.vue.ts +1 -1
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.vue.d.ts +1 -1
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.d.vue.ts +1 -1
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +1 -1
- package/dist/runtime/components/ui/sidebar/SidebarMenuItem.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSkeleton.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSub.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubItem.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarProvider.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarRail.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarSeparator.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.vue +1 -0
- package/dist/runtime/components/ui/skeleton/Skeleton.vue +1 -0
- package/dist/runtime/components/ui/sonner/Sonner.d.vue.ts +4 -4
- package/dist/runtime/components/ui/sonner/Sonner.vue.d.ts +4 -4
- package/dist/runtime/components/ui/stepper/Stepper.vue +1 -0
- package/dist/runtime/components/ui/stepper/StepperDescription.vue +1 -0
- package/dist/runtime/components/ui/stepper/StepperIndicator.vue +1 -0
- package/dist/runtime/components/ui/stepper/StepperItem.d.vue.ts +1 -1
- package/dist/runtime/components/ui/stepper/StepperItem.vue +1 -0
- package/dist/runtime/components/ui/stepper/StepperItem.vue.d.ts +1 -1
- package/dist/runtime/components/ui/stepper/StepperSeparator.vue +1 -0
- package/dist/runtime/components/ui/stepper/StepperTitle.vue +1 -0
- package/dist/runtime/components/ui/stepper/StepperTrigger.vue +1 -0
- package/dist/runtime/components/ui/switch/Switch.d.vue.ts +1 -1
- package/dist/runtime/components/ui/switch/Switch.vue +1 -0
- package/dist/runtime/components/ui/switch/Switch.vue.d.ts +1 -1
- package/dist/runtime/components/ui/switch/index.d.ts +1 -1
- package/dist/runtime/components/ui/table/Table.vue +1 -0
- package/dist/runtime/components/ui/table/TableBody.vue +1 -0
- package/dist/runtime/components/ui/table/TableCaption.vue +1 -0
- package/dist/runtime/components/ui/table/TableCell.vue +1 -0
- package/dist/runtime/components/ui/table/TableEmpty.vue +1 -0
- package/dist/runtime/components/ui/table/TableFooter.vue +1 -0
- package/dist/runtime/components/ui/table/TableHead.vue +1 -0
- package/dist/runtime/components/ui/table/TableHeader.vue +1 -0
- package/dist/runtime/components/ui/table/TableRow.vue +1 -0
- package/dist/runtime/components/ui/tabs/Tabs.vue +1 -0
- package/dist/runtime/components/ui/tabs/TabsContent.d.vue.ts +2 -2
- package/dist/runtime/components/ui/tabs/TabsContent.vue +1 -0
- package/dist/runtime/components/ui/tabs/TabsContent.vue.d.ts +2 -2
- package/dist/runtime/components/ui/tabs/TabsList.vue +1 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.d.vue.ts +2 -2
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue +1 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue.d.ts +2 -2
- package/dist/runtime/components/ui/tags-input/TagsInput.d.vue.ts +2 -2
- package/dist/runtime/components/ui/tags-input/TagsInput.vue +1 -0
- package/dist/runtime/components/ui/tags-input/TagsInput.vue.d.ts +2 -2
- package/dist/runtime/components/ui/tags-input/TagsInputInput.vue +1 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItem.d.vue.ts +2 -2
- package/dist/runtime/components/ui/tags-input/TagsInputItem.vue +1 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItem.vue.d.ts +2 -2
- package/dist/runtime/components/ui/tags-input/TagsInputItemDelete.vue +1 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItemText.vue +1 -0
- package/dist/runtime/components/ui/textarea/Textarea.d.vue.ts +4 -4
- package/dist/runtime/components/ui/textarea/Textarea.vue +1 -0
- package/dist/runtime/components/ui/textarea/Textarea.vue.d.ts +4 -4
- package/dist/runtime/components/ui/toggle/Toggle.d.vue.ts +1 -1
- package/dist/runtime/components/ui/toggle/Toggle.vue +1 -0
- package/dist/runtime/components/ui/toggle/Toggle.vue.d.ts +1 -1
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.d.vue.ts +1 -1
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.vue +1 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.vue.d.ts +1 -1
- package/dist/runtime/components/ui/toggle-group/ToggleGroupItem.vue +1 -0
- package/dist/runtime/components/ui/tooltip/TooltipContent.d.vue.ts +2 -2
- package/dist/runtime/components/ui/tooltip/TooltipContent.vue +1 -0
- package/dist/runtime/components/ui/tooltip/TooltipContent.vue.d.ts +2 -2
- package/dist/runtime/composables/useAPI.js +0 -1
- package/dist/runtime/core/timeline/Timeline.js +1 -0
- package/dist/runtime/layouts/development.vue +1 -0
- package/dist/runtime/layouts/presentation.vue +1 -0
- package/dist/runtime/pages/[...slug].vue +2 -0
- package/dist/runtime/pages/dev/[...slug].vue +2 -0
- package/dist/runtime/pages/info.vue +1 -0
- package/dist/runtime/pages/presentation/[...slug].vue +2 -0
- package/package.json +4 -4
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { defineNuxtModule, createResolver, addServerScanDir, addServerImportsDir, addPlugin, addRouteMiddleware, addLayout, extendPages, addComponentsDir, addImports } from '@nuxt/kit';
|
|
2
2
|
import { fileURLToPath } from 'node:url';
|
|
3
3
|
import tailwindcss from '@tailwindcss/vite';
|
|
4
|
-
import Icons from 'unplugin-icons/vite';
|
|
5
|
-
import Components from 'unplugin-vue-components/vite';
|
|
6
|
-
import IconsResolver from 'unplugin-icons/resolver';
|
|
7
4
|
|
|
8
5
|
const module$1 = defineNuxtModule({
|
|
9
6
|
meta: {
|
|
@@ -31,14 +28,31 @@ const module$1 = defineNuxtModule({
|
|
|
31
28
|
projectRef: process.env.VITE_PROJECT_REF || ""
|
|
32
29
|
};
|
|
33
30
|
_nuxt.options.alias["#smile-dev"] = resolver.resolve("./runtime/components/dev");
|
|
31
|
+
_nuxt.options.alias["#smile-composables"] = resolver.resolve("./runtime/composables");
|
|
34
32
|
_nuxt.options.vite.plugins = _nuxt.options.vite.plugins || [];
|
|
35
33
|
_nuxt.options.vite.plugins.push(tailwindcss());
|
|
36
|
-
_nuxt.options.vite.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
_nuxt.options.vite.optimizeDeps = _nuxt.options.vite.optimizeDeps || {};
|
|
35
|
+
_nuxt.options.vite.optimizeDeps.include = _nuxt.options.vite.optimizeDeps.include || [];
|
|
36
|
+
_nuxt.options.vite.optimizeDeps.include.push(
|
|
37
|
+
"@nyuccl/smile > seedrandom",
|
|
38
|
+
"@nyuccl/smile > lodash",
|
|
39
|
+
"@nyuccl/smile > clipboard",
|
|
40
|
+
"@nyuccl/smile > crypto-js/sha256",
|
|
41
|
+
"@nyuccl/smile > crypto-js/enc-base64",
|
|
42
|
+
"@nyuccl/smile > json-stable-stringify",
|
|
43
|
+
"@nyuccl/smile > qrcode-svg",
|
|
44
|
+
"@nyuccl/smile > lucide-vue-next",
|
|
45
|
+
"@nyuccl/smile > reka-ui",
|
|
46
|
+
"@nyuccl/smile > reka-ui/date",
|
|
47
|
+
"@nyuccl/smile > @internationalized/date",
|
|
48
|
+
"@nyuccl/smile > vue-sonner",
|
|
49
|
+
"@nyuccl/smile > class-variance-authority",
|
|
50
|
+
"@nyuccl/smile > clsx",
|
|
51
|
+
"@nyuccl/smile > tailwind-merge",
|
|
52
|
+
"@nyuccl/smile > @vueuse/core",
|
|
53
|
+
"@nyuccl/smile > uuid",
|
|
54
|
+
"@nyuccl/smile > axios"
|
|
55
|
+
);
|
|
42
56
|
_nuxt.options.css.push(resolver.resolve("./runtime/css/main.css"));
|
|
43
57
|
addPlugin(resolver.resolve("./runtime/plugins/store-sync.client"));
|
|
44
58
|
addPlugin(resolver.resolve("./runtime/plugins/seed.client"));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { onMounted, ref, onBeforeUnmount } from "vue";
|
|
3
3
|
import { animate } from "motion";
|
|
4
|
+
import useViewAPI from "../../composables/useViewAPI";
|
|
4
5
|
const api = useViewAPI();
|
|
5
6
|
let timer;
|
|
6
7
|
let clicked = false;
|
|
@@ -35,7 +36,7 @@ onBeforeUnmount(() => {
|
|
|
35
36
|
>
|
|
36
37
|
<img
|
|
37
38
|
ref="logo"
|
|
38
|
-
src="/brain.svg"
|
|
39
|
+
:src="'/brain.svg'"
|
|
39
40
|
width="220"
|
|
40
41
|
class="dark-aware-img"
|
|
41
42
|
>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { ArrowRight } from "lucide-vue-next";
|
|
2
3
|
const api = useViewAPI();
|
|
3
4
|
const _props = defineProps({
|
|
4
5
|
debriefText: {
|
|
@@ -35,7 +36,7 @@ function finish() {
|
|
|
35
36
|
@click="finish()"
|
|
36
37
|
>
|
|
37
38
|
next
|
|
38
|
-
<
|
|
39
|
+
<ArrowRight />
|
|
39
40
|
</Button>
|
|
40
41
|
</div>
|
|
41
42
|
</div>
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { ArrowLeft, ArrowRight, CalendarIcon, User } from "lucide-vue-next";
|
|
2
3
|
import { reactive, computed, ref } from "vue";
|
|
3
|
-
import {
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
|
+
import useViewAPI from "../../composables/useViewAPI";
|
|
4
6
|
const api = useViewAPI();
|
|
5
7
|
api.steps.append([{ id: "survey_page1" }, { id: "survey_page2" }, { id: "survey_page3" }]);
|
|
6
8
|
const isPopoverOpen = ref(false);
|
|
@@ -75,7 +77,7 @@ function finish() {
|
|
|
75
77
|
<!-- Page title and description section -->
|
|
76
78
|
<template #title>
|
|
77
79
|
<h3 class="text-3xl font-bold mb-4">
|
|
78
|
-
<
|
|
80
|
+
<User class="inline mr-2" />Demographic Information
|
|
79
81
|
</h3>
|
|
80
82
|
<p class="text-lg mb-8">
|
|
81
83
|
We request some information about you which we can use to understand aggregate differences between
|
|
@@ -290,7 +292,7 @@ function finish() {
|
|
|
290
292
|
@click="api.goNextStep()"
|
|
291
293
|
>
|
|
292
294
|
Continue
|
|
293
|
-
<
|
|
295
|
+
<ArrowRight />
|
|
294
296
|
</Button>
|
|
295
297
|
</div>
|
|
296
298
|
</div>
|
|
@@ -450,7 +452,7 @@ function finish() {
|
|
|
450
452
|
variant="outline"
|
|
451
453
|
@click="api.goPrevStep()"
|
|
452
454
|
>
|
|
453
|
-
<
|
|
455
|
+
<ArrowLeft />
|
|
454
456
|
Previous
|
|
455
457
|
</Button>
|
|
456
458
|
<Button
|
|
@@ -459,7 +461,7 @@ function finish() {
|
|
|
459
461
|
@click="api.goNextStep()"
|
|
460
462
|
>
|
|
461
463
|
Continue
|
|
462
|
-
<
|
|
464
|
+
<ArrowRight />
|
|
463
465
|
</Button>
|
|
464
466
|
</div>
|
|
465
467
|
</div>
|
|
@@ -1188,7 +1190,7 @@ function finish() {
|
|
|
1188
1190
|
variant="outline"
|
|
1189
1191
|
@click="api.goPrevStep()"
|
|
1190
1192
|
>
|
|
1191
|
-
<
|
|
1193
|
+
<ArrowLeft />
|
|
1192
1194
|
Previous
|
|
1193
1195
|
</Button>
|
|
1194
1196
|
<Button
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { ArrowLeft, ArrowRight, Monitor } from "lucide-vue-next";
|
|
2
3
|
import { reactive, computed } from "vue";
|
|
4
|
+
import useViewAPI from "../../composables/useViewAPI";
|
|
3
5
|
const api = useViewAPI();
|
|
4
6
|
api.steps.append([{ id: "device_page1" }, { id: "device_page2" }]);
|
|
5
7
|
if (!api.persist.isDefined("forminfo")) {
|
|
@@ -61,7 +63,7 @@ function finish() {
|
|
|
61
63
|
<!-- Title and description section -->
|
|
62
64
|
<template #title>
|
|
63
65
|
<h3 class="text-3xl font-bold mb-4">
|
|
64
|
-
<
|
|
66
|
+
<Monitor class="inline mr-2" /> Computer/Device Information
|
|
65
67
|
</h3>
|
|
66
68
|
<p class="text-lg mb-8">
|
|
67
69
|
We request some basic information about the computer you are using right now. We also can use this information
|
|
@@ -277,7 +279,7 @@ function finish() {
|
|
|
277
279
|
@click="api.goNextStep()"
|
|
278
280
|
>
|
|
279
281
|
Continue
|
|
280
|
-
<
|
|
282
|
+
<ArrowRight />
|
|
281
283
|
</Button>
|
|
282
284
|
</div>
|
|
283
285
|
</div>
|
|
@@ -434,7 +436,7 @@ function finish() {
|
|
|
434
436
|
variant="outline"
|
|
435
437
|
@click="api.goPrevStep()"
|
|
436
438
|
>
|
|
437
|
-
<
|
|
439
|
+
<ArrowLeft />
|
|
438
440
|
Previous
|
|
439
441
|
</Button>
|
|
440
442
|
<Button
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { ArrowRight } from "lucide-vue-next";
|
|
3
|
+
import useViewAPI from "../../composables/useViewAPI";
|
|
2
4
|
const api = useViewAPI();
|
|
3
5
|
function finish() {
|
|
4
6
|
api.goNextView();
|
|
@@ -31,7 +33,7 @@ function finish() {
|
|
|
31
33
|
@click="finish()"
|
|
32
34
|
>
|
|
33
35
|
next
|
|
34
|
-
<
|
|
36
|
+
<ArrowRight />
|
|
35
37
|
</Button>
|
|
36
38
|
</div>
|
|
37
39
|
</div>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { ArrowRight } from "lucide-vue-next";
|
|
2
3
|
import { ref } from "vue";
|
|
4
|
+
import useViewAPI from "../../composables/useViewAPI";
|
|
3
5
|
const api = useViewAPI();
|
|
4
6
|
const faveColor = ref("");
|
|
5
7
|
function finish() {
|
|
@@ -48,7 +50,7 @@ function finish() {
|
|
|
48
50
|
@click="finish()"
|
|
49
51
|
>
|
|
50
52
|
next
|
|
51
|
-
<
|
|
53
|
+
<ArrowRight />
|
|
52
54
|
</Button>
|
|
53
55
|
</div>
|
|
54
56
|
</div>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { ArrowRight } from "lucide-vue-next";
|
|
2
3
|
import { ref } from "vue";
|
|
4
|
+
import useViewAPI from "../../composables/useViewAPI";
|
|
3
5
|
const api = useViewAPI();
|
|
4
6
|
const faveNumber = ref("1");
|
|
5
7
|
function finish() {
|
|
@@ -48,7 +50,7 @@ function finish() {
|
|
|
48
50
|
@click="finish()"
|
|
49
51
|
>
|
|
50
52
|
next
|
|
51
|
-
<
|
|
53
|
+
<ArrowRight />
|
|
52
54
|
</Button>
|
|
53
55
|
</div>
|
|
54
56
|
</div>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { X } from "lucide-vue-next";
|
|
2
3
|
import { watch, onUnmounted } from "vue";
|
|
4
|
+
import useAPI from "../../composables/useAPI";
|
|
3
5
|
const props = defineProps({
|
|
4
6
|
show: {
|
|
5
7
|
type: Boolean,
|
|
@@ -48,7 +50,7 @@ onUnmounted(() => {
|
|
|
48
50
|
aria-label="close"
|
|
49
51
|
@click="$emit('toggleConsent')"
|
|
50
52
|
>
|
|
51
|
-
<
|
|
53
|
+
<X class="text-xl" />
|
|
52
54
|
</Button>
|
|
53
55
|
|
|
54
56
|
<!-- Modal content container -->
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { ArrowLeft, ArrowRight, CircleAlert, SquareCheckBig } from "lucide-vue-next";
|
|
2
3
|
import { computed } from "vue";
|
|
4
|
+
import useViewAPI from "../../composables/useViewAPI";
|
|
3
5
|
const api = useViewAPI();
|
|
4
6
|
const props = defineProps({
|
|
5
7
|
questions: {
|
|
@@ -127,7 +129,7 @@ init();
|
|
|
127
129
|
>
|
|
128
130
|
<template #title>
|
|
129
131
|
<h3 class="text-3xl font-bold mb-4">
|
|
130
|
-
<
|
|
132
|
+
<SquareCheckBig class="inline mr-2" /> Did we explain things clearly?
|
|
131
133
|
</h3>
|
|
132
134
|
<p class="text-lg mb-8">
|
|
133
135
|
Using the information provided in the previous pages, please select the correct answer for each question. Do
|
|
@@ -200,7 +202,7 @@ init();
|
|
|
200
202
|
variant="outline"
|
|
201
203
|
@click="api.goPrevStep()"
|
|
202
204
|
>
|
|
203
|
-
<
|
|
205
|
+
<ArrowLeft />
|
|
204
206
|
Previous page
|
|
205
207
|
</Button>
|
|
206
208
|
<div v-else />
|
|
@@ -210,7 +212,7 @@ init();
|
|
|
210
212
|
@click="api.isLastBlockStep() ? submitQuiz() : api.goNextStep()"
|
|
211
213
|
>
|
|
212
214
|
{{ api.isLastBlockStep() ? 'Submit' : 'Next page' }}
|
|
213
|
-
<
|
|
215
|
+
<ArrowRight v-if="!api.isLastBlockStep()" />
|
|
214
216
|
</Button>
|
|
215
217
|
</div>
|
|
216
218
|
</div>
|
|
@@ -229,7 +231,7 @@ init();
|
|
|
229
231
|
<div class="text-center items-center justify-center">
|
|
230
232
|
<h3 class="text-3xl font-bold mb-4">
|
|
231
233
|
<div class="flex justify-center mb-2">
|
|
232
|
-
<
|
|
234
|
+
<SquareCheckBig class="text-[4rem]" />
|
|
233
235
|
</div>
|
|
234
236
|
Congrats! You passed.
|
|
235
237
|
</h3>
|
|
@@ -256,7 +258,7 @@ init();
|
|
|
256
258
|
<div class="text-center items-center justify-center">
|
|
257
259
|
<h3 class="text-3xl font-bold mb-4">
|
|
258
260
|
<div class="flex justify-center mb-2">
|
|
259
|
-
<
|
|
261
|
+
<CircleAlert class="text-[4rem]" />
|
|
260
262
|
</div>
|
|
261
263
|
Sorry! You did not get all the answers correct.
|
|
262
264
|
</h3>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { ArrowRight, BookOpen } from "lucide-vue-next";
|
|
2
3
|
import { computed } from "vue";
|
|
4
|
+
import useViewAPI from "../../composables/useViewAPI";
|
|
3
5
|
const api = useViewAPI();
|
|
4
6
|
const cond = api.getConditionByName("instructionsVersion");
|
|
5
7
|
const instText = computed(() => {
|
|
@@ -32,7 +34,7 @@ function finish(_goto) {
|
|
|
32
34
|
<div class="w-[80%] h-[80%]">
|
|
33
35
|
<!-- Instruction header with icon -->
|
|
34
36
|
<h1 class="text-2xl font-bold mb-4">
|
|
35
|
-
<
|
|
37
|
+
<BookOpen class="inline-block mr-2 text-3xl" /> Instructions
|
|
36
38
|
</h1>
|
|
37
39
|
|
|
38
40
|
<!-- Dynamic instruction text based on condition -->
|
|
@@ -50,7 +52,7 @@ function finish(_goto) {
|
|
|
50
52
|
@click="finish()"
|
|
51
53
|
>
|
|
52
54
|
next
|
|
53
|
-
<
|
|
55
|
+
<ArrowRight />
|
|
54
56
|
</Button>
|
|
55
57
|
</div>
|
|
56
58
|
</div>
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { CircleX, Hand, Search } from "lucide-vue-next";
|
|
2
3
|
import { ref } from "vue";
|
|
4
|
+
import useSmileStore from "../../stores/smilestore";
|
|
5
|
+
import useAPI from "../../composables/useAPI";
|
|
3
6
|
const smilestore = useSmileStore();
|
|
4
7
|
const api = useAPI();
|
|
5
8
|
const email = ref("");
|
|
@@ -80,7 +83,7 @@ function submitWithdraw() {
|
|
|
80
83
|
size="xs"
|
|
81
84
|
@click="toggleConsent()"
|
|
82
85
|
>
|
|
83
|
-
<
|
|
86
|
+
<Search />
|
|
84
87
|
<span class="@[400px]:inline hidden">View consent</span>
|
|
85
88
|
</Button>
|
|
86
89
|
<Button
|
|
@@ -93,7 +96,7 @@ function submitWithdraw() {
|
|
|
93
96
|
size="xs"
|
|
94
97
|
@click="toggleWithdraw()"
|
|
95
98
|
>
|
|
96
|
-
<
|
|
99
|
+
<CircleX />
|
|
97
100
|
<span class="@[400px]:inline hidden">Withdraw</span>
|
|
98
101
|
</Button>
|
|
99
102
|
<Button
|
|
@@ -102,7 +105,7 @@ function submitWithdraw() {
|
|
|
102
105
|
size="xs"
|
|
103
106
|
@click="toggleReport()"
|
|
104
107
|
>
|
|
105
|
-
<
|
|
108
|
+
<Hand />
|
|
106
109
|
Report issue
|
|
107
110
|
</Button>
|
|
108
111
|
</div>
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { Sparkles } from "lucide-vue-next";
|
|
3
|
+
import useAPI from "../../composables/useAPI";
|
|
2
4
|
const api = useAPI();
|
|
3
5
|
const _props = defineProps({
|
|
4
6
|
estimated_time: {
|
|
@@ -50,7 +52,7 @@ const _props = defineProps({
|
|
|
50
52
|
<template #right>
|
|
51
53
|
<!-- Lab logo (hidden on smaller screens) -->
|
|
52
54
|
<img
|
|
53
|
-
src="
|
|
55
|
+
:src="'/brain.svg'"
|
|
54
56
|
width="220"
|
|
55
57
|
class="mb-4 hidden @xl:block"
|
|
56
58
|
>
|
|
@@ -59,7 +61,7 @@ const _props = defineProps({
|
|
|
59
61
|
<article class="border border-gray-300 rounded-lg shadow-lg">
|
|
60
62
|
<!-- Card header -->
|
|
61
63
|
<div class="bg-gray-100 px-3 py-2 text-xs font-medium border-b border-gray-300 rounded-t-lg">
|
|
62
|
-
<p><
|
|
64
|
+
<p><Sparkles class="inline" /> Who are we?</p>
|
|
63
65
|
</div>
|
|
64
66
|
|
|
65
67
|
<!-- Card content with lab details -->
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { Pencil } from "lucide-vue-next";
|
|
2
3
|
import { reactive, computed } from "vue";
|
|
4
|
+
import useViewAPI from "../../composables/useViewAPI";
|
|
3
5
|
const api = useViewAPI();
|
|
4
6
|
if (!api.persist.isDefined("forminfo")) {
|
|
5
7
|
api.persist.forminfo = reactive({
|
|
@@ -46,7 +48,7 @@ function finish() {
|
|
|
46
48
|
<!-- Page title and description section -->
|
|
47
49
|
<template #title>
|
|
48
50
|
<h3 class="text-3xl font-bold mb-4">
|
|
49
|
-
<
|
|
51
|
+
<Pencil class="inline mr-2" /> Give us feedback
|
|
50
52
|
</h3>
|
|
51
53
|
<p class="text-lg mb-8">
|
|
52
54
|
Please give us feedback about your experience with the study. Your feedback will help us improve our study and
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { ArrowRight, ClipboardCopy, SquareCheckBig } from "lucide-vue-next";
|
|
2
3
|
import Clipboard from "clipboard";
|
|
3
4
|
import { onMounted, ref } from "vue";
|
|
5
|
+
import useAPI from "../../composables/useAPI";
|
|
4
6
|
const api = useAPI();
|
|
5
7
|
const alreadyCompleted = !!api.store.cookieState.completionCode;
|
|
6
8
|
const isUploading = ref(!alreadyCompleted);
|
|
@@ -77,7 +79,7 @@ onMounted(() => {
|
|
|
77
79
|
>
|
|
78
80
|
<template #title>
|
|
79
81
|
<h1 class="text-3xl font-bold mb-4">
|
|
80
|
-
<
|
|
82
|
+
<SquareCheckBig class="inline mr-2" /> Thanks, let's begin the payment process!
|
|
81
83
|
</h1>
|
|
82
84
|
<p class="text-lg mb-8">
|
|
83
85
|
Please click the button below to begin the process of payment. This will notify Prolific you successfully
|
|
@@ -103,7 +105,7 @@ onMounted(() => {
|
|
|
103
105
|
:href="`https://app.prolific.co/submissions/complete?cc=${completionCode}`"
|
|
104
106
|
>
|
|
105
107
|
Submit my work to Prolific
|
|
106
|
-
<
|
|
108
|
+
<ArrowRight />
|
|
107
109
|
</Button>
|
|
108
110
|
</div>
|
|
109
111
|
</template>
|
|
@@ -119,7 +121,7 @@ onMounted(() => {
|
|
|
119
121
|
>
|
|
120
122
|
<template #title>
|
|
121
123
|
<h1 class="text-3xl font-bold mb-4">
|
|
122
|
-
<
|
|
124
|
+
<SquareCheckBig class="inline mr-2" /> Thanks, let's begin the payment process!
|
|
123
125
|
</h1>
|
|
124
126
|
<p class="text-lg mb-8">
|
|
125
127
|
Please copy the code displayed below (or click the button) and paste it into the Mechanical Turk window to
|
|
@@ -153,7 +155,7 @@ onMounted(() => {
|
|
|
153
155
|
data-clipboard-target=".completioncode-cloudresearch"
|
|
154
156
|
>
|
|
155
157
|
Copy Code
|
|
156
|
-
<
|
|
158
|
+
<ClipboardCopy />
|
|
157
159
|
</Button>
|
|
158
160
|
</div>
|
|
159
161
|
</div>
|
|
@@ -170,7 +172,7 @@ onMounted(() => {
|
|
|
170
172
|
>
|
|
171
173
|
<template #title>
|
|
172
174
|
<h1 class="text-3xl font-bold mb-4">
|
|
173
|
-
<
|
|
175
|
+
<SquareCheckBig class="inline mr-2" /> Thanks, let's begin the payment process!
|
|
174
176
|
</h1>
|
|
175
177
|
<p class="text-lg mb-8">
|
|
176
178
|
Please verify the code displayed below is visible in the form on the Mechanical Turk website. If it is not
|
|
@@ -205,7 +207,7 @@ onMounted(() => {
|
|
|
205
207
|
data-clipboard-target=".completioncode-mturk"
|
|
206
208
|
>
|
|
207
209
|
Copy Code
|
|
208
|
-
<
|
|
210
|
+
<ClipboardCopy />
|
|
209
211
|
</Button>
|
|
210
212
|
</div>
|
|
211
213
|
</div>
|
|
@@ -222,7 +224,7 @@ onMounted(() => {
|
|
|
222
224
|
>
|
|
223
225
|
<template #title>
|
|
224
226
|
<h1 class="text-3xl font-bold mb-4">
|
|
225
|
-
<
|
|
227
|
+
<SquareCheckBig class="inline mr-2" /> Thanks, let's begin the payment process!
|
|
226
228
|
</h1>
|
|
227
229
|
<p class="text-lg mb-8">
|
|
228
230
|
This still needs to be implemented
|
|
@@ -246,7 +248,7 @@ onMounted(() => {
|
|
|
246
248
|
:href="!api.config.anonymousMode ? 'http://gureckislab.org' : 'http://google.com'"
|
|
247
249
|
>
|
|
248
250
|
Submit my work
|
|
249
|
-
<
|
|
251
|
+
<ArrowRight />
|
|
250
252
|
</Button>
|
|
251
253
|
</div>
|
|
252
254
|
</template>
|
|
@@ -262,7 +264,7 @@ onMounted(() => {
|
|
|
262
264
|
>
|
|
263
265
|
<template #title>
|
|
264
266
|
<h1 class="text-3xl font-bold mb-4">
|
|
265
|
-
<
|
|
267
|
+
<SquareCheckBig class="inline mr-2" /> Thanks, let's record your credit!
|
|
266
268
|
</h1>
|
|
267
269
|
<p class="text-lg mb-8">
|
|
268
270
|
Please click the button below to return to SONA and receive credit for completing this study.
|
|
@@ -287,7 +289,7 @@ onMounted(() => {
|
|
|
287
289
|
:href="`${api.config.sona.url}/webstudy_credit.aspx?experiment_id=${api.config.sona.experimentId}&credit_token=${api.config.sona.creditToken}&survey_code=${api.store.private.recruitmentInfo.survey_code}`"
|
|
288
290
|
>
|
|
289
291
|
Return to SONA for credit
|
|
290
|
-
<
|
|
292
|
+
<ArrowRight />
|
|
291
293
|
</Button>
|
|
292
294
|
</div>
|
|
293
295
|
</template>
|
|
@@ -303,7 +305,7 @@ onMounted(() => {
|
|
|
303
305
|
>
|
|
304
306
|
<template #title>
|
|
305
307
|
<h1 class="text-3xl font-bold mb-4">
|
|
306
|
-
<
|
|
308
|
+
<SquareCheckBig class="inline mr-2" /> Thanks, let's begin the payment process!
|
|
307
309
|
</h1>
|
|
308
310
|
<p class="text-lg mb-8">
|
|
309
311
|
Please click the button below to return to SONA and begin the payment process.
|
|
@@ -328,7 +330,7 @@ onMounted(() => {
|
|
|
328
330
|
:href="`${api.config.sonaPaid.url}/webstudy_credit.aspx?experiment_id=${api.config.sonaPaid.experimentId}&credit_token=${api.config.sonaPaid.creditToken}&survey_code=${api.store.private.recruitmentInfo.survey_code}`"
|
|
329
331
|
>
|
|
330
332
|
Return to SONA for payment
|
|
331
|
-
<
|
|
333
|
+
<ArrowRight />
|
|
332
334
|
</Button>
|
|
333
335
|
</div>
|
|
334
336
|
</template>
|
|
@@ -344,7 +346,7 @@ onMounted(() => {
|
|
|
344
346
|
>
|
|
345
347
|
<template #title>
|
|
346
348
|
<h1 class="text-3xl font-bold mb-4">
|
|
347
|
-
<
|
|
349
|
+
<SquareCheckBig class="inline mr-2" /> Thanks for your contribution to science!
|
|
348
350
|
</h1>
|
|
349
351
|
<p class="text-lg mb-8">
|
|
350
352
|
Please click the button below to return to SPARK and complete your session.
|
|
@@ -369,7 +371,7 @@ onMounted(() => {
|
|
|
369
371
|
:href="`${api.config.spark.completionUrl}/${api.store.private.recruitmentInfo.subject_ID}`"
|
|
370
372
|
>
|
|
371
373
|
Return to SPARK
|
|
372
|
-
<
|
|
374
|
+
<ArrowRight />
|
|
373
375
|
</Button>
|
|
374
376
|
</div>
|
|
375
377
|
</template>
|
|
@@ -385,7 +387,7 @@ onMounted(() => {
|
|
|
385
387
|
>
|
|
386
388
|
<template #title>
|
|
387
389
|
<h1 class="text-3xl font-bold mb-4">
|
|
388
|
-
<
|
|
390
|
+
<SquareCheckBig class="inline mr-2" /> Thanks for your contribution to science!
|
|
389
391
|
</h1>
|
|
390
392
|
<p class="text-lg mb-8">
|
|
391
393
|
Your data have been successfully recorded. You may now close this window or follow any
|
|
@@ -421,7 +423,7 @@ onMounted(() => {
|
|
|
421
423
|
>
|
|
422
424
|
<template #title>
|
|
423
425
|
<h1 class="text-3xl font-bold mb-4">
|
|
424
|
-
<
|
|
426
|
+
<SquareCheckBig class="inline mr-2" /> Thanks for your contribution to science!
|
|
425
427
|
</h1>
|
|
426
428
|
<p class="text-lg mb-8">
|
|
427
429
|
Your data have been successfully recorded and you can close this window or navigate to another page.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { ArrowRight, Move } from "lucide-vue-next";
|
|
3
|
+
import useViewAPI from "../../composables/useViewAPI";
|
|
2
4
|
const api = useViewAPI();
|
|
3
5
|
const props = defineProps(["triggered"]);
|
|
4
6
|
function finish() {
|
|
@@ -27,7 +29,7 @@ function finish() {
|
|
|
27
29
|
>
|
|
28
30
|
<!-- Resize icon -->
|
|
29
31
|
<div class="text-4xl text-window-sizer-text mb-4 flex justify-center">
|
|
30
|
-
<
|
|
32
|
+
<Move />
|
|
31
33
|
</div>
|
|
32
34
|
|
|
33
35
|
<!-- Main instruction text -->
|
|
@@ -55,7 +57,7 @@ function finish() {
|
|
|
55
57
|
@click="finish()"
|
|
56
58
|
>
|
|
57
59
|
It is visible now, I'm ready
|
|
58
|
-
<
|
|
60
|
+
<ArrowRight />
|
|
59
61
|
</Button>
|
|
60
62
|
</div>
|
|
61
63
|
</div>
|
|
@@ -67,7 +69,7 @@ function finish() {
|
|
|
67
69
|
>
|
|
68
70
|
<!-- Resize icon -->
|
|
69
71
|
<span class="text-4xl text-window-sizer-text mb-4 flex justify-center">
|
|
70
|
-
<
|
|
72
|
+
<Move />
|
|
71
73
|
</span>
|
|
72
74
|
|
|
73
75
|
<!-- Re-adjustment instruction text -->
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { LogOut, X } from "lucide-vue-next";
|
|
2
3
|
import { reactive, watch, onUnmounted } from "vue";
|
|
4
|
+
import useAPI from "../../composables/useAPI";
|
|
3
5
|
const props = defineProps({
|
|
4
6
|
show: {
|
|
5
7
|
type: Boolean,
|
|
@@ -72,7 +74,7 @@ onUnmounted(() => {
|
|
|
72
74
|
aria-label="close"
|
|
73
75
|
@click="$emit('toggleWithdraw')"
|
|
74
76
|
>
|
|
75
|
-
<
|
|
77
|
+
<X class="text-xl" />
|
|
76
78
|
</Button>
|
|
77
79
|
|
|
78
80
|
<!-- Modal content container -->
|
|
@@ -83,7 +85,7 @@ onUnmounted(() => {
|
|
|
83
85
|
<!-- Modal header with title -->
|
|
84
86
|
<template #title>
|
|
85
87
|
<h3 class="text-3xl font-semibold">
|
|
86
|
-
<
|
|
88
|
+
<LogOut class="text-red-500 inline-block mr-2" />Withdraw from study?
|
|
87
89
|
</h3>
|
|
88
90
|
</template>
|
|
89
91
|
|