Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Merge pull request #128 from factly/deshetti
Browse files Browse the repository at this point in the history
Fixes compilation error. Fixes #127
  • Loading branch information
deshetti authored May 16, 2019
2 parents e271171 + 1967c1a commit ac8bb86
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
FROM node:10.14.2-alpine
ENV APP_ROOT /app
ARG API_URI=https://api.factly.in
ARG CLIENT_ID=factly
ARG CLIENT_ID=factly-telugu
ARG DOMAIN_HOSTNAME=https://telugu.factly.in

# create and setup working directory
Expand Down
8 changes: 4 additions & 4 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const pkg = require('./package');

module.exports = {
env: {
apiUri: process.env.API_URI || 'http://api.factly.in',
clientId: process.env.CLIENT_ID || 'factly',
domainHostname: process.env.DOMAIN_HOSTNAME || 'http://factcheck.factly.in'
apiUri: process.env.API_URI || 'https://api.factly.in',
clientId: process.env.CLIENT_ID || 'factly-telugu',
domainHostname: process.env.DOMAIN_HOSTNAME || 'https://factcheck.factly.in'
},
mode: 'universal',

Expand All @@ -21,7 +21,7 @@ module.exports = {
// { hid: 'description', name: 'description', content: pkg.description },
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
// { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },

/* ,{ rel:"stylesheet",href:"https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"} */
]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Factly Media & Research LLC",
"private": true,
"scripts": {
"dev": "cross-env NODE_ENV=development API_URI=https://api.factly.in CLIENT_ID=factly nodemon server/index.js --watch server",
"dev": "cross-env NODE_ENV=development API_URI=https://api.factly.in CLIENT_ID=factly-telugu nodemon server/index.js --watch server",
"build": "nuxt build",
"start": "cross-env NODE_ENV=production API_URI=https://api.factly.in CLIENT_ID=factly-telugu DOMAIN_HOSTNAME=https://telugu.factly.in node server/index.js",
"generate": "nuxt generate",
Expand Down
17 changes: 10 additions & 7 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<hr class="spacer is-1-5 is-hidden-desktop">
</div>
</section>

</div>
</div>
</div>
Expand Down Expand Up @@ -90,7 +90,7 @@ export default {
.get(encodeURI(`${process.env.apiUri}/api/v1/posts/?client=${process.env.clientId}&sortBy=publishedDate&sortAsc=false`))
.then(response => response.data)
.catch(err => console.log(err));
const factchecks = await axios
.get(encodeURI(`${process.env.apiUri}/api/v1/factchecks/?client=${process.env.clientId}&sortBy=publishedDate&sortAsc=false`))
.then(response => response.data)
Expand All @@ -101,21 +101,24 @@ export default {
// (storyFirst, storySecond) =>
// storyFirst.published_date < storySecond.published_date ? 1 : -1
// );
return {
story: sortedStories
};
},
head () {
head() {
return {
title: "Factly",
meta: [
{ hid: 'og:title', name: 'og:title', content: "Factly" },
// { hid: 'og:url', name: 'og:url', content: process.env.domainHostname + $nuxt.$route.name},
{ hid: 'og:image', name: 'og:image', content: this.prodBaseUrl + BackgroundImage }
]
}
{ hid: 'og:image', name: 'og:image', content: this.prodBaseUrl + BackgroundImage },
{ property: 'og:description', content: 'FACTLY is a platform that brings you various aspects of life that directly or indirectly affects the common man but with ONE difference. Each news story on FACTLY is backed by factual evidence/data that is either available in the public domain or that is collated/gathered/collected using tools such as the Right to Information (RTI).'}
],
htmlAttrs: {
class: "has-navbar-fixed-top"
}
};
}
};
</script>

0 comments on commit ac8bb86

Please sign in to comment.