Skip to content

Commit

Permalink
Merge pull request #1590 from dandi/fix-linting
Browse files Browse the repository at this point in the history
Fix GUI linting warnings
  • Loading branch information
jjnesbitt committed May 23, 2023
2 parents e776593 + bd8c390 commit 1ca9374
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
27 changes: 19 additions & 8 deletions web/src/views/CreateDandisetView/CreateDandisetView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
</template>
</v-switch>
</div>
<div class="text-h4">Title</div>
<div class="text-h4">
Title
</div>
<div>
Provide a title for this Dandiset. The title will appear in search
results and at the top of the home page for this Dandiset, so make it
Expand All @@ -55,7 +57,9 @@
class="my-4"
/>

<div class="text-h4">Description</div>
<div class="text-h4">
Description
</div>
<div>
Provide a description for this Dandiset. This will appear prominently
under the title in the home page for this Dandiset.
Expand All @@ -70,13 +74,18 @@
class="my-4"
/>
<div v-if="!embargoed">
<div class="text-h4">License</div>
<div class="text-h4">
License
</div>
<div>
Select a license under which to share the contents of this Dandiset.
You can learn more about <a
href="https://www.dandiarchive.org/handbook/35_data_licenses/"
target="_blank" rel="noopener">licenses
for Dandisets</a>.
target="_blank"
rel="noopener"
>
licenses for Dandisets
</a>.
</div>
<v-select
v-model="license"
Expand All @@ -88,7 +97,9 @@
/>
</div>
<div v-else>
<div class="text-h4">NIH Award Number</div>
<div class="text-h4">
NIH Award Number
</div>
<div>
Provide an NIH award number for this embargoed Dandiset. Note: this
can be changed at any time and additional award numbers can be added
Expand Down Expand Up @@ -128,11 +139,11 @@

<script setup lang="ts">
import { computed, ref } from 'vue';
import { useRouter } from 'vue-router/composables';
import type { ComputedRef } from 'vue';
import { dandiRest, loggedIn } from '@/rest';
import { useDandisetStore } from '@/stores/dandiset';
import { useRouter } from 'vue-router/composables';
import type { ComputedRef } from 'vue';
import type { IdentifierForAnAward, LicenseType, License } from '@/types';
// Regular expression to validate an NIH award number.
Expand Down
2 changes: 2 additions & 0 deletions web/src/views/DandisetLandingView/DandisetMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@
<v-divider />

<v-row class="mx-1 my-4 px-4 font-weight-light">
<!-- We use DOMPurify to sanitize against XSS -->
<!-- eslint-disable-next-line vue/no-v-html -->
<div v-html="htmlDescription" />

<!-- Truncate text if necessary -->
Expand Down

0 comments on commit 1ca9374

Please sign in to comment.