From 31fd24335ac186b0e0e77572cfc2194e85ae659b Mon Sep 17 00:00:00 2001 From: NikkeDoy Date: Tue, 19 May 2026 01:35:46 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20|=20Clean=20up=20and=20simplify=20a?= =?UTF-8?q?sync=20handling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/NGINX-STATIC-HOSTING.md | 3 +- lune.config.js | 16 +- package.json | 9 +- plugins/gpt-unslothed/index.jsx | 69 ++-- plugins/gpt-unslothed/plugin.json | 3 +- pnpm-lock.yaml | 551 ++++++++++++++++++++++++++++++ 6 files changed, 594 insertions(+), 57 deletions(-) diff --git a/docs/NGINX-STATIC-HOSTING.md b/docs/NGINX-STATIC-HOSTING.md index 5b0e52c..a5162af 100644 --- a/docs/NGINX-STATIC-HOSTING.md +++ b/docs/NGINX-STATIC-HOSTING.md @@ -36,6 +36,7 @@ dist/ ``` Lune SSG (Static Site Generator) produces: + - `index.html` — a listing page for all plugins in your monorepo - `/index.html` — individual documentation pages for each plugin - `plugin.js` — the bundled plugin code (all JSX/JS sources bundled into a single file) @@ -222,7 +223,7 @@ location / { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'Content-Type'; - + if ($request_method = 'OPTIONS') { return 204; } diff --git a/lune.config.js b/lune.config.js index 210a301..073f698 100644 --- a/lune.config.js +++ b/lune.config.js @@ -1,17 +1,3 @@ -// Welcome to your Lune config file! -// You can view documentation on Lune here: -// https://github.com/uwu/shelter/tree/main/packages/lune -// uncomment lines below to enable options, and feel free to delete this header. import { defineConfig } from "@uwu/lune"; -export default defineConfig({ - // this is the directory that your plugins live in. - // repoSubDir: "plugins-live-in-here", - - // this enables CSS Module support - see docs for info - // cssModules: true, - - // these add extra esbuild plugins into the pipeline. - // prePlugins: [], - // postPlugins: [], -}); +export default defineConfig({}); diff --git a/package.json b/package.json index 0b5136c..be53be0 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,13 @@ { "devDependencies": { + "@eslint/js": "^10.0.1", "@uwu/lune": "^1.2.1", - "@uwu/shelter-defs": "^1.1.0" + "@uwu/shelter-defs": "^1.1.0", + "babel-eslint": "^10.1.0", + "eslint": "^10.4.0" }, "type": "module", - "workspaces": ["plugins/*"] + "workspaces": [ + "plugins/*" + ] } diff --git a/plugins/gpt-unslothed/index.jsx b/plugins/gpt-unslothed/index.jsx index d177bcf..5e02439 100644 --- a/plugins/gpt-unslothed/index.jsx +++ b/plugins/gpt-unslothed/index.jsx @@ -13,7 +13,6 @@ const { TextBox, ReactiveRoot, TextArea, - ButtonLooks, }, plugin: { store }, util: { getFiber }, @@ -83,18 +82,15 @@ export function onLoad() { .mb-2 { margin-bottom: .5rem; } - + .pr-2 { padding-right: .5rem; }`); - let closeModal = null; const openGenerationModal = async () => { - let savedModel = store.model || ""; - - let model = savedModel; + let model = store.model || ""; let prompt = ""; - closeModal = openModal((p) => ( + closeModal = openModal(() => ( closeModal()}>Generate Response @@ -116,7 +112,6 @@ export function onLoad() {