From dc082b0ddffd68e7e3bf0b420f98b5c96225dac6 Mon Sep 17 00:00:00 2001 From: rhpidfyre Date: Sat, 22 Feb 2025 15:40:33 -0500 Subject: [PATCH] move components/client to rt (runtime) directory --- src/components/button.astro | 25 ---------- src/components/footer.astro | 46 ------------------- src/components/header.astro | 28 ----------- src/components/metas.astro | 3 -- src/components/terminal/motd.astro | 21 --------- src/index.html | 2 +- .../client => rt}/elements/create.ts | 0 .../client => rt}/elements/prompt.ts | 0 .../client => rt}/elements/stdout.ts | 0 src/{components/client => rt}/keys.ts | 0 src/{components/client => rt}/shell/color.ts | 0 .../shell/command/builtin/cat.ts | 0 .../client => rt}/shell/command/builtin/cd.ts | 0 .../shell/command/builtin/clear.ts | 0 .../shell/command/builtin/history.ts | 0 .../client => rt}/shell/command/builtin/ls.ts | 0 .../shell/command/builtin/pwd.ts | 0 .../client => rt}/shell/command/command.ts | 0 .../client => rt}/shell/command/list.ts | 0 .../client => rt}/shell/command/parse.ts | 0 .../client => rt}/shell/command/subcommand.ts | 0 src/{components/client => rt}/shell/fs/fn.ts | 0 src/{components/client => rt}/shell/fs/fs.ts | 0 .../client => rt}/shell/history.ts | 0 src/{components/client => rt}/terminal.ts | 0 25 files changed, 1 insertion(+), 124 deletions(-) delete mode 100644 src/components/button.astro delete mode 100644 src/components/footer.astro delete mode 100644 src/components/header.astro delete mode 100644 src/components/metas.astro delete mode 100644 src/components/terminal/motd.astro rename src/{components/client => rt}/elements/create.ts (100%) rename src/{components/client => rt}/elements/prompt.ts (100%) rename src/{components/client => rt}/elements/stdout.ts (100%) rename src/{components/client => rt}/keys.ts (100%) rename src/{components/client => rt}/shell/color.ts (100%) rename src/{components/client => rt}/shell/command/builtin/cat.ts (100%) rename src/{components/client => rt}/shell/command/builtin/cd.ts (100%) rename src/{components/client => rt}/shell/command/builtin/clear.ts (100%) rename src/{components/client => rt}/shell/command/builtin/history.ts (100%) rename src/{components/client => rt}/shell/command/builtin/ls.ts (100%) rename src/{components/client => rt}/shell/command/builtin/pwd.ts (100%) rename src/{components/client => rt}/shell/command/command.ts (100%) rename src/{components/client => rt}/shell/command/list.ts (100%) rename src/{components/client => rt}/shell/command/parse.ts (100%) rename src/{components/client => rt}/shell/command/subcommand.ts (100%) rename src/{components/client => rt}/shell/fs/fn.ts (100%) rename src/{components/client => rt}/shell/fs/fs.ts (100%) rename src/{components/client => rt}/shell/history.ts (100%) rename src/{components/client => rt}/terminal.ts (100%) diff --git a/src/components/button.astro b/src/components/button.astro deleted file mode 100644 index ca2ddd4..0000000 --- a/src/components/button.astro +++ /dev/null @@ -1,25 +0,0 @@ ---- -interface Props { - href: string, - display: string, - color?: string -} -const {href, display, color = "transparent"} = Astro.props ---- - - - - \ No newline at end of file diff --git a/src/components/footer.astro b/src/components/footer.astro deleted file mode 100644 index bff8e6a..0000000 --- a/src/components/footer.astro +++ /dev/null @@ -1,46 +0,0 @@ ---- ---- - - - - \ No newline at end of file diff --git a/src/components/header.astro b/src/components/header.astro deleted file mode 100644 index c02ac3c..0000000 --- a/src/components/header.astro +++ /dev/null @@ -1,28 +0,0 @@ ---- -import Button from './button.astro' -import { Links } from '../ts/links'; ---- - -
-
- - \ No newline at end of file diff --git a/src/components/metas.astro b/src/components/metas.astro deleted file mode 100644 index 75cdb78..0000000 --- a/src/components/metas.astro +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/src/components/terminal/motd.astro b/src/components/terminal/motd.astro deleted file mode 100644 index 3890daa..0000000 --- a/src/components/terminal/motd.astro +++ /dev/null @@ -1,21 +0,0 @@ ---- -import { Links } from "../../ts/links" ---- - -

Welcome to rhpidfyre.io!

-
-

This is a personal website by rhpidfyre / Brandon.

-

You can find my services here or learn about me.

-
-

You can also contribute or view the source code of my website via the links:

-

{"<"}{Links.RepoGitea}{">."}

-

{"<"}{Links.RepoGithub}{">."}

-
-

You can get started with the command: help

-
- \ No newline at end of file diff --git a/src/index.html b/src/index.html index 8bdf6ae..5516bb2 100644 --- a/src/index.html +++ b/src/index.html @@ -8,7 +8,7 @@ - +
diff --git a/src/components/client/elements/create.ts b/src/rt/elements/create.ts similarity index 100% rename from src/components/client/elements/create.ts rename to src/rt/elements/create.ts diff --git a/src/components/client/elements/prompt.ts b/src/rt/elements/prompt.ts similarity index 100% rename from src/components/client/elements/prompt.ts rename to src/rt/elements/prompt.ts diff --git a/src/components/client/elements/stdout.ts b/src/rt/elements/stdout.ts similarity index 100% rename from src/components/client/elements/stdout.ts rename to src/rt/elements/stdout.ts diff --git a/src/components/client/keys.ts b/src/rt/keys.ts similarity index 100% rename from src/components/client/keys.ts rename to src/rt/keys.ts diff --git a/src/components/client/shell/color.ts b/src/rt/shell/color.ts similarity index 100% rename from src/components/client/shell/color.ts rename to src/rt/shell/color.ts diff --git a/src/components/client/shell/command/builtin/cat.ts b/src/rt/shell/command/builtin/cat.ts similarity index 100% rename from src/components/client/shell/command/builtin/cat.ts rename to src/rt/shell/command/builtin/cat.ts diff --git a/src/components/client/shell/command/builtin/cd.ts b/src/rt/shell/command/builtin/cd.ts similarity index 100% rename from src/components/client/shell/command/builtin/cd.ts rename to src/rt/shell/command/builtin/cd.ts diff --git a/src/components/client/shell/command/builtin/clear.ts b/src/rt/shell/command/builtin/clear.ts similarity index 100% rename from src/components/client/shell/command/builtin/clear.ts rename to src/rt/shell/command/builtin/clear.ts diff --git a/src/components/client/shell/command/builtin/history.ts b/src/rt/shell/command/builtin/history.ts similarity index 100% rename from src/components/client/shell/command/builtin/history.ts rename to src/rt/shell/command/builtin/history.ts diff --git a/src/components/client/shell/command/builtin/ls.ts b/src/rt/shell/command/builtin/ls.ts similarity index 100% rename from src/components/client/shell/command/builtin/ls.ts rename to src/rt/shell/command/builtin/ls.ts diff --git a/src/components/client/shell/command/builtin/pwd.ts b/src/rt/shell/command/builtin/pwd.ts similarity index 100% rename from src/components/client/shell/command/builtin/pwd.ts rename to src/rt/shell/command/builtin/pwd.ts diff --git a/src/components/client/shell/command/command.ts b/src/rt/shell/command/command.ts similarity index 100% rename from src/components/client/shell/command/command.ts rename to src/rt/shell/command/command.ts diff --git a/src/components/client/shell/command/list.ts b/src/rt/shell/command/list.ts similarity index 100% rename from src/components/client/shell/command/list.ts rename to src/rt/shell/command/list.ts diff --git a/src/components/client/shell/command/parse.ts b/src/rt/shell/command/parse.ts similarity index 100% rename from src/components/client/shell/command/parse.ts rename to src/rt/shell/command/parse.ts diff --git a/src/components/client/shell/command/subcommand.ts b/src/rt/shell/command/subcommand.ts similarity index 100% rename from src/components/client/shell/command/subcommand.ts rename to src/rt/shell/command/subcommand.ts diff --git a/src/components/client/shell/fs/fn.ts b/src/rt/shell/fs/fn.ts similarity index 100% rename from src/components/client/shell/fs/fn.ts rename to src/rt/shell/fs/fn.ts diff --git a/src/components/client/shell/fs/fs.ts b/src/rt/shell/fs/fs.ts similarity index 100% rename from src/components/client/shell/fs/fs.ts rename to src/rt/shell/fs/fs.ts diff --git a/src/components/client/shell/history.ts b/src/rt/shell/history.ts similarity index 100% rename from src/components/client/shell/history.ts rename to src/rt/shell/history.ts diff --git a/src/components/client/terminal.ts b/src/rt/terminal.ts similarity index 100% rename from src/components/client/terminal.ts rename to src/rt/terminal.ts