Skip to content

Commit

Permalink
Migrate locator-tool to Vue
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 committed Feb 4, 2024
1 parent 3e4e872 commit abcf236
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 5 additions & 7 deletions app/components/ltFileMetadata.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
<svg class="octicon">
<use xlink:href="#calendar"></use>
</svg>

<time v-html="file.timestamp"></time>
<time class="ps-1" v-html="file.timestamp"></time>
</div>
<div v-if="file.author" class="small">
<svg class="octicon">
<use xlink:href="#person"></use>
</svg>

<span v-html="file.author"></span>
<span class="ps-1" v-html="file.author"></span>
</div>
<a
v-for="category in file.categories"
Expand All @@ -22,9 +20,9 @@
:href="`https://commons.wikimedia.org/wiki/Category:${category}`"
target="_blank"
>
<span class="badge bg-secondary me-1 text-truncate" style="max-width: 100%">{{
category
}}</span>
<span class="badge bg-secondary me-1 text-truncate" style="max-width: 100%">
{{ category }}
</span>
</a>
</template>

Expand Down
8 changes: 6 additions & 2 deletions app/components/ltGeolocate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,16 @@
:class="{'list-group-item-info': $title === title}"
@click="$title = title"
>
<abbr v-if="title.coordinates.isDefinedAndSaved" title="Location ✔">
<abbr v-if="title.coordinates.isDefinedAndSaved" class="pe-1" title="Location ✔">
<svg class="octicon">
<use xlink:href="#device-camera"></use>
</svg>
</abbr>
<abbr v-if="title.objectLocation.isDefinedAndSaved" title="Object location ✔">
<abbr
v-if="title.objectLocation.isDefinedAndSaved"
class="pe-1"
title="Object location ✔"
>
<svg class="octicon">
<use xlink:href="#squirrel"></use>
</svg>
Expand Down

0 comments on commit abcf236

Please sign in to comment.