diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1d3cba051d327649c70696645eb7a961b7c04292..c31d2d317eadb04d61db8360b3d585117f5c83a0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,15 +27,20 @@ before_script: # paths: # - node_modules/ +stages: + - build + - test + - deploy + test: + stage: test script: - - npm install -g yarn - yarn - npm run unit build: + stage: build script: - - npm install -g yarn - yarn - npm run build artifacts: @@ -43,11 +48,11 @@ build: - dist/ deploy: + stage: deploy environment: dev only: - develop script: - - npm install -g yarn - yarn - npm run build - scp -r dist/* pleroma@tenshi.heldscal.la:~/pleroma diff --git a/src/components/friends_timeline/friends_timeline.vue b/src/components/friends_timeline/friends_timeline.vue index afe5cc896a412694eacf3988e46d92ca4a1f6e80..3bf3b5432fb7aa750d922703acfa436468cdf8ad 100644 --- a/src/components/friends_timeline/friends_timeline.vue +++ b/src/components/friends_timeline/friends_timeline.vue @@ -1,10 +1,5 @@ <template> - <div class="timeline panel panel-default"> - <div class="panel-heading base01-background base04">Friends Timeline</div> - <div class="panel-body"> - <Timeline v-bind:timeline="timeline" v-bind:timeline-name="'friends'"/> - </div> - </div> + <Timeline :title="'Friends'" v-bind:timeline="timeline" v-bind:timeline-name="'friends'"/> </template> <script src="./friends_timeline.js"></script> diff --git a/src/components/mentions/mentions.vue b/src/components/mentions/mentions.vue index 59f0024124546d04631433730ada330894688369..7af402cedded514dbda91267fe5f44ee769e4072 100644 --- a/src/components/mentions/mentions.vue +++ b/src/components/mentions/mentions.vue @@ -1,10 +1,5 @@ <template> - <div class="timeline panel panel-default"> - <div class="panel-heading base01-background base04">Mentions</div> - <div class="panel-body"> - <Timeline v-bind:timeline="timeline" v-bind:timeline-name="'mentions'"/> - </div> - </div> + <Timeline :title="'Mentions'" v-bind:timeline="timeline" v-bind:timeline-name="'mentions'"/> </template> <script src="./mentions.js"></script> diff --git a/src/components/public_and_external_timeline/public_and_external_timeline.vue b/src/components/public_and_external_timeline/public_and_external_timeline.vue index bda511531d2c6283cbec4653dab32bfbc1447d42..fd69693858849a55600c6c1f07dc0049e1608993 100644 --- a/src/components/public_and_external_timeline/public_and_external_timeline.vue +++ b/src/components/public_and_external_timeline/public_and_external_timeline.vue @@ -1,10 +1,5 @@ <template> - <div class="timeline panel panel-default"> - <div class="panel-heading base01-background base04">THE WHOLE KNOWN NETWORK</div> - <div class="panel-body"> - <Timeline v-bind:timeline="timeline" v-bind:timeline-name="'publicAndExternal'"/> - </div> - </div> + <Timeline :title="'THE WHOLE KNOWN NETWORK'"v-bind:timeline="timeline" v-bind:timeline-name="'publicAndExternal'"/> </template> <script src="./public_and_external_timeline.js"></script> diff --git a/src/components/public_timeline/public_timeline.vue b/src/components/public_timeline/public_timeline.vue index d05695b27d1e2a60ead013f69dece28440cebac5..bd6a23ed711b329b500d2b37f67e174fc70bf981 100644 --- a/src/components/public_timeline/public_timeline.vue +++ b/src/components/public_timeline/public_timeline.vue @@ -1,10 +1,5 @@ <template> - <div class="timeline panel panel-default"> - <div class="panel-heading base01-background base04">Public Timeline</div> - <div class="panel-body"> - <Timeline v-bind:timeline="timeline" v-bind:timeline-name="'public'"/> - </div> - </div> + <Timeline :title="'Public Timeline'" v-bind:timeline="timeline" v-bind:timeline-name="'public'"/> </template> <script src="./public_timeline.js"></script> diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index addd0255c8de59d9b0e8193846c28cad9570756a..b4e80fe1e0a01f79a7e30c27e0495b18f7d2f43a 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -5,7 +5,8 @@ import StatusOrConversation from '../status_or_conversation/status_or_conversati const Timeline = { props: [ 'timeline', - 'timelineName' + 'timelineName', + 'title' ], components: { Status, diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index 45886f6cf0bad40f835411255a246039f92b1998..15ac5ff8356cc2b7fe78a338bc5ba98a4af99e73 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -1,20 +1,25 @@ <template> - <div class="timeline"> - <a href="#" v-on:click.prevent='showNewStatuses()' v-if="timeline.newStatusCount > 0"> - <div class="base01-background base05-border new-status-notification"> - <p class="text-center" > - {{timeline.newStatusCount}} new statuses - </p> + <div class="timeline panel panel-default"> + <div class="panel-heading base01-background base04">{{title}}</div> + <div class="panel-body"> + <div class="timeline"> + <a href="#" v-on:click.prevent='showNewStatuses()' v-if="timeline.newStatusCount > 0"> + <div class="base01-background base05-border new-status-notification"> + <p class="text-center" > + {{timeline.newStatusCount}} new statuses + </p> + </div> + </a> + <status-or-conversation v-for="status in timeline.visibleStatuses" :key="status.id" v-bind:statusoid="status"></status-or-conversation> + <a href="#" v-on:click.prevent='fetchOlderStatuses()' v-if="!timeline.loading"> + <div class="base01-background base05-border new-status-notification"> + <p class="text-center" > + Load older statuses. + </p> + </div> + </a> </div> - </a> - <status-or-conversation v-for="status in timeline.visibleStatuses" :key="status.id" v-bind:statusoid="status"></status-or-conversation> - <a href="#" v-on:click.prevent='fetchOlderStatuses()' v-if="!timeline.loading"> - <div class="base01-background base05-border new-status-notification"> - <p class="text-center" > - Load older statuses. - </p> - </div> - </a> + </div> </div> </template> <script src="./timeline.js"></script>