Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/components/Pages/ManageWiki/Cards/Details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
<v-card>
<v-card-title>
Details
<v-spacer></v-spacer>
<v-tooltip right>
<template v-slot:activator="{ on }">
<v-icon v-on="on">mdi-information-outline</v-icon>
</template>
<span>During Alpha if you would like to change these details please contact us.</span>
</v-tooltip>
</v-card-title>
<v-card-text>
<strong>Please check your emails for your log in details.</strong><br/>
Expand Down
61 changes: 58 additions & 3 deletions src/components/Pages/ManageWiki/Cards/EntityImport.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,62 @@
<template>
<v-form ref="form" @submit="doSubmit">
<v-overlay
:value="showOverlay"
>
<v-dialog width="500" v-model="showOverlay">
<v-card>
<v-card-title>
Entities for import
</v-card-title>
<v-card-text>
<h4 class="mb-0 mt-4">Properties</h4>
<ul>
<li><a target="_blank" rel="noopener nofollow" href="https://www.wikidata.org/wiki/Property:P25">Mother</a></li>
<li><a target="_blank" rel="noopener nofollow" href="https://www.wikidata.org/wiki/Property:P22">Father</a></li>
<li><a target="_blank" rel="noopener nofollow" href="https://www.wikidata.org/wiki/Property:P40">Child</a></li>
<li><a target="_blank" rel="noopener nofollow" href="https://www.wikidata.org/wiki/Property:P18">Image</a></li>
<li><a target="_blank" rel="noopener nofollow" href="https://www.wikidata.org/wiki/Property:P31">Instance of</a></li>
<li><a target="_blank" rel="noopener nofollow" href="https://www.wikidata.org/wiki/Property:P279">Subclass of</a></li>
</ul>
<h4 class="mb-0 mt-4">Items</h4>
<ul>
<li><a href="https://www.wikidata.org/wiki/Q1" target="_blank" rel="noopener nofollow">Universe</a></li>
<li><a href="https://www.wikidata.org/wiki/Q2" target="_blank" rel="noopener nofollow">World</a></li>
<li><a href="https://www.wikidata.org/wiki/Q5" target="_blank" rel="noopener nofollow">Human</a></li>
<li><a href="https://www.wikidata.org/wiki/Q64" target="_blank" rel="noopener nofollow">Berlin</a></li>
<li><a href="https://www.wikidata.org/wiki/Q42" target="_blank" rel="noopener nofollow">Douglas Adams</a></li>
<li><a href="https://www.wikidata.org/wiki/Q3107329" target="_blank" rel="noopener nofollow">The Hitchhiker's Guide to the Galaxy</a></li>
</ul>
</v-card-text>
<v-card-actions>
<v-spacer />
<v-btn
color="primary"
text
@click="showOverlay = false"
>
Close
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</v-overlay>
<v-card>
<v-card-title>Import base set of entities to your Wikibase instance</v-card-title>
<v-card-title>
Import base entities
<v-spacer />
<v-btn plain right @click="showOverlay = true">
<v-icon>
mdi-information-outline
</v-icon>
More info
</v-btn>
</v-card-title>
<v-card-text>
You can import a preselected subset of items and properties to help you get started with your Wikibase instance.
You can import a curated subset of items and properties to help you get started with your Wikibase instance.
</v-card-text>
<v-card-actions>
<v-btn :disabled="hasPending || hasSuccess" type="submit">Copy entities</v-btn>
<v-btn :disabled="hasPending || hasSuccess" type="submit">Import entities</v-btn>
</v-card-actions>
<v-card-text v-if="hasError || (!hasPending && !hasSuccess && hasFailed)">
<span class="font-italic">Your entity import failed. Please try again.</span>
Expand Down Expand Up @@ -37,6 +87,11 @@ export default {
props: [
'wikiId'
],
data () {
return {
showOverlay: false
}
},
computed: {
hasError () {
return this.$store.getters.currentWikiEntityImportError !== null
Expand Down