Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 13, 2024
1 parent 849da3d commit 0855eac
Show file tree
Hide file tree
Showing 11 changed files with 191 additions and 100 deletions.
1 change: 0 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ body {
margin: 0;
padding: 0;
}
</style>
2 changes: 1 addition & 1 deletion src/components/CSVReference.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ export default defineComponent({
#panels {
background-color: rgb(var(--v-theme-secondary));
}
</style>
</style>
4 changes: 1 addition & 3 deletions src/components/GeoconnexBackground.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@
</template>

<style scoped>
/* remove highlighting for visited link */
a:visited {
color: inherit;
}
</style>
</style>
115 changes: 79 additions & 36 deletions src/components/MetadataGenerator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,93 @@ import { fetchAllNamespaces } from '@/lib/helpers'
</script>

<template>

<p class="text-center mx-15 pa-4 font-italic">
A namespace is a short name or alias for your organization. It will be created upon
submission if it does not already exist. If the namespace already exists, your new
CSV file will be added to the existing namespace
A namespace is a short name or alias for your organization. It will be created upon submission
if it does not already exist. If the namespace already exists, your new CSV file will be added
to the existing namespace
</p>

<v-combobox label="Pick or create a new namespace" hint="Example: usgs" class="w-66 mx-auto"
persistent-hint required :items="existingNamespaces" v-model="namespace"></v-combobox>
<v-checkbox class="d-flex justify-center mb-4"
<v-combobox
label="Pick or create a new namespace"
hint="Example: usgs"
class="w-66 mx-auto"
persistent-hint
required
:items="existingNamespaces"
v-model="namespace"
></v-combobox>
<v-checkbox
class="d-flex justify-center mb-4"
label="I already have a readme file uploaded to my namespace and do not wish to update my contribution info"
v-model="readmeAlreadyUploaded">
v-model="readmeAlreadyUploaded"
>
</v-checkbox>

<div v-if="!readmeAlreadyUploaded">
<v-text-field v-model="homepage" label="Homepage for where redirects will point to" type="url" required
variant="outlined" hint="Example: https://waterdata.usgs.gov" persistent-hint class="pb-4"></v-text-field>

<v-textarea v-model="description" label="Description of data" required variant="outlined"
hint="Example: All monitoring locations used by the USGS Waterdata system" persistent-hint
class="pb-4"></v-textarea>

<v-text-field v-model="example_pid" label="Example PID" required variant="outlined"
hint="Example: https://geoconnex.us/usgs/monitoring-location/08383500" persistent-hint
class="pb-4"></v-text-field>

<v-text-field v-model="example_redirect_target" label="Example redirect target url" type="url" variant="outlined"
hint="Example: https://waterdata.usgs.gov/monitoring-location/08383500" persistent-hint
class="pb-4"></v-text-field>

<v-text-field v-model="contact_name" label="Contact name" hint="Example: John Smith" required variant="outlined"
class="pb-4"></v-text-field>

<v-text-field v-model="contact_email" label="Contact email" append-inner-icon="mdi-email" required
variant="outlined" type="email" hint="Example: [email protected]"></v-text-field>
<v-text-field
v-model="homepage"
label="Homepage for where redirects will point to"
type="url"
required
variant="outlined"
hint="Example: https://waterdata.usgs.gov"
persistent-hint
class="pb-4"
></v-text-field>

<v-textarea
v-model="description"
label="Description of data"
required
variant="outlined"
hint="Example: All monitoring locations used by the USGS Waterdata system"
persistent-hint
class="pb-4"
></v-textarea>

<v-text-field
v-model="example_pid"
label="Example PID"
required
variant="outlined"
hint="Example: https://geoconnex.us/usgs/monitoring-location/08383500"
persistent-hint
class="pb-4"
></v-text-field>

<v-text-field
v-model="example_redirect_target"
label="Example redirect target url"
type="url"
variant="outlined"
hint="Example: https://waterdata.usgs.gov/monitoring-location/08383500"
persistent-hint
class="pb-4"
></v-text-field>

<v-text-field
v-model="contact_name"
label="Contact name"
hint="Example: John Smith"
required
variant="outlined"
class="pb-4"
></v-text-field>

<v-text-field
v-model="contact_email"
label="Contact email"
append-inner-icon="mdi-email"
required
variant="outlined"
type="email"
hint="Example: [email protected]"
></v-text-field>
</div>

<v-alert type="error" class="w-50 mx-auto" v-if="!valid" icon="mdi-alert">
{{ error }}
{{ error }}
</v-alert>

</template>

<script lang="ts">
Expand All @@ -56,7 +102,7 @@ export default defineComponent({
data() {
return {
homepage: '',
namespace: "",
namespace: '',
description: '',
example_pid: '',
example_redirect_target: '',
Expand All @@ -73,7 +119,6 @@ export default defineComponent({
},
computed: {
valid() {
if (this.namespace.length == 0) {
this.error = 'Namespace is required'
Expand Down Expand Up @@ -109,8 +154,6 @@ export default defineComponent({
this.error = ''
return true
}
},
}
)
}
})
</script>
17 changes: 12 additions & 5 deletions src/components/PageFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,25 @@
<v-footer class="footer pa-8" width="auto">
<div class="logo-container">
<a href="https://internetofwater.org" class="logo-link">
<img src="@/assets/logo-iow.png" alt="Internet of Water Logo" title="internetofwater.org" class="logo-img" />
<img
src="@/assets/logo-iow.png"
alt="Internet of Water Logo"
title="internetofwater.org"
class="logo-img"
/>
</a>
<a href="https://cgsearth.org" class="logo-link">
<img src="@/assets/logo-cgs.png" alt="CGS Earth Logo" title="cgsearth.org" class="logo-img" />
<img
src="@/assets/logo-cgs.png"
alt="CGS Earth Logo"
title="cgsearth.org"
class="logo-img"
/>
</a>
</div>
</v-footer>
</template>


<style scoped>
.footer {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
Expand All @@ -33,7 +42,5 @@
.logo-img {
width: 180px;
padding: 0 16px;
}
</style>
17 changes: 10 additions & 7 deletions src/components/PageHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
<div class="header pa-6 mb-4">
<div class="logo-container">
<a href="https://geoconnex.us">
<img src="@/assets/logo-geoconnex.png" alt="Geoconnex Logo" title="geoconnex.us" class="logo-geoconnex" />
<img
src="@/assets/logo-geoconnex.png"
alt="Geoconnex Logo"
title="geoconnex.us"
class="logo-geoconnex"
/>
</a>
</div>
<v-icon @click="toggleTheme" icon="mdi-theme-light-dark" class="theme-toggle-icon"></v-icon>
</div>

</template>


<script setup lang="ts">
import { useTheme } from 'vuetify'
Expand All @@ -21,7 +24,6 @@ function toggleTheme() {
}
</script>


<style scoped>
.header {
display: flex;
Expand Down Expand Up @@ -59,9 +61,10 @@ function toggleTheme() {
}
.logo-geoconnex {
-webkit-filter: drop-shadow(1px 1px 0 rgba(255, 255, 255, 0.594)) drop-shadow(-1px 1px 0 white) drop-shadow(1px -1px 0 white) drop-shadow(-1px -1px 0 white);
filter: drop-shadow(1px 1px 0 white) drop-shadow(-1px 1px 0.29 white) drop-shadow(1px -1px 0.29 white) drop-shadow(-1px -1px 0.29 white);
-webkit-filter: drop-shadow(1px 1px 0 rgba(255, 255, 255, 0.594)) drop-shadow(-1px 1px 0 white)
drop-shadow(1px -1px 0 white) drop-shadow(-1px -1px 0 white);
filter: drop-shadow(1px 1px 0 white) drop-shadow(-1px 1px 0.29 white)
drop-shadow(1px -1px 0.29 white) drop-shadow(-1px -1px 0.29 white);
}
</style>
Loading

0 comments on commit 0855eac

Please sign in to comment.