Skip to content

Commit

Permalink
fix people entity not showing docs when no wikidata
Browse files Browse the repository at this point in the history
  • Loading branch information
thisismattmiller committed Jan 23, 2025
1 parent bf5ec90 commit 734f6dd
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<link rel="stylesheet" href="/eat-bibliography/bulma.min.css">
<link href="/eat-bibliography/js/about.f843baac.js" rel="prefetch">
<link href="/eat-bibliography/css/app.046e0621.css" rel="preload" as="style">
<link href="/eat-bibliography/js/app.13a16dce.js" rel="preload" as="script">
<link href="/eat-bibliography/js/app.c55a3dfc.js" rel="preload" as="script">
<link href="/eat-bibliography/js/chunk-vendors.26bdde5a.js" rel="preload" as="script">
<link href="/eat-bibliography/css/app.046e0621.css" rel="stylesheet">
</head>
<body>
<noscript><strong>We're sorry but eat-biblo doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript>
<div id="app"></div>
<script src="/eat-bibliography/js/chunk-vendors.26bdde5a.js"></script><script src="/eat-bibliography/js/app.13a16dce.js"></script>
<script src="/eat-bibliography/js/chunk-vendors.26bdde5a.js"></script><script src="/eat-bibliography/js/app.c55a3dfc.js"></script>
</body>
</html>
1 change: 0 additions & 1 deletion docs/js/app.13a16dce.js.map

This file was deleted.

4 changes: 2 additions & 2 deletions docs/js/app.13a16dce.js → docs/js/app.c55a3dfc.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/js/app.c55a3dfc.js.map

Large diffs are not rendered by default.

20 changes: 14 additions & 6 deletions eat-biblo/src/views/Entity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ export default {
load: async function(){
console.log('hello', this.$route.name)
// console.log('hello', this.$route.name)
this.type = this.$route.name
this.qid = this.$route.params.qid
Expand All @@ -653,6 +653,7 @@ export default {
}else{
// load it
this.allData = await util.getAllData()
// console.log("this.allData",this.allData)
}
Expand All @@ -665,7 +666,7 @@ export default {
this.entityData = this.allData.filter((d)=> { return (d.qid === this.qid) })[0]
console.log(this.qid, this.entityData)
// console.log(this.qid, this.entityData)
// dedupe the title
if (this.entityData && this.entityData.titles){
Expand Down Expand Up @@ -696,8 +697,8 @@ export default {
this.label = r.label
console.log(this.wikidata)
console.log(this.label)
// console.log('this.wikidata',this.wikidata)
// console.log('this.label',this.label)
if (this.wikidata != null){
Expand Down Expand Up @@ -725,6 +726,11 @@ export default {
},1000)
}
let uri = 'http://base.semlab.io/entity/'+this.qid
Expand Down Expand Up @@ -765,10 +771,12 @@ export default {
}
console.log(this.filteredData)
// console.log(this.filteredData)
}
}
Expand Down

0 comments on commit 734f6dd

Please sign in to comment.