diff --git a/known-software.json b/known-software.json index 419bf56..f15925b 100644 --- a/known-software.json +++ b/known-software.json @@ -1,6 +1,7 @@ { "software": { "misskey": { + "name": "Misskey", "aliases": [ "misskey", "mk" @@ -11,6 +12,7 @@ ] }, "sharkey": { + "name": "Sharkey", "aliases": [ "sharkey", "sk" @@ -22,6 +24,7 @@ "forkOf": "misskey" }, "iceshrimp-js": { + "name": "Iceshrimp-JS", "aliases": [ "iceshrimp-js" ], @@ -33,6 +36,7 @@ "forkOf": "misskey" }, "iceshrimp-dotnet": { + "name": "Iceshrimp.NET", "aliases": [ "iceshrimp-dotnet" ], @@ -44,6 +48,7 @@ "forkOf": "misskey" }, "firefish": { + "name": "Firefish", "aliases": [ "firefish", "calckey" @@ -57,21 +62,28 @@ }, "groups": { "misskey-compliant": { + "name": "Misskey-compliant", "aliases": [ "misskey-compliant", "mkc" ] }, "misskey-v12": { + "name": "Misskey v12 (legacy)", "aliases": [ "misskey-v12", "misskeyv12", "misskey12", + "mk-v12", "mkv12", - "mk12" + "mk12", + "misskey-legacy", + "misskeylegacy", + "mkl" ] }, "misskey-v13": { + "name": "Misskey v13", "aliases": [ "misskey-v13", "misskeyv13", @@ -81,6 +93,7 @@ ] }, "iceshrimp": { + "name": "Iceshrimp", "aliases": [ "iceshrimp" ] diff --git a/src/known_software.rs b/src/known_software.rs index f34770b..a9fd666 100644 --- a/src/known_software.rs +++ b/src/known_software.rs @@ -13,6 +13,7 @@ pub static KNOWN_SOFTWARE_NAMES: LazyLock> = #[derive(Deserialize)] #[serde(rename_all = "camelCase")] pub struct Software { + name: String, aliases: HashSet, groups: HashSet, fork_of: Option, @@ -20,6 +21,7 @@ pub struct Software { #[derive(Deserialize)] pub struct Group { + name: String, aliases: HashSet, } diff --git a/static/crossroad.css b/static/crossroad.css new file mode 100644 index 0000000..5a01c5c --- /dev/null +++ b/static/crossroad.css @@ -0,0 +1,44 @@ +html, +body { + background: linear-gradient(300deg, #cb0b0b, #2081c3); + background-size: 100vw 100vh; + margin: 0; + min-height: 100vh; + height: 100vh; +} + +dialog { + background-color: white; + border: 0; + border-radius: 2em; + opacity: 0; + transition: opacity 0.125s ease-out; +} + +dialog::backdrop { + backdrop-filter: blur(5px); + background-color: #0008; + transition: background-color 0.125s ease-out; + + @starting-style { + /* This might not work on Firefox because Firefox being behind moment */ + background-color: #0000; + } +} + +dialog[open] { + opacity: 1; + + @starting-style { + /* This might not work on Firefox because Firefox being behind moment */ + opacity: 0; + } +} + +.flex-vcenter { + display: flex; + flex-direction: column; + justify-content: center; + width: 100%; + height: 100%; +} \ No newline at end of file diff --git a/static/crossroad.html b/static/crossroad.html index ff7d729..9940a49 100644 --- a/static/crossroad.html +++ b/static/crossroad.html @@ -1,11 +1,35 @@ + FeDirect + + +
+ +

FeDirect

+

By Nekomata

+
+ + +
+
+ +
+
+ +

Add an instance

+
+ +
+
+ \ No newline at end of file diff --git a/static/known_software.mts b/static/known_software.mts index b92ad61..1f623ae 100644 --- a/static/known_software.mts +++ b/static/known_software.mts @@ -1,10 +1,12 @@ type Software = { + name: string, aliases: string[], groups: string[], forkOf?: string, } type Group = { + name: string, aliases: string[], }