Skip to content

Commit e5b6a18

Browse files
authored
add component MerginMapsProjectShort (#141)
1 parent 10e8d3c commit e5b6a18

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<template>
2+
<span>
3+
<a :href="`https://public.cloudmergin.com/projects/${id}/tree`" target="_blank" rel="noopener noreferrer">
4+
<img :alt="`Mergin Maps Project ${id}`" :src="$withBase('/Mergin.svg')" />
5+
<span>
6+
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound">
7+
<path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path>
8+
<polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon>
9+
</svg>
10+
<span class="sr-only">(opens new window)</span>
11+
</span>
12+
</a>
13+
</span>
14+
</template>
15+
16+
<script>
17+
export default {
18+
name: "merginmapsproject",
19+
props: {
20+
id: String
21+
}
22+
}
23+
</script>
24+
25+
<style scoped>
26+
img {
27+
border: none;
28+
height: 15px;
29+
}
30+
31+
</style>

src/misc/write-docs/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,10 @@ Use `<MerginMapsProject />` component, e.g. `<MerginMapsProject id="lutraconsult
347347

348348
<MerginMapsProject id="lutraconsulting/test_forms" />
349349

350+
For a short reference (e.g. in tables), use `<MerginMapsProjectShort />` component, e.g. `<MerginMapsProject id="lutraconsulting/test_forms" />` transforms to
351+
352+
<MerginMapsProjectShort id="lutraconsulting/test_forms" />
353+
350354
### Show Input App Google/Apple badges for download
351355

352356
Use `<AppDownload />` component

0 commit comments

Comments
 (0)