Skip to content

Commit 7423593

Browse files
committed
reinstated eslint max-len rule refs #42; consolidated some types refs #46; harmonized the casing of the FAIR letters
1 parent 8dd95ba commit 7423593

20 files changed

+370
-294
lines changed

.eslintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"import/no-extraneous-dependencies": ["error", { "devDependencies": ["**/*.test.ts"] }],
4040
"import/no-unresolved": ["off"],
4141
"indent": ["error", 4],
42-
"max-len": ["off"],
4342
"object-curly-newline": ["error", { "multiline": true }]
4443
}
4544
}

pages/data/v0.1/BannerVersions.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<template>
22
<div class="banner" v-if="showBanner">
3-
A newer version of this checklist is available at <ChecklistLink v-bind:href="link">{{link}}</ChecklistLink>, consider upgrading.
3+
A newer version of this checklist is available at
4+
<ChecklistLink v-bind:href="link">{{link}}</ChecklistLink>
5+
, consider upgrading.
46
</div>
57
</template>
68

pages/data/v0.1/ChecklistHeader.vue

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,22 @@
1717
<g
1818
id="outline"
1919
transform="matrix(1.032058,0,0,1.032058,-2.0517123,-5.997519)">
20-
<path d="m 64,13.845703 -57.4746094,41.068359 4.6894534,6.5625 7.96289,-5.689453 V 121.80078 H 49.626953 V 91.585938 H 65.746094 V 121.80078 H 108.82227 V 55.787109 l 7.96289,5.689453 4.68945,-6.5625 C 114.12178,49.660112 106.76885,44.406295 99.416016,39.152344 V 17.582031 H 83.607422 V 27.855469 C 77.071721,23.185398 70.535701,18.515774 64,13.845703 Z m 0,15.738281 34.822266,24.882813 V 111.80078 H 75.746094 V 81.585938 H 39.626953 V 111.80078 H 29.177734 V 54.466797 Z" />
20+
<path d="m 64,13.845703 -57.4746094,41.068359 4.6894534,6.5625
21+
7.96289,-5.689453 V 121.80078 H 49.626953 V 91.585938
22+
H 65.746094 V 121.80078 H 108.82227 V 55.787109 l
23+
7.96289,5.689453 4.68945,-6.5625 C 114.12178,49.660112
24+
106.76885,44.406295 99.416016,39.152344 V 17.582031 H
25+
83.607422 V 27.855469 C 77.071721,23.185398 70.535701,18.515774
26+
64,13.845703 Z m 0,15.738281 34.822266,24.882813 V 111.80078
27+
H 75.746094 V 81.585938 H 39.626953 V 111.80078 H 29.177734
28+
V 54.466797 Z" />
2129
<g>
2230
<path d="m 89.706841,22.049501 h 5.808742 v 12.368457 h -5.808742 z" />
2331
</g>
2432
</g>
25-
<path
26-
d="M 63.999995,24.525796 99.938597,50.206302 V 109.3783 H 76.122651 V 78.194827 H 38.845604 V 109.3783 H 28.061403 V 50.206302 Z"
33+
<path d="M 63.999995,24.525796 99.938597,50.206302 V 109.3783 H
34+
76.122651 V 78.194827 H 38.845604 V 109.3783 H 28.061403 V
35+
50.206302 Z"
2736
id="inside" />
2837
</g>
2938
</svg>

pages/data/v0.1/index.page.vue

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@
66
<h1>FAIR for data self-assessment checklist</h1>
77
<BannerVersions />
88
<template v-if="nQuestions.total > 0">
9-
<p>Answer the {{ nQuestions.total }} questions below to assess your data's FAIRness, or switch to the checklist for <ChecklistLink v-bind:href="linkToSoftwareChecklist">software</ChecklistLink> instead.</p>
10-
<div v-for="aspect in ['F', 'A', 'I', 'R']" v-bind:key="aspect">
9+
<p>
10+
Answer the {{ nQuestions.total }} questions below to assess
11+
your data's FAIRness, or switch to the checklist for
12+
<ChecklistLink v-bind:href="linkToSoftwareChecklist">software</ChecklistLink>
13+
instead.
14+
</p>
15+
<div v-for="aspect in aspects" v-bind:key="aspect">
1116
<h2>{{ getAspectFullname(aspect) }}</h2>
12-
<ChecklistQuestion v-for="question in questions.filter(q => q.aspect === aspect)"
17+
<ChecklistQuestion
18+
v-for="question in questions.filter(q => q.aspect === aspect)"
1319
v-bind:key="question.id"
1420
v-bind:question="question"
1521
/>
@@ -28,12 +34,14 @@
2834

2935
<script setup lang="ts">
3036
import { latest } from '~/renderer/versions';
37+
import { aspects } from './store';
3138
import { nQuestions } from './store';
3239
import { progress } from './store';
3340
import { questions } from './store';
3441
import { questions as data } from './questions.json';
3542
import { setQuestions } from './store';
36-
import { type QuestionType } from './store';
43+
import { type Aspect } from './types';
44+
import { type QuestionType } from './types';
3745
import ChecklistAbout from './ChecklistAbout.vue';
3846
import BannerVersions from './BannerVersions.vue';
3947
import ChecklistHeader from './ChecklistHeader.vue';
@@ -45,11 +53,11 @@ import './app.css';
4553
4654
setQuestions(data as QuestionType[]);
4755
48-
const getAspectFullname = (aspect: string) => ({
49-
F: 'Findable',
50-
A: 'Accessible',
51-
I: 'Interoperable',
52-
R: 'Reusable'
56+
const getAspectFullname = (aspect: Aspect) => ({
57+
f: 'Findable',
58+
a: 'Accessible',
59+
i: 'Interoperable',
60+
r: 'Reusable'
5361
}[aspect]);
5462
const linkToSoftwareChecklist = `${import.meta.env.BASE_URL}software/${latest.value.software}`;
5563
</script>

0 commit comments

Comments
 (0)