Bug Fixes and thiladhun scraper intergration
This commit is contained in:
1
resources/js/app.js
vendored
1
resources/js/app.js
vendored
@@ -4,7 +4,6 @@ import Vue from 'vue';
|
||||
import VueRouter from 'vue-router';
|
||||
import routes from './routes';
|
||||
|
||||
|
||||
Vue.use(require('vue-moment'));
|
||||
Vue.use(VueRouter);
|
||||
|
||||
|
@@ -30,12 +30,12 @@
|
||||
<div>
|
||||
<p
|
||||
class="font-semibold text-gray-700 text-sm capitalize MvTyper"
|
||||
v-text="article.source.name"
|
||||
v-text="subarticle.source.name"
|
||||
></p>
|
||||
</div>
|
||||
|
||||
<img
|
||||
:src="article.source.logo"
|
||||
:src="subarticle.source.logo"
|
||||
class="h-10 w-10 rounded-full ml-1 object-cover"
|
||||
/>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<span class="ml-1" v-text="article.readtime"></span>
|
||||
<span class="ml-1" v-text="subarticle.readtime"></span>
|
||||
</div>
|
||||
|
||||
<p
|
||||
@@ -153,8 +153,8 @@ export default {
|
||||
axios
|
||||
.get("api/today")
|
||||
.then(response => {
|
||||
this.article = response.data.data[0];
|
||||
this.subarticles = response.data.data.slice(1, 5);
|
||||
this.article = response.data[0];
|
||||
this.subarticles = response.data.slice(1, 5);
|
||||
})
|
||||
.catch(error => {
|
||||
console.log(error);
|
||||
|
@@ -6,15 +6,14 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import TodaysPick from '../components/TodaysPick';
|
||||
import DiscoverTopics from '../components/DiscoverTopics';
|
||||
import RecentStories from '../components/RecentStories';
|
||||
import TodaysPick from "../components/TodaysPick";
|
||||
import DiscoverTopics from "../components/DiscoverTopics";
|
||||
import RecentStories from "../components/RecentStories";
|
||||
export default {
|
||||
components: {
|
||||
TodaysPick,
|
||||
DiscoverTopics,
|
||||
RecentStories
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
};
|
||||
</script>
|
||||
|
5
resources/js/routes.js
vendored
5
resources/js/routes.js
vendored
@@ -5,8 +5,7 @@ export default {
|
||||
mode: 'history',
|
||||
|
||||
|
||||
routes: [
|
||||
{
|
||||
routes: [{
|
||||
path: '/',
|
||||
component: Home
|
||||
},
|
||||
@@ -16,4 +15,4 @@ export default {
|
||||
name: 'article.show'
|
||||
}
|
||||
]
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user