An experimental IndieWeb site built in Go.

commit finalized templ files

note to self: don't commit templ output while still running watch mode

+9 -9
html/components/head_templ.go
··· 28 28 templ_7745c5c3_Var1 = templ.NopComponent 29 29 } 30 30 ctx = templ.ClearChildren(ctx) 31 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 1) 31 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<head>") 32 32 if templ_7745c5c3_Err != nil { 33 33 return templ_7745c5c3_Err 34 34 } 35 35 if len(title) > 0 { 36 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 2) 36 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<title>") 37 37 if templ_7745c5c3_Err != nil { 38 38 return templ_7745c5c3_Err 39 39 } ··· 46 46 if templ_7745c5c3_Err != nil { 47 47 return templ_7745c5c3_Err 48 48 } 49 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 3) 49 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" | puregarlic dot space</title>") 50 50 if templ_7745c5c3_Err != nil { 51 51 return templ_7745c5c3_Err 52 52 } 53 53 } else { 54 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 4) 54 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<title>puregarlic dot space</title>") 55 55 if templ_7745c5c3_Err != nil { 56 56 return templ_7745c5c3_Err 57 57 } 58 58 } 59 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 5) 59 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><link rel=\"preconnect\" href=\"https://fonts.googleapis.com\"><link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin><link href=\"https://fonts.googleapis.com/css2?family=Recursive:slnt,wght,CASL,CRSV,MONO@-15..0,300..1000,0..1,0..1,0..1&amp;display=swap\" rel=\"stylesheet\">") 60 60 if templ_7745c5c3_Err != nil { 61 61 return templ_7745c5c3_Err 62 62 } 63 63 for _, rel := range storage.GetRels() { 64 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 6) 64 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<link rel=\"") 65 65 if templ_7745c5c3_Err != nil { 66 66 return templ_7745c5c3_Err 67 67 } ··· 74 74 if templ_7745c5c3_Err != nil { 75 75 return templ_7745c5c3_Err 76 76 } 77 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 7) 77 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\" href=\"") 78 78 if templ_7745c5c3_Err != nil { 79 79 return templ_7745c5c3_Err 80 80 } ··· 87 87 if templ_7745c5c3_Err != nil { 88 88 return templ_7745c5c3_Err 89 89 } 90 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 8) 90 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">") 91 91 if templ_7745c5c3_Err != nil { 92 92 return templ_7745c5c3_Err 93 93 } 94 94 } 95 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 9) 95 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<link rel=\"stylesheet\" href=\"/static/styles.css\"></head>") 96 96 if templ_7745c5c3_Err != nil { 97 97 return templ_7745c5c3_Err 98 98 }
+2 -2
html/components/posts/note_templ.go
··· 28 28 templ_7745c5c3_Var1 = templ.NopComponent 29 29 } 30 30 ctx = templ.ClearChildren(ctx) 31 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 1) 31 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"bg-surface p-4 first:rounded-t last:rounded-b border-2 border-overlay\">") 32 32 if templ_7745c5c3_Err != nil { 33 33 return templ_7745c5c3_Err 34 34 } ··· 41 41 if templ_7745c5c3_Err != nil { 42 42 return templ_7745c5c3_Err 43 43 } 44 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 2) 44 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div>") 45 45 if templ_7745c5c3_Err != nil { 46 46 return templ_7745c5c3_Err 47 47 }
+5 -5
html/components/posts/photo_templ.go
··· 28 28 templ_7745c5c3_Var1 = templ.NopComponent 29 29 } 30 30 ctx = templ.ClearChildren(ctx) 31 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 1) 31 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"bg-base\">") 32 32 if templ_7745c5c3_Err != nil { 33 33 return templ_7745c5c3_Err 34 34 } 35 35 for index, photo := range GetPostJSONProperty(post, "photo") { 36 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 2) 36 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<figure class=\"relative group last:rounded-b\"><img class=\"w-full border-x-2 border-overlay group-first:rounded-t group-first:border-t-2\" src=\"") 37 37 if templ_7745c5c3_Err != nil { 38 38 return templ_7745c5c3_Err 39 39 } ··· 46 46 if templ_7745c5c3_Err != nil { 47 47 return templ_7745c5c3_Err 48 48 } 49 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 3) 49 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"><figcaption class=\"p-4 bg-surface group-last:rounded-b group-last:border-b-2 group-last:border-x-2 group-last:border-overlay\">") 50 50 if templ_7745c5c3_Err != nil { 51 51 return templ_7745c5c3_Err 52 52 } ··· 59 59 if templ_7745c5c3_Err != nil { 60 60 return templ_7745c5c3_Err 61 61 } 62 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 4) 62 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</figcaption></figure>") 63 63 if templ_7745c5c3_Err != nil { 64 64 return templ_7745c5c3_Err 65 65 } 66 66 } 67 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 5) 67 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div>") 68 68 if templ_7745c5c3_Err != nil { 69 69 return templ_7745c5c3_Err 70 70 }
+7 -7
html/components/posts/post_templ.go
··· 71 71 templ_7745c5c3_Var1 = templ.NopComponent 72 72 } 73 73 ctx = templ.ClearChildren(ctx) 74 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 1) 74 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"px-3 py-2 bg-surface text-xs text-muted flex items-center justify-between rounded-t border-2 border-b-0 border-overlay\"><p>") 75 75 if templ_7745c5c3_Err != nil { 76 76 return templ_7745c5c3_Err 77 77 } ··· 84 84 if templ_7745c5c3_Err != nil { 85 85 return templ_7745c5c3_Err 86 86 } 87 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 2) 87 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</p><p class=\"flex gap-1.5\">") 88 88 if templ_7745c5c3_Err != nil { 89 89 return templ_7745c5c3_Err 90 90 } ··· 97 97 if templ_7745c5c3_Err != nil { 98 98 return templ_7745c5c3_Err 99 99 } 100 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 3) 100 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" <span class=\"text-muted/40\">&#8226;</span> <a class=\"hover:underline hover:text-iris flex items-center gap-1 transition\" target=\"_blank\" rel=\"noopener noreferrer\" href=\"") 101 101 if templ_7745c5c3_Err != nil { 102 102 return templ_7745c5c3_Err 103 103 } ··· 106 106 if templ_7745c5c3_Err != nil { 107 107 return templ_7745c5c3_Err 108 108 } 109 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 4) 109 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">open <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"currentColor\" class=\"size-4 -mt-px\"><path d=\"M6.22 8.72a.75.75 0 0 0 1.06 1.06l5.22-5.22v1.69a.75.75 0 0 0 1.5 0v-3.5a.75.75 0 0 0-.75-.75h-3.5a.75.75 0 0 0 0 1.5h1.69L6.22 8.72Z\"></path> <path d=\"M3.5 6.75c0-.69.56-1.25 1.25-1.25H7A.75.75 0 0 0 7 4H4.75A2.75 2.75 0 0 0 2 6.75v4.5A2.75 2.75 0 0 0 4.75 14h4.5A2.75 2.75 0 0 0 12 11.25V9a.75.75 0 0 0-1.5 0v2.25c0 .69-.56 1.25-1.25 1.25h-4.5c-.69 0-1.25-.56-1.25-1.25v-4.5Z\"></path></svg></a></p></div>") 110 110 if templ_7745c5c3_Err != nil { 111 111 return templ_7745c5c3_Err 112 112 } ··· 132 132 templ_7745c5c3_Var5 = templ.NopComponent 133 133 } 134 134 ctx = templ.ClearChildren(ctx) 135 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 5) 135 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<dl class=\"grid md:grid-cols-2 gap-4\"><div><dt class=\"mb-1 text-sm text-muted\">Posted At</dt><dd class=\"text-subtle\">") 136 136 if templ_7745c5c3_Err != nil { 137 137 return templ_7745c5c3_Err 138 138 } ··· 145 145 if templ_7745c5c3_Err != nil { 146 146 return templ_7745c5c3_Err 147 147 } 148 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 6) 148 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</dd></div><div><dt class=\"mb-1 text-sm text-muted\">Post Type</dt><dd class=\"text-subtle\">") 149 149 if templ_7745c5c3_Err != nil { 150 150 return templ_7745c5c3_Err 151 151 } ··· 158 158 if templ_7745c5c3_Err != nil { 159 159 return templ_7745c5c3_Err 160 160 } 161 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 7) 161 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</dd></div></dl>") 162 162 if templ_7745c5c3_Err != nil { 163 163 return templ_7745c5c3_Err 164 164 }
+2 -2
html/components/posts/unsupported_templ.go
··· 91 91 templ_7745c5c3_Var2 = templ.NopComponent 92 92 } 93 93 ctx = templ.ClearChildren(ctx) 94 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 1) 94 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"block p-4 bg-base overflow-x-scroll min-w-0 first:rounded-t last:rounded-b border-2 border-overlay\">") 95 95 if templ_7745c5c3_Err != nil { 96 96 return templ_7745c5c3_Err 97 97 } ··· 121 121 if templ_7745c5c3_Err != nil { 122 122 return templ_7745c5c3_Err 123 123 } 124 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 2) 124 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div>") 125 125 if templ_7745c5c3_Err != nil { 126 126 return templ_7745c5c3_Err 127 127 }
+1 -1
html/components/sidebar_templ.go
··· 26 26 templ_7745c5c3_Var1 = templ.NopComponent 27 27 } 28 28 ctx = templ.ClearChildren(ctx) 29 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 1) 29 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<aside class=\"min-w-0\"><div class=\"w-full md:sticky md:top-8\"><h1 class=\"font-extrabold text-xl\">puregarlic dot space</h1><p class=\"font-light mt-3 text-subtle italic md:text-sm\">this space is mine, it was <a class=\"underline hover:text-iris\" href=\"https://github.com/puregarlic/space\">made by me</a>!</p></div></aside>") 30 30 if templ_7745c5c3_Err != nil { 31 31 return templ_7745c5c3_Err 32 32 }
+3 -3
html/layouts/default_templ.go
··· 37 37 templ_7745c5c3_Var1 = templ.NopComponent 38 38 } 39 39 ctx = templ.ClearChildren(ctx) 40 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 1) 40 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<!doctype html><html>") 41 41 if templ_7745c5c3_Err != nil { 42 42 return templ_7745c5c3_Err 43 43 } ··· 45 45 if templ_7745c5c3_Err != nil { 46 46 return templ_7745c5c3_Err 47 47 } 48 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 2) 48 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<body class=\"px-4 py-12 md:py-20 text-text bg-base\">") 49 49 if templ_7745c5c3_Err != nil { 50 50 return templ_7745c5c3_Err 51 51 } ··· 53 53 if templ_7745c5c3_Err != nil { 54 54 return templ_7745c5c3_Err 55 55 } 56 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 3) 56 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</body></html>") 57 57 if templ_7745c5c3_Err != nil { 58 58 return templ_7745c5c3_Err 59 59 }
+4 -4
html/layouts/sidebar_templ.go
··· 37 37 templ_7745c5c3_Var1 = templ.NopComponent 38 38 } 39 39 ctx = templ.ClearChildren(ctx) 40 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 1) 40 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<!doctype html><html>") 41 41 if templ_7745c5c3_Err != nil { 42 42 return templ_7745c5c3_Err 43 43 } ··· 45 45 if templ_7745c5c3_Err != nil { 46 46 return templ_7745c5c3_Err 47 47 } 48 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 2) 48 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<body class=\"px-4 py-12 md:py-20 text-text bg-base\"><div class=\"mx-auto max-w-screen-lg grid md:grid-cols-[1fr_2fr] gap-12 gap-16\"><aside class=\"min-w-0\">") 49 49 if templ_7745c5c3_Err != nil { 50 50 return templ_7745c5c3_Err 51 51 } ··· 53 53 if templ_7745c5c3_Err != nil { 54 54 return templ_7745c5c3_Err 55 55 } 56 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 3) 56 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</aside><main class=\"min-w-0\">") 57 57 if templ_7745c5c3_Err != nil { 58 58 return templ_7745c5c3_Err 59 59 } ··· 61 61 if templ_7745c5c3_Err != nil { 62 62 return templ_7745c5c3_Err 63 63 } 64 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 4) 64 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</main></div></body></html>") 65 65 if templ_7745c5c3_Err != nil { 66 66 return templ_7745c5c3_Err 67 67 }
+24 -24
html/pages/auth_templ.go
··· 31 31 templ_7745c5c3_Var1 = templ.NopComponent 32 32 } 33 33 ctx = templ.ClearChildren(ctx) 34 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 1) 34 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<main class=\"mx-auto max-w-screen-sm\"><p class=\"text-sm font-thin italic\">authorize access to</p><h1 class=\"mb-8 text-3xl font-extrabold\">puregarlic dot space</h1><div class=\"pt-6 border border-highlightMed rounded bg-surface\">") 35 35 if templ_7745c5c3_Err != nil { 36 36 return templ_7745c5c3_Err 37 37 } 38 38 if app != nil { 39 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 2) 39 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"px-6 flex gap-6 items-center\">") 40 40 if templ_7745c5c3_Err != nil { 41 41 return templ_7745c5c3_Err 42 42 } 43 43 if len(app.Logo) > 0 { 44 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 3) 44 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<img class=\"max-w-12\" src=\"") 45 45 if templ_7745c5c3_Err != nil { 46 46 return templ_7745c5c3_Err 47 47 } ··· 54 54 if templ_7745c5c3_Err != nil { 55 55 return templ_7745c5c3_Err 56 56 } 57 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 4) 57 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">") 58 58 if templ_7745c5c3_Err != nil { 59 59 return templ_7745c5c3_Err 60 60 } 61 61 } 62 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 5) 62 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div><h2 class=\"font-bold text-lg\">") 63 63 if templ_7745c5c3_Err != nil { 64 64 return templ_7745c5c3_Err 65 65 } ··· 72 72 if templ_7745c5c3_Err != nil { 73 73 return templ_7745c5c3_Err 74 74 } 75 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 6) 75 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</h2>") 76 76 if templ_7745c5c3_Err != nil { 77 77 return templ_7745c5c3_Err 78 78 } 79 79 if len(app.Author) > 0 { 80 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 7) 80 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p class=\"text-sm font-light\">by ") 81 81 if templ_7745c5c3_Err != nil { 82 82 return templ_7745c5c3_Err 83 83 } ··· 90 90 if templ_7745c5c3_Err != nil { 91 91 return templ_7745c5c3_Err 92 92 } 93 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 8) 93 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</p>") 94 94 if templ_7745c5c3_Err != nil { 95 95 return templ_7745c5c3_Err 96 96 } 97 97 } 98 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 9) 98 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div></div>") 99 99 if templ_7745c5c3_Err != nil { 100 100 return templ_7745c5c3_Err 101 101 } 102 102 } else { 103 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 10) 103 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<h2 class=\"px-6 font-bold text-subtle\">unidentified client</h2>") 104 104 if templ_7745c5c3_Err != nil { 105 105 return templ_7745c5c3_Err 106 106 } 107 107 } 108 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 11) 108 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"mt-6 grid md:grid-cols-[max-content_1fr] *:border-highlightMed\"><h3 class=\"px-6 pt-4 pb-2 md:py-4 border-t bg-overlay md:border-r text-subtle font-bold\">Client ID</h3><p class=\"px-6 pb-4 pt-1 md:py-4 md:border-t bg-overlay min-w-0 overflow-x-scroll\">") 109 109 if templ_7745c5c3_Err != nil { 110 110 return templ_7745c5c3_Err 111 111 } ··· 118 118 if templ_7745c5c3_Err != nil { 119 119 return templ_7745c5c3_Err 120 120 } 121 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 12) 121 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</p><h3 class=\"px-6 pt-4 pb-2 md:py-4 border-t md:border-b md:border-r text-subtle font-bold\">Redirect URL</h3><p class=\"px-6 pb-4 pt-1 md:py-4 md:border-y min-w-0 overflow-x-scroll\">") 122 122 if templ_7745c5c3_Err != nil { 123 123 return templ_7745c5c3_Err 124 124 } ··· 131 131 if templ_7745c5c3_Err != nil { 132 132 return templ_7745c5c3_Err 133 133 } 134 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 13) 134 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</p><h3 class=\"px-6 pt-4 pb-2 md:py-4 border-t bg-overlay md:border-r text-subtle font-bold\">Scopes</h3><ul class=\"px-6 pb-4 pt-1 md:py-4 bg-overlay flex flex-wrap gap-3\">") 135 135 if templ_7745c5c3_Err != nil { 136 136 return templ_7745c5c3_Err 137 137 } 138 138 for _, scope := range req.Scopes { 139 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 14) 139 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<li class=\"px-2 py-1 text-sm bg-pine rounded\">") 140 140 if templ_7745c5c3_Err != nil { 141 141 return templ_7745c5c3_Err 142 142 } ··· 149 149 if templ_7745c5c3_Err != nil { 150 150 return templ_7745c5c3_Err 151 151 } 152 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 15) 152 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</li>") 153 153 if templ_7745c5c3_Err != nil { 154 154 return templ_7745c5c3_Err 155 155 } 156 156 } 157 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 16) 157 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</ul></div></div><form method=\"post\" action=\"/authorization/accept\"><input type=\"hidden\" name=\"response_type\" value=\"code\"> <input type=\"hidden\" name=\"scope\" value=\"") 158 158 if templ_7745c5c3_Err != nil { 159 159 return templ_7745c5c3_Err 160 160 } ··· 167 167 if templ_7745c5c3_Err != nil { 168 168 return templ_7745c5c3_Err 169 169 } 170 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 17) 170 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"> <input type=\"hidden\" name=\"redirect_uri\" value=\"") 171 171 if templ_7745c5c3_Err != nil { 172 172 return templ_7745c5c3_Err 173 173 } ··· 180 180 if templ_7745c5c3_Err != nil { 181 181 return templ_7745c5c3_Err 182 182 } 183 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 18) 183 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"> <input type=\"hidden\" name=\"client_id\" value=\"") 184 184 if templ_7745c5c3_Err != nil { 185 185 return templ_7745c5c3_Err 186 186 } ··· 193 193 if templ_7745c5c3_Err != nil { 194 194 return templ_7745c5c3_Err 195 195 } 196 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 19) 196 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"> <input type=\"hidden\" name=\"state\" value=\"") 197 197 if templ_7745c5c3_Err != nil { 198 198 return templ_7745c5c3_Err 199 199 } ··· 206 206 if templ_7745c5c3_Err != nil { 207 207 return templ_7745c5c3_Err 208 208 } 209 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 20) 209 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"> <input type=\"hidden\" name=\"code_challenge\" value=\"") 210 210 if templ_7745c5c3_Err != nil { 211 211 return templ_7745c5c3_Err 212 212 } ··· 219 219 if templ_7745c5c3_Err != nil { 220 220 return templ_7745c5c3_Err 221 221 } 222 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 21) 222 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"> <input type=\"hidden\" name=\"code_challenge_method\" value=\"") 223 223 if templ_7745c5c3_Err != nil { 224 224 return templ_7745c5c3_Err 225 225 } ··· 232 232 if templ_7745c5c3_Err != nil { 233 233 return templ_7745c5c3_Err 234 234 } 235 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 22) 235 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"><input type=\"hidden\" name=\"nonce_id\" value=\"") 236 236 if templ_7745c5c3_Err != nil { 237 237 return templ_7745c5c3_Err 238 238 } ··· 245 245 if templ_7745c5c3_Err != nil { 246 246 return templ_7745c5c3_Err 247 247 } 248 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 23) 248 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"> <input type=\"hidden\" name=\"nonce\" value=\"") 249 249 if templ_7745c5c3_Err != nil { 250 250 return templ_7745c5c3_Err 251 251 } ··· 258 258 if templ_7745c5c3_Err != nil { 259 259 return templ_7745c5c3_Err 260 260 } 261 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 24) 261 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"> <button class=\"mt-8 px-3 py-2 flex items-center justify-center gap-2 bg-surface border border-highlightMed text-sm font-bold transition rounded hover:bg-foam hover:text-surface\" id=\"submit\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"currentColor\" class=\"size-4\"><path fill-rule=\"evenodd\" d=\"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm3.844-8.791a.75.75 0 0 0-1.188-.918l-3.7 4.79-1.649-1.833a.75.75 0 1 0-1.114 1.004l2.25 2.5a.75.75 0 0 0 1.15-.043l4.25-5.5Z\" clip-rule=\"evenodd\"></path></svg> Authorize</button></form></main>") 262 262 if templ_7745c5c3_Err != nil { 263 263 return templ_7745c5c3_Err 264 264 }
+5 -5
html/pages/home_templ.go
··· 31 31 templ_7745c5c3_Var1 = templ.NopComponent 32 32 } 33 33 ctx = templ.ClearChildren(ctx) 34 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 1) 34 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<ul class=\"flex flex-col gap-6\">") 35 35 if templ_7745c5c3_Err != nil { 36 36 return templ_7745c5c3_Err 37 37 } 38 38 if len(posts) > 0 { 39 39 for _, post := range posts { 40 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 2) 40 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<li class=\"flex flex-col\">") 41 41 if templ_7745c5c3_Err != nil { 42 42 return templ_7745c5c3_Err 43 43 } ··· 49 49 if templ_7745c5c3_Err != nil { 50 50 return templ_7745c5c3_Err 51 51 } 52 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 3) 52 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</li>") 53 53 if templ_7745c5c3_Err != nil { 54 54 return templ_7745c5c3_Err 55 55 } 56 56 } 57 57 } else { 58 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 4) 58 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<li class=\"text-muted bg-surface px-4 py-8 text-center border border-overlay\">intention-rich, content-poor</li>") 59 59 if templ_7745c5c3_Err != nil { 60 60 return templ_7745c5c3_Err 61 61 } 62 62 } 63 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 5) 63 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</ul>") 64 64 if templ_7745c5c3_Err != nil { 65 65 return templ_7745c5c3_Err 66 66 }
+3 -3
html/pages/post_templ.go
··· 31 31 templ_7745c5c3_Var1 = templ.NopComponent 32 32 } 33 33 ctx = templ.ClearChildren(ctx) 34 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 1) 34 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"flex flex-col gap-8\"><a href=\"/\" class=\"text-sm text-muted flex items-center gap-1\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"currentColor\" class=\"size-4\"><path fill-rule=\"evenodd\" d=\"M14 8a.75.75 0 0 1-.75.75H4.56l1.22 1.22a.75.75 0 1 1-1.06 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 1.06L4.56 7.25h8.69A.75.75 0 0 1 14 8Z\" clip-rule=\"evenodd\"></path></svg> back to home</a><div>") 35 35 if templ_7745c5c3_Err != nil { 36 36 return templ_7745c5c3_Err 37 37 } ··· 39 39 if templ_7745c5c3_Err != nil { 40 40 return templ_7745c5c3_Err 41 41 } 42 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 2) 42 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div>") 43 43 if templ_7745c5c3_Err != nil { 44 44 return templ_7745c5c3_Err 45 45 } ··· 47 47 if templ_7745c5c3_Err != nil { 48 48 return templ_7745c5c3_Err 49 49 } 50 - templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 3) 50 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"py-12 flex flex-col gap-1 items-center text-muted text-xs font-light\">interactions not implemented yet <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"currentColor\" class=\"size-4\"><path fill-rule=\"evenodd\" d=\"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0ZM6 8c.552 0 1-.672 1-1.5S6.552 5 6 5s-1 .672-1 1.5S5.448 8 6 8Zm5-1.5c0 .828-.448 1.5-1 1.5s-1-.672-1-1.5S9.448 5 10 5s1 .672 1 1.5Zm-6.005 5.805a.75.75 0 0 0 1.06 0 2.75 2.75 0 0 1 3.89 0 .75.75 0 0 0 1.06-1.06 4.25 4.25 0 0 0-6.01 0 .75.75 0 0 0 0 1.06Z\" clip-rule=\"evenodd\"></path></svg></div></div>") 51 51 if templ_7745c5c3_Err != nil { 52 52 return templ_7745c5c3_Err 53 53 }