Skip to content

Commit a9dcecb

Browse files
authored
Merge pull request #78 from mapswipe/feature/validate-image-tutorial
2 parents 2cab128 + 9a6add4 commit a9dcecb

File tree

7 files changed

+709
-29
lines changed

7 files changed

+709
-29
lines changed

src/components/CompletenessProject.vue

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ import ProjectHeader from '@/components/ProjectHeader.vue'
1010
import TileMap from '@/components/TileMap.vue'
1111
import createInformationPages from '@/utils/createInformationPages';
1212
import { createFallbackInformationPages } from '@/utils/domain';
13-
import FindProjectTutorial from './FindProjectTutorial.vue';
1413
import ProjectInfo from './ProjectInfo.vue';
1514
import FindProjectInstructions from './FindProjectInstructions.vue';
15+
import { useI18n } from 'vue-i18n';
16+
import CompletenessProjectTutorial from './CompletenessProjectTutorial.vue';
1617
1718
interface Props {
1819
group: TaskGroup;
@@ -31,6 +32,7 @@ const saveResults = inject<(results: Record<string, number>, startTime: string)
3132
// const showSnackbar = inject<() => void>('showSnackbar');
3233
3334
const emit = defineEmits<{ created: []}>();
35+
const { t } = useI18n();
3436
3537
const ROWS_PER_PAGE = 3;
3638
@@ -55,6 +57,10 @@ const selectedTasks = ref<Record<string, boolean>>({});
5557
const debounceTimeoutRef = shallowRef();
5658
const startTime = shallowRef<string>();
5759
60+
const instruction = computed(
61+
() => t('projectView.youAreLookingFor', { lookFor: props.project.lookFor })
62+
);
63+
5864
const numSelectedTasks = computed(() => Object.values(selectedTasks.value).filter(Boolean).length);
5965
6066
const processedTasks = computed(() => {
@@ -273,7 +279,7 @@ const attribution = computed(() => ([
273279

274280
<template>
275281
<project-header
276-
:mission="$t('projectView.youAreLookingFor', { lookFor: props.project.lookFor })"
282+
:mission="instruction"
277283
:title="props.project.projectTopic"
278284
>
279285
<v-chip v-if="numSelectedTasks > 0" color="primary" :ripple="false">
@@ -299,12 +305,12 @@ const attribution = computed(() => ([
299305
<FindProjectInstructions
300306
:attribution="attribution"
301307
:exampleTileUrls="[currentTasks[0]?.url, currentTasks[0]?.urlB]"
302-
:mission="$t('projectView.youAreLookingFor', { lookFor: props.project.lookFor })"
308+
:mission="instruction"
303309
:options="options"
304310
/>
305311
</template>
306312
<template #tutorial>
307-
<FindProjectTutorial
313+
<CompletenessProjectTutorial
308314
:tutorial="props.tutorial"
309315
:tasks="props.tutorialTasks"
310316
:options="options"
@@ -318,7 +324,7 @@ const attribution = computed(() => ([
318324
class="container"
319325
v-touch="{ left: () => handleFastForward(), right: () => handleFastBack() }"
320326
>
321-
<base-map
327+
<BaseMap
322328
v-if="isDefined(geoJson) && isDefined(overlayTileServer)"
323329
:geo-json="geoJson"
324330
:tile-size="tileSize"

0 commit comments

Comments
 (0)