tangled
alpha
login
or
join now
t1c.dev
/
rocksky
forked from
rocksky.app/rocksky
2
fork
atom
A decentralized music tracking and discovery platform built on AT Protocol 🎵
2
fork
atom
overview
issues
pulls
pipelines
[web] clean commented codes
tsiry-sandratraina.com
8 months ago
bb78ac5b
c59ed955
-43
1 changed file
expand all
collapse all
unified
split
apps
web
src
layouts
Main.tsx
-43
apps/web/src/layouts/Main.tsx
···
49
49
text-decoration: underline;
50
50
}
51
51
`;
52
52
-
/*
53
53
-
const Text = styled.span`
54
54
-
color: #ff2876;
55
55
-
font-size: 13px;
56
56
-
cursor: pointer;
57
57
-
58
58
-
&:hover {
59
59
-
text-decoration: underline;
60
60
-
}
61
61
-
*/
62
52
63
53
export type MainProps = {
64
54
children: React.ReactNode;
···
119
109
return;
120
110
}
121
111
122
122
-
/* const response = await fetch(`${API_URL}/login`, {
123
123
-
method: "POST",
124
124
-
headers: {
125
125
-
"Content-Type": "application/json",
126
126
-
},
127
127
-
body: JSON.stringify({ handle }),
128
128
-
});
129
129
-
130
130
-
const redirectUrl = await response.text();
131
131
-
if (redirectUrl?.startsWith("Invalid")) {
132
132
-
toaster.negative("Invalid Bluesky handle", {});
133
133
-
return;
134
134
-
}*/
135
135
-
136
136
-
// window.location.href = `${API_URL}/login?handle=${handle}`;
137
137
-
138
112
if (API_URL.includes("localhost")) {
139
113
window.location.href = `${API_URL}/login?handle=${handle}`;
140
114
return;
···
142
116
143
117
window.location.href = `https://rocksky.pages.dev/loading?handle=${handle}`;
144
118
};
145
145
-
146
146
-
/*
147
147
-
const displaySurvey = () => {
148
148
-
Object.keys(localStorage)
149
149
-
.filter((key) => key.startsWith("seenSurvey"))
150
150
-
.reverse()
151
151
-
.forEach((key) => localStorage.removeItem(key));
152
152
-
};
153
153
-
*/
154
119
155
120
return (
156
121
<Container className="bg-[var(--color-background)] text-[var(--color-text)]">
···
288
253
>
289
254
API Docs
290
255
</Link>
291
291
-
{/*
292
292
-
<Text
293
293
-
className="mr-[10px] !text-[var(--color-primary)]"
294
294
-
onClick={displaySurvey}
295
295
-
>
296
296
-
Feedback
297
297
-
</Text>
298
298
-
*/}
299
256
300
257
<Link
301
258
href="https://discord.gg/EVcBy2fVa3"