Jelajahi Sumber

Update compiled assets

Daniel Supernault 5 tahun lalu
induk
melakukan
82038791ec
31 mengubah file dengan 17 tambahan dan 4 penghapusan
  1. TEMPAT SAMPAH
      public/css/app.css
  2. TEMPAT SAMPAH
      public/css/appdark.css
  3. TEMPAT SAMPAH
      public/css/landing.css
  4. TEMPAT SAMPAH
      public/css/quill.css
  5. TEMPAT SAMPAH
      public/js/ace.js
  6. TEMPAT SAMPAH
      public/js/activity.js
  7. TEMPAT SAMPAH
      public/js/app.js
  8. TEMPAT SAMPAH
      public/js/collectioncompose.js
  9. TEMPAT SAMPAH
      public/js/collections.js
  10. TEMPAT SAMPAH
      public/js/components.js
  11. TEMPAT SAMPAH
      public/js/compose-classic.js
  12. TEMPAT SAMPAH
      public/js/compose.js
  13. TEMPAT SAMPAH
      public/js/developers.js
  14. TEMPAT SAMPAH
      public/js/discover.js
  15. TEMPAT SAMPAH
      public/js/hashtag.js
  16. TEMPAT SAMPAH
      public/js/loops.js
  17. TEMPAT SAMPAH
      public/js/manifest.js
  18. TEMPAT SAMPAH
      public/js/mode-dot.js
  19. TEMPAT SAMPAH
      public/js/profile-directory.js
  20. TEMPAT SAMPAH
      public/js/profile.js
  21. TEMPAT SAMPAH
      public/js/quill.js
  22. TEMPAT SAMPAH
      public/js/search.js
  23. TEMPAT SAMPAH
      public/js/status.js
  24. TEMPAT SAMPAH
      public/js/theme-monokai.js
  25. TEMPAT SAMPAH
      public/js/timeline.js
  26. TEMPAT SAMPAH
      public/js/vendor.js
  27. TEMPAT SAMPAH
      public/mix-manifest.json
  28. 12 1
      resources/assets/js/app.js
  29. 1 1
      resources/assets/js/components/Hashtag.vue
  30. 1 1
      resources/assets/js/components/NotificationCard.vue
  31. 3 1
      resources/assets/js/components/Timeline.vue

TEMPAT SAMPAH
public/css/app.css


TEMPAT SAMPAH
public/css/appdark.css


TEMPAT SAMPAH
public/css/landing.css


TEMPAT SAMPAH
public/css/quill.css


TEMPAT SAMPAH
public/js/ace.js


TEMPAT SAMPAH
public/js/activity.js


TEMPAT SAMPAH
public/js/app.js


TEMPAT SAMPAH
public/js/collectioncompose.js


TEMPAT SAMPAH
public/js/collections.js


TEMPAT SAMPAH
public/js/components.js


TEMPAT SAMPAH
public/js/compose-classic.js


TEMPAT SAMPAH
public/js/compose.js


TEMPAT SAMPAH
public/js/developers.js


TEMPAT SAMPAH
public/js/discover.js


TEMPAT SAMPAH
public/js/hashtag.js


TEMPAT SAMPAH
public/js/loops.js


TEMPAT SAMPAH
public/js/manifest.js


TEMPAT SAMPAH
public/js/mode-dot.js


TEMPAT SAMPAH
public/js/profile-directory.js


TEMPAT SAMPAH
public/js/profile.js


TEMPAT SAMPAH
public/js/quill.js


TEMPAT SAMPAH
public/js/search.js


TEMPAT SAMPAH
public/js/status.js


TEMPAT SAMPAH
public/js/theme-monokai.js


TEMPAT SAMPAH
public/js/timeline.js


TEMPAT SAMPAH
public/js/vendor.js


TEMPAT SAMPAH
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>