generated from cgs-earth/template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
849da3d
commit 0855eac
Showing
11 changed files
with
191 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,5 +20,4 @@ body { | |
margin: 0; | ||
padding: 0; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,4 +83,4 @@ export default defineComponent({ | |
#panels { | ||
background-color: rgb(var(--v-theme-secondary)); | ||
} | ||
</style> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"> | ||
|
@@ -56,7 +102,7 @@ export default defineComponent({ | |
data() { | ||
return { | ||
homepage: '', | ||
namespace: "", | ||
namespace: '', | ||
description: '', | ||
example_pid: '', | ||
example_redirect_target: '', | ||
|
@@ -73,7 +119,6 @@ export default defineComponent({ | |
}, | ||
computed: { | ||
valid() { | ||
if (this.namespace.length == 0) { | ||
this.error = 'Namespace is required' | ||
|
@@ -109,8 +154,6 @@ export default defineComponent({ | |
this.error = '' | ||
return true | ||
} | ||
}, | ||
} | ||
) | ||
} | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.