浏览代码

Update components.js

Daniel Supernault 6 年之前
父节点
当前提交
65cfbc428f
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      resources/assets/js/components.js

+ 7 - 0
resources/assets/js/components.js

@@ -2,10 +2,12 @@ window.Vue = require('vue');
 import BootstrapVue from 'bootstrap-vue'
 import InfiniteLoading from 'vue-infinite-loading';
 import Loading from 'vue-loading-overlay';
+import VueTimeago from 'vue-timeago'
 
 Vue.use(BootstrapVue);
 Vue.use(InfiniteLoading);
 Vue.use(Loading);
+Vue.use(VueTimeago);
 
 pixelfed.readmore = () => {
   $('.read-more').each(function(k,v) {
@@ -81,6 +83,11 @@ Vue.component(
     require('./components/PostComments.vue')
 );
 
+Vue.component(
+    'timeline',
+    require('./components/Timeline.vue')
+);
+
 Vue.component(
     'passport-clients',
     require('./components/passport/Clients.vue')