Skip to content

Commit 999377d

Browse files
committed
feat: 🚀 there you go mister
1 parent 667abcf commit 999377d

File tree

15 files changed

+126
-47
lines changed

15 files changed

+126
-47
lines changed

apps/daemon/src/help-message.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
if (process.argv.includes("--help") || process.argv.includes("-h") || process.argv.includes("help")) {
1+
if (
2+
process.argv.includes("--help") ||
3+
process.argv.includes("-h") ||
4+
process.argv.includes("help")
5+
) {
26
console.log(`
3-
✨ Stardust daemon by spaceness
7+
✨ Stardust daemon by aetherra
48
Options
59
--config: path to a stardustd config file. Defaults to [executable path]/config.yml or (HOME || XDG_CONFIG_HOME)/.config/stardustd.yml
610
`);

apps/daemon/src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const app = new Elysia()
1414
.get("/", async (c) => {
1515
return {
1616
message:
17-
"✨ Stardust daemon by spaceness. \nSource tree: https://github.com/spaceness/stardust/tree/rewrite/apps/daemon",
17+
"✨ Stardust daemon by aetherra. \nSource tree: https://github.com/aetherra/stardust/tree/rewrite/apps/daemon",
1818
success: true,
1919
authenticated: (await authCheck(c))?.success !== false,
2020
};
@@ -33,7 +33,9 @@ export const app = new Elysia()
3333
mem: (((os.totalmem() - os.freemem()) / os.totalmem()) * 100).toFixed(2),
3434
os: `${os.type()} ${os.release()}`,
3535
version: pkgJson.version,
36-
sessions: (await docker.listContainers()).filter((s) => s.HostConfig.NetworkMode === config.docker.network).length,
36+
sessions: (await docker.listContainers()).filter(
37+
(s) => s.HostConfig.NetworkMode === config.docker.network,
38+
).length,
3739
}))
3840
.use(sessionHandler)
3941
.use(workspaceHandler)

apps/daemon/src/lib/auth-token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default async function generateToken() {
1818
} satisfies Config);
1919
writer.write(`${newConfig}\n`);
2020
writer.write(
21-
"# yaml-language-server: $schema=https://raw.githubusercontent.com/spaceness/stardust/refs/heads/rewrite/apps/daemon/schema.json",
21+
"# yaml-language-server: $schema=https://raw.githubusercontent.com/aetherra/stardust/refs/heads/rewrite/apps/daemon/schema.json",
2222
);
2323
writer.end();
2424
console.log("✨ Stardust: Token generated: %s", token);

apps/daemon/src/stardustd.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<plist version="1.0">
44
<dict>
55
<key>Label</key>
6-
<string>org.spaceness.stardustd.plist</string>
6+
<string>org.aetherra.stardustd.plist</string>
77
<key>RunAtLoad</key>
88
<false/>
99
<key>KeepAlive</key>

apps/web/src/components/navigation.tsx

Lines changed: 76 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
import packageJson from "@/../package.json";
33
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
44
import { Button } from "@/components/ui/button";
5-
import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog";
5+
import {
6+
Dialog,
7+
DialogContent,
8+
DialogFooter,
9+
DialogHeader,
10+
DialogTitle,
11+
} from "@/components/ui/dialog";
612
import {
713
DropdownMenu,
814
DropdownMenuContent,
@@ -24,10 +30,24 @@ import {
2430
NavigationMenuList,
2531
navigationMenuTriggerStyle,
2632
} from "@/components/ui/navigation-menu";
27-
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
33+
import {
34+
Tooltip,
35+
TooltipContent,
36+
TooltipTrigger,
37+
} from "@/components/ui/tooltip";
2838
import { cn } from "@/lib/utils";
2939
import type { SessionSchema } from "@stardust/common/auth";
30-
import { Book, ComputerIcon, Globe, Info, Key, LogOut, Monitor, Settings, SwatchBook } from "lucide-react";
40+
import {
41+
Book,
42+
ComputerIcon,
43+
Globe,
44+
Info,
45+
Key,
46+
LogOut,
47+
Monitor,
48+
Settings,
49+
SwatchBook,
50+
} from "lucide-react";
3151
import type { Route } from "next";
3252
import { useTheme } from "next-themes";
3353
import Link from "next/link";
@@ -67,14 +87,21 @@ export default function Navigation({
6787
<nav className="flex h-16 min-w-full items-center justify-between px-4 border-b">
6888
<div className="flex items-center gap-2">
6989
<StardustIcon className="size-8" />
70-
<span className="text-2xl font-bold md:block hidden mr-2">Stardust</span>
90+
<span className="text-2xl font-bold md:block hidden mr-2">
91+
Stardust
92+
</span>
7193
</div>
7294
<div className="flex justify-end gap-2">
7395
<NavigationMenu>
7496
<NavigationMenuList>
7597
<NavigationMenuItem>
7698
<Link href="/" legacyBehavior passHref>
77-
<NavigationMenuLink className={cn(navigationMenuTriggerStyle(), pathname === "/" && "bg-muted")}>
99+
<NavigationMenuLink
100+
className={cn(
101+
navigationMenuTriggerStyle(),
102+
pathname === "/" && "bg-muted",
103+
)}
104+
>
78105
<span className="mr-2 flex size-4 items-center justify-center">
79106
<ComputerIcon />
80107
</span>{" "}
@@ -88,9 +115,15 @@ export default function Navigation({
88115
<NavigationMenuItem key={item.href}>
89116
<Link href={item.href} legacyBehavior passHref>
90117
<NavigationMenuLink
91-
className={cn(navigationMenuTriggerStyle(), pathname.startsWith(item.href) && "bg-muted")}
118+
className={cn(
119+
navigationMenuTriggerStyle(),
120+
pathname.startsWith(item.href) && "bg-muted",
121+
)}
92122
>
93-
<span className="mr-2 flex size-4 items-center justify-center">{item.icon}</span> {item.label}
123+
<span className="mr-2 flex size-4 items-center justify-center">
124+
{item.icon}
125+
</span>{" "}
126+
{item.label}
94127
</NavigationMenuLink>
95128
</Link>
96129
</NavigationMenuItem>
@@ -108,18 +141,20 @@ export default function Navigation({
108141
</DialogTitle>
109142
</DialogHeader>
110143
<div className="flex flex-col items-start justify-start gap-2 text-foreground text-sm">
111-
Stardust is the platform for streaming isolated desktop containers.
144+
Stardust is the platform for streaming isolated desktop
145+
containers.
112146
<section>
113147
This version of Stardust is from commit{" "}
114148
<a
115-
href={`https://github.com/spaceness/stardust/commit/${process.env.GIT_COMMIT}`}
149+
href={`https://github.com/aetherra/stardust/commit/${process.env.GIT_COMMIT}`}
116150
className="inline font-medium text-primary underline-offset-4 hover:underline"
117151
target="_blank"
118152
rel="noreferrer noopener"
119153
>
120154
{process.env.GIT_COMMIT?.slice(0, 7)}
121155
</a>
122-
, built on {new Date(Number(process.env.BUILD_DATE)).toLocaleString()}
156+
, built on{" "}
157+
{new Date(Number(process.env.BUILD_DATE)).toLocaleString()}
123158
</section>
124159
<section>
125160
Stardust is licensed under the{" "}
@@ -131,13 +166,17 @@ export default function Navigation({
131166
>
132167
GNU Affero General Public License v3.0 (AGPL-3.0)
133168
</a>
134-
. Copyleft 2024 Spaceness.
169+
. Copyleft 2024 aetherra.
135170
</section>
136171
<DialogFooter>
137172
<Tooltip>
138173
<TooltipTrigger asChild>
139174
<Button asChild variant="outline" size="icon">
140-
<a href="https://github.com/spaceness/stardust" target="_blank" rel="noreferrer noopener">
175+
<a
176+
href="https://github.com/aetherra/stardust"
177+
target="_blank"
178+
rel="noreferrer noopener"
179+
>
141180
<GitHubIcon className="size-5" />
142181
</a>
143182
</Button>
@@ -147,7 +186,11 @@ export default function Navigation({
147186
<Tooltip>
148187
<TooltipTrigger asChild>
149188
<Button variant="outline" size="icon" asChild>
150-
<a href="https://stardust.spaceness.team/docs" target="_blank" rel="noreferrer noopener">
189+
<a
190+
href="https://stardust.aetherra.team/docs"
191+
target="_blank"
192+
rel="noreferrer noopener"
193+
>
151194
<Book className="size-5" />
152195
</a>
153196
</Button>
@@ -157,12 +200,16 @@ export default function Navigation({
157200
<Tooltip>
158201
<TooltipTrigger asChild>
159202
<Button variant="outline" size="icon" asChild>
160-
<a href="https://spaceness.team/" target="_blank" rel="noreferrer noopener">
203+
<a
204+
href="https://aetherra.team/"
205+
target="_blank"
206+
rel="noreferrer noopener"
207+
>
161208
<Globe className="size-5" />
162209
</a>
163210
</Button>
164211
</TooltipTrigger>
165-
<TooltipContent>Spaceness</TooltipContent>
212+
<TooltipContent>aetherra</TooltipContent>
166213
</Tooltip>
167214
</DialogFooter>
168215
</div>
@@ -171,8 +218,13 @@ export default function Navigation({
171218
<DropdownMenu>
172219
<DropdownMenuTrigger>
173220
<Avatar>
174-
<AvatarImage src={image || ""} alt={name || email || "Profile Picture"} />
175-
<AvatarFallback>{name ? name?.charAt(0) + name?.charAt(1) : email?.charAt(0)}</AvatarFallback>
221+
<AvatarImage
222+
src={image || ""}
223+
alt={name || email || "Profile Picture"}
224+
/>
225+
<AvatarFallback>
226+
{name ? name?.charAt(0) + name?.charAt(1) : email?.charAt(0)}
227+
</AvatarFallback>
176228
</Avatar>
177229
</DropdownMenuTrigger>
178230
<DropdownMenuContent className="mr-4 mt-4 w-48">
@@ -185,7 +237,9 @@ export default function Navigation({
185237
</span>
186238
) : null}
187239
</span>
188-
<p className="text-xs font-light text-muted-foreground">{email}</p>
240+
<p className="text-xs font-light text-muted-foreground">
241+
{email}
242+
</p>
189243
</DropdownMenuLabel>
190244
<DropdownMenuSeparator />
191245
<DropdownMenuSub>
@@ -195,7 +249,10 @@ export default function Navigation({
195249
</DropdownMenuSubTrigger>
196250
<DropdownMenuPortal>
197251
<DropdownMenuSubContent>
198-
<DropdownMenuRadioGroup value={currentTheme} onValueChange={setTheme}>
252+
<DropdownMenuRadioGroup
253+
value={currentTheme}
254+
onValueChange={setTheme}
255+
>
199256
{themes.map((theme) => (
200257
<DropdownMenuRadioItem key={theme} value={theme}>
201258
{theme.charAt(0).toUpperCase() + theme.slice(1)}

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ prompts() {
5050
}
5151

5252
main() {
53-
echo "✨ Welcome to Stardust by spaceness"
53+
echo "✨ Welcome to Stardust by aetherra"
5454
root_check
5555
darwin_check
5656
prompts

packages/db/seed.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,42 @@ import "@stardust/config/load-config";
22
import db, { workspace } from "./index";
33
const workspaces = [
44
{
5-
dockerImage: "ghcr.io/spaceness/debian",
5+
dockerImage: "ghcr.io/aetherra/debian",
66
friendlyName: "Debian",
77
category: ["Desktop"],
88
icon: "https://www.debian.org/logos/openlogo-nd.svg",
99
},
1010
{
11-
dockerImage: "ghcr.io/spaceness/chromium",
11+
dockerImage: "ghcr.io/aetherra/chromium",
1212
friendlyName: "Chromium",
1313
category: ["Browser"],
1414
icon: "https://www.chromium.org/_assets/icon-chromium-96.png",
1515
},
1616
{
17-
dockerImage: "ghcr.io/spaceness/zen",
17+
dockerImage: "ghcr.io/aetherra/zen",
1818
friendlyName: "Zen",
1919
category: ["Browser"],
2020
icon: "https://raw.githubusercontent.com/zen-browser/.github/refs/heads/main/profile/logo-black.png",
2121
},
2222
{
23-
dockerImage: "ghcr.io/spaceness/firefox",
23+
dockerImage: "ghcr.io/aetherra/firefox",
2424
friendlyName: "Firefox",
2525
category: ["Browser"],
2626
icon: "https://www.mozilla.org/media/protocol/img/logos/firefox/browser/logo.eb1324e44442.svg",
2727
},
2828
// {
29-
// dockerImage: "ghcr.io/spaceness/vscode",
29+
// dockerImage: "ghcr.io/aetherra/vscode",
3030
// friendlyName: "VSCode",
3131
// category: ["Development"],
3232
// icon: "https://code.visualstudio.com/assets/apple-touch-icon.png",
3333
// },
3434
];
35-
const insertion = await db.insert(workspace).values(workspaces).onConflictDoNothing().returning();
36-
console.log(`✨Stardust: Seeded ${insertion.map((i) => i.dockerImage).join(", ") || "no images"}`);
35+
const insertion = await db
36+
.insert(workspace)
37+
.values(workspaces)
38+
.onConflictDoNothing()
39+
.returning();
40+
console.log(
41+
`✨Stardust: Seeded ${insertion.map((i) => i.dockerImage).join(", ") || "no images"}`,
42+
);
3743
process.exit(0);

workspaces/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
These are the Docker images that are used for Stardust Workspaces. They have a VNC server running, along with a PulseAudio server for audio, and a simple HTTP server for file transfers.
44

5-
More info in the [Stardust Workspaces Documentation](https://stardust.spaceness.team/docs/development/workspaces)
5+
More info in the [Stardust Workspaces Documentation](https://stardust.aetherra.team/docs/development/workspaces)

workspaces/base.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM debian:bookworm
2-
LABEL org.opencontainers.image.source=https://github.com/spaceness/stardust
2+
LABEL org.opencontainers.image.source=https://github.com/aetherra/stardust
33
WORKDIR /opt/stardust
44
ENV USER=stardust
55
ENV PNPM_HOME="/home/stardust/.local/share/pnpm"

workspaces/build.js

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,24 @@ function buildBase() {
3636
multiPlatformBuild ? "--platform" : "",
3737
multiPlatformBuild ? "linux/amd64,linux/arm64" : "",
3838
"--tag",
39-
"ghcr.io/spaceness/debian-base",
39+
"ghcr.io/aetherra/debian-base",
4040
],
4141
{ stdio: "inherit", shell: true },
4242
);
4343
baseProcess.on("close", (code) => {
4444
if (code === 0) {
4545
resolve(0);
4646
} else {
47-
console.error(`✨ Stardust: Failed to build debian base with code ${code}`);
47+
console.error(
48+
`✨ Stardust: Failed to build debian base with code ${code}`,
49+
);
4850
reject(new Error("Build failed for debian base"));
4951
}
5052
});
5153
baseProcess.on("error", (err) => {
52-
console.error(`✨ Stardust: Error while building debian base: ${err.message}`);
54+
console.error(
55+
`✨ Stardust: Error while building debian base: ${err.message}`,
56+
);
5357
reject(err);
5458
});
5559
});
@@ -60,7 +64,9 @@ function buildImage(image) {
6064
console.log(`✨ Stardust: Building ${image}...`);
6165
console.log(`Arguments: ${argv}`);
6266
const multiPlatformBuild = flags.includes("--multi-platform");
63-
const platforms = x64Only.includes(image) ? "linux/amd64" : "linux/amd64,linux/arm64";
67+
const platforms = x64Only.includes(image)
68+
? "linux/amd64"
69+
: "linux/amd64,linux/arm64";
6470
const process = spawn(
6571
"docker",
6672
[
@@ -74,7 +80,7 @@ function buildImage(image) {
7480
multiPlatformBuild ? "--platform" : "",
7581
multiPlatformBuild ? platforms : "",
7682
"--tag",
77-
`ghcr.io/spaceness/${image}`,
83+
`ghcr.io/aetherra/${image}`,
7884
],
7985
{ stdio: ["inherit", "pipe", "pipe"], shell: true },
8086
);
@@ -90,13 +96,17 @@ function buildImage(image) {
9096
if (code === 0) {
9197
resolve(0);
9298
} else {
93-
console.error(`✨ Stardust: Failed to build ${image} with code ${code}`);
99+
console.error(
100+
`✨ Stardust: Failed to build ${image} with code ${code}`,
101+
);
94102
reject(new Error(`Build failed for ${image}`));
95103
}
96104
});
97105

98106
process.on("error", (err) => {
99-
console.error(`✨ Stardust: Error while building ${image}: ${err.message}`);
107+
console.error(
108+
`✨ Stardust: Error while building ${image}: ${err.message}`,
109+
);
100110
reject(err);
101111
});
102112
});

0 commit comments

Comments
 (0)