Experimental browser for the Atmosphere
{ "uri": "at://did:plc:hwevmowznbiukdf6uk5dwrrq/sh.tangled.repo.pull/3lobgilqjj522", "cid": "bafyreigyavmrltty5o633cuarsgrc2e2vof4td75xk7iriwvdm3ep4gzbe", "value": { "$type": "sh.tangled.repo.pull", "patch": "From daa4dd55e6cb47f9fac784de075e1a840bb7dce1 Mon Sep 17 00:00:00 2001\nFrom: Anirudh Oppiliappan <x@icyphox.sh>\nDate: Sat, 3 May 2025 16:15:40 +0300\nSubject: [PATCH] appview: pages/templates/repo/fragments: replace k1.t.s ->\n t.s in template\n\n---\n .../pages/templates/repo/fragments/cloneInstructions.html | 8 ++++++--\n appview/state/repo.go | 4 ----\n go.sum | 2 --\n 3 files changed, 6 insertions(+), 8 deletions(-)\n\ndiff --git a/appview/pages/templates/repo/fragments/cloneInstructions.html b/appview/pages/templates/repo/fragments/cloneInstructions.html\nindex fcd866fa..9bee2f4d 100644\n--- a/appview/pages/templates/repo/fragments/cloneInstructions.html\n+++ b/appview/pages/templates/repo/fragments/cloneInstructions.html\n@@ -1,4 +1,8 @@\n {{ define \"repo/fragments/cloneInstructions\" }}\n+ {{ $knot := .RepoInfo.Knot }}\n+ {{ if eq $knot \"knot1.tangled.sh\" }}\n+ {{ $knot = \"tangled.sh\" }}\n+ {{ end }}\n <section\n class=\"mt-4 p-6 rounded bg-white dark:bg-gray-800 dark:text-white w-full mx-auto overflow-auto flex flex-col gap-4\"\n >\n@@ -7,7 +11,7 @@\n <div class=\"md:pl-4 overflow-x-auto whitespace-nowrap\">\n <code class=\"dark:text-gray-100\"\n >git remote add origin\n- git@{{ .RepoInfo.Knot }}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}</code\n+ git@{{ $knot }}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}</code\n >\n </div>\n </div>\n@@ -36,7 +40,7 @@\n <div class=\"overflow-x-auto whitespace-nowrap flex-1\">\n <code class=\"dark:text-gray-100\"\n >git clone\n- git@{{ .RepoInfo.Knot }}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}</code\n+ git@{{ $knot }}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}</code\n >\n </div>\n </div>\ndiff --git a/appview/state/repo.go b/appview/state/repo.go\nindex f0c69c4c..bc9f40df 100644\n--- a/appview/state/repo.go\n+++ b/appview/state/repo.go\n@@ -1072,10 +1072,6 @@ func (f *FullyResolvedRepo) RepoInfo(s *State, u *auth.User) repoinfo.RepoInfo {\n \t\t}\n \t}\n \n-\tif knot == \"knot1.tangled.sh\" {\n-\t\tknot = \"tangled.sh\"\n-\t}\n-\n \trepoInfo := repoinfo.RepoInfo{\n \t\tOwnerDid: f.OwnerDid(),\n \t\tOwnerHandle: f.OwnerHandle(),\ndiff --git a/go.sum b/go.sum\nindex 1f03761a..9e5b7333 100644\n--- a/go.sum\n+++ b/go.sum\n@@ -130,8 +130,6 @@ github.com/ipfs/bbloom v0.0.4 h1:Gi+8EGJ2y5qiD5FbsbpX/TMNcJw8gSqr7eyjHa4Fhvs=\n github.com/ipfs/bbloom v0.0.4/go.mod h1:cS9YprKXpoZ9lT0n/Mw/a6/aFV6DTjTLYHeA+gyqMG0=\n github.com/ipfs/go-block-format v0.2.0 h1:ZqrkxBA2ICbDRbK8KJs/u0O3dlp6gmAuuXUJNiW1Ycs=\n github.com/ipfs/go-block-format v0.2.0/go.mod h1:+jpL11nFx5A/SPpsoBn6Bzkra/zaArfSmsknbPMYgzM=\n-github.com/ipfs/go-cid v0.4.1 h1:A/T3qGvxi4kpKWWcPC/PgbvDA2bjVLO7n4UeVwnbs/s=\n-github.com/ipfs/go-cid v0.4.1/go.mod h1:uQHwDeX4c6CtyrFwdqyhpNcxVewur1M7l7fNU7LKwZk=\n github.com/ipfs/go-cid v0.5.0 h1:goEKKhaGm0ul11IHA7I6p1GmKz8kEYniqFopaB5Otwg=\n github.com/ipfs/go-cid v0.5.0/go.mod h1:0L7vmeNXpQpUS9vt+yEARkJ8rOg43DF3iPgn4GIN0mk=\n github.com/ipfs/go-datastore v0.6.0 h1:JKyz+Gvz1QEZw0LsX1IBn+JFCJQH4SJVFtM4uWU0Myk=\n-- \n2.48.1\n\n", "title": "appview: pages/templates/repo/fragments: replace k1.t.s -> t.s in template", "pullId": 76, "createdAt": "", "targetRepo": "at://did:plc:wshs7t2adsemcrrd4snkeqli/sh.tangled.repo/3liuighjy2h22", "targetBranch": "master" } }