Skip to content

Commit e800fee

Browse files
committed
Small tweaks and cleanup related to the UI revamp
1 parent 36bf3de commit e800fee

12 files changed

Lines changed: 40 additions & 123 deletions

src/components/DownloadButton.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<q-btn
33
aria-label="Download CITATION.cff"
4+
class="rounded-borders"
45
color="primary"
56
data-cy="btn-download"
67
download="CITATION.cff"
@@ -10,14 +11,12 @@
1011
no-caps
1112
type="a"
1213
v-bind:href="downloadUrl"
13-
v-bind:class="q.platform.is.mobile ? 'full-width' : ''"
1414
/>
1515
</template>
1616

1717
<script lang="ts">
1818
import { computed, defineComponent } from 'vue'
1919
import { useCffstr } from 'src/store/cffstr'
20-
import { useQuasar } from 'quasar'
2120
2221
const toDownloadUrl = (body: string) => {
2322
return `data:text/vnd.yaml,${encodeURIComponent(body)}`
@@ -27,9 +26,7 @@ export default defineComponent({
2726
name: 'DownloadButton',
2827
setup () {
2928
const { cffstr } = useCffstr()
30-
const q = useQuasar()
3129
return {
32-
q,
3330
downloadUrl: computed(() => toDownloadUrl(cffstr.value))
3431
}
3532
}

src/components/Error404.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<template>
22
<div class="fullscreen bg-blue text-white text-center q-pa-md flex flex-center">
33
<div>
4-
<div style="font-size: 30vh">
4+
<h1>
55
404
6-
</div>
7-
<div
8-
class="text-h2"
6+
</h1>
7+
<h2
8+
99
style="opacity:.4"
1010
>
1111
Oops. Nothing here...
12-
</div>
12+
</h2>
1313

1414
<q-btn
1515
class="q-mt-xl"

src/components/InfoDialog.vue

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
v-model="showDialog"
1717
>
1818
<q-card
19-
class="window-width help-dialog"
19+
class="window-width"
2020
>
2121
<q-card-section class="row items-center q-pb-none">
2222
<h2>
@@ -101,22 +101,3 @@ export default defineComponent({
101101
}
102102
})
103103
</script>
104-
105-
<style scoped>
106-
.help-dialog {
107-
background-color: var(--fgcolor, lightslategray);
108-
}
109-
h2 {
110-
font-size: 2rem;
111-
line-height: normal;
112-
margin-top: 12px;
113-
margin-bottom: 7px;
114-
letter-spacing: normal;
115-
}
116-
h3 {
117-
font-size: 1.25rem;
118-
line-height: normal;
119-
margin: 0px;
120-
letter-spacing: normal;
121-
}
122-
</style>

src/components/ScreenAbstract.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<q-input
77
aria-label="Abstract/Description of the work. Press tab to reach help button."
88
autogrow
9-
bg-color="white"
109
data-cy="input-abstract"
1110
input-style="min-height: 100px; max-height: 444px"
1211
label="Abstract/Description"
@@ -41,6 +40,3 @@ export default defineComponent({
4140
}
4241
})
4342
</script>
44-
45-
<style scoped>
46-
</style>

src/components/ScreenFinish.vue

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,40 +15,34 @@
1515
<div v-if="isValidCFF">
1616
<p
1717
v-if="!showAdvanced"
18-
class="finish-paragraph"
1918
>
2019
You now have a minimal CITATION.cff file. Use the buttons below to download your CITATION.cff file, continue adding more properties, or reset the form.
2120
</p>
2221
<p
2322
v-else
24-
class="finish-paragraph"
2523
>
2624
Use the buttons below to download your CITATION.cff file, or reset the form to start over.
2725
</p>
28-
<p class="finish-paragraph">
26+
<p>
2927
Distribute the CITATION.cff with your project, for instance, by adding it to the root of your GitHub repository.
3028
</p>
31-
<div class="row">
32-
<DownloadButton class="col-4 q-ma-lg" />
29+
<div class="row q-gutter-md justify-center">
30+
<DownloadButton />
3331
<q-btn
3432
v-if="!showAdvanced"
35-
class="col-4 q-ma-lg"
36-
color="primary"
33+
class="rounded-borders bg-primary text-white"
3734
data-cy="btn-add-more"
3835
icon="workspace_premium"
39-
label="Add more"
36+
label="Add more fields"
4037
no-caps
4138
size="xl"
4239
to="/identifiers"
4340
v-on:click="setupAdvanced"
44-
v-bind:class="q.platform.is.mobile ? 'full-width' : ''"
4541
/>
4642
</div>
47-
<div class="row">
43+
<div class="row justify-center">
4844
<q-btn
49-
class="q-mt-md q-mb-md"
50-
color=""
51-
text-color="red"
45+
class="q-mt-md q-mb-md rounded-borders bg-secondary text-white"
5246
icon="refresh"
5347
label="Reset form"
5448
no-caps
@@ -57,15 +51,15 @@
5751
</div>
5852
</div>
5953
<div v-else>
60-
<p class="finish-paragraph">
54+
<p>
6155
Your CITATION.cff is not valid just yet. Go back to the form to make some changes.
6256
</p>
6357
</div>
6458
</template>
6559

6660
<script lang="ts">
6761
import { computed, defineComponent } from 'vue'
68-
import DownloadButton from 'components/DownloadButton.vue'
62+
import DownloadButton from 'src/components/DownloadButton.vue'
6963
import { useApp } from 'src/store/app'
7064
import { useCff } from 'src/store/cff'
7165
import { useQuasar } from 'quasar'
@@ -95,7 +89,6 @@ export default defineComponent({
9589
})
9690
},
9791
isValidCFF: computed(() => errors.value.length === 0),
98-
q,
9992
setupAdvanced: async () => {
10093
setShowAdvanced(true)
10194
await setStepName('identifiers')
@@ -105,11 +98,3 @@ export default defineComponent({
10598
}
10699
})
107100
</script>
108-
109-
<style scoped>
110-
.row {
111-
display: flex;
112-
flex-direction: row;
113-
justify-content: center
114-
}
115-
</style>

src/components/ScreenLicense.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
<q-select
77
aria-label="License. Press tab to reach help button."
8-
bg-color="white"
98
data-cy="select-license"
109
label="License"
1110
clearable
@@ -74,6 +73,3 @@ export default defineComponent({
7473
}
7574
})
7675
</script>
77-
78-
<style scoped>
79-
</style>

src/components/ScreenRelatedResources.vue

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
<q-input
77
aria-label="Code repository. Press tab to reach help button."
8-
bg-color="white"
98
data-cy="input-repository-code"
109
label="Code repository"
1110
outlined
@@ -22,7 +21,6 @@
2221

2322
<q-input
2423
aria-label="Webiste/Landing page. Press tab to reach help button."
25-
bg-color="white"
2624
data-cy="input-url"
2725
label="Website/Landing page"
2826
outlined
@@ -39,7 +37,6 @@
3937

4038
<q-input
4139
aria-label="Other repository. Press tab to reach help button."
42-
bg-color="white"
4340
data-cy="input-repository"
4441
label="Other repository"
4542
outlined
@@ -56,7 +53,6 @@
5653

5754
<q-input
5855
aria-label="Artifact repository. Press tab to reach help button."
59-
bg-color="white"
6056
data-cy="input-repository-artifact"
6157
label="Artifact repository"
6258
outlined
@@ -131,6 +127,3 @@ export default defineComponent({
131127
}
132128
})
133129
</script>
134-
135-
<style scoped>
136-
</style>

src/components/ScreenStart.vue

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
class="q-mb-md"
88
role="radiogroup"
99
>
10-
<legend
11-
class="question"
12-
>
10+
<legend>
1311
Type of the work
1412
<InfoDialog name="type" />
1513
</legend>
@@ -27,7 +25,6 @@
2725
</label>
2826
</fieldset>
2927
<q-input
30-
bg-color="white"
3128
data-cy="input-title"
3229
outlined
3330
standout
@@ -44,7 +41,6 @@
4441
</q-input>
4542
<q-input
4643
aria-label="`Title of the ${ type }. Press tab to reach help button.`"
47-
bg-color="white"
4844
data-cy="input-message"
4945
label="Personalized message. Leave blank to use default"
5046
outlined
@@ -120,9 +116,3 @@ export default defineComponent({
120116
}
121117
})
122118
</script>
123-
124-
<style scoped>
125-
.dropdown {
126-
height: 100%;
127-
}
128-
</style>

src/components/ScreenVersionSpecific.vue

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<div class="q-gutter-md">
77
<q-input
88
aria-label="Commit identifier. Press tab to reach help button."
9-
bg-color="white"
109
data-cy="input-commit"
1110
label="Commit identifier"
1211
outlined
@@ -21,7 +20,6 @@
2120

2221
<q-input
2322
aria-label="Version. Press tab to reach help button."
24-
bg-color="white"
2523
data-cy="input-version"
2624
label="Version"
2725
outlined
@@ -36,14 +34,12 @@
3634

3735
<q-input
3836
aria-label="Release date. Press tab to reach help button."
39-
bg-color="white"
4037
hint="Format: YYYY-MM-DD"
4138
data-cy="input-date-released"
4239
label="Release date"
4340
mask="####-##-##"
4441
outlined
4542
standout
46-
style="width: 33.33%"
4743
today-btn="true"
4844
v-bind:model-value="dateReleased"
4945
v-bind:error="dateReleasedErrors.length > 0"
@@ -123,6 +119,3 @@ export default defineComponent({
123119
}
124120
})
125121
</script>
126-
127-
<style scoped>
128-
</style>

src/components/Stepper.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
<q-stepper
44
animated
55
class="transparent"
6+
done-color="primary"
67
error-color="negative"
7-
error-icon="warning"
8+
inactive-color="grey-7"
89
flat
910
header-nav
10-
inactive-color="primary"
11-
inactive-icon=""
1211
v-bind:model-value="stepName"
1312
vertical
1413
>

0 commit comments

Comments
 (0)