1 Commits

Author SHA1 Message Date
maurice
13870d48a1 hallo toegevoegd 2025-11-03 08:19:47 +01:00
6 changed files with 1244 additions and 1329 deletions

View File

@@ -1,28 +0,0 @@
name: Build container
on:
push:
jobs:
build:
runs-on: citadel-container-builder
steps:
- uses: actions/checkout@v4
- name: Install qemu dependency
run: |
sudo dnf install -y qemu-user-static-aarch64
- name: Build
uses: redhat-actions/buildah-build@v2
with:
image: ${{ github.repository_owner }}/${{ github.event.repository.name }}
tags: latest
archs: arm64
containerfiles: |
./Containerfile
- name: Push
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ github.repository_owner }}/${{ github.event.repository.name }}
tags: latest
registry: git.plabble.org
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}

View File

@@ -1,11 +1,11 @@
FROM node:22-alpine3.20 AS frontend-builder FROM node:21-alpine3.19 AS frontend-builder
WORKDIR /build WORKDIR /build
RUN corepack enable RUN corepack enable
COPY pastabble-frontend/ . COPY pastabble-frontend/ .
RUN pnpm i && pnpm build RUN pnpm i && pnpm build
FROM rust:alpine3.20 AS builder FROM rust:alpine3.19 AS builder
WORKDIR /build WORKDIR /build
RUN apk add --no-cache musl-dev RUN apk add --no-cache musl-dev
@@ -18,7 +18,7 @@ RUN case "$(apk --print-arch)" in \
mv ./target/aarch64-unknown-linux-musl /release ;; \ mv ./target/aarch64-unknown-linux-musl /release ;; \
esac esac
FROM alpine:3.20 FROM alpine:3.19
WORKDIR /app WORKDIR /app
RUN mkdir wwwroot data && \ RUN mkdir wwwroot data && \

View File

@@ -10,20 +10,20 @@
"check": "svelte-check --tsconfig ./tsconfig.json" "check": "svelte-check --tsconfig ./tsconfig.json"
}, },
"devDependencies": { "devDependencies": {
"@sveltejs/vite-plugin-svelte": "^5.1.0", "@sveltejs/vite-plugin-svelte": "^3.0.1",
"@tsconfig/svelte": "^5.0.4", "@tsconfig/svelte": "^5.0.2",
"autoprefixer": "^10.4.21", "autoprefixer": "^10.4.17",
"daisyui": "^4.12.24", "daisyui": "^4.6.1",
"postcss": "^8.5.4", "postcss": "^8.4.33",
"svelte": "^5.33.14", "svelte": "^4.2.8",
"svelte-check": "^4.2.1", "svelte-check": "^3.6.2",
"tailwindcss": "^3.4.17", "tailwindcss": "^3.4.1",
"tslib": "^2.8.1", "tslib": "^2.6.2",
"typescript": "^5.8.3", "typescript": "^5.2.2",
"vite": "^6.3.5" "vite": "^5.0.8"
}, },
"dependencies": { "dependencies": {
"highlight.js": "^11.11.1", "highlight.js": "^11.9.0",
"svelte-spa-router": "^4.0.1" "svelte-spa-router": "^4.0.1"
} }
} }

File diff suppressed because it is too large Load Diff

View File

@@ -1,8 +1,9 @@
import './app.css' import './app.css'
import 'highlight.js/styles/github-dark.min.css'; import 'highlight.js/styles/github-dark.min.css';
import { mount } from 'svelte';
import App from './App.svelte' import App from './App.svelte'
const app = mount(App, { target: document.getElementById("app") }); const app = new App({
target: document.getElementById('app'),
})
export default app export default app

View File

@@ -11,6 +11,7 @@ mod paste;
// Generate random key function // Generate random key function
fn random_string() -> String { fn random_string() -> String {
// hallo
rand::thread_rng() rand::thread_rng()
.sample_iter(&Alphanumeric) .sample_iter(&Alphanumeric)
.take(5) .take(5)