From 02ad300443c8a01e8930f480f6cd36f0badcd61a Mon Sep 17 00:00:00 2001 From: trwnh Date: Sat, 6 Feb 2021 19:30:58 -0600 Subject: [PATCH 1/4] increase default upload limit from 1M to 15M --- contrib/nginx.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/nginx.conf b/contrib/nginx.conf index ecb90e15f..6d6fd15f8 100644 --- a/contrib/nginx.conf +++ b/contrib/nginx.conf @@ -18,6 +18,7 @@ server { index index.html index.htm index.php; charset utf-8; + client_max_body_size 15M; location / { try_files $uri $uri/ /index.php?$query_string; From aa99784fedf55f151e03a6e6694d9ae6e9423981 Mon Sep 17 00:00:00 2001 From: trwnh Date: Sat, 6 Feb 2021 20:53:56 -0600 Subject: [PATCH 2/4] change default client to phpredis --- config/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/database.php b/config/database.php index b5020f740..46fde4ba4 100644 --- a/config/database.php +++ b/config/database.php @@ -106,7 +106,7 @@ return [ 'redis' => [ - 'client' => env('REDIS_CLIENT', 'predis'), + 'client' => env('REDIS_CLIENT', 'phpredis'), 'default' => [ 'scheme' => env('REDIS_SCHEME', 'tcp'), From 1f09b4f5c5e06bdfe1f370474008effebd1b9513 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 6 Feb 2021 21:00:42 -0700 Subject: [PATCH 3/4] Revert ComposeModal --- .../assets/js/components/ComposeModal.vue | 114 ++---------------- 1 file changed, 12 insertions(+), 102 deletions(-) diff --git a/resources/assets/js/components/ComposeModal.vue b/resources/assets/js/components/ComposeModal.vue index fc058a5f5..393a1d6dc 100644 --- a/resources/assets/js/components/ComposeModal.vue +++ b/resources/assets/js/components/ComposeModal.vue @@ -59,13 +59,11 @@ - - - - {{media.length}} - - {{pageTitle}} - + + + {{media.length}} + + {{pageTitle}} @@ -563,34 +561,6 @@

-
-
-
- Loading... -
-

- Processing Media -

-

- This may take a few seconds. -

-
-
- -
-
-
- Loading... -
-

- Processing Media -

-

- This may take a few seconds. -

-
-
- @@ -715,17 +685,12 @@ export default { 'editMedia', 'cameraRoll', 'tagPeopleHelp', - 'textOptions', - 'processingVideo', - 'processingPhoto' + 'textOptions' ], cameraRollMedia: [], taggedUsernames: [], taggedPeopleSearch: null, - textMode: false, - isProcessingMedia: false, - processPhotoInterval: undefined, - processVideoInterval: undefined + textMode: false } }, @@ -825,14 +790,9 @@ export default { self.ids.push(e.data.id); self.media.push(e.data); self.uploading = false; - - if(e.data.mime == 'video/mp4') { - self.processVideo(e.data); - return; - } else { - self.processPhoto(e.data); - return; - } + setTimeout(function() { + self.page = 2; + }, 300); }).catch(function(e) { switch(e.response.status) { case 451: @@ -1205,6 +1165,7 @@ export default { ctx.clearRect(0, 0, image.width, image.height); } } + }, tagSearch(input) { @@ -1247,58 +1208,7 @@ export default { showTextOptions() { this.page = 'textOptions'; this.pageTitle = 'Text Post Options'; - }, - - processPhoto(media) { - this.page = 'processingPhoto'; - this.pageTitle = ''; - this.processPhotoCheck(media); - }, - - processPhotoCheck(media) { - this.isProcessingMedia = true; - this.processMediaCheck(media); - this.processPhotoInterval = setInterval(() => { - this.processMediaCheck(media); - }, 2500); - }, - - processVideo(media) { - this.page = 'processingVideo'; - this.pageTitle = ''; - this.processVideoCheck(media); - }, - - processVideoCheck(media) { - this.isProcessingMedia = true; - this.processMediaCheck(media, 'video'); - this.processVideoInterval = setInterval(() => { - this.processMediaCheck(media, 'video'); - }, 2500); - }, - - processMediaCheck(media, type = 'photo') { - return axios.get('/api/compose/v0/media/processing', { - params: { - id: media.id - } - }).then(res => { - let data = res.data; - if(data.finished === true) { - this.isProcessingMedia = false; - this.page = 3; - if(type == 'photo') { - clearInterval(this.processPhotoInterval); - } else if (type == 'video') { - clearInterval(this.processVideoInterval); - } else { - } - return; - } - }); } - - } } - + \ No newline at end of file From e462b2af138ee686f0f0374d508b420cbc1b8ba9 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 6 Feb 2021 21:03:55 -0700 Subject: [PATCH 4/4] Update compiled assets --- public/js/components.js | Bin 633574 -> 633574 bytes public/js/compose.js | Bin 112373 -> 109768 bytes public/mix-manifest.json | Bin 2139 -> 2139 bytes 3 files changed, 0 insertions(+), 0 deletions(-) diff --git a/public/js/components.js b/public/js/components.js index c8164057d097570adb7c4bcc12c1dd96fa042e21..94d40780874983607677a0967d9155682f4c0dce 100644 GIT binary patch delta 38 ucmaEMRqfeTwT2eP7N!>F7M2#)7Pc+y?mJn6GxE#Zy?3&2_uk1d`y&7}ybrMe delta 38 ucmaEMRqfeTwT2eP7N!>F7M2#)7Pc+y?mJn6QWI0!y?3&2_uk1d`y&7|4iAg~ diff --git a/public/js/compose.js b/public/js/compose.js index 053e2c30469ae85dc0c060a043b8965a9ca2a0fd..3a1341e4e0d189fcc37d662367de763d141784c7 100644 GIT binary patch delta 1218 zcmZ8hZ%kWN6wiSUTDF0JI046>+I8>A?dtOvW7@en}Y2t_Te&=`3 zIrpA(?s@n3jgn9Am8`zktm_Vhd)Td!hNn|XvPq#)&e-SmcNlqlR7h|NFDTmeJz}vg zzsPPo>U06wGt0hpoYx+3M~ihw`$v!Dm$i%JWaXwU<7{Ue%}x5zz`o!MN^2XdF&-|E zN#kUJ{A5fONaWeY0+}?{u~L(@u;4HS3gm4QEszaUtU#1KN3GLA!W>?PahavXk znZ2l2p4|_A<~iE}er@LL93c7i)mG?ZrgR7NvzO9d)Gw!xL7%2S_gz_&L=_>f%=Uz$ z;fP9Pni`LeG>Mc_$=PZZZ4xtNELHBpvdbyjT*Su??yF@te=rmeP#=qD+PBGzJn^#A znOb%$V*oe%EVFl~SD1;8s1Y*C^Q4#kop}b+uV1!eb)IE2`XrZAwZ1JMYT~+h;u9j9 zc_8a$z?ygW@?=1mQc@uV0g)@YTB*WWAsU*M?nZ17FBA(5EWUoL7-DxaB zNPpR$hqb#M@T8Yhd8cYqS`JOe1EC}`;?+vN`mnk|A~HElqyM&R5VftdiHjzPn|<@3 zzDA-VZ*v`>qLVvLEiSZ(L}K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