11import { getAuthTokens , getGroups , getRoutes , getCalendarUsers } from "@/src/db" ;
2- import "./config .css" ;
2+ import "./slashwork .css" ;
33
44export const dynamic = "force-dynamic" ;
55
6- export default async function ConfigPage ( ) {
6+ export default async function SlashworkPage ( ) {
77 const [ authTokens , groups , routes , calendarUsers ] = await Promise . all ( [
88 getAuthTokens ( ) ,
99 getGroups ( ) ,
@@ -12,23 +12,23 @@ export default async function ConfigPage() {
1212 ] ) ;
1313
1414 return (
15- < div className = "cfg -page" >
16- < main className = "cfg -container" >
17- < div className = "cfg -header" >
18- < h1 className = "cfg -title" >
19- < span > skiphooks</ span > / config
15+ < div className = "sw -page" >
16+ < main className = "sw -container" >
17+ < div className = "sw -header" >
18+ < h1 className = "sw -title" >
19+ < span > skiphooks</ span > / slashwork
2020 </ h1 >
21- < span className = "cfg -subtitle" > database state</ span >
21+ < span className = "sw -subtitle" > database state</ span >
2222 </ div >
2323
24- < div className = "cfg -grid" >
24+ < div className = "sw -grid" >
2525 { /* Auth Tokens */ }
26- < div className = "cfg -section" >
27- < div className = "cfg -section-header" >
28- < h2 className = "cfg -section-title" > Auth Tokens</ h2 >
29- < span className = "cfg -count" > { authTokens . length } </ span >
26+ < div className = "sw -section" >
27+ < div className = "sw -section-header" >
28+ < h2 className = "sw -section-title" > Auth Tokens</ h2 >
29+ < span className = "sw -count" > { authTokens . length } </ span >
3030 </ div >
31- < table className = "cfg -table" >
31+ < table className = "sw -table" >
3232 < thead >
3333 < tr >
3434 < th > Name</ th >
@@ -38,15 +38,15 @@ export default async function ConfigPage() {
3838 < tbody >
3939 { authTokens . length === 0 ? (
4040 < tr >
41- < td colSpan = { 2 } className = "cfg -empty" >
41+ < td colSpan = { 2 } className = "sw -empty" >
4242 No auth tokens configured
4343 </ td >
4444 </ tr >
4545 ) : (
4646 authTokens . map ( ( t ) => (
4747 < tr key = { t . name } >
4848 < td > { t . name } </ td >
49- < td className = "cfg -token" > { t . tokenPreview } </ td >
49+ < td className = "sw -token" > { t . tokenPreview } </ td >
5050 </ tr >
5151 ) )
5252 ) }
@@ -55,12 +55,12 @@ export default async function ConfigPage() {
5555 </ div >
5656
5757 { /* Groups */ }
58- < div className = "cfg -section" >
59- < div className = "cfg -section-header" >
60- < h2 className = "cfg -section-title" > Groups</ h2 >
61- < span className = "cfg -count" > { groups . length } </ span >
58+ < div className = "sw -section" >
59+ < div className = "sw -section-header" >
60+ < h2 className = "sw -section-title" > Groups</ h2 >
61+ < span className = "sw -count" > { groups . length } </ span >
6262 </ div >
63- < table className = "cfg -table" >
63+ < table className = "sw -table" >
6464 < thead >
6565 < tr >
6666 < th > Name</ th >
@@ -71,15 +71,15 @@ export default async function ConfigPage() {
7171 < tbody >
7272 { groups . length === 0 ? (
7373 < tr >
74- < td colSpan = { 3 } className = "cfg -empty" >
74+ < td colSpan = { 3 } className = "sw -empty" >
7575 No groups configured
7676 </ td >
7777 </ tr >
7878 ) : (
7979 groups . map ( ( g ) => (
8080 < tr key = { g . name } >
8181 < td > { g . name } </ td >
82- < td className = "cfg -mono" > { g . slashworkId } </ td >
82+ < td className = "sw -mono" > { g . slashworkId } </ td >
8383 < td > { g . authToken } </ td >
8484 </ tr >
8585 ) )
@@ -89,12 +89,12 @@ export default async function ConfigPage() {
8989 </ div >
9090
9191 { /* Routes */ }
92- < div className = "cfg -section cfg -section--wide" >
93- < div className = "cfg -section-header" >
94- < h2 className = "cfg -section-title" > Routes</ h2 >
95- < span className = "cfg -count" > { routes . length } </ span >
92+ < div className = "sw -section sw -section--wide" >
93+ < div className = "sw -section-header" >
94+ < h2 className = "sw -section-title" > Routes</ h2 >
95+ < span className = "sw -count" > { routes . length } </ span >
9696 </ div >
97- < table className = "cfg -table" >
97+ < table className = "sw -table" >
9898 < thead >
9999 < tr >
100100 < th > Endpoint</ th >
@@ -106,29 +106,29 @@ export default async function ConfigPage() {
106106 < tbody >
107107 { routes . length === 0 ? (
108108 < tr >
109- < td colSpan = { 4 } className = "cfg -empty" >
109+ < td colSpan = { 4 } className = "sw -empty" >
110110 No routes configured
111111 </ td >
112112 </ tr >
113113 ) : (
114114 routes . map ( ( r ) => (
115115 < tr key = { r . name } >
116- < td className = "cfg -path" > /github/{ r . name } </ td >
116+ < td className = "sw -path" > /github/{ r . name } </ td >
117117 < td >
118118 { r . groupName ? (
119- < span className = "cfg -badge cfg -badge--group" >
119+ < span className = "sw -badge sw -badge--group" >
120120 group
121121 </ span >
122122 ) : (
123- < span className = "cfg -badge cfg -badge--stream" >
123+ < span className = "sw -badge sw -badge--stream" >
124124 stream
125125 </ span >
126126 ) }
127127 </ td >
128- < td className = "cfg -mono" > { r . groupName ?? r . streamId } </ td >
128+ < td className = "sw -mono" > { r . groupName ?? r . streamId } </ td >
129129 < td >
130130 { r . groupName ? (
131- < span className = "cfg -muted" > via group</ span >
131+ < span className = "sw -muted" > via group</ span >
132132 ) : (
133133 r . authToken
134134 ) }
@@ -142,12 +142,12 @@ export default async function ConfigPage() {
142142
143143 { /* Calendar Users */ }
144144 { calendarUsers . length > 0 && (
145- < div className = "cfg -section cfg -section--wide" >
146- < div className = "cfg -section-header" >
147- < h2 className = "cfg -section-title" > Calendar Users</ h2 >
148- < span className = "cfg -count" > { calendarUsers . length } </ span >
145+ < div className = "sw -section sw -section--wide" >
146+ < div className = "sw -section-header" >
147+ < h2 className = "sw -section-title" > Calendar Users</ h2 >
148+ < span className = "sw -count" > { calendarUsers . length } </ span >
149149 </ div >
150- < table className = "cfg -table" >
150+ < table className = "sw -table" >
151151 < thead >
152152 < tr >
153153 < th > Name</ th >
@@ -159,8 +159,8 @@ export default async function ConfigPage() {
159159 { calendarUsers . map ( ( u ) => (
160160 < tr key = { u . name } >
161161 < td > { u . name } </ td >
162- < td className = "cfg -mono" > { u . calendarId } </ td >
163- < td className = "cfg -mono" > { u . targetId } </ td >
162+ < td className = "sw -mono" > { u . calendarId } </ td >
163+ < td className = "sw -mono" > { u . targetId } </ td >
164164 </ tr >
165165 ) ) }
166166 </ tbody >
0 commit comments