Browse Source

Update compiled assets

Daniel Supernault 5 years ago
parent
commit
82038791ec

BIN
public/css/app.css


BIN
public/css/appdark.css


BIN
public/css/landing.css


BIN
public/css/quill.css


BIN
public/js/ace.js


BIN
public/js/activity.js


BIN
public/js/app.js


BIN
public/js/collectioncompose.js


BIN
public/js/collections.js


BIN
public/js/components.js


BIN
public/js/compose-classic.js


BIN
public/js/compose.js


BIN
public/js/developers.js


BIN
public/js/discover.js


BIN
public/js/hashtag.js


BIN
public/js/loops.js


BIN
public/js/manifest.js


BIN
public/js/mode-dot.js


BIN
public/js/profile-directory.js


BIN
public/js/profile.js


BIN
public/js/quill.js


BIN
public/js/search.js


BIN
public/js/status.js


BIN
public/js/theme-monokai.js


BIN
public/js/timeline.js


BIN
public/js/vendor.js


BIN
public/mix-manifest.json


+ 12 - 1
resources/assets/js/app.js

@@ -16,11 +16,22 @@ if (token) {
 
 window.App = window.App || {};
 
+window.App.redirect = function() {
+	document.querySelectorAll('a').forEach(function(i,k) { 
+		let a = i.getAttribute('href');
+		if(a && a.length > 5 && a.startsWith('https://')) {
+			let url = new URL(a);
+			if(url.host !== window.location.host && url.pathname !== '/i/redirect') {
+				i.setAttribute('href', '/i/redirect?url=' + encodeURIComponent(a));
+			}
+		}
+	});
+}
+
 window.App.boot = function() {
 	new Vue({ el: '#content'});
 }
 
-
 window.App.util = {
 	time: (function() { 
 		return new Date; 

+ 1 - 1
resources/assets/js/components/Hashtag.vue

@@ -136,7 +136,7 @@
 			},
 
 			infiniteLoader($state) {
-				if(this.page > (this.authenticated ? 19 : 3)) {
+				if(this.page > (this.authenticated ? 29 : 10)) {
 					$state.complete();
 					return;
 				}

+ 1 - 1
resources/assets/js/components/NotificationCard.vue

@@ -15,7 +15,7 @@
 			</div>
 			<div class="card-body pt-2 px-0 py-0 contents" style="max-height: 230px; overflow-y: scroll;">
 				<div v-if="notifications.length > 0" class="media align-items-center px-3 py-2 border-bottom border-light" v-for="(n, index) in notifications">
-					<img class="mr-2 rounded-circle" style="border:1px solid #ccc" :src="n.account.avatar" alt="" width="32px" height="32px">
+					<img class="mr-2 rounded-circle" style="border:1px solid #ccc" :src="n.account.avatar" alt="" width="32px" height="32px" onerror="this.onerror=null;this.src='/storage/avatars/default.png';">
 					<div class="media-body font-weight-light small">
 						<div v-if="n.type == 'favourite'">
 							<p class="my-0">

+ 3 - 1
resources/assets/js/components/Timeline.vue

@@ -182,7 +182,9 @@
 											<span v-html="reply.content"></span>
 										</span>
 										<span class="mb-0" style="min-width:38px">
-											<span v-on:click="likeStatus(reply, $event)"><i v-bind:class="[reply.favourited ? 'fas fa-heart fa-sm text-danger cursor-pointer':'far fa-heart fa-sm text-lighter cursor-pointer']"></i></span>
+											<span v-on:click="likeStatus(reply, $event)">
+												<i v-bind:class="[reply.favourited ? 'fas fa-heart fa-sm text-danger cursor-pointer':'far fa-heart fa-sm text-lighter cursor-pointer']"></i>
+											</span>
 											<!-- <post-menu :status="reply" :profile="profile" size="sm" :modal="'true'" :feed="feed" class="d-inline-flex pl-2"></post-menu> -->
 											<span class="text-lighter pl-2 cursor-pointer" @click="ctxMenu(reply)">
 												<span class="fas fa-ellipsis-v text-lighter"></span>