4 Commits

Author SHA1 Message Date
557dda99d6 merge upstream 2025-02-13 06:35:50 +00:00
a5c9596397 refactor docker deployment
Reviewed-on: http://git.simonis.lol/projects/file-explorer/pulls/17
2025-02-02 17:31:21 +00:00
461361d2ed change docker image
Reviewed-on: http://git.simonis.lol/projects/file-explorer/pulls/16
2025-01-29 11:50:43 +00:00
a67b93ac99 Implement image previewing
I have tested this with png and jpeg/jpg which both work but most other image types should work as well.
![image](/attachments/25318577-d48c-4902-93b3-9adbb8b954e7)

Co-authored-by: Jan Klattenhoff <j.klattenhoff@neusta.de>
Reviewed-on: sites/file-explorer#12
Co-authored-by: jank1619 <jan@kjan.email>
Co-committed-by: jank1619 <jan@kjan.email>
2024-12-21 18:12:14 +00:00
2 changed files with 8 additions and 11 deletions

View File

@ -9,15 +9,12 @@ jobs:
build:
runs-on: remote
steps:
- uses: https://git.simonis.lol/actions/checkout@v4
- uses: https://git.simonis.lol/actions/login@v1
with:
registry: git.simonis.lol
username: ${{ vars.DOCKER_USER }}
password: ${{ vars.DOCKER_PW }}
- name: build
run: docker build -t git.simonis.lol/sites/file-explorer:latest .
- name: Checkout
uses: https://git.simonis.lol/actions/checkout@v2
- name: push
run: docker push git.simonis.lol/sites/file-explorer:latest
- name: Build
run: docker buildx build -t git.simonis.lol/projects/file-explorer:latest .
- name: Push
run: docker push git.simonis.lol/projects/file-explorer:latest

View File

@ -14,7 +14,7 @@ class ServeFileController extends AbstractController
{
}
#[Route("/serve-file/{filePath}", name: "serve_file")]
#[Route("/serve/{filePath}", name: "serve_file")]
public function __invoke(string $filePath): BinaryFileResponse
{
$file = $this->fileSystemService->getFile($filePath);