-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
789a324
commit 6de828e
Showing
6 changed files
with
69 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,57 @@ | ||
<template> | ||
<b-container> | ||
<Breadcrumb /> | ||
<Article :article="article" /> | ||
<!-- <h2>{{ document.title }}</h2> --> | ||
<!-- <b-img | ||
v-if="document.image" | ||
:src="api_url + document.image.url" | ||
fluid | ||
<div> | ||
<Breadcrumb /> | ||
<div class="d-flex align-items-start justify-content-between"> | ||
<div> | ||
<h2>{{ document.title }}</h2> | ||
<vue-markdown-it | ||
v-if="document.content" | ||
:source="document.content" | ||
id="editor" | ||
/> | ||
</div> | ||
<b-img | ||
v-if="document.media" | ||
:src="api_url + document.media.url" | ||
width="400px" | ||
right | ||
:alt="document.title" | ||
></b-img> --> | ||
<!-- <vue-markdown-it | ||
v-if="document.content" | ||
:source="document.content" | ||
id="editor" | ||
/> --> | ||
></b-img> | ||
</div> | ||
</div> | ||
</b-container> | ||
</template> | ||
|
||
<script> | ||
import gql from "graphql-tag"; | ||
import Breadcrumb from "../components/Breadcrumb.vue"; | ||
import Article from "../components/Article.vue"; | ||
// import VueMarkdownIt from "vue-markdown-it"; | ||
import VueMarkdownIt from "vue-markdown-it"; | ||
export default { | ||
data() { | ||
return { | ||
api_url: process.env.VUE_APP_STRAPI_API_URL, | ||
document, | ||
}; | ||
}, | ||
components: { | ||
Breadcrumb, | ||
Article, | ||
// VueMarkdownIt, | ||
VueMarkdownIt, | ||
}, | ||
props: { | ||
article: {}, | ||
apollo: { | ||
document: gql` | ||
query Document { | ||
document(id: 1) { | ||
id | ||
title | ||
content | ||
media { | ||
url | ||
} | ||
} | ||
} | ||
`, | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters