mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
feat: simplify generated TORCH dashboard link
Update `createDashboardLinkFile` in `src/ops.mjs` to generate a dashboard URL that only includes the `hashtag` parameter, as requested. This simplifies the link shared in `TORCH_DASHBOARD.md` and aligns with the expected format. Test: Verified with reproduction script and existing `test/ops.test.mjs`. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
46bed2a75b
commit
1be3480003
1 file changed
+1
-2
+1
-2
@@ -502,8 +502,7 @@ export async function cmdInit(force = false, cwd = process.cwd(), mockAnswers =
|
||||
* @returns {string} - The generated URL.
|
||||
*/
|
||||
function createDashboardLinkFile(paths, namespace, relays, hashtag) {
|
||||
const encodedRelays = relays.map(r => encodeURIComponent(r)).join('%2C');
|
||||
const dashboardUrl = `https://torch.thepr0m3th3an.net/dashboard/?hashtag=${hashtag}&namespace=${namespace}&relays=${encodedRelays}`;
|
||||
const dashboardUrl = `https://torch.thepr0m3th3an.net/dashboard/?hashtag=${hashtag}`;
|
||||
|
||||
const content = `# TORCH Dashboard
|
||||
|
||||
|
||||
Reference in new issue
Block a user