-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
1,307 additions
and
764 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
# Enable HTTPS for document "url" parameter? [false]:boolean | ||
#TLS=false | ||
|
||
# Domain for document "url" parameter [localhost]:string | ||
#DOMAIN=localhost | ||
|
||
# Port for the server [4000]:number | ||
# (Don't expose the server to the internet, use a reverse proxy) | ||
PORT=4000 | ||
#PORT=4000 | ||
|
||
### Documentation: | ||
# Enable documentation? [true]:boolean | ||
# (Disabling this will also disable the playground) | ||
DOCS_ENABLED=true | ||
#DOCS_ENABLED=true | ||
|
||
# Path to documentation [/docs]:string | ||
DOCS_PATH=/docs | ||
#DOCS_PATH=/docs | ||
|
||
### Documentation playground: | ||
# Enable HTTPS for domain? [true]:boolean | ||
DOCS_PLAYGROUND_HTTPS=true | ||
#DOCS_PLAYGROUND_TLS=true | ||
|
||
# Domain for documentation playground [jspaste.eu]:string | ||
DOCS_PLAYGROUND_DOMAIN=jspaste.eu | ||
#DOCS_PLAYGROUND_DOMAIN=jspaste.eu | ||
|
||
# Port for documentation playground [443]:number | ||
DOCS_PLAYGROUND_PORT=443 | ||
#DOCS_PLAYGROUND_PORT=443 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# TODO: Experimental feature | ||
name: 'CI -> Test' | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- dev | ||
paths-ignore: | ||
- '*.md' | ||
- '.*ignore' | ||
|
||
pull_request: | ||
branches: | ||
- dev | ||
paths-ignore: | ||
- '*.md' | ||
- '.*ignore' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
lint: | ||
name: 'Lint' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- name: 'Harden Runner' | ||
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | ||
with: | ||
egress-policy: audit | ||
|
||
- name: 'Checkout' | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- name: 'Setup Bun' | ||
uses: oven-sh/setup-bun@9b21598af8d4dfc302e5a30250007de0fda92acc # v1.1.1 | ||
|
||
- name: 'Setup dependencies' | ||
run: bun install --production --frozen-lockfile --ignore-scripts | ||
|
||
# FIXME: Lint failing | ||
- name: 'Run lint' | ||
continue-on-error: true | ||
run: bun run lint | ||
|
||
build: | ||
name: 'Build' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- name: 'Harden Runner' | ||
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | ||
with: | ||
egress-policy: audit | ||
|
||
- name: 'Checkout' | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- name: 'Setup Node.js' | ||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | ||
with: | ||
node-version: current | ||
|
||
- name: 'Setup Bun' | ||
uses: oven-sh/setup-bun@9b21598af8d4dfc302e5a30250007de0fda92acc # v1.1.1 | ||
|
||
- name: 'Setup dependencies' | ||
run: bun install --production --frozen-lockfile --ignore-scripts | ||
|
||
- name: 'Run build' | ||
run: bun run build:standalone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
**/documents/ | ||
**/node_modules/ | ||
**/src/structures/ | ||
documents/ | ||
src/structures/ | ||
.prettierrc.json | ||
LICENSE | ||
tsconfig.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Backend | ||
|
||
The backend for [JSPaste](https://jspaste.eu), built with [Bun](https://bun.sh) and [ElysiaJS](https://elysiajs.com) | ||
This repository contains the backend code for [JSPaste](https://jspaste.eu). It is built using [Bun](https://bun.sh) and [ElysiaJS](https://elysiajs.com) | ||
|
||
## License | ||
|
||
This project is licensed under the EUPL License. See the [`LICENSE`](LICENSE) file for more details. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { Elysia } from 'elysia'; | ||
|
||
export abstract class AbstractPlugin { | ||
protected readonly server: Elysia; | ||
|
||
protected constructor(server: Elysia) { | ||
this.server = server; | ||
} | ||
|
||
protected abstract load(): Elysia; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { Elysia } from 'elysia'; | ||
|
||
export abstract class AbstractRoute { | ||
protected readonly server: Elysia; | ||
|
||
protected constructor(server: Elysia) { | ||
this.server = server; | ||
} | ||
|
||
protected abstract register(path: string): void; | ||
} |
Oops, something went wrong.