From dbfdfda60d58ba9b2782b1cb7cb50dbe19576dd9 Mon Sep 17 00:00:00 2001 From: Kaxi <1042864399@qq.com> Date: Sun, 27 Sep 2026 04:18:46 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=8C=85=E5=90=8D=E5=AE=9A?= =?UTF-8?q?=E4=B8=BA=20@sutong/dsh-lan-access=EF=BC=8C=E5=85=83=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=8C=87=E5=90=91=E8=87=AA=E5=BB=BA=20Gitea?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 主办从 GitHub 迁到自建 Gitea(git.nixus.top/sutong/dsh-lan-access), 包名随之从 @wishesl 改回 @sutong,与仓库归属一致。 repository/bugs/homepage 指向 git.nixus.top;LICENSE 版权主体同步。 因包名已做成单一来源,本次只需改 package.json 并重建。 --- LICENSE | 2 +- README.en.md | 2 +- README.md | 2 +- client.js | 10 +++++----- cordis.patch.yml | 4 ++-- index.js | 4 ++-- package.json | 8 ++++---- src/panel.js | 4 ++-- src/qrcode.js | 2 +- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/LICENSE b/LICENSE index 86e4e7c..d0bb7f8 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2026 wishesl +Copyright (c) 2026 sutong Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.en.md b/README.en.md index ffd21fb..f5d4e74 100644 --- a/README.en.md +++ b/README.en.md @@ -1,4 +1,4 @@ -# @wishesl/dsh-lan-access +# @sutong/dsh-lan-access Publish the dsh Web UI on your local network with a **standalone reverse proxy**: it listens on `0.0.0.0:`, forwards HTTP and WebSocket to the loopback web server, and **keeps the official launch-token login**. diff --git a/README.md b/README.md index 2463fad..ee5686b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# @wishesl/dsh-lan-access +# @sutong/dsh-lan-access 局域网访问 dsh Web UI:一个**独立反向代理**,在 `0.0.0.0:` 监听,把 HTTP 与 WebSocket 转发到回环 web 服务器,并**保留官方 launch token 登录**。 diff --git a/client.js b/client.js index ec6cfaf..ef91fa8 100644 --- a/client.js +++ b/client.js @@ -1,10 +1,10 @@ /** - * @wishesl/dsh-lan-access — browser half (generated by scripts/build-client.mjs). + * @sutong/dsh-lan-access — browser half (generated by scripts/build-client.mjs). * * Do not edit this file: change src/panel.js or src/qrcode.js and rebuild. */ window.__ModuleLoader__.load({ - id: "@wishesl/dsh-lan-access", + id: "@sutong/dsh-lan-access", factory: function (require) { "use strict"; var React = require("react"); @@ -23,7 +23,7 @@ window.__ModuleLoader__.load({ * Verified against the reference `qrcode` npm package: `node scripts/test-qr.mjs` * compares every module of every version and mask. * - * @module @wishesl/dsh-lan-access/qrcode + * @module @sutong/dsh-lan-access/qrcode */ /** Error-correction level indicator bits (`M` = 0b00) and the format-info prefix. */ @@ -510,14 +510,14 @@ window.__ModuleLoader__.load({ // ── inlined src/panel.js ───────────────────────────────────────────────── /** - * Client half of @wishesl/dsh-lan-access: its own Settings page showing the LAN + * Client half of @sutong/dsh-lan-access: its own Settings page showing the LAN * addresses the host listener publishes, with a scannable QR code for the * address you pick. * * This file is bundled into the single browser artifact `client.js` by * `scripts/build-client.mjs`; it is never loaded directly by the browser. * - * @module @wishesl/dsh-lan-access/panel + * @module @sutong/dsh-lan-access/panel */ diff --git a/cordis.patch.yml b/cordis.patch.yml index 39754a3..750bce4 100644 --- a/cordis.patch.yml +++ b/cordis.patch.yml @@ -1,4 +1,4 @@ -# @wishesl/dsh-lan-access — bundle patch. +# @sutong/dsh-lan-access — bundle patch. # # The LAN listener itself overrides no shipped row: it is a separate socket that # forwards to the loopback web server, so the official webserver bind, the @@ -12,7 +12,7 @@ # An ordinary Cordis plugin activated by package name. - insert: - id: dsh-lan-access - name: '@wishesl/dsh-lan-access' + name: '@sutong/dsh-lan-access' config: # The official client derives its `isLoopback` topology fact from # `location.hostname`, and the durable settings surface is loopback-only diff --git a/index.js b/index.js index 4e5be4c..f46d250 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ /** - * @wishesl/dsh-lan-access — host half. + * @sutong/dsh-lan-access — host half. * * Publishes the loopback dsh Web UI on the LAN through a standalone reverse * proxy. `dsh web --host 0.0.0.0` is refused by the shipped CLI on purpose @@ -8,7 +8,7 @@ * it. The official browser-trust fence and the launch-token login stay in * force; nothing about the composed application is overridden. * - * @module @wishesl/dsh-lan-access + * @module @sutong/dsh-lan-access */ import { createServer, request as httpRequest } from 'node:http' diff --git a/package.json b/package.json index bb1b575..fa4a4e2 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@wishesl/dsh-lan-access", + "name": "@sutong/dsh-lan-access", "version": "0.1.0", "description": "Expose the dsh Web UI on the LAN through a standalone reverse proxy that preserves the official launch token — HTTP and WebSocket forwarding, no Host rewrite of your trust boundary.", "type": "module", @@ -70,12 +70,12 @@ "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/wishesl/dsh-lan-access.git" + "url": "git+https://git.nixus.top/sutong/dsh-lan-access.git" }, "bugs": { - "url": "https://github.com/wishesl/dsh-lan-access/issues" + "url": "https://git.nixus.top/sutong/dsh-lan-access/issues" }, - "homepage": "https://github.com/wishesl/dsh-lan-access#readme", + "homepage": "https://git.nixus.top/sutong/dsh-lan-access", "publishConfig": { "access": "public" } diff --git a/src/panel.js b/src/panel.js index 5e93d90..e9c2475 100644 --- a/src/panel.js +++ b/src/panel.js @@ -1,12 +1,12 @@ /** - * Client half of @wishesl/dsh-lan-access: its own Settings page showing the LAN + * Client half of @sutong/dsh-lan-access: its own Settings page showing the LAN * addresses the host listener publishes, with a scannable QR code for the * address you pick. * * This file is bundled into the single browser artifact `client.js` by * `scripts/build-client.mjs`; it is never loaded directly by the browser. * - * @module @wishesl/dsh-lan-access/panel + * @module @sutong/dsh-lan-access/panel */ import { encodeQR } from './qrcode.js' diff --git a/src/qrcode.js b/src/qrcode.js index 6bc8545..28734de 100644 --- a/src/qrcode.js +++ b/src/qrcode.js @@ -10,7 +10,7 @@ * Verified against the reference `qrcode` npm package: `node scripts/test-qr.mjs` * compares every module of every version and mask. * - * @module @wishesl/dsh-lan-access/qrcode + * @module @sutong/dsh-lan-access/qrcode */ /** Error-correction level indicator bits (`M` = 0b00) and the format-info prefix. */