2 Commits

Author SHA1 Message Date
Indrawan I.
de73724e17 ci: add playground workflows (#20) 2026-05-14 05:15:15 +07:00
Indrawan I.
cd32689b47 feat(core): hard remake with bun and elysia (#19)
* static files changes

* remake modifiers

* test case

* some docs changes

* deps and rule changes

* edit proper interfaces

* remake getServer

* @elysiajs/swagger

* remake tsconfig

* ci changes use bun

* docs changes

* feat(core): hard remake with bun and elysia

* chore(release): 8.2.0-alpha

* auto release

* ci

* update global

* chore(release): 8.2.1-alpha

* ci
2026-05-14 04:57:54 +07:00
12 changed files with 107 additions and 11 deletions

View File

@@ -27,4 +27,7 @@ jobs:
run: bun install
- name: Run test
run: bun run test:eporner
run: |
bun run start:dev &
sleep 3
bun run test:eporner

66
.github/workflows/playground.yml vendored Normal file
View File

@@ -0,0 +1,66 @@
name: Playground
on:
push:
branches: [ master ]
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Setup Bun
uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2.0.1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Generate Swagger JSON and HTML
run: |
mkdir public
bun run start:dev &
sleep 3
curl -s http://localhost:3000/docs/json > public/swagger.json
cat << 'EOF' > public/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>LustPress API Playground</title>
<link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@5.11.0/swagger-ui.css" />
<style>body { margin: 0; padding: 0; } .swagger-ui .topbar { display: none; }</style>
</head>
<body>
<div id="swagger-ui"></div>
<script src="https://unpkg.com/swagger-ui-dist@5.11.0/swagger-ui-bundle.js"></script>
<script src="https://unpkg.com/swagger-ui-dist@5.11.0/swagger-ui-standalone-preset.js"></script>
<script>
window.onload = () => {
window.ui = SwaggerUIBundle({
url: "./swagger.json",
dom_id: '#swagger-ui',
deepLinking: true,
presets: [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset],
plugins: [SwaggerUIBundle.plugins.DownloadUrl],
});
};
</script>
</body>
</html>
EOF
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages

View File

@@ -27,4 +27,7 @@ jobs:
run: bun install
- name: Run test
run: bun run test:pornhub
run: |
bun run start:dev &
sleep 3
bun run test:pornhub

View File

@@ -27,4 +27,7 @@ jobs:
run: bun install
- name: Run test
run: bun run test:redtube
run: |
bun run start:dev &
sleep 3
bun run test:redtube

View File

@@ -30,4 +30,7 @@ jobs:
run: bun run build
- name: Check status code
run: bun run test
run: |
bun run start:dev &
sleep 3
bun run test

View File

@@ -27,4 +27,7 @@ jobs:
run: bun install
- name: Run test
run: bun run test:txxx
run: |
bun run start:dev &
sleep 3
bun run test:txxx

View File

@@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
@@ -27,4 +27,7 @@ jobs:
run: bun install
- name: Run test
run: bun run test:xhamster
run: |
bun run start:dev &
sleep 3
bun run test:xhamster

View File

@@ -27,4 +27,7 @@ jobs:
run: bun install
- name: Run test
run: bun run test:xnxx
run: |
bun run start:dev &
sleep 3
bun run test:xnxx

View File

@@ -27,4 +27,7 @@ jobs:
run: bun install
- name: Run test
run: bun run test:xvideos
run: |
bun run start:dev &
sleep 3
bun run test:xvideos

View File

@@ -27,4 +27,7 @@ jobs:
run: bun install
- name: Run test
run: bun run test:youporn
run: |
bun run start:dev &
sleep 3
bun run test:youporn

View File

@@ -29,6 +29,9 @@ module.exports = [
beforeAll: "readonly",
afterAll: "readonly",
it: "readonly",
AbortController: "readonly",
setTimeout: "readonly",
clearTimeout: "readonly",
},
},
plugins: {

View File

@@ -1,6 +1,6 @@
{
"name": "lustpress",
"version": "8.2.0-alpha",
"version": "8.2.2-alpha",
"description": "RESTful and experimental API for PH and other R18 websites",
"main": "src/index.ts",
"scripts": {