|
1 | 1 | <template> |
2 | 2 | <v-form ref="form" @submit="doSubmit"> |
| 3 | + <v-overlay |
| 4 | + :value="showOverlay" |
| 5 | + > |
| 6 | + <v-dialog width="500" v-model="showOverlay"> |
| 7 | + <v-card> |
| 8 | + <v-card-title> |
| 9 | + Entities for import |
| 10 | + </v-card-title> |
| 11 | + <v-card-text> |
| 12 | + <h4 class="mb-0 mt-4">Properties</h4> |
| 13 | + <ul> |
| 14 | + <li><a target="_blank" rel="noopener nofollow" href="https://www.wikidata.org/wiki/Property:P25">Mother</a></li> |
| 15 | + <li><a target="_blank" rel="noopener nofollow" href="https://www.wikidata.org/wiki/Property:P22">Father</a></li> |
| 16 | + <li><a target="_blank" rel="noopener nofollow" href="https://www.wikidata.org/wiki/Property:P40">Child</a></li> |
| 17 | + <li><a target="_blank" rel="noopener nofollow" href="https://www.wikidata.org/wiki/Property:P18">Image</a></li> |
| 18 | + <li><a target="_blank" rel="noopener nofollow" href="https://www.wikidata.org/wiki/Property:P31">Instance of</a></li> |
| 19 | + <li><a target="_blank" rel="noopener nofollow" href="https://www.wikidata.org/wiki/Property:P279">Subclass of</a></li> |
| 20 | + </ul> |
| 21 | + <h4 class="mb-0 mt-4">Items</h4> |
| 22 | + <ul> |
| 23 | + <li><a href="https://www.wikidata.org/wiki/Q1" target="_blank" rel="noopener nofollow">Universe</a></li> |
| 24 | + <li><a href="https://www.wikidata.org/wiki/Q2" target="_blank" rel="noopener nofollow">World</a></li> |
| 25 | + <li><a href="https://www.wikidata.org/wiki/Q5" target="_blank" rel="noopener nofollow">Human</a></li> |
| 26 | + <li><a href="https://www.wikidata.org/wiki/Q64" target="_blank" rel="noopener nofollow">Berlin</a></li> |
| 27 | + <li><a href="https://www.wikidata.org/wiki/Q42" target="_blank" rel="noopener nofollow">Douglas Adams</a></li> |
| 28 | + <li><a href="https://www.wikidata.org/wiki/Q3107329" target="_blank" rel="noopener nofollow">The Hitchhiker's Guide to the Galaxy</a></li> |
| 29 | + </ul> |
| 30 | + </v-card-text> |
| 31 | + <v-card-actions> |
| 32 | + <v-spacer /> |
| 33 | + <v-btn |
| 34 | + color="primary" |
| 35 | + text |
| 36 | + @click="showOverlay = false" |
| 37 | + > |
| 38 | + Close |
| 39 | + </v-btn> |
| 40 | + </v-card-actions> |
| 41 | + </v-card> |
| 42 | + </v-dialog> |
| 43 | + </v-overlay> |
3 | 44 | <v-card> |
4 | | - <v-card-title>Import base set of entities to your Wikibase instance</v-card-title> |
| 45 | + <v-card-title> |
| 46 | + Import base entities |
| 47 | + <v-spacer /> |
| 48 | + <v-btn plain right @click="showOverlay = true"> |
| 49 | + <v-icon> |
| 50 | + mdi-information-outline |
| 51 | + </v-icon> |
| 52 | + More info |
| 53 | + </v-btn> |
| 54 | + </v-card-title> |
5 | 55 | <v-card-text> |
6 | | - You can import a preselected subset of items and properties to help you get started with your Wikibase instance. |
| 56 | + You can import a curated subset of items and properties to help you get started with your Wikibase instance. |
7 | 57 | </v-card-text> |
8 | 58 | <v-card-actions> |
9 | | - <v-btn :disabled="hasPending || hasSuccess" type="submit">Copy entities</v-btn> |
| 59 | + <v-btn :disabled="hasPending || hasSuccess" type="submit">Import entities</v-btn> |
10 | 60 | </v-card-actions> |
11 | 61 | <v-card-text v-if="hasError || (!hasPending && !hasSuccess && hasFailed)"> |
12 | 62 | <span class="font-italic">Your entity import failed. Please try again.</span> |
@@ -37,6 +87,11 @@ export default { |
37 | 87 | props: [ |
38 | 88 | 'wikiId' |
39 | 89 | ], |
| 90 | + data () { |
| 91 | + return { |
| 92 | + showOverlay: false |
| 93 | + } |
| 94 | + }, |
40 | 95 | computed: { |
41 | 96 | hasError () { |
42 | 97 | return this.$store.getters.currentWikiEntityImportError !== null |
|
0 commit comments