Linux desktop: "View site" fails because the data folder is under ~/.config
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- electron, express, javascript
調査の方向性
packages/builder-server/src/routes/export.js から始めてください。このファイルのエクスポートビューアのルートは、~/.config 配下の絶対パスを指定して res.sendFile() を呼び出しています。この呼び出しを変更し、エクスポートディレクトリからの相対パスを渡すようにしてください。その際 root にそのディレクトリを設定し、dotfiles はデフォルトのままにして、エクスポート内の隠しファイルが引き続き拒否されるようにします。Linux で View site からエクスポートが開けるようになり、docs-llms/core-electron.md の制限に関する注記を削除できれば完了です。Mac と Windows のパスではバグが再現しないため、Linux でのテストが必要です。
索引モデルが issue の本文から書いたものです。
説明
On the Linux desktop app, View site on an export fails with an error instead of opening the exported page.
Why: the app keeps its data under ~/.config/.... The export viewer route (packages/builder-server/src/routes/export.js) calls Express res.sendFile() with an absolute path and no root. Express refuses any path that has a hidden folder in it, and .config counts, so every exported file is refused even though it exists.
Likely fix: pass the path relative to the export directory and set root to the export directory. That serves the page and still refuses hidden files inside the export itself. This was reproduced but not applied.
Mac and Windows are not affected by default (no hidden folder in their data paths). See docs-llms/core-electron.md (Linux known viewer limitation).
🤖 Generated with Claude Code
- 主要言語
- JavaScript
- スター
- 162
- フォーク
- 6
- 平均マージ
- 12時間 55分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tsiger/widgetizer のほかの issue
-
question
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
tsiger/widgetizer#194 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
tsiger/widgetizer#181 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
tsiger/widgetizer#175 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
tsiger/widgetizer#174 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
tsiger/widgetizer#173 ·
tsiger/widgetizer の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
micromatch/picomatch#243 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
b310-digital/teammapper#1515 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
c1overzz/dsh-bili-scroll#153 ·
メンテナーはふだん 1 日以内に返信
-
01 type: bug 21 status: confirmed 41 lvl: easy 62 scope: viewer
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信