mirror of
https://github.com/basketikun/infinite-canvas.git
synced 2026-08-06 09:24:24 +08:00
refactor: update comments for clarity and consistency across multiple files
This commit is contained in:
+2
-2
@@ -10,8 +10,8 @@ const webDir = dirname(fileURLToPath(import.meta.url));
|
||||
const localVersion = readFileSync(resolve(webDir, "../VERSION"), "utf8").trim() || "dev";
|
||||
const localChangelog = readFileSync(resolve(webDir, "../CHANGELOG.md"), "utf8");
|
||||
|
||||
// 暴露 /plugins/index.json:列出 public/plugins 下的本地插件文件,
|
||||
// 供前端自动发现并加入插件列表(默认关闭)。dev 下实时读目录,构建时产出静态清单。
|
||||
// Expose /plugins/index.json with local plugin files from public/plugins.
|
||||
// The frontend can discover and list them when enabled; development reads the directory live, while builds emit a static registry.
|
||||
function localPluginsManifest(): Plugin {
|
||||
const pluginsDir = resolve(webDir, "public/plugins");
|
||||
const listLocalPlugins = () => {
|
||||
|
||||
Reference in New Issue
Block a user