mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-22 23:45:02 +00:00
Frontend Docker Deployment
This commit is contained in:
parent
5dc73ab773
commit
734c871666
12
client-tauri/Dockerfile
Normal file
12
client-tauri/Dockerfile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# Use an existing image as a base
|
||||||
|
FROM node:22.2.0-alpine
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN npm i -g serve
|
||||||
|
|
||||||
|
COPY ./dist ./dist
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
CMD [ "serve", "-s", "dist" ]
|
@ -1,7 +1,3 @@
|
|||||||
# Tauri + React + Typescript
|
# Stirling-PDF frontend
|
||||||
|
|
||||||
This template should help get you started developing with Tauri, React and Typescript in Vite.
|
Tauri + Vite + React + Typescript
|
||||||
|
|
||||||
## Recommended IDE Setup
|
|
||||||
|
|
||||||
- [VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)
|
|
@ -4,12 +4,13 @@
|
|||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"vite:dev": "vite",
|
||||||
"build": "tsc && vite build",
|
"vite:build": "tsc && vite build",
|
||||||
"preview (previously built files)": "vite preview",
|
"vite:preview-build": "vite preview",
|
||||||
"tauri-dev (currently broken)": "tauri dev",
|
"vite:dockerize-build": "docker build . -t stirling-pdf:latest",
|
||||||
"tauri-build-debug": "tauri build --debug",
|
"tauri:dev (currently broken)": "tauri dev",
|
||||||
"tauri-build": "tauri build"
|
"tauri:build-debug": "tauri build --debug",
|
||||||
|
"tauri:build": "tauri build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@stirling-pdf/shared-operations": "^0.0.0",
|
"@stirling-pdf/shared-operations": "^0.0.0",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "StirlingPDF"
|
name = "StirlingPDF"
|
||||||
version = "0.0.1"
|
# version = "2.0.0"
|
||||||
description = "Selfhosted PDF processing"
|
description = "Selfhosted PDF processing"
|
||||||
authors = ["LaserKaspar, SaudF"]
|
authors = ["LaserKaspar, SaudF"]
|
||||||
license = ""
|
license = ""
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "StirlingPDF",
|
"productName": "StirlingPDF",
|
||||||
"version": "0.0.0"
|
"version": "2.0.0"
|
||||||
},
|
},
|
||||||
"tauri": {
|
"tauri": {
|
||||||
"allowlist": {
|
"allowlist": {
|
||||||
|
@ -20,6 +20,7 @@ export class PdfFile {
|
|||||||
private representationType: RepresentationType;
|
private representationType: RepresentationType;
|
||||||
originalFilename: string;
|
originalFilename: string;
|
||||||
filename: string;
|
filename: string;
|
||||||
|
// TODO: Option to disable Compression when converting from PDFLibDoc to uin8Array. (https://github.com/Hopding/pdf-lib/issues/1183#issuecomment-1685078941)
|
||||||
|
|
||||||
get uint8Array() : Promise<Uint8Array> {
|
get uint8Array() : Promise<Uint8Array> {
|
||||||
switch (this.representationType) {
|
switch (this.representationType) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user