Skip to content

Commit 5b01b53

Browse files
committed
Merge branch 'main' of https://github.com/JhumanJ/OpnForm
2 parents 895372f + 9883604 commit 5b01b53

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

client/components/forms/components/InputHelp.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="flex mb-1 input-help">
33
<small :class="theme.default.help" class="grow flex">
4-
<slot name="help"><span class="field-help" v-html="help" /></slot>
4+
<slot name="help"><span v-if="help" class="field-help" v-html="help" /></slot>
55
</small>
66
<slot name="after-help">
77
<small class="flex-grow" />

client/components/open/forms/components/form-components/FormNotifications.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default {
5454
5555
computed: {
5656
zapierUrl () {
57-
opnformConfig.links.zapier_integration
57+
return opnformConfig.links.zapier_integration
5858
}
5959
},
6060
}

docker/nginx.conf

+10
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ server {
2525
try_files $uri $uri/ /index.php$is_args$args;
2626
}
2727

28+
location /local/temp/ {
29+
set $original_uri $uri;
30+
try_files $uri $uri/ /index.php$is_args$args;
31+
}
32+
33+
location /forms/assets/ {
34+
set $original_uri $uri;
35+
try_files $uri $uri/ /index.php$is_args$args;
36+
}
37+
2838
location ~ \.php$ {
2939
fastcgi_split_path_info ^(.+\.php)(/.+)$;
3040
fastcgi_pass unix:/var/run/php-fpm-opnform-site.sock;

routes/api.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
use App\Http\Controllers\WorkspaceController;
2121
use App\Http\Middleware\Form\ResolveFormMiddleware;
2222
use Illuminate\Http\Request;
23-
use Illuminate\Http\Response;
2423
use Illuminate\Support\Facades\Route;
2524
use Illuminate\Support\Facades\Storage;
2625

@@ -227,10 +226,8 @@
227226
if (! $request->hasValidSignature()) {
228227
abort(401);
229228
}
230-
$response = Response::make(Storage::get($path), 200);
231-
$response->header('Content-Type', Storage::mimeType($path));
232229

233-
return $response;
230+
return response()->file(Storage::path($path), ['Content-Type' => Storage::mimeType($path)]);
234231
})->where('path', '(.*)')->name('local.temp');
235232

236233
Route::get('caddy/ask-certificate/{secret?}', [\App\Http\Controllers\CaddyController::class, 'ask'])

0 commit comments

Comments
 (0)