,
+ MediaImg: (props) =>
,
+}
+
+export function Tweet({ id }: { id: string }) {
+ return
+}
diff --git a/src/components/ui/UniMedia.tsx b/src/components/ui/UniMedia.tsx
index 041990e4..6e9c4e6b 100644
--- a/src/components/ui/UniMedia.tsx
+++ b/src/components/ui/UniMedia.tsx
@@ -1,3 +1,5 @@
+"use client"
+
import React, { useState } from "react"
import { Image } from "~/components/ui/Image"
diff --git a/src/css/css-var.css b/src/css/css-var.css
deleted file mode 100644
index 0a95370b..00000000
--- a/src/css/css-var.css
+++ /dev/null
@@ -1,1238 +0,0 @@
-:root {
- --tw-colors-i-slate-50: 248, 250, 252;
- --tw-colors-i-slate-100: 241, 245, 249;
- --tw-colors-i-slate-200: 226, 232, 240;
- --tw-colors-i-slate-300: 203, 213, 225;
- --tw-colors-i-slate-400: 148, 163, 184;
- --tw-colors-i-slate-500: 100, 116, 139;
- --tw-colors-i-slate-600: 71, 85, 105;
- --tw-colors-i-slate-700: 51, 65, 85;
- --tw-colors-i-slate-800: 30, 41, 59;
- --tw-colors-i-slate-900: 15, 23, 42;
- --tw-colors-i-slate-950: 2, 6, 23;
- --tw-colors-i-gray-50: 249, 250, 251;
- --tw-colors-i-gray-100: 243, 244, 246;
- --tw-colors-i-gray-200: 229, 231, 235;
- --tw-colors-i-gray-300: 209, 213, 219;
- --tw-colors-i-gray-400: 156, 163, 175;
- --tw-colors-i-gray-500: 107, 114, 128;
- --tw-colors-i-gray-600: 75, 85, 99;
- --tw-colors-i-gray-700: 55, 65, 81;
- --tw-colors-i-gray-800: 31, 41, 55;
- --tw-colors-i-gray-900: 17, 24, 39;
- --tw-colors-i-gray-950: 3, 7, 18;
- --tw-colors-i-zinc-50: 250, 250, 250;
- --tw-colors-i-zinc-100: 244, 244, 245;
- --tw-colors-i-zinc-200: 228, 228, 231;
- --tw-colors-i-zinc-300: 212, 212, 216;
- --tw-colors-i-zinc-400: 161, 161, 170;
- --tw-colors-i-zinc-500: 113, 113, 122;
- --tw-colors-i-zinc-600: 82, 82, 91;
- --tw-colors-i-zinc-700: 63, 63, 70;
- --tw-colors-i-zinc-800: 39, 39, 42;
- --tw-colors-i-zinc-900: 24, 24, 27;
- --tw-colors-i-zinc-950: 9, 9, 11;
- --tw-colors-i-neutral-50: 250, 250, 250;
- --tw-colors-i-neutral-100: 245, 245, 245;
- --tw-colors-i-neutral-200: 229, 229, 229;
- --tw-colors-i-neutral-300: 212, 212, 212;
- --tw-colors-i-neutral-400: 163, 163, 163;
- --tw-colors-i-neutral-500: 115, 115, 115;
- --tw-colors-i-neutral-600: 82, 82, 82;
- --tw-colors-i-neutral-700: 64, 64, 64;
- --tw-colors-i-neutral-800: 38, 38, 38;
- --tw-colors-i-neutral-900: 23, 23, 23;
- --tw-colors-i-neutral-950: 10, 10, 10;
- --tw-colors-i-stone-50: 250, 250, 249;
- --tw-colors-i-stone-100: 245, 245, 244;
- --tw-colors-i-stone-200: 231, 229, 228;
- --tw-colors-i-stone-300: 214, 211, 209;
- --tw-colors-i-stone-400: 168, 162, 158;
- --tw-colors-i-stone-500: 120, 113, 108;
- --tw-colors-i-stone-600: 87, 83, 78;
- --tw-colors-i-stone-700: 68, 64, 60;
- --tw-colors-i-stone-800: 41, 37, 36;
- --tw-colors-i-stone-900: 28, 25, 23;
- --tw-colors-i-stone-950: 12, 10, 9;
- --tw-colors-i-red-50: 254, 242, 242;
- --tw-colors-i-red-100: 254, 226, 226;
- --tw-colors-i-red-200: 254, 202, 202;
- --tw-colors-i-red-300: 252, 165, 165;
- --tw-colors-i-red-400: 248, 113, 113;
- --tw-colors-i-red-500: 239, 68, 68;
- --tw-colors-i-red-600: 220, 38, 38;
- --tw-colors-i-red-700: 185, 28, 28;
- --tw-colors-i-red-800: 153, 27, 27;
- --tw-colors-i-red-900: 127, 29, 29;
- --tw-colors-i-red-950: 69, 10, 10;
- --tw-colors-i-orange-50: 255, 247, 237;
- --tw-colors-i-orange-100: 255, 237, 213;
- --tw-colors-i-orange-200: 254, 215, 170;
- --tw-colors-i-orange-300: 253, 186, 116;
- --tw-colors-i-orange-400: 251, 146, 60;
- --tw-colors-i-orange-500: 249, 115, 22;
- --tw-colors-i-orange-600: 234, 88, 12;
- --tw-colors-i-orange-700: 194, 65, 12;
- --tw-colors-i-orange-800: 154, 52, 18;
- --tw-colors-i-orange-900: 124, 45, 18;
- --tw-colors-i-orange-950: 67, 20, 7;
- --tw-colors-i-amber-50: 255, 251, 235;
- --tw-colors-i-amber-100: 254, 243, 199;
- --tw-colors-i-amber-200: 253, 230, 138;
- --tw-colors-i-amber-300: 252, 211, 77;
- --tw-colors-i-amber-400: 251, 191, 36;
- --tw-colors-i-amber-500: 245, 158, 11;
- --tw-colors-i-amber-600: 217, 119, 6;
- --tw-colors-i-amber-700: 180, 83, 9;
- --tw-colors-i-amber-800: 146, 64, 14;
- --tw-colors-i-amber-900: 120, 53, 15;
- --tw-colors-i-amber-950: 69, 26, 3;
- --tw-colors-i-yellow-50: 254, 252, 232;
- --tw-colors-i-yellow-100: 254, 249, 195;
- --tw-colors-i-yellow-200: 254, 240, 138;
- --tw-colors-i-yellow-300: 253, 224, 71;
- --tw-colors-i-yellow-400: 250, 204, 21;
- --tw-colors-i-yellow-500: 234, 179, 8;
- --tw-colors-i-yellow-600: 202, 138, 4;
- --tw-colors-i-yellow-700: 161, 98, 7;
- --tw-colors-i-yellow-800: 133, 77, 14;
- --tw-colors-i-yellow-900: 113, 63, 18;
- --tw-colors-i-yellow-950: 66, 32, 6;
- --tw-colors-i-lime-50: 247, 254, 231;
- --tw-colors-i-lime-100: 236, 252, 203;
- --tw-colors-i-lime-200: 217, 249, 157;
- --tw-colors-i-lime-300: 190, 242, 100;
- --tw-colors-i-lime-400: 163, 230, 53;
- --tw-colors-i-lime-500: 132, 204, 22;
- --tw-colors-i-lime-600: 101, 163, 13;
- --tw-colors-i-lime-700: 77, 124, 15;
- --tw-colors-i-lime-800: 63, 98, 18;
- --tw-colors-i-lime-900: 54, 83, 20;
- --tw-colors-i-lime-950: 26, 46, 5;
- --tw-colors-i-green-50: 240, 253, 244;
- --tw-colors-i-green-100: 220, 252, 231;
- --tw-colors-i-green-200: 187, 247, 208;
- --tw-colors-i-green-300: 134, 239, 172;
- --tw-colors-i-green-400: 74, 222, 128;
- --tw-colors-i-green-500: 34, 197, 94;
- --tw-colors-i-green-600: 22, 163, 74;
- --tw-colors-i-green-700: 21, 128, 61;
- --tw-colors-i-green-800: 22, 101, 52;
- --tw-colors-i-green-900: 20, 83, 45;
- --tw-colors-i-green-950: 5, 46, 22;
- --tw-colors-i-emerald-50: 236, 253, 245;
- --tw-colors-i-emerald-100: 209, 250, 229;
- --tw-colors-i-emerald-200: 167, 243, 208;
- --tw-colors-i-emerald-300: 110, 231, 183;
- --tw-colors-i-emerald-400: 52, 211, 153;
- --tw-colors-i-emerald-500: 16, 185, 129;
- --tw-colors-i-emerald-600: 5, 150, 105;
- --tw-colors-i-emerald-700: 4, 120, 87;
- --tw-colors-i-emerald-800: 6, 95, 70;
- --tw-colors-i-emerald-900: 6, 78, 59;
- --tw-colors-i-emerald-950: 2, 44, 34;
- --tw-colors-i-teal-50: 240, 253, 250;
- --tw-colors-i-teal-100: 204, 251, 241;
- --tw-colors-i-teal-200: 153, 246, 228;
- --tw-colors-i-teal-300: 94, 234, 212;
- --tw-colors-i-teal-400: 45, 212, 191;
- --tw-colors-i-teal-500: 20, 184, 166;
- --tw-colors-i-teal-600: 13, 148, 136;
- --tw-colors-i-teal-700: 15, 118, 110;
- --tw-colors-i-teal-800: 17, 94, 89;
- --tw-colors-i-teal-900: 19, 78, 74;
- --tw-colors-i-teal-950: 4, 47, 46;
- --tw-colors-i-cyan-50: 236, 254, 255;
- --tw-colors-i-cyan-100: 207, 250, 254;
- --tw-colors-i-cyan-200: 165, 243, 252;
- --tw-colors-i-cyan-300: 103, 232, 249;
- --tw-colors-i-cyan-400: 34, 211, 238;
- --tw-colors-i-cyan-500: 6, 182, 212;
- --tw-colors-i-cyan-600: 8, 145, 178;
- --tw-colors-i-cyan-700: 14, 116, 144;
- --tw-colors-i-cyan-800: 21, 94, 117;
- --tw-colors-i-cyan-900: 22, 78, 99;
- --tw-colors-i-cyan-950: 8, 51, 68;
- --tw-colors-i-sky-50: 240, 249, 255;
- --tw-colors-i-sky-100: 224, 242, 254;
- --tw-colors-i-sky-200: 186, 230, 253;
- --tw-colors-i-sky-300: 125, 211, 252;
- --tw-colors-i-sky-400: 56, 189, 248;
- --tw-colors-i-sky-500: 14, 165, 233;
- --tw-colors-i-sky-600: 2, 132, 199;
- --tw-colors-i-sky-700: 3, 105, 161;
- --tw-colors-i-sky-800: 7, 89, 133;
- --tw-colors-i-sky-900: 12, 74, 110;
- --tw-colors-i-sky-950: 8, 47, 73;
- --tw-colors-i-blue-50: 239, 246, 255;
- --tw-colors-i-blue-100: 219, 234, 254;
- --tw-colors-i-blue-200: 191, 219, 254;
- --tw-colors-i-blue-300: 147, 197, 253;
- --tw-colors-i-blue-400: 96, 165, 250;
- --tw-colors-i-blue-500: 59, 130, 246;
- --tw-colors-i-blue-600: 37, 99, 235;
- --tw-colors-i-blue-700: 29, 78, 216;
- --tw-colors-i-blue-800: 30, 64, 175;
- --tw-colors-i-blue-900: 30, 58, 138;
- --tw-colors-i-blue-950: 23, 37, 84;
- --tw-colors-i-indigo-50: 238, 242, 255;
- --tw-colors-i-indigo-100: 224, 231, 255;
- --tw-colors-i-indigo-200: 199, 210, 254;
- --tw-colors-i-indigo-300: 165, 180, 252;
- --tw-colors-i-indigo-400: 129, 140, 248;
- --tw-colors-i-indigo-500: 99, 102, 241;
- --tw-colors-i-indigo-600: 79, 70, 229;
- --tw-colors-i-indigo-700: 67, 56, 202;
- --tw-colors-i-indigo-800: 55, 48, 163;
- --tw-colors-i-indigo-900: 49, 46, 129;
- --tw-colors-i-indigo-950: 30, 27, 75;
- --tw-colors-i-violet-50: 245, 243, 255;
- --tw-colors-i-violet-100: 237, 233, 254;
- --tw-colors-i-violet-200: 221, 214, 254;
- --tw-colors-i-violet-300: 196, 181, 253;
- --tw-colors-i-violet-400: 167, 139, 250;
- --tw-colors-i-violet-500: 139, 92, 246;
- --tw-colors-i-violet-600: 124, 58, 237;
- --tw-colors-i-violet-700: 109, 40, 217;
- --tw-colors-i-violet-800: 91, 33, 182;
- --tw-colors-i-violet-900: 76, 29, 149;
- --tw-colors-i-violet-950: 46, 16, 101;
- --tw-colors-i-purple-50: 250, 245, 255;
- --tw-colors-i-purple-100: 243, 232, 255;
- --tw-colors-i-purple-200: 233, 213, 255;
- --tw-colors-i-purple-300: 216, 180, 254;
- --tw-colors-i-purple-400: 192, 132, 252;
- --tw-colors-i-purple-500: 168, 85, 247;
- --tw-colors-i-purple-600: 147, 51, 234;
- --tw-colors-i-purple-700: 126, 34, 206;
- --tw-colors-i-purple-800: 107, 33, 168;
- --tw-colors-i-purple-900: 88, 28, 135;
- --tw-colors-i-purple-950: 59, 7, 100;
- --tw-colors-i-fuchsia-50: 253, 244, 255;
- --tw-colors-i-fuchsia-100: 250, 232, 255;
- --tw-colors-i-fuchsia-200: 245, 208, 254;
- --tw-colors-i-fuchsia-300: 240, 171, 252;
- --tw-colors-i-fuchsia-400: 232, 121, 249;
- --tw-colors-i-fuchsia-500: 217, 70, 239;
- --tw-colors-i-fuchsia-600: 192, 38, 211;
- --tw-colors-i-fuchsia-700: 162, 28, 175;
- --tw-colors-i-fuchsia-800: 134, 25, 143;
- --tw-colors-i-fuchsia-900: 112, 26, 117;
- --tw-colors-i-fuchsia-950: 74, 4, 78;
- --tw-colors-i-pink-50: 253, 242, 248;
- --tw-colors-i-pink-100: 252, 231, 243;
- --tw-colors-i-pink-200: 251, 207, 232;
- --tw-colors-i-pink-300: 249, 168, 212;
- --tw-colors-i-pink-400: 244, 114, 182;
- --tw-colors-i-pink-500: 236, 72, 153;
- --tw-colors-i-pink-600: 219, 39, 119;
- --tw-colors-i-pink-700: 190, 24, 93;
- --tw-colors-i-pink-800: 157, 23, 77;
- --tw-colors-i-pink-900: 131, 24, 67;
- --tw-colors-i-pink-950: 80, 7, 36;
- --tw-colors-i-rose-50: 255, 241, 242;
- --tw-colors-i-rose-100: 255, 228, 230;
- --tw-colors-i-rose-200: 254, 205, 211;
- --tw-colors-i-rose-300: 253, 164, 175;
- --tw-colors-i-rose-400: 251, 113, 133;
- --tw-colors-i-rose-500: 244, 63, 94;
- --tw-colors-i-rose-600: 225, 29, 72;
- --tw-colors-i-rose-700: 190, 18, 60;
- --tw-colors-i-rose-800: 159, 18, 57;
- --tw-colors-i-rose-900: 136, 19, 55;
- --tw-colors-i-rose-950: 76, 5, 25;
- --tw-colors-i-black: 0, 0, 0;
- --tw-colors-i-white: 255, 255, 255;
-}
-
-html.dark {
- --tw-colors-i-slate-50: 2, 6, 23;
- --tw-colors-i-slate-100: 15, 23, 42;
- --tw-colors-i-slate-200: 30, 41, 59;
- --tw-colors-i-slate-300: 51, 65, 85;
- --tw-colors-i-slate-400: 71, 85, 105;
- --tw-colors-i-slate-500: 100, 116, 139;
- --tw-colors-i-slate-600: 148, 163, 184;
- --tw-colors-i-slate-700: 203, 213, 225;
- --tw-colors-i-slate-800: 226, 232, 240;
- --tw-colors-i-slate-900: 241, 245, 249;
- --tw-colors-i-slate-950: 248, 250, 252;
- --tw-colors-i-gray-50: 3, 7, 18;
- --tw-colors-i-gray-100: 17, 24, 39;
- --tw-colors-i-gray-200: 31, 41, 55;
- --tw-colors-i-gray-300: 55, 65, 81;
- --tw-colors-i-gray-400: 75, 85, 99;
- --tw-colors-i-gray-500: 107, 114, 128;
- --tw-colors-i-gray-600: 156, 163, 175;
- --tw-colors-i-gray-700: 209, 213, 219;
- --tw-colors-i-gray-800: 229, 231, 235;
- --tw-colors-i-gray-900: 243, 244, 246;
- --tw-colors-i-gray-950: 249, 250, 251;
- --tw-colors-i-zinc-50: 9, 9, 11;
- --tw-colors-i-zinc-100: 24, 24, 27;
- --tw-colors-i-zinc-200: 39, 39, 42;
- --tw-colors-i-zinc-300: 63, 63, 70;
- --tw-colors-i-zinc-400: 82, 82, 91;
- --tw-colors-i-zinc-500: 113, 113, 122;
- --tw-colors-i-zinc-600: 161, 161, 170;
- --tw-colors-i-zinc-700: 212, 212, 216;
- --tw-colors-i-zinc-800: 228, 228, 231;
- --tw-colors-i-zinc-900: 244, 244, 245;
- --tw-colors-i-zinc-950: 250, 250, 250;
- --tw-colors-i-neutral-50: 10, 10, 10;
- --tw-colors-i-neutral-100: 23, 23, 23;
- --tw-colors-i-neutral-200: 38, 38, 38;
- --tw-colors-i-neutral-300: 64, 64, 64;
- --tw-colors-i-neutral-400: 82, 82, 82;
- --tw-colors-i-neutral-500: 115, 115, 115;
- --tw-colors-i-neutral-600: 163, 163, 163;
- --tw-colors-i-neutral-700: 212, 212, 212;
- --tw-colors-i-neutral-800: 229, 229, 229;
- --tw-colors-i-neutral-900: 245, 245, 245;
- --tw-colors-i-neutral-950: 250, 250, 250;
- --tw-colors-i-stone-50: 12, 10, 9;
- --tw-colors-i-stone-100: 28, 25, 23;
- --tw-colors-i-stone-200: 41, 37, 36;
- --tw-colors-i-stone-300: 68, 64, 60;
- --tw-colors-i-stone-400: 87, 83, 78;
- --tw-colors-i-stone-500: 120, 113, 108;
- --tw-colors-i-stone-600: 168, 162, 158;
- --tw-colors-i-stone-700: 214, 211, 209;
- --tw-colors-i-stone-800: 231, 229, 228;
- --tw-colors-i-stone-900: 245, 245, 244;
- --tw-colors-i-stone-950: 250, 250, 249;
- --tw-colors-i-red-50: 69, 10, 10;
- --tw-colors-i-red-100: 127, 29, 29;
- --tw-colors-i-red-200: 153, 27, 27;
- --tw-colors-i-red-300: 185, 28, 28;
- --tw-colors-i-red-400: 220, 38, 38;
- --tw-colors-i-red-500: 239, 68, 68;
- --tw-colors-i-red-600: 248, 113, 113;
- --tw-colors-i-red-700: 252, 165, 165;
- --tw-colors-i-red-800: 254, 202, 202;
- --tw-colors-i-red-900: 254, 226, 226;
- --tw-colors-i-red-950: 254, 242, 242;
- --tw-colors-i-orange-50: 67, 20, 7;
- --tw-colors-i-orange-100: 124, 45, 18;
- --tw-colors-i-orange-200: 154, 52, 18;
- --tw-colors-i-orange-300: 194, 65, 12;
- --tw-colors-i-orange-400: 234, 88, 12;
- --tw-colors-i-orange-500: 249, 115, 22;
- --tw-colors-i-orange-600: 251, 146, 60;
- --tw-colors-i-orange-700: 253, 186, 116;
- --tw-colors-i-orange-800: 254, 215, 170;
- --tw-colors-i-orange-900: 255, 237, 213;
- --tw-colors-i-orange-950: 255, 247, 237;
- --tw-colors-i-amber-50: 69, 26, 3;
- --tw-colors-i-amber-100: 120, 53, 15;
- --tw-colors-i-amber-200: 146, 64, 14;
- --tw-colors-i-amber-300: 180, 83, 9;
- --tw-colors-i-amber-400: 217, 119, 6;
- --tw-colors-i-amber-500: 245, 158, 11;
- --tw-colors-i-amber-600: 251, 191, 36;
- --tw-colors-i-amber-700: 252, 211, 77;
- --tw-colors-i-amber-800: 253, 230, 138;
- --tw-colors-i-amber-900: 254, 243, 199;
- --tw-colors-i-amber-950: 255, 251, 235;
- --tw-colors-i-yellow-50: 66, 32, 6;
- --tw-colors-i-yellow-100: 113, 63, 18;
- --tw-colors-i-yellow-200: 133, 77, 14;
- --tw-colors-i-yellow-300: 161, 98, 7;
- --tw-colors-i-yellow-400: 202, 138, 4;
- --tw-colors-i-yellow-500: 234, 179, 8;
- --tw-colors-i-yellow-600: 250, 204, 21;
- --tw-colors-i-yellow-700: 253, 224, 71;
- --tw-colors-i-yellow-800: 254, 240, 138;
- --tw-colors-i-yellow-900: 254, 249, 195;
- --tw-colors-i-yellow-950: 254, 252, 232;
- --tw-colors-i-lime-50: 26, 46, 5;
- --tw-colors-i-lime-100: 54, 83, 20;
- --tw-colors-i-lime-200: 63, 98, 18;
- --tw-colors-i-lime-300: 77, 124, 15;
- --tw-colors-i-lime-400: 101, 163, 13;
- --tw-colors-i-lime-500: 132, 204, 22;
- --tw-colors-i-lime-600: 163, 230, 53;
- --tw-colors-i-lime-700: 190, 242, 100;
- --tw-colors-i-lime-800: 217, 249, 157;
- --tw-colors-i-lime-900: 236, 252, 203;
- --tw-colors-i-lime-950: 247, 254, 231;
- --tw-colors-i-green-50: 5, 46, 22;
- --tw-colors-i-green-100: 20, 83, 45;
- --tw-colors-i-green-200: 22, 101, 52;
- --tw-colors-i-green-300: 21, 128, 61;
- --tw-colors-i-green-400: 22, 163, 74;
- --tw-colors-i-green-500: 34, 197, 94;
- --tw-colors-i-green-600: 74, 222, 128;
- --tw-colors-i-green-700: 134, 239, 172;
- --tw-colors-i-green-800: 187, 247, 208;
- --tw-colors-i-green-900: 220, 252, 231;
- --tw-colors-i-green-950: 240, 253, 244;
- --tw-colors-i-emerald-50: 2, 44, 34;
- --tw-colors-i-emerald-100: 6, 78, 59;
- --tw-colors-i-emerald-200: 6, 95, 70;
- --tw-colors-i-emerald-300: 4, 120, 87;
- --tw-colors-i-emerald-400: 5, 150, 105;
- --tw-colors-i-emerald-500: 16, 185, 129;
- --tw-colors-i-emerald-600: 52, 211, 153;
- --tw-colors-i-emerald-700: 110, 231, 183;
- --tw-colors-i-emerald-800: 167, 243, 208;
- --tw-colors-i-emerald-900: 209, 250, 229;
- --tw-colors-i-emerald-950: 236, 253, 245;
- --tw-colors-i-teal-50: 4, 47, 46;
- --tw-colors-i-teal-100: 19, 78, 74;
- --tw-colors-i-teal-200: 17, 94, 89;
- --tw-colors-i-teal-300: 15, 118, 110;
- --tw-colors-i-teal-400: 13, 148, 136;
- --tw-colors-i-teal-500: 20, 184, 166;
- --tw-colors-i-teal-600: 45, 212, 191;
- --tw-colors-i-teal-700: 94, 234, 212;
- --tw-colors-i-teal-800: 153, 246, 228;
- --tw-colors-i-teal-900: 204, 251, 241;
- --tw-colors-i-teal-950: 240, 253, 250;
- --tw-colors-i-cyan-50: 8, 51, 68;
- --tw-colors-i-cyan-100: 22, 78, 99;
- --tw-colors-i-cyan-200: 21, 94, 117;
- --tw-colors-i-cyan-300: 14, 116, 144;
- --tw-colors-i-cyan-400: 8, 145, 178;
- --tw-colors-i-cyan-500: 6, 182, 212;
- --tw-colors-i-cyan-600: 34, 211, 238;
- --tw-colors-i-cyan-700: 103, 232, 249;
- --tw-colors-i-cyan-800: 165, 243, 252;
- --tw-colors-i-cyan-900: 207, 250, 254;
- --tw-colors-i-cyan-950: 236, 254, 255;
- --tw-colors-i-sky-50: 8, 47, 73;
- --tw-colors-i-sky-100: 12, 74, 110;
- --tw-colors-i-sky-200: 7, 89, 133;
- --tw-colors-i-sky-300: 3, 105, 161;
- --tw-colors-i-sky-400: 2, 132, 199;
- --tw-colors-i-sky-500: 14, 165, 233;
- --tw-colors-i-sky-600: 56, 189, 248;
- --tw-colors-i-sky-700: 125, 211, 252;
- --tw-colors-i-sky-800: 186, 230, 253;
- --tw-colors-i-sky-900: 224, 242, 254;
- --tw-colors-i-sky-950: 240, 249, 255;
- --tw-colors-i-blue-50: 23, 37, 84;
- --tw-colors-i-blue-100: 30, 58, 138;
- --tw-colors-i-blue-200: 30, 64, 175;
- --tw-colors-i-blue-300: 29, 78, 216;
- --tw-colors-i-blue-400: 37, 99, 235;
- --tw-colors-i-blue-500: 59, 130, 246;
- --tw-colors-i-blue-600: 96, 165, 250;
- --tw-colors-i-blue-700: 147, 197, 253;
- --tw-colors-i-blue-800: 191, 219, 254;
- --tw-colors-i-blue-900: 219, 234, 254;
- --tw-colors-i-blue-950: 239, 246, 255;
- --tw-colors-i-indigo-50: 30, 27, 75;
- --tw-colors-i-indigo-100: 49, 46, 129;
- --tw-colors-i-indigo-200: 55, 48, 163;
- --tw-colors-i-indigo-300: 67, 56, 202;
- --tw-colors-i-indigo-400: 79, 70, 229;
- --tw-colors-i-indigo-500: 99, 102, 241;
- --tw-colors-i-indigo-600: 129, 140, 248;
- --tw-colors-i-indigo-700: 165, 180, 252;
- --tw-colors-i-indigo-800: 199, 210, 254;
- --tw-colors-i-indigo-900: 224, 231, 255;
- --tw-colors-i-indigo-950: 238, 242, 255;
- --tw-colors-i-violet-50: 46, 16, 101;
- --tw-colors-i-violet-100: 76, 29, 149;
- --tw-colors-i-violet-200: 91, 33, 182;
- --tw-colors-i-violet-300: 109, 40, 217;
- --tw-colors-i-violet-400: 124, 58, 237;
- --tw-colors-i-violet-500: 139, 92, 246;
- --tw-colors-i-violet-600: 167, 139, 250;
- --tw-colors-i-violet-700: 196, 181, 253;
- --tw-colors-i-violet-800: 221, 214, 254;
- --tw-colors-i-violet-900: 237, 233, 254;
- --tw-colors-i-violet-950: 245, 243, 255;
- --tw-colors-i-purple-50: 59, 7, 100;
- --tw-colors-i-purple-100: 88, 28, 135;
- --tw-colors-i-purple-200: 107, 33, 168;
- --tw-colors-i-purple-300: 126, 34, 206;
- --tw-colors-i-purple-400: 147, 51, 234;
- --tw-colors-i-purple-500: 168, 85, 247;
- --tw-colors-i-purple-600: 192, 132, 252;
- --tw-colors-i-purple-700: 216, 180, 254;
- --tw-colors-i-purple-800: 233, 213, 255;
- --tw-colors-i-purple-900: 243, 232, 255;
- --tw-colors-i-purple-950: 250, 245, 255;
- --tw-colors-i-fuchsia-50: 74, 4, 78;
- --tw-colors-i-fuchsia-100: 112, 26, 117;
- --tw-colors-i-fuchsia-200: 134, 25, 143;
- --tw-colors-i-fuchsia-300: 162, 28, 175;
- --tw-colors-i-fuchsia-400: 192, 38, 211;
- --tw-colors-i-fuchsia-500: 217, 70, 239;
- --tw-colors-i-fuchsia-600: 232, 121, 249;
- --tw-colors-i-fuchsia-700: 240, 171, 252;
- --tw-colors-i-fuchsia-800: 245, 208, 254;
- --tw-colors-i-fuchsia-900: 250, 232, 255;
- --tw-colors-i-fuchsia-950: 253, 244, 255;
- --tw-colors-i-pink-50: 80, 7, 36;
- --tw-colors-i-pink-100: 131, 24, 67;
- --tw-colors-i-pink-200: 157, 23, 77;
- --tw-colors-i-pink-300: 190, 24, 93;
- --tw-colors-i-pink-400: 219, 39, 119;
- --tw-colors-i-pink-500: 236, 72, 153;
- --tw-colors-i-pink-600: 244, 114, 182;
- --tw-colors-i-pink-700: 249, 168, 212;
- --tw-colors-i-pink-800: 251, 207, 232;
- --tw-colors-i-pink-900: 252, 231, 243;
- --tw-colors-i-pink-950: 253, 242, 248;
- --tw-colors-i-rose-50: 76, 5, 25;
- --tw-colors-i-rose-100: 136, 19, 55;
- --tw-colors-i-rose-200: 159, 18, 57;
- --tw-colors-i-rose-300: 190, 18, 60;
- --tw-colors-i-rose-400: 225, 29, 72;
- --tw-colors-i-rose-500: 244, 63, 94;
- --tw-colors-i-rose-600: 251, 113, 133;
- --tw-colors-i-rose-700: 253, 164, 175;
- --tw-colors-i-rose-800: 254, 205, 211;
- --tw-colors-i-rose-900: 255, 228, 230;
- --tw-colors-i-rose-950: 255, 241, 242;
- --tw-colors-i-black: 255, 255, 255;
- --tw-colors-i-white: 0, 0, 0;
-}
-
-html.light {
- --tw-colors-i-slate-50: 248, 250, 252;
- --tw-colors-i-slate-100: 241, 245, 249;
- --tw-colors-i-slate-200: 226, 232, 240;
- --tw-colors-i-slate-300: 203, 213, 225;
- --tw-colors-i-slate-400: 148, 163, 184;
- --tw-colors-i-slate-500: 100, 116, 139;
- --tw-colors-i-slate-600: 71, 85, 105;
- --tw-colors-i-slate-700: 51, 65, 85;
- --tw-colors-i-slate-800: 30, 41, 59;
- --tw-colors-i-slate-900: 15, 23, 42;
- --tw-colors-i-slate-950: 2, 6, 23;
- --tw-colors-i-gray-50: 249, 250, 251;
- --tw-colors-i-gray-100: 243, 244, 246;
- --tw-colors-i-gray-200: 229, 231, 235;
- --tw-colors-i-gray-300: 209, 213, 219;
- --tw-colors-i-gray-400: 156, 163, 175;
- --tw-colors-i-gray-500: 107, 114, 128;
- --tw-colors-i-gray-600: 75, 85, 99;
- --tw-colors-i-gray-700: 55, 65, 81;
- --tw-colors-i-gray-800: 31, 41, 55;
- --tw-colors-i-gray-900: 17, 24, 39;
- --tw-colors-i-gray-950: 3, 7, 18;
- --tw-colors-i-zinc-50: 250, 250, 250;
- --tw-colors-i-zinc-100: 244, 244, 245;
- --tw-colors-i-zinc-200: 228, 228, 231;
- --tw-colors-i-zinc-300: 212, 212, 216;
- --tw-colors-i-zinc-400: 161, 161, 170;
- --tw-colors-i-zinc-500: 113, 113, 122;
- --tw-colors-i-zinc-600: 82, 82, 91;
- --tw-colors-i-zinc-700: 63, 63, 70;
- --tw-colors-i-zinc-800: 39, 39, 42;
- --tw-colors-i-zinc-900: 24, 24, 27;
- --tw-colors-i-zinc-950: 9, 9, 11;
- --tw-colors-i-neutral-50: 250, 250, 250;
- --tw-colors-i-neutral-100: 245, 245, 245;
- --tw-colors-i-neutral-200: 229, 229, 229;
- --tw-colors-i-neutral-300: 212, 212, 212;
- --tw-colors-i-neutral-400: 163, 163, 163;
- --tw-colors-i-neutral-500: 115, 115, 115;
- --tw-colors-i-neutral-600: 82, 82, 82;
- --tw-colors-i-neutral-700: 64, 64, 64;
- --tw-colors-i-neutral-800: 38, 38, 38;
- --tw-colors-i-neutral-900: 23, 23, 23;
- --tw-colors-i-neutral-950: 10, 10, 10;
- --tw-colors-i-stone-50: 250, 250, 249;
- --tw-colors-i-stone-100: 245, 245, 244;
- --tw-colors-i-stone-200: 231, 229, 228;
- --tw-colors-i-stone-300: 214, 211, 209;
- --tw-colors-i-stone-400: 168, 162, 158;
- --tw-colors-i-stone-500: 120, 113, 108;
- --tw-colors-i-stone-600: 87, 83, 78;
- --tw-colors-i-stone-700: 68, 64, 60;
- --tw-colors-i-stone-800: 41, 37, 36;
- --tw-colors-i-stone-900: 28, 25, 23;
- --tw-colors-i-stone-950: 12, 10, 9;
- --tw-colors-i-red-50: 254, 242, 242;
- --tw-colors-i-red-100: 254, 226, 226;
- --tw-colors-i-red-200: 254, 202, 202;
- --tw-colors-i-red-300: 252, 165, 165;
- --tw-colors-i-red-400: 248, 113, 113;
- --tw-colors-i-red-500: 239, 68, 68;
- --tw-colors-i-red-600: 220, 38, 38;
- --tw-colors-i-red-700: 185, 28, 28;
- --tw-colors-i-red-800: 153, 27, 27;
- --tw-colors-i-red-900: 127, 29, 29;
- --tw-colors-i-red-950: 69, 10, 10;
- --tw-colors-i-orange-50: 255, 247, 237;
- --tw-colors-i-orange-100: 255, 237, 213;
- --tw-colors-i-orange-200: 254, 215, 170;
- --tw-colors-i-orange-300: 253, 186, 116;
- --tw-colors-i-orange-400: 251, 146, 60;
- --tw-colors-i-orange-500: 249, 115, 22;
- --tw-colors-i-orange-600: 234, 88, 12;
- --tw-colors-i-orange-700: 194, 65, 12;
- --tw-colors-i-orange-800: 154, 52, 18;
- --tw-colors-i-orange-900: 124, 45, 18;
- --tw-colors-i-orange-950: 67, 20, 7;
- --tw-colors-i-amber-50: 255, 251, 235;
- --tw-colors-i-amber-100: 254, 243, 199;
- --tw-colors-i-amber-200: 253, 230, 138;
- --tw-colors-i-amber-300: 252, 211, 77;
- --tw-colors-i-amber-400: 251, 191, 36;
- --tw-colors-i-amber-500: 245, 158, 11;
- --tw-colors-i-amber-600: 217, 119, 6;
- --tw-colors-i-amber-700: 180, 83, 9;
- --tw-colors-i-amber-800: 146, 64, 14;
- --tw-colors-i-amber-900: 120, 53, 15;
- --tw-colors-i-amber-950: 69, 26, 3;
- --tw-colors-i-yellow-50: 254, 252, 232;
- --tw-colors-i-yellow-100: 254, 249, 195;
- --tw-colors-i-yellow-200: 254, 240, 138;
- --tw-colors-i-yellow-300: 253, 224, 71;
- --tw-colors-i-yellow-400: 250, 204, 21;
- --tw-colors-i-yellow-500: 234, 179, 8;
- --tw-colors-i-yellow-600: 202, 138, 4;
- --tw-colors-i-yellow-700: 161, 98, 7;
- --tw-colors-i-yellow-800: 133, 77, 14;
- --tw-colors-i-yellow-900: 113, 63, 18;
- --tw-colors-i-yellow-950: 66, 32, 6;
- --tw-colors-i-lime-50: 247, 254, 231;
- --tw-colors-i-lime-100: 236, 252, 203;
- --tw-colors-i-lime-200: 217, 249, 157;
- --tw-colors-i-lime-300: 190, 242, 100;
- --tw-colors-i-lime-400: 163, 230, 53;
- --tw-colors-i-lime-500: 132, 204, 22;
- --tw-colors-i-lime-600: 101, 163, 13;
- --tw-colors-i-lime-700: 77, 124, 15;
- --tw-colors-i-lime-800: 63, 98, 18;
- --tw-colors-i-lime-900: 54, 83, 20;
- --tw-colors-i-lime-950: 26, 46, 5;
- --tw-colors-i-green-50: 240, 253, 244;
- --tw-colors-i-green-100: 220, 252, 231;
- --tw-colors-i-green-200: 187, 247, 208;
- --tw-colors-i-green-300: 134, 239, 172;
- --tw-colors-i-green-400: 74, 222, 128;
- --tw-colors-i-green-500: 34, 197, 94;
- --tw-colors-i-green-600: 22, 163, 74;
- --tw-colors-i-green-700: 21, 128, 61;
- --tw-colors-i-green-800: 22, 101, 52;
- --tw-colors-i-green-900: 20, 83, 45;
- --tw-colors-i-green-950: 5, 46, 22;
- --tw-colors-i-emerald-50: 236, 253, 245;
- --tw-colors-i-emerald-100: 209, 250, 229;
- --tw-colors-i-emerald-200: 167, 243, 208;
- --tw-colors-i-emerald-300: 110, 231, 183;
- --tw-colors-i-emerald-400: 52, 211, 153;
- --tw-colors-i-emerald-500: 16, 185, 129;
- --tw-colors-i-emerald-600: 5, 150, 105;
- --tw-colors-i-emerald-700: 4, 120, 87;
- --tw-colors-i-emerald-800: 6, 95, 70;
- --tw-colors-i-emerald-900: 6, 78, 59;
- --tw-colors-i-emerald-950: 2, 44, 34;
- --tw-colors-i-teal-50: 240, 253, 250;
- --tw-colors-i-teal-100: 204, 251, 241;
- --tw-colors-i-teal-200: 153, 246, 228;
- --tw-colors-i-teal-300: 94, 234, 212;
- --tw-colors-i-teal-400: 45, 212, 191;
- --tw-colors-i-teal-500: 20, 184, 166;
- --tw-colors-i-teal-600: 13, 148, 136;
- --tw-colors-i-teal-700: 15, 118, 110;
- --tw-colors-i-teal-800: 17, 94, 89;
- --tw-colors-i-teal-900: 19, 78, 74;
- --tw-colors-i-teal-950: 4, 47, 46;
- --tw-colors-i-cyan-50: 236, 254, 255;
- --tw-colors-i-cyan-100: 207, 250, 254;
- --tw-colors-i-cyan-200: 165, 243, 252;
- --tw-colors-i-cyan-300: 103, 232, 249;
- --tw-colors-i-cyan-400: 34, 211, 238;
- --tw-colors-i-cyan-500: 6, 182, 212;
- --tw-colors-i-cyan-600: 8, 145, 178;
- --tw-colors-i-cyan-700: 14, 116, 144;
- --tw-colors-i-cyan-800: 21, 94, 117;
- --tw-colors-i-cyan-900: 22, 78, 99;
- --tw-colors-i-cyan-950: 8, 51, 68;
- --tw-colors-i-sky-50: 240, 249, 255;
- --tw-colors-i-sky-100: 224, 242, 254;
- --tw-colors-i-sky-200: 186, 230, 253;
- --tw-colors-i-sky-300: 125, 211, 252;
- --tw-colors-i-sky-400: 56, 189, 248;
- --tw-colors-i-sky-500: 14, 165, 233;
- --tw-colors-i-sky-600: 2, 132, 199;
- --tw-colors-i-sky-700: 3, 105, 161;
- --tw-colors-i-sky-800: 7, 89, 133;
- --tw-colors-i-sky-900: 12, 74, 110;
- --tw-colors-i-sky-950: 8, 47, 73;
- --tw-colors-i-blue-50: 239, 246, 255;
- --tw-colors-i-blue-100: 219, 234, 254;
- --tw-colors-i-blue-200: 191, 219, 254;
- --tw-colors-i-blue-300: 147, 197, 253;
- --tw-colors-i-blue-400: 96, 165, 250;
- --tw-colors-i-blue-500: 59, 130, 246;
- --tw-colors-i-blue-600: 37, 99, 235;
- --tw-colors-i-blue-700: 29, 78, 216;
- --tw-colors-i-blue-800: 30, 64, 175;
- --tw-colors-i-blue-900: 30, 58, 138;
- --tw-colors-i-blue-950: 23, 37, 84;
- --tw-colors-i-indigo-50: 238, 242, 255;
- --tw-colors-i-indigo-100: 224, 231, 255;
- --tw-colors-i-indigo-200: 199, 210, 254;
- --tw-colors-i-indigo-300: 165, 180, 252;
- --tw-colors-i-indigo-400: 129, 140, 248;
- --tw-colors-i-indigo-500: 99, 102, 241;
- --tw-colors-i-indigo-600: 79, 70, 229;
- --tw-colors-i-indigo-700: 67, 56, 202;
- --tw-colors-i-indigo-800: 55, 48, 163;
- --tw-colors-i-indigo-900: 49, 46, 129;
- --tw-colors-i-indigo-950: 30, 27, 75;
- --tw-colors-i-violet-50: 245, 243, 255;
- --tw-colors-i-violet-100: 237, 233, 254;
- --tw-colors-i-violet-200: 221, 214, 254;
- --tw-colors-i-violet-300: 196, 181, 253;
- --tw-colors-i-violet-400: 167, 139, 250;
- --tw-colors-i-violet-500: 139, 92, 246;
- --tw-colors-i-violet-600: 124, 58, 237;
- --tw-colors-i-violet-700: 109, 40, 217;
- --tw-colors-i-violet-800: 91, 33, 182;
- --tw-colors-i-violet-900: 76, 29, 149;
- --tw-colors-i-violet-950: 46, 16, 101;
- --tw-colors-i-purple-50: 250, 245, 255;
- --tw-colors-i-purple-100: 243, 232, 255;
- --tw-colors-i-purple-200: 233, 213, 255;
- --tw-colors-i-purple-300: 216, 180, 254;
- --tw-colors-i-purple-400: 192, 132, 252;
- --tw-colors-i-purple-500: 168, 85, 247;
- --tw-colors-i-purple-600: 147, 51, 234;
- --tw-colors-i-purple-700: 126, 34, 206;
- --tw-colors-i-purple-800: 107, 33, 168;
- --tw-colors-i-purple-900: 88, 28, 135;
- --tw-colors-i-purple-950: 59, 7, 100;
- --tw-colors-i-fuchsia-50: 253, 244, 255;
- --tw-colors-i-fuchsia-100: 250, 232, 255;
- --tw-colors-i-fuchsia-200: 245, 208, 254;
- --tw-colors-i-fuchsia-300: 240, 171, 252;
- --tw-colors-i-fuchsia-400: 232, 121, 249;
- --tw-colors-i-fuchsia-500: 217, 70, 239;
- --tw-colors-i-fuchsia-600: 192, 38, 211;
- --tw-colors-i-fuchsia-700: 162, 28, 175;
- --tw-colors-i-fuchsia-800: 134, 25, 143;
- --tw-colors-i-fuchsia-900: 112, 26, 117;
- --tw-colors-i-fuchsia-950: 74, 4, 78;
- --tw-colors-i-pink-50: 253, 242, 248;
- --tw-colors-i-pink-100: 252, 231, 243;
- --tw-colors-i-pink-200: 251, 207, 232;
- --tw-colors-i-pink-300: 249, 168, 212;
- --tw-colors-i-pink-400: 244, 114, 182;
- --tw-colors-i-pink-500: 236, 72, 153;
- --tw-colors-i-pink-600: 219, 39, 119;
- --tw-colors-i-pink-700: 190, 24, 93;
- --tw-colors-i-pink-800: 157, 23, 77;
- --tw-colors-i-pink-900: 131, 24, 67;
- --tw-colors-i-pink-950: 80, 7, 36;
- --tw-colors-i-rose-50: 255, 241, 242;
- --tw-colors-i-rose-100: 255, 228, 230;
- --tw-colors-i-rose-200: 254, 205, 211;
- --tw-colors-i-rose-300: 253, 164, 175;
- --tw-colors-i-rose-400: 251, 113, 133;
- --tw-colors-i-rose-500: 244, 63, 94;
- --tw-colors-i-rose-600: 225, 29, 72;
- --tw-colors-i-rose-700: 190, 18, 60;
- --tw-colors-i-rose-800: 159, 18, 57;
- --tw-colors-i-rose-900: 136, 19, 55;
- --tw-colors-i-rose-950: 76, 5, 25;
- --tw-colors-i-black: 0, 0, 0;
- --tw-colors-i-white: 255, 255, 255;
-}
-
-@media (prefers-color-scheme: dark) {
- html:not(.light) {
- --tw-colors-i-slate-50: 2, 6, 23;
- --tw-colors-i-slate-100: 15, 23, 42;
- --tw-colors-i-slate-200: 30, 41, 59;
- --tw-colors-i-slate-300: 51, 65, 85;
- --tw-colors-i-slate-400: 71, 85, 105;
- --tw-colors-i-slate-500: 100, 116, 139;
- --tw-colors-i-slate-600: 148, 163, 184;
- --tw-colors-i-slate-700: 203, 213, 225;
- --tw-colors-i-slate-800: 226, 232, 240;
- --tw-colors-i-slate-900: 241, 245, 249;
- --tw-colors-i-slate-950: 248, 250, 252;
- --tw-colors-i-gray-50: 3, 7, 18;
- --tw-colors-i-gray-100: 17, 24, 39;
- --tw-colors-i-gray-200: 31, 41, 55;
- --tw-colors-i-gray-300: 55, 65, 81;
- --tw-colors-i-gray-400: 75, 85, 99;
- --tw-colors-i-gray-500: 107, 114, 128;
- --tw-colors-i-gray-600: 156, 163, 175;
- --tw-colors-i-gray-700: 209, 213, 219;
- --tw-colors-i-gray-800: 229, 231, 235;
- --tw-colors-i-gray-900: 243, 244, 246;
- --tw-colors-i-gray-950: 249, 250, 251;
- --tw-colors-i-zinc-50: 9, 9, 11;
- --tw-colors-i-zinc-100: 24, 24, 27;
- --tw-colors-i-zinc-200: 39, 39, 42;
- --tw-colors-i-zinc-300: 63, 63, 70;
- --tw-colors-i-zinc-400: 82, 82, 91;
- --tw-colors-i-zinc-500: 113, 113, 122;
- --tw-colors-i-zinc-600: 161, 161, 170;
- --tw-colors-i-zinc-700: 212, 212, 216;
- --tw-colors-i-zinc-800: 228, 228, 231;
- --tw-colors-i-zinc-900: 244, 244, 245;
- --tw-colors-i-zinc-950: 250, 250, 250;
- --tw-colors-i-neutral-50: 10, 10, 10;
- --tw-colors-i-neutral-100: 23, 23, 23;
- --tw-colors-i-neutral-200: 38, 38, 38;
- --tw-colors-i-neutral-300: 64, 64, 64;
- --tw-colors-i-neutral-400: 82, 82, 82;
- --tw-colors-i-neutral-500: 115, 115, 115;
- --tw-colors-i-neutral-600: 163, 163, 163;
- --tw-colors-i-neutral-700: 212, 212, 212;
- --tw-colors-i-neutral-800: 229, 229, 229;
- --tw-colors-i-neutral-900: 245, 245, 245;
- --tw-colors-i-neutral-950: 250, 250, 250;
- --tw-colors-i-stone-50: 12, 10, 9;
- --tw-colors-i-stone-100: 28, 25, 23;
- --tw-colors-i-stone-200: 41, 37, 36;
- --tw-colors-i-stone-300: 68, 64, 60;
- --tw-colors-i-stone-400: 87, 83, 78;
- --tw-colors-i-stone-500: 120, 113, 108;
- --tw-colors-i-stone-600: 168, 162, 158;
- --tw-colors-i-stone-700: 214, 211, 209;
- --tw-colors-i-stone-800: 231, 229, 228;
- --tw-colors-i-stone-900: 245, 245, 244;
- --tw-colors-i-stone-950: 250, 250, 249;
- --tw-colors-i-red-50: 69, 10, 10;
- --tw-colors-i-red-100: 127, 29, 29;
- --tw-colors-i-red-200: 153, 27, 27;
- --tw-colors-i-red-300: 185, 28, 28;
- --tw-colors-i-red-400: 220, 38, 38;
- --tw-colors-i-red-500: 239, 68, 68;
- --tw-colors-i-red-600: 248, 113, 113;
- --tw-colors-i-red-700: 252, 165, 165;
- --tw-colors-i-red-800: 254, 202, 202;
- --tw-colors-i-red-900: 254, 226, 226;
- --tw-colors-i-red-950: 254, 242, 242;
- --tw-colors-i-orange-50: 67, 20, 7;
- --tw-colors-i-orange-100: 124, 45, 18;
- --tw-colors-i-orange-200: 154, 52, 18;
- --tw-colors-i-orange-300: 194, 65, 12;
- --tw-colors-i-orange-400: 234, 88, 12;
- --tw-colors-i-orange-500: 249, 115, 22;
- --tw-colors-i-orange-600: 251, 146, 60;
- --tw-colors-i-orange-700: 253, 186, 116;
- --tw-colors-i-orange-800: 254, 215, 170;
- --tw-colors-i-orange-900: 255, 237, 213;
- --tw-colors-i-orange-950: 255, 247, 237;
- --tw-colors-i-amber-50: 69, 26, 3;
- --tw-colors-i-amber-100: 120, 53, 15;
- --tw-colors-i-amber-200: 146, 64, 14;
- --tw-colors-i-amber-300: 180, 83, 9;
- --tw-colors-i-amber-400: 217, 119, 6;
- --tw-colors-i-amber-500: 245, 158, 11;
- --tw-colors-i-amber-600: 251, 191, 36;
- --tw-colors-i-amber-700: 252, 211, 77;
- --tw-colors-i-amber-800: 253, 230, 138;
- --tw-colors-i-amber-900: 254, 243, 199;
- --tw-colors-i-amber-950: 255, 251, 235;
- --tw-colors-i-yellow-50: 66, 32, 6;
- --tw-colors-i-yellow-100: 113, 63, 18;
- --tw-colors-i-yellow-200: 133, 77, 14;
- --tw-colors-i-yellow-300: 161, 98, 7;
- --tw-colors-i-yellow-400: 202, 138, 4;
- --tw-colors-i-yellow-500: 234, 179, 8;
- --tw-colors-i-yellow-600: 250, 204, 21;
- --tw-colors-i-yellow-700: 253, 224, 71;
- --tw-colors-i-yellow-800: 254, 240, 138;
- --tw-colors-i-yellow-900: 254, 249, 195;
- --tw-colors-i-yellow-950: 254, 252, 232;
- --tw-colors-i-lime-50: 26, 46, 5;
- --tw-colors-i-lime-100: 54, 83, 20;
- --tw-colors-i-lime-200: 63, 98, 18;
- --tw-colors-i-lime-300: 77, 124, 15;
- --tw-colors-i-lime-400: 101, 163, 13;
- --tw-colors-i-lime-500: 132, 204, 22;
- --tw-colors-i-lime-600: 163, 230, 53;
- --tw-colors-i-lime-700: 190, 242, 100;
- --tw-colors-i-lime-800: 217, 249, 157;
- --tw-colors-i-lime-900: 236, 252, 203;
- --tw-colors-i-lime-950: 247, 254, 231;
- --tw-colors-i-green-50: 5, 46, 22;
- --tw-colors-i-green-100: 20, 83, 45;
- --tw-colors-i-green-200: 22, 101, 52;
- --tw-colors-i-green-300: 21, 128, 61;
- --tw-colors-i-green-400: 22, 163, 74;
- --tw-colors-i-green-500: 34, 197, 94;
- --tw-colors-i-green-600: 74, 222, 128;
- --tw-colors-i-green-700: 134, 239, 172;
- --tw-colors-i-green-800: 187, 247, 208;
- --tw-colors-i-green-900: 220, 252, 231;
- --tw-colors-i-green-950: 240, 253, 244;
- --tw-colors-i-emerald-50: 2, 44, 34;
- --tw-colors-i-emerald-100: 6, 78, 59;
- --tw-colors-i-emerald-200: 6, 95, 70;
- --tw-colors-i-emerald-300: 4, 120, 87;
- --tw-colors-i-emerald-400: 5, 150, 105;
- --tw-colors-i-emerald-500: 16, 185, 129;
- --tw-colors-i-emerald-600: 52, 211, 153;
- --tw-colors-i-emerald-700: 110, 231, 183;
- --tw-colors-i-emerald-800: 167, 243, 208;
- --tw-colors-i-emerald-900: 209, 250, 229;
- --tw-colors-i-emerald-950: 236, 253, 245;
- --tw-colors-i-teal-50: 4, 47, 46;
- --tw-colors-i-teal-100: 19, 78, 74;
- --tw-colors-i-teal-200: 17, 94, 89;
- --tw-colors-i-teal-300: 15, 118, 110;
- --tw-colors-i-teal-400: 13, 148, 136;
- --tw-colors-i-teal-500: 20, 184, 166;
- --tw-colors-i-teal-600: 45, 212, 191;
- --tw-colors-i-teal-700: 94, 234, 212;
- --tw-colors-i-teal-800: 153, 246, 228;
- --tw-colors-i-teal-900: 204, 251, 241;
- --tw-colors-i-teal-950: 240, 253, 250;
- --tw-colors-i-cyan-50: 8, 51, 68;
- --tw-colors-i-cyan-100: 22, 78, 99;
- --tw-colors-i-cyan-200: 21, 94, 117;
- --tw-colors-i-cyan-300: 14, 116, 144;
- --tw-colors-i-cyan-400: 8, 145, 178;
- --tw-colors-i-cyan-500: 6, 182, 212;
- --tw-colors-i-cyan-600: 34, 211, 238;
- --tw-colors-i-cyan-700: 103, 232, 249;
- --tw-colors-i-cyan-800: 165, 243, 252;
- --tw-colors-i-cyan-900: 207, 250, 254;
- --tw-colors-i-cyan-950: 236, 254, 255;
- --tw-colors-i-sky-50: 8, 47, 73;
- --tw-colors-i-sky-100: 12, 74, 110;
- --tw-colors-i-sky-200: 7, 89, 133;
- --tw-colors-i-sky-300: 3, 105, 161;
- --tw-colors-i-sky-400: 2, 132, 199;
- --tw-colors-i-sky-500: 14, 165, 233;
- --tw-colors-i-sky-600: 56, 189, 248;
- --tw-colors-i-sky-700: 125, 211, 252;
- --tw-colors-i-sky-800: 186, 230, 253;
- --tw-colors-i-sky-900: 224, 242, 254;
- --tw-colors-i-sky-950: 240, 249, 255;
- --tw-colors-i-blue-50: 23, 37, 84;
- --tw-colors-i-blue-100: 30, 58, 138;
- --tw-colors-i-blue-200: 30, 64, 175;
- --tw-colors-i-blue-300: 29, 78, 216;
- --tw-colors-i-blue-400: 37, 99, 235;
- --tw-colors-i-blue-500: 59, 130, 246;
- --tw-colors-i-blue-600: 96, 165, 250;
- --tw-colors-i-blue-700: 147, 197, 253;
- --tw-colors-i-blue-800: 191, 219, 254;
- --tw-colors-i-blue-900: 219, 234, 254;
- --tw-colors-i-blue-950: 239, 246, 255;
- --tw-colors-i-indigo-50: 30, 27, 75;
- --tw-colors-i-indigo-100: 49, 46, 129;
- --tw-colors-i-indigo-200: 55, 48, 163;
- --tw-colors-i-indigo-300: 67, 56, 202;
- --tw-colors-i-indigo-400: 79, 70, 229;
- --tw-colors-i-indigo-500: 99, 102, 241;
- --tw-colors-i-indigo-600: 129, 140, 248;
- --tw-colors-i-indigo-700: 165, 180, 252;
- --tw-colors-i-indigo-800: 199, 210, 254;
- --tw-colors-i-indigo-900: 224, 231, 255;
- --tw-colors-i-indigo-950: 238, 242, 255;
- --tw-colors-i-violet-50: 46, 16, 101;
- --tw-colors-i-violet-100: 76, 29, 149;
- --tw-colors-i-violet-200: 91, 33, 182;
- --tw-colors-i-violet-300: 109, 40, 217;
- --tw-colors-i-violet-400: 124, 58, 237;
- --tw-colors-i-violet-500: 139, 92, 246;
- --tw-colors-i-violet-600: 167, 139, 250;
- --tw-colors-i-violet-700: 196, 181, 253;
- --tw-colors-i-violet-800: 221, 214, 254;
- --tw-colors-i-violet-900: 237, 233, 254;
- --tw-colors-i-violet-950: 245, 243, 255;
- --tw-colors-i-purple-50: 59, 7, 100;
- --tw-colors-i-purple-100: 88, 28, 135;
- --tw-colors-i-purple-200: 107, 33, 168;
- --tw-colors-i-purple-300: 126, 34, 206;
- --tw-colors-i-purple-400: 147, 51, 234;
- --tw-colors-i-purple-500: 168, 85, 247;
- --tw-colors-i-purple-600: 192, 132, 252;
- --tw-colors-i-purple-700: 216, 180, 254;
- --tw-colors-i-purple-800: 233, 213, 255;
- --tw-colors-i-purple-900: 243, 232, 255;
- --tw-colors-i-purple-950: 250, 245, 255;
- --tw-colors-i-fuchsia-50: 74, 4, 78;
- --tw-colors-i-fuchsia-100: 112, 26, 117;
- --tw-colors-i-fuchsia-200: 134, 25, 143;
- --tw-colors-i-fuchsia-300: 162, 28, 175;
- --tw-colors-i-fuchsia-400: 192, 38, 211;
- --tw-colors-i-fuchsia-500: 217, 70, 239;
- --tw-colors-i-fuchsia-600: 232, 121, 249;
- --tw-colors-i-fuchsia-700: 240, 171, 252;
- --tw-colors-i-fuchsia-800: 245, 208, 254;
- --tw-colors-i-fuchsia-900: 250, 232, 255;
- --tw-colors-i-fuchsia-950: 253, 244, 255;
- --tw-colors-i-pink-50: 80, 7, 36;
- --tw-colors-i-pink-100: 131, 24, 67;
- --tw-colors-i-pink-200: 157, 23, 77;
- --tw-colors-i-pink-300: 190, 24, 93;
- --tw-colors-i-pink-400: 219, 39, 119;
- --tw-colors-i-pink-500: 236, 72, 153;
- --tw-colors-i-pink-600: 244, 114, 182;
- --tw-colors-i-pink-700: 249, 168, 212;
- --tw-colors-i-pink-800: 251, 207, 232;
- --tw-colors-i-pink-900: 252, 231, 243;
- --tw-colors-i-pink-950: 253, 242, 248;
- --tw-colors-i-rose-50: 76, 5, 25;
- --tw-colors-i-rose-100: 136, 19, 55;
- --tw-colors-i-rose-200: 159, 18, 57;
- --tw-colors-i-rose-300: 190, 18, 60;
- --tw-colors-i-rose-400: 225, 29, 72;
- --tw-colors-i-rose-500: 244, 63, 94;
- --tw-colors-i-rose-600: 251, 113, 133;
- --tw-colors-i-rose-700: 253, 164, 175;
- --tw-colors-i-rose-800: 254, 205, 211;
- --tw-colors-i-rose-900: 255, 228, 230;
- --tw-colors-i-rose-950: 255, 241, 242;
- --tw-colors-i-black: 255, 255, 255;
- --tw-colors-i-white: 0, 0, 0;
- }
-}
-
-@media (prefers-color-scheme: light) {
- html:not(.dark) {
- --tw-colors-i-slate-50: 248, 250, 252;
- --tw-colors-i-slate-100: 241, 245, 249;
- --tw-colors-i-slate-200: 226, 232, 240;
- --tw-colors-i-slate-300: 203, 213, 225;
- --tw-colors-i-slate-400: 148, 163, 184;
- --tw-colors-i-slate-500: 100, 116, 139;
- --tw-colors-i-slate-600: 71, 85, 105;
- --tw-colors-i-slate-700: 51, 65, 85;
- --tw-colors-i-slate-800: 30, 41, 59;
- --tw-colors-i-slate-900: 15, 23, 42;
- --tw-colors-i-slate-950: 2, 6, 23;
- --tw-colors-i-gray-50: 249, 250, 251;
- --tw-colors-i-gray-100: 243, 244, 246;
- --tw-colors-i-gray-200: 229, 231, 235;
- --tw-colors-i-gray-300: 209, 213, 219;
- --tw-colors-i-gray-400: 156, 163, 175;
- --tw-colors-i-gray-500: 107, 114, 128;
- --tw-colors-i-gray-600: 75, 85, 99;
- --tw-colors-i-gray-700: 55, 65, 81;
- --tw-colors-i-gray-800: 31, 41, 55;
- --tw-colors-i-gray-900: 17, 24, 39;
- --tw-colors-i-gray-950: 3, 7, 18;
- --tw-colors-i-zinc-50: 250, 250, 250;
- --tw-colors-i-zinc-100: 244, 244, 245;
- --tw-colors-i-zinc-200: 228, 228, 231;
- --tw-colors-i-zinc-300: 212, 212, 216;
- --tw-colors-i-zinc-400: 161, 161, 170;
- --tw-colors-i-zinc-500: 113, 113, 122;
- --tw-colors-i-zinc-600: 82, 82, 91;
- --tw-colors-i-zinc-700: 63, 63, 70;
- --tw-colors-i-zinc-800: 39, 39, 42;
- --tw-colors-i-zinc-900: 24, 24, 27;
- --tw-colors-i-zinc-950: 9, 9, 11;
- --tw-colors-i-neutral-50: 250, 250, 250;
- --tw-colors-i-neutral-100: 245, 245, 245;
- --tw-colors-i-neutral-200: 229, 229, 229;
- --tw-colors-i-neutral-300: 212, 212, 212;
- --tw-colors-i-neutral-400: 163, 163, 163;
- --tw-colors-i-neutral-500: 115, 115, 115;
- --tw-colors-i-neutral-600: 82, 82, 82;
- --tw-colors-i-neutral-700: 64, 64, 64;
- --tw-colors-i-neutral-800: 38, 38, 38;
- --tw-colors-i-neutral-900: 23, 23, 23;
- --tw-colors-i-neutral-950: 10, 10, 10;
- --tw-colors-i-stone-50: 250, 250, 249;
- --tw-colors-i-stone-100: 245, 245, 244;
- --tw-colors-i-stone-200: 231, 229, 228;
- --tw-colors-i-stone-300: 214, 211, 209;
- --tw-colors-i-stone-400: 168, 162, 158;
- --tw-colors-i-stone-500: 120, 113, 108;
- --tw-colors-i-stone-600: 87, 83, 78;
- --tw-colors-i-stone-700: 68, 64, 60;
- --tw-colors-i-stone-800: 41, 37, 36;
- --tw-colors-i-stone-900: 28, 25, 23;
- --tw-colors-i-stone-950: 12, 10, 9;
- --tw-colors-i-red-50: 254, 242, 242;
- --tw-colors-i-red-100: 254, 226, 226;
- --tw-colors-i-red-200: 254, 202, 202;
- --tw-colors-i-red-300: 252, 165, 165;
- --tw-colors-i-red-400: 248, 113, 113;
- --tw-colors-i-red-500: 239, 68, 68;
- --tw-colors-i-red-600: 220, 38, 38;
- --tw-colors-i-red-700: 185, 28, 28;
- --tw-colors-i-red-800: 153, 27, 27;
- --tw-colors-i-red-900: 127, 29, 29;
- --tw-colors-i-red-950: 69, 10, 10;
- --tw-colors-i-orange-50: 255, 247, 237;
- --tw-colors-i-orange-100: 255, 237, 213;
- --tw-colors-i-orange-200: 254, 215, 170;
- --tw-colors-i-orange-300: 253, 186, 116;
- --tw-colors-i-orange-400: 251, 146, 60;
- --tw-colors-i-orange-500: 249, 115, 22;
- --tw-colors-i-orange-600: 234, 88, 12;
- --tw-colors-i-orange-700: 194, 65, 12;
- --tw-colors-i-orange-800: 154, 52, 18;
- --tw-colors-i-orange-900: 124, 45, 18;
- --tw-colors-i-orange-950: 67, 20, 7;
- --tw-colors-i-amber-50: 255, 251, 235;
- --tw-colors-i-amber-100: 254, 243, 199;
- --tw-colors-i-amber-200: 253, 230, 138;
- --tw-colors-i-amber-300: 252, 211, 77;
- --tw-colors-i-amber-400: 251, 191, 36;
- --tw-colors-i-amber-500: 245, 158, 11;
- --tw-colors-i-amber-600: 217, 119, 6;
- --tw-colors-i-amber-700: 180, 83, 9;
- --tw-colors-i-amber-800: 146, 64, 14;
- --tw-colors-i-amber-900: 120, 53, 15;
- --tw-colors-i-amber-950: 69, 26, 3;
- --tw-colors-i-yellow-50: 254, 252, 232;
- --tw-colors-i-yellow-100: 254, 249, 195;
- --tw-colors-i-yellow-200: 254, 240, 138;
- --tw-colors-i-yellow-300: 253, 224, 71;
- --tw-colors-i-yellow-400: 250, 204, 21;
- --tw-colors-i-yellow-500: 234, 179, 8;
- --tw-colors-i-yellow-600: 202, 138, 4;
- --tw-colors-i-yellow-700: 161, 98, 7;
- --tw-colors-i-yellow-800: 133, 77, 14;
- --tw-colors-i-yellow-900: 113, 63, 18;
- --tw-colors-i-yellow-950: 66, 32, 6;
- --tw-colors-i-lime-50: 247, 254, 231;
- --tw-colors-i-lime-100: 236, 252, 203;
- --tw-colors-i-lime-200: 217, 249, 157;
- --tw-colors-i-lime-300: 190, 242, 100;
- --tw-colors-i-lime-400: 163, 230, 53;
- --tw-colors-i-lime-500: 132, 204, 22;
- --tw-colors-i-lime-600: 101, 163, 13;
- --tw-colors-i-lime-700: 77, 124, 15;
- --tw-colors-i-lime-800: 63, 98, 18;
- --tw-colors-i-lime-900: 54, 83, 20;
- --tw-colors-i-lime-950: 26, 46, 5;
- --tw-colors-i-green-50: 240, 253, 244;
- --tw-colors-i-green-100: 220, 252, 231;
- --tw-colors-i-green-200: 187, 247, 208;
- --tw-colors-i-green-300: 134, 239, 172;
- --tw-colors-i-green-400: 74, 222, 128;
- --tw-colors-i-green-500: 34, 197, 94;
- --tw-colors-i-green-600: 22, 163, 74;
- --tw-colors-i-green-700: 21, 128, 61;
- --tw-colors-i-green-800: 22, 101, 52;
- --tw-colors-i-green-900: 20, 83, 45;
- --tw-colors-i-green-950: 5, 46, 22;
- --tw-colors-i-emerald-50: 236, 253, 245;
- --tw-colors-i-emerald-100: 209, 250, 229;
- --tw-colors-i-emerald-200: 167, 243, 208;
- --tw-colors-i-emerald-300: 110, 231, 183;
- --tw-colors-i-emerald-400: 52, 211, 153;
- --tw-colors-i-emerald-500: 16, 185, 129;
- --tw-colors-i-emerald-600: 5, 150, 105;
- --tw-colors-i-emerald-700: 4, 120, 87;
- --tw-colors-i-emerald-800: 6, 95, 70;
- --tw-colors-i-emerald-900: 6, 78, 59;
- --tw-colors-i-emerald-950: 2, 44, 34;
- --tw-colors-i-teal-50: 240, 253, 250;
- --tw-colors-i-teal-100: 204, 251, 241;
- --tw-colors-i-teal-200: 153, 246, 228;
- --tw-colors-i-teal-300: 94, 234, 212;
- --tw-colors-i-teal-400: 45, 212, 191;
- --tw-colors-i-teal-500: 20, 184, 166;
- --tw-colors-i-teal-600: 13, 148, 136;
- --tw-colors-i-teal-700: 15, 118, 110;
- --tw-colors-i-teal-800: 17, 94, 89;
- --tw-colors-i-teal-900: 19, 78, 74;
- --tw-colors-i-teal-950: 4, 47, 46;
- --tw-colors-i-cyan-50: 236, 254, 255;
- --tw-colors-i-cyan-100: 207, 250, 254;
- --tw-colors-i-cyan-200: 165, 243, 252;
- --tw-colors-i-cyan-300: 103, 232, 249;
- --tw-colors-i-cyan-400: 34, 211, 238;
- --tw-colors-i-cyan-500: 6, 182, 212;
- --tw-colors-i-cyan-600: 8, 145, 178;
- --tw-colors-i-cyan-700: 14, 116, 144;
- --tw-colors-i-cyan-800: 21, 94, 117;
- --tw-colors-i-cyan-900: 22, 78, 99;
- --tw-colors-i-cyan-950: 8, 51, 68;
- --tw-colors-i-sky-50: 240, 249, 255;
- --tw-colors-i-sky-100: 224, 242, 254;
- --tw-colors-i-sky-200: 186, 230, 253;
- --tw-colors-i-sky-300: 125, 211, 252;
- --tw-colors-i-sky-400: 56, 189, 248;
- --tw-colors-i-sky-500: 14, 165, 233;
- --tw-colors-i-sky-600: 2, 132, 199;
- --tw-colors-i-sky-700: 3, 105, 161;
- --tw-colors-i-sky-800: 7, 89, 133;
- --tw-colors-i-sky-900: 12, 74, 110;
- --tw-colors-i-sky-950: 8, 47, 73;
- --tw-colors-i-blue-50: 239, 246, 255;
- --tw-colors-i-blue-100: 219, 234, 254;
- --tw-colors-i-blue-200: 191, 219, 254;
- --tw-colors-i-blue-300: 147, 197, 253;
- --tw-colors-i-blue-400: 96, 165, 250;
- --tw-colors-i-blue-500: 59, 130, 246;
- --tw-colors-i-blue-600: 37, 99, 235;
- --tw-colors-i-blue-700: 29, 78, 216;
- --tw-colors-i-blue-800: 30, 64, 175;
- --tw-colors-i-blue-900: 30, 58, 138;
- --tw-colors-i-blue-950: 23, 37, 84;
- --tw-colors-i-indigo-50: 238, 242, 255;
- --tw-colors-i-indigo-100: 224, 231, 255;
- --tw-colors-i-indigo-200: 199, 210, 254;
- --tw-colors-i-indigo-300: 165, 180, 252;
- --tw-colors-i-indigo-400: 129, 140, 248;
- --tw-colors-i-indigo-500: 99, 102, 241;
- --tw-colors-i-indigo-600: 79, 70, 229;
- --tw-colors-i-indigo-700: 67, 56, 202;
- --tw-colors-i-indigo-800: 55, 48, 163;
- --tw-colors-i-indigo-900: 49, 46, 129;
- --tw-colors-i-indigo-950: 30, 27, 75;
- --tw-colors-i-violet-50: 245, 243, 255;
- --tw-colors-i-violet-100: 237, 233, 254;
- --tw-colors-i-violet-200: 221, 214, 254;
- --tw-colors-i-violet-300: 196, 181, 253;
- --tw-colors-i-violet-400: 167, 139, 250;
- --tw-colors-i-violet-500: 139, 92, 246;
- --tw-colors-i-violet-600: 124, 58, 237;
- --tw-colors-i-violet-700: 109, 40, 217;
- --tw-colors-i-violet-800: 91, 33, 182;
- --tw-colors-i-violet-900: 76, 29, 149;
- --tw-colors-i-violet-950: 46, 16, 101;
- --tw-colors-i-purple-50: 250, 245, 255;
- --tw-colors-i-purple-100: 243, 232, 255;
- --tw-colors-i-purple-200: 233, 213, 255;
- --tw-colors-i-purple-300: 216, 180, 254;
- --tw-colors-i-purple-400: 192, 132, 252;
- --tw-colors-i-purple-500: 168, 85, 247;
- --tw-colors-i-purple-600: 147, 51, 234;
- --tw-colors-i-purple-700: 126, 34, 206;
- --tw-colors-i-purple-800: 107, 33, 168;
- --tw-colors-i-purple-900: 88, 28, 135;
- --tw-colors-i-purple-950: 59, 7, 100;
- --tw-colors-i-fuchsia-50: 253, 244, 255;
- --tw-colors-i-fuchsia-100: 250, 232, 255;
- --tw-colors-i-fuchsia-200: 245, 208, 254;
- --tw-colors-i-fuchsia-300: 240, 171, 252;
- --tw-colors-i-fuchsia-400: 232, 121, 249;
- --tw-colors-i-fuchsia-500: 217, 70, 239;
- --tw-colors-i-fuchsia-600: 192, 38, 211;
- --tw-colors-i-fuchsia-700: 162, 28, 175;
- --tw-colors-i-fuchsia-800: 134, 25, 143;
- --tw-colors-i-fuchsia-900: 112, 26, 117;
- --tw-colors-i-fuchsia-950: 74, 4, 78;
- --tw-colors-i-pink-50: 253, 242, 248;
- --tw-colors-i-pink-100: 252, 231, 243;
- --tw-colors-i-pink-200: 251, 207, 232;
- --tw-colors-i-pink-300: 249, 168, 212;
- --tw-colors-i-pink-400: 244, 114, 182;
- --tw-colors-i-pink-500: 236, 72, 153;
- --tw-colors-i-pink-600: 219, 39, 119;
- --tw-colors-i-pink-700: 190, 24, 93;
- --tw-colors-i-pink-800: 157, 23, 77;
- --tw-colors-i-pink-900: 131, 24, 67;
- --tw-colors-i-pink-950: 80, 7, 36;
- --tw-colors-i-rose-50: 255, 241, 242;
- --tw-colors-i-rose-100: 255, 228, 230;
- --tw-colors-i-rose-200: 254, 205, 211;
- --tw-colors-i-rose-300: 253, 164, 175;
- --tw-colors-i-rose-400: 251, 113, 133;
- --tw-colors-i-rose-500: 244, 63, 94;
- --tw-colors-i-rose-600: 225, 29, 72;
- --tw-colors-i-rose-700: 190, 18, 60;
- --tw-colors-i-rose-800: 159, 18, 57;
- --tw-colors-i-rose-900: 136, 19, 55;
- --tw-colors-i-rose-950: 76, 5, 25;
- --tw-colors-i-black: 0, 0, 0;
- --tw-colors-i-white: 255, 255, 255;
- }
-}
diff --git a/src/css/main.css b/src/css/main.css
index 65f036bd..16ca3065 100644
--- a/src/css/main.css
+++ b/src/css/main.css
@@ -5,5 +5,4 @@
@import "./prose.css";
@import "./code.css";
@import "./prism-dark.css";
-@import "./css-var.css";
@import "./print.css";
diff --git a/src/css/tailwind.css b/src/css/tailwind.css
index fee07066..b51df0f6 100644
--- a/src/css/tailwind.css
+++ b/src/css/tailwind.css
@@ -371,17 +371,92 @@ textarea.input {
background-color: var(--banner-bg-color);
}
-#nprogress .bar {
- @apply bg-accent !important;
+/* Fancy blur effect */
+#qprogress .peg {
+ display: block;
+ position: absolute;
+ right: 0px;
+ width: 100px;
+ height: 100%;
+ opacity: 1;
+
+ -webkit-transform: rotate(3deg) translate(0px, -4px);
+ -ms-transform: rotate(3deg) translate(0px, -4px);
+ transform: rotate(3deg) translate(0px, -4px);
}
-#nprogress .peg {
- @apply shadow-none !important;
+.qprogress-custom-parent {
+ overflow: hidden;
+ position: relative;
}
-#nprogress .spinner-icon {
- @apply border-t-accent !important;
- @apply border-l-accent !important;
+.qprogress-custom-parent #qprogress .bar {
+ position: absolute;
+}
+
+/* Colorful effect */
+#qprogress .colorful-bar {
+ background: -webkit-gradient(
+ linear,
+ left top,
+ right top,
+ from(#1890ff),
+ color-stop(#13c2c2),
+ color-stop(#52c41a),
+ color-stop(#fa8c16),
+ color-stop(#fa541c),
+ color-stop(#f5222d),
+ to(#1890ff)
+ );
+ background: -webkit-linear-gradient(
+ left,
+ #1890ff,
+ #13c2c2,
+ #52c41a,
+ #fa8c16,
+ #fa541c,
+ #f5222d,
+ #1890ff
+ );
+ background: linear-gradient(
+ to right,
+ #1890ff,
+ #13c2c2,
+ #52c41a,
+ #fa8c16,
+ #fa541c,
+ #f5222d,
+ #1890ff
+ );
+
+ -webkit-animation: 2s linear infinite ins;
+ animation: 2s linear infinite ins;
+
+ -webkit-transition: opacity 0.2s ease-in-out;
+ transition: opacity 0.2s ease-in-out;
+
+ -webkit-transform-origin: left;
+ transform-origin: left;
+
+ background-size: 500%;
+}
+
+@-webkit-keyframes ins {
+ 0% {
+ background-position: 0% 0;
+ }
+ to {
+ background-position: 125% 0;
+ }
+}
+
+@keyframes ins {
+ 0% {
+ background-position: 0% 0;
+ }
+ to {
+ background-position: 125% 0;
+ }
}
.loading:before {
diff --git a/src/hooks/useAcceptLang.ts b/src/hooks/useAcceptLang.ts
new file mode 100644
index 00000000..eb3dc951
--- /dev/null
+++ b/src/hooks/useAcceptLang.ts
@@ -0,0 +1,19 @@
+import { headers } from "next/headers"
+
+import { fallbackLng } from "~/lib/i18n/settings"
+
+export function useAcceptLang() {
+ let lng = fallbackLng
+
+ let acceptLang = headers().get("accept-language")?.split(",")[0]
+ if (acceptLang === "zh-HK" || acceptLang === "zh-TW") {
+ acceptLang = "zh-TW"
+ } else {
+ acceptLang = acceptLang?.split("-")[0]
+ }
+ if (acceptLang) {
+ lng = acceptLang
+ }
+
+ return lng
+}
diff --git a/src/hooks/useDate.ts b/src/hooks/useDate.ts
index e182d3d4..fa75c2e4 100644
--- a/src/hooks/useDate.ts
+++ b/src/hooks/useDate.ts
@@ -8,9 +8,10 @@ import localizedFormat from "dayjs/plugin/localizedFormat"
import relativeTime from "dayjs/plugin/relativeTime"
import tz from "dayjs/plugin/timezone"
import utc from "dayjs/plugin/utc"
-import { useTranslation } from "next-i18next"
import { useMemo } from "react"
+import { useTranslation } from "~/lib/i18n/client"
+
dayjs.extend(localizedFormat)
dayjs.extend(utc)
dayjs.extend(tz)
diff --git a/src/hooks/useDateServer.ts b/src/hooks/useDateServer.ts
new file mode 100644
index 00000000..1f7c6836
--- /dev/null
+++ b/src/hooks/useDateServer.ts
@@ -0,0 +1,42 @@
+import dayjs from "dayjs"
+import "dayjs/locale/en"
+import "dayjs/locale/ja"
+import "dayjs/locale/zh"
+import "dayjs/locale/zh-tw"
+import duration from "dayjs/plugin/duration"
+import localizedFormat from "dayjs/plugin/localizedFormat"
+import relativeTime from "dayjs/plugin/relativeTime"
+import tz from "dayjs/plugin/timezone"
+import utc from "dayjs/plugin/utc"
+import { useMemo } from "react"
+
+import { useTranslation } from "~/lib/i18n"
+
+dayjs.extend(localizedFormat)
+dayjs.extend(utc)
+dayjs.extend(tz)
+dayjs.extend(duration)
+dayjs.extend(relativeTime)
+
+export async function useDate() {
+ const { i18n } = await useTranslation()
+
+ const memoizedDateUtils = useMemo(() => {
+ dayjs.locale(i18n.resolvedLanguage)
+
+ return {
+ dayjs,
+ formatDate: (date: string | Date, format = "ll", timezone?: string) => {
+ return dayjs(date).tz(timezone).format(format)
+ },
+ formatToISO: (date: string | Date) => {
+ return dayjs(date || undefined).toISOString()
+ },
+ inLocalTimezone: (date: string | Date) => {
+ return dayjs(date).tz().toDate()
+ },
+ }
+ }, [i18n.resolvedLanguage])
+
+ return memoizedDateUtils
+}
diff --git a/src/hooks/useLang.ts b/src/hooks/useLang.ts
new file mode 100644
index 00000000..369d2adc
--- /dev/null
+++ b/src/hooks/useLang.ts
@@ -0,0 +1,13 @@
+import { useContext } from "react"
+
+import { LangContext, LangContextType } from "~/providers/LangProvider"
+
+export function useLang(): LangContextType {
+ const context = useContext(LangContext)
+
+ if (!context) {
+ throw new Error("useLang must be used within a LangProvider")
+ }
+
+ return context
+}
diff --git a/src/hooks/useNProgress.ts b/src/hooks/useNProgress.ts
new file mode 100644
index 00000000..decba3e5
--- /dev/null
+++ b/src/hooks/useNProgress.ts
@@ -0,0 +1,25 @@
+"use client"
+
+import Progress from "qier-progress"
+import { useEffect, useRef } from "react"
+
+import { useAppRouterEventerListener } from "./useRouterEvents"
+
+export const useNProgress = () => {
+ const events = useAppRouterEventerListener()
+
+ const instance = useRef(
+ new Progress({ color: "var(--theme-color)", colorful: false }),
+ )
+ useEffect(() => {
+ const disposers = [] as any[]
+
+ disposers.push(
+ events.onStart(() => {
+ instance.current.start()
+ }),
+ )
+ disposers.push(events.onComplete(() => instance.current.finish()))
+ return () => disposers.forEach((disposer) => disposer())
+ }, [])
+}
diff --git a/src/hooks/useRouterEvents.ts b/src/hooks/useRouterEvents.ts
new file mode 100644
index 00000000..d455cd93
--- /dev/null
+++ b/src/hooks/useRouterEvents.ts
@@ -0,0 +1,98 @@
+import { usePathname, useRouter, useSearchParams } from "next/navigation"
+import { useEffect, useRef, useState } from "react"
+
+import { pick } from "~/lib/utils"
+
+interface RouterNavigationEvent {}
+
+type RouterEventFunction = (e: RouterNavigationEvent) => void
+
+// TODO detect error event
+export const useAppRouterEventerListener = () => {
+ const [isRouterComplete, setIsRouterComplete] = useState(false)
+
+ const startChangeCallback = () => {
+ setIsRouterComplete(false)
+ eventsRegisters.current.onStartQ.forEach(($) => $(buildEvent()))
+ }
+ const router = useRouter()
+ useEffect(() => {
+ const rawPush = router.push
+ const rawReplace = router.replace
+
+ // const popstateHandler = () => {
+ // startChangeCallback()
+ // }
+
+ // window.addEventListener("popstate", popstateHandler)
+
+ router.push = (...rest) => {
+ startChangeCallback()
+
+ // eslint-disable-next-line prefer-spread
+ rawPush.apply(null, rest)
+ }
+
+ router.replace = (...rest) => {
+ startChangeCallback()
+
+ // eslint-disable-next-line prefer-spread
+ rawReplace.apply(null, rest)
+ }
+
+ return () => {
+ router.push = rawPush
+ router.replace = rawReplace
+
+ // window.removeEventListener("popstate", popstateHandler)
+ }
+ }, [])
+
+ const eventsRegisters = useRef({
+ onStartQ: [] as RouterEventFunction[],
+ // onErrorQ: [] as RouterEventFunction[],
+ onCompleteQ: [] as RouterEventFunction[],
+ onStart(cb: RouterEventFunction) {
+ eventsRegisters.current.onStartQ.push(cb)
+ return () => {
+ eventsRegisters.current.onStartQ =
+ eventsRegisters.current.onStartQ.filter(($) => $ !== cb)
+ }
+ },
+
+ onComplete(cb: RouterEventFunction) {
+ eventsRegisters.current.onCompleteQ.push(cb)
+ return () => {
+ eventsRegisters.current.onCompleteQ =
+ eventsRegisters.current.onCompleteQ.filter(($) => $ !== cb)
+ }
+ },
+ })
+
+ const buildEvent = (): RouterNavigationEvent => {
+ return {
+ url: location.pathname + location.search,
+ }
+ }
+
+ useEffect(() => {
+ if (!isRouterComplete) return
+
+ eventsRegisters.current.onCompleteQ.forEach(($) => $(buildEvent()))
+ }, [isRouterComplete])
+
+ const currentPathname = usePathname()
+ const searchParams = useSearchParams()
+
+ useEffect(() => {
+ if (
+ currentPathname === location.pathname &&
+ searchParams?.toString() ===
+ new URLSearchParams(location.search).toString()
+ ) {
+ setIsRouterComplete(true)
+ }
+ }, [currentPathname, searchParams])
+
+ return pick(eventsRegisters.current, ["onStart", "onComplete"])
+}
diff --git a/src/lib/default-slug.ts b/src/lib/default-slug.ts
index 633621f5..cd13f308 100644
--- a/src/lib/default-slug.ts
+++ b/src/lib/default-slug.ts
@@ -1,11 +1,12 @@
-import pinyin from "pinyin"
+import { pinyin } from "pinyin-pro"
export const getDefaultSlug = (title: string, id?: string) => {
let generated =
- pinyin(title as string, {
- style: pinyin.STYLE_NORMAL,
- compact: true,
- })?.[0]
+ pinyin(title, {
+ toneType: "none",
+ type: "array",
+ nonZh: "consecutive",
+ })
?.map((word) => word.trim())
?.filter((word) => word)
?.join("-")
diff --git a/src/lib/env.ts b/src/lib/env.ts
index 78fe1beb..cef5ede6 100644
--- a/src/lib/env.ts
+++ b/src/lib/env.ts
@@ -1,6 +1,8 @@
import { IS_PROD } from "./constants"
export const APP_NAME = process.env.NEXT_PUBLIC_APP_NAME || "xLog"
+export const APP_SLOGAN =
+ process.env.NEXT_PUBLIC_APP_SLOGAN || "Write. Own. Earn."
export const OUR_DOMAIN =
process.env.NEXT_PUBLIC_OUR_DOMAIN || process.env.NEXT_PUBLIC_VERCEL_URL
export const SCORE_API_DOMAIN = process.env.NEXT_PUBLIC_SCORE_API_DOMAIN
diff --git a/src/lib/expand-unit.ts b/src/lib/expand-unit.ts
index 6a1d0c38..1c6c9407 100644
--- a/src/lib/expand-unit.ts
+++ b/src/lib/expand-unit.ts
@@ -124,10 +124,27 @@ export const expandCrossbellCharacter = (site: CharacterEntity) => {
)
}
if (expandedCharacter.metadata.content.banners) {
- expandedCharacter.metadata.content.banners.map((banner) => {
- banner.address = toGateway(banner.address)
- return banner
- })
+ expandedCharacter.metadata.content.banners
+ .map((banner: { address: string; mime_type: string } | string) => {
+ let expandedBanner
+ switch (typeof banner) {
+ case "string":
+ expandedBanner = {
+ address: toGateway(banner),
+ }
+ break
+ case "object":
+ if (banner.address) {
+ expandedBanner = {
+ ...banner,
+ address: toGateway(banner.address),
+ }
+ }
+ break
+ }
+ return expandedBanner
+ })
+ .filter(Boolean)
}
return expandedCharacter
diff --git a/src/lib/helpers.ts b/src/lib/helpers.ts
index 67efac86..e8bc3379 100644
--- a/src/lib/helpers.ts
+++ b/src/lib/helpers.ts
@@ -1,4 +1,4 @@
-import { NoteEntity } from "crossbell.js"
+import type { NoteEntity } from "crossbell.js"
import { ExpandedCharacter, ExpandedNote } from "~/lib/types"
@@ -15,7 +15,7 @@ export const getSiteLink = ({
subdomain: string
noProtocol?: boolean
}) => {
- if (IS_VERCEL_PREVIEW) return `/_site/${subdomain}`
+ if (IS_VERCEL_PREVIEW) return `/site/${subdomain}`
if (domain) {
return `https://${domain}`
@@ -30,11 +30,11 @@ export const getSiteLink = ({
export const getSlugUrl = (slug: string) => {
if (!isServerSide() && IS_VERCEL_PREVIEW) {
const pathArr = new URL(location.href).pathname.split("/").filter(($) => $)
- const indicatorIndex = pathArr.findIndex(($) => $ === "_site")
+ const indicatorIndex = pathArr.findIndex(($) => $ === "site")
if (-~indicatorIndex) {
const handle = pathArr[indicatorIndex + 1]
- return `/_site/${handle}${slug}`
+ return `/site/${handle}${slug}`
}
}
diff --git a/src/lib/i18n/client.ts b/src/lib/i18n/client.ts
new file mode 100644
index 00000000..f3825ac8
--- /dev/null
+++ b/src/lib/i18n/client.ts
@@ -0,0 +1,35 @@
+"use client"
+
+import i18next from "i18next"
+import resourcesToBackend from "i18next-resources-to-backend"
+import {
+ initReactI18next,
+ useTranslation as useTranslationOrg,
+} from "react-i18next"
+import { Trans as TransW } from "react-i18next/TransWithoutContext"
+
+import { useLang } from "~/hooks/useLang"
+
+import { defaultNS, getOptions } from "./settings"
+
+i18next
+ .use(initReactI18next)
+ .use(
+ resourcesToBackend(
+ (language: string, namespace: string) =>
+ import(`./locales/${language}/${namespace}.json`),
+ ),
+ )
+ .init({
+ ...getOptions(),
+ })
+
+export function useTranslation(ns: string = defaultNS) {
+ const { lang } = useLang()
+ if (i18next.resolvedLanguage !== lang) {
+ i18next.changeLanguage(lang)
+ }
+ return useTranslationOrg(ns)
+}
+
+export const Trans = TransW
diff --git a/src/lib/i18n/index.ts b/src/lib/i18n/index.ts
new file mode 100644
index 00000000..a8c99868
--- /dev/null
+++ b/src/lib/i18n/index.ts
@@ -0,0 +1,33 @@
+import { createInstance } from "i18next"
+import resourcesToBackend from "i18next-resources-to-backend"
+import { Trans as TransW } from "react-i18next/TransWithoutContext"
+import { initReactI18next } from "react-i18next/initReactI18next"
+
+import { useAcceptLang } from "~/hooks/useAcceptLang"
+
+import { defaultNS, getOptions } from "./settings"
+
+const initI18next = async (lng: string, ns: string) => {
+ const i18nInstance = createInstance()
+ await i18nInstance
+ .use(initReactI18next)
+ .use(
+ resourcesToBackend(
+ (language: string, namespace: string) =>
+ import(`./locales/${language}/${namespace}.json`),
+ ),
+ )
+ .init(getOptions(lng, ns))
+ return i18nInstance
+}
+
+export async function useTranslation(ns: string = defaultNS) {
+ const lang = useAcceptLang()
+ const i18nextInstance = await initI18next(lang, ns)
+ return {
+ t: i18nextInstance.getFixedT(lang, ns),
+ i18n: i18nextInstance,
+ }
+}
+
+export const Trans = TransW
diff --git a/src/lib/i18n/locales/en/common.json b/src/lib/i18n/locales/en/common.json
new file mode 100644
index 00000000..34fbe517
--- /dev/null
+++ b/src/lib/i18n/locales/en/common.json
@@ -0,0 +1,5 @@
+{
+ "intlDateTime": "{{val, datetime}}",
+ "ago": "{{time}} ago",
+ "joined ago": "Joined {{time}} ago"
+}
\ No newline at end of file
diff --git a/src/lib/i18n/locales/en/dashboard.json b/src/lib/i18n/locales/en/dashboard.json
new file mode 100644
index 00000000..7a21d580
--- /dev/null
+++ b/src/lib/i18n/locales/en/dashboard.json
@@ -0,0 +1,5 @@
+{
+ "link post-vs-page" : "https://wordpress.com/zh-cn/support/post-vs-page/",
+ "delete_confirmation_post": "Are you sure you want to DELETE this post?",
+ "delete_confirmation_page": "Are you sure you want to DELETE this page?"
+}
\ No newline at end of file
diff --git a/src/lib/i18n/locales/en/index.json b/src/lib/i18n/locales/en/index.json
new file mode 100644
index 00000000..4ef89d59
--- /dev/null
+++ b/src/lib/i18n/locales/en/index.json
@@ -0,0 +1,29 @@
+{
+ "features": {
+ "Write": {
+ "subtitle": "Write when inspiration strikes",
+ "description": "Frees you from time-consuming, unnecessary processes that slow your writing, so you and your team can focus on creating."
+ },
+ "Own": {
+ "subtitle": "Own content on the blockchain",
+ "description": "You own your content by publishing content on the Crossbell blockchain. xLog won't store any data and can't take away or modify your rights and content, even if xLog wanted to.
Learn how Crossbell works. ",
+ "extra": {
+ "title": "Don't Trust, Verify",
+ "description": "It's a good habit not to trust anyone easily on the Internet, including xLog. Therefore, we strongly recommend that you visit any site on xLog, check the transaction history at the bottom of the page, read the blockchain contract code, and verify for yourself what xLog claims.",
+ "button": "Verify it"
+ }
+ },
+ "Earn": {
+ "subtitle": "Earn tokens and rights",
+ "description": "Great content deserves to be rewarded, and a blockchain offers the wonderful opportunity for creators to be rewarded transparently and fairly. An xLog DAO will further promote the growth of our community."
+ }
+ },
+ "Easy to get started text": "xLog supports
web3 wallets and
email connections, allowing you to quickly create a customized blog with features like a custom domain, subscriptions, comments, NFT minting, RSS feeds, and AI enhancements in just 5 minutes - with no application or costs required.",
+ "Elegant experience text": "xLog offers a dual-pane editor with
real-time preview for an excellent writing experience, using standard
Markdown syntax with support for
HTML ,
audio/video , and math expressions. The elegantly designed page provides a comfortable reading experience for readers.",
+ "Fast text": "Blockchain doesn't always mean low efficiency. xLog operates at peak performance thanks to its efficient caching mechanism and numerous optimizations. The site also supports
PWA for local installation and use.",
+ "Safe text": "All blog data, including configs, posts, subscriptions, comments, etc., are signed and securely stored on the
blockchain with your own hands, with control only accessible through the
private key held by yourself. No one else, including xLog, can make any changes.",
+ "Customizable text": "You're free to use your
own domain , customize your website, and
design it in any way you like. This is your website, with no restrictions. xLog encourage and will provide a rich system of
themes and plugins to help you customize it.",
+ "Open text": "xLog offers import and export tools, as well as rich
APIs and third-party
integrations . All code is
open source on GitHub, and all data is
transparent on the blockchain. xLog has nothing to hide.",
+ "Creator Incentives text": "In the early stages, xLog provides
incentives in
MIRA . We are actively constructing the tokenomics to ensure xLog remain the best place to publish high-quality content.",
+ "DAO text": "An xLog DAO will be in place, where creators vote with
tokens ."
+}
diff --git a/src/lib/i18n/locales/en/site.json b/src/lib/i18n/locales/en/site.json
new file mode 100644
index 00000000..0fe088ce
--- /dev/null
+++ b/src/lib/i18n/locales/en/site.json
@@ -0,0 +1,4 @@
+{
+ "load more": "There are {{count}} more {{name}}, click to load more",
+ "signed and stored on the blockchain": "Ownership of this {{name}} data is guaranteed by blockchain and smart contracts to the creator alone."
+}
\ No newline at end of file
diff --git a/src/lib/i18n/locales/ja/common.json b/src/lib/i18n/locales/ja/common.json
new file mode 100644
index 00000000..2dd0cc98
--- /dev/null
+++ b/src/lib/i18n/locales/ja/common.json
@@ -0,0 +1,59 @@
+{
+ "Connect": "æĨįķ",
+ "Followers": "ããĐããŊãž",
+ "Following": "ããĐããžäļ",
+ "Followings": "ããĐããžæļ",
+ "Follow": "ããĐããžãã",
+ "Unfollow": "ããĐããžãåĪã",
+ "intlDateTime": "{{val, datetime}}",
+ "post": "æįŦ ",
+ "posts": "æįŦ ",
+ "page": "ããžãļ",
+ "pages": "ããžãļ",
+ "comment": "ãģãĄãģã",
+ "comments": "ãģãĄãģã",
+ "Comment": "ãģãĄãģã",
+ "Comments": "ãģãĄãģã",
+ "reply": "čŋäŋĄ",
+ "replies": "čŋäŋĄ",
+ "like": "ããã",
+ "likes": "ããã",
+ "blog": "ããã°",
+ "Owner": "ææč
",
+ "Transaction Hash": "ååžããã·ãĨ",
+ "IPFS Address": "IPFS ãĒããŽãđ",
+ "Creation": "ä―æ",
+ "Last Update": "æåūæīæ°",
+ "Create Character": "æ°čĶããĢãĐãŊãŋãž",
+ "Submit": "éäŋĄ",
+ "Reply": "čŋäŋĄ",
+ "Cancel Reply": "ããĢãģãŧãŦ",
+ "ago": "{{time}}å",
+ "joined ago": "{{time}}ãŦåå ãã",
+ "Mint to an NFT": "NFTãĻããĶããģã",
+ "Like successfully": "ãããæļ",
+ "Mint successfully": "ããģãæļ",
+ "like stored": "ããããŊåŪå
ĻãŦããããŊãã§ãžãģãŦäŋåãããūããã <2>Crossbell Scan2> ã§įĒščŠã§ããūãã",
+ "mint stored": "ããŪčĻäšãNFTãĻããĶããģãããūããã <2>xChar2> ãūããŊ <6>Crossbell Scan6> ã§įĒščŠã§ããūãã",
+ "Got it, thanks!": "äšč§ĢããūãããããããĻãããããūãïž",
+ "Like List": "ããããŠãđã",
+ "Mint List": "ããģããŠãđã",
+ "Revert": "éäžæļãŋ",
+ "Confirm to revert": "éäžįĒščŠ",
+ "like revert": "ããŪãĐãĪãŊãĒãŊã·ã§ãģãæĪåãããå īåãŊããã§ããŊããĶãã ããã",
+ "Cancel": "ããĢãģãŧãŦ",
+ "Confirm": "įĒščŠ",
+ "No Content Yet.": "ãūã ä―ããããūããã",
+ "Close": "éãã",
+ "Dashboard": "ããã·ãĨããžã",
+ "Copied!": "ãģããžããūããïž",
+ "Operator Sign": "ãŠããŽãžãŋãžį―ēå",
+ "Switch Characters": "ããĢãĐãŊãŋãžãåãæŋãã",
+ "Upgrade to Wallet": "ãĶãĐãŽãããŦãĒããã°ãŽãžã",
+ "Disconnect": "äļæãã",
+ "Loading": "čŠãŋčūžãŋäļ",
+ "Showcase": "ã·ã§ãžãąãžãđ",
+ "AI-generated summary": "AIãįæããčĶįī",
+ "Generating": "įæäļ",
+ "Show more": "ããĢãĻčĄĻįĪšãã"
+}
diff --git a/src/lib/i18n/locales/ja/dashboard.json b/src/lib/i18n/locales/ja/dashboard.json
new file mode 100644
index 00000000..e33daacd
--- /dev/null
+++ b/src/lib/i18n/locales/ja/dashboard.json
@@ -0,0 +1,124 @@
+{
+ "Dashboard": "ããã·ãĨããžã",
+ "Posts": "æįŦ ",
+ "Pages": "ããžãļ",
+ "Notifications": "éįĨ",
+ "Unread notifications": "æŠčŠãŪéįĨ",
+ "Settings": "čĻåŪ",
+ "Site Stats": "ãĩãĪããŪįĩąčĻæ
å ą",
+ "Total Posts": "čĻäšæ°",
+ "Total Comments": "ãģãĄãģãæ°",
+ "Total Followers": "ããĐããŊãžæ°",
+ "Total Views": "éēčͧæ°",
+ "Site Duration": "ãĩãĪããŪéåķæé",
+ "days": "æĨ",
+ "Deleted!": "åéĪãããūããïž",
+ "Fail to Deleted.": "åéĪã§ããūããã§ããã",
+ "Converted!": "åĪæãããūããïž",
+ "Failed to convert.": "åĪæãŦåĪąæããūããã",
+ "All Posts": "ããđãĶãŪčĻäš",
+ "All Pages": "ããđãĶãŪããžãļ",
+ "Published": "å
Žéæļãŋ",
+ "published": "å
Žéæļãŋ",
+ "Draft": "äļæļã",
+ "draft": "äļæļã",
+ "Scheduled": "äšįīæļãŋ",
+ "scheduled": "äšįīæļãŋ",
+ "published and local modified": "å
Žéæļãŋã§ãããžãŦãŦã§ãŪį·Ļéãã",
+ "link post-vs-page": "https://wordpress.com/ja/support/post-vs-page/",
+ "posts description": "čĻäšãŊãæéé ãŦčĄĻįĪšãããūããčŠč
ãŦæ°ãããģãģããģããæäūãįķããããĻã§ãããã°ãŪããĐããžãŊãåĒããã§ãããã<2>čĻäš2>",
+ "pages description": "ããžãļãŊæĨäŧãŦå―ąéŋãåããããĻããããūããããį§ããĄãŦãĪããĶãããåãåããããŠãĐãŪãããŦããžãļãæīŧįĻããūãããã<2>ããžãļ2>",
+ "pages add": "ããžãļãä―æããåūã<2>ãããēãžã·ã§ãģãĄããĨãžãŦčŋ―å ãã2>ããĻãã§ããūãããããēãžã·ã§ãģãĄããĨãžãŦčŋ―å ããããĻã§čĻŠåč
ããããčĶãĪãããããŠããūãã",
+ "New Post": "æ°ããčĻäš",
+ "New Page": "æ°ããããžãļ",
+ "Import": "ãĪãģããžã",
+ "Import markdown file with front matter supported": "Markdown ããĄãĪãŦïžFront MatterïžããĪãģããžãããūãã",
+ "View Site": "ãĩãĪããčĄĻįĪš",
+ "hello": {
+ "welcome": "
ãããŦãĄãŊã
xLog ããåĐįĻããã ãããããĻãããããūãïž
xLog ãä―ŋãå§ãããããŪãããĪããŪäūŋåĐãŠãŠãģãŊãäŧĨäļãŦãããūãã
",
+ "community": "
ãģããĨãããĢãŦåå ããĶãæ°ããåéãä―ãĢãããxLog ãäļį·ãŦä―ãäļãããããūãããã
"
+ },
+ "Convert to Page": "ããžãļãŦåĪæ",
+ "Convert to Post": "čĻäšãŦåĪæ",
+ "Select All": "ããđãĶéļæ",
+ "Deselect All": "éļæč§ĢéĪ",
+ "Delete": "åéĪ",
+ "Heading": "čĶåšã",
+ "Bold": "åĪŠå",
+ "Italic": "æä―",
+ "Strikethrough": "åãæķãį·",
+ "Underline": "äļį·",
+ "Quote": "åžįĻ",
+ "Inline Code": "ãĪãģãĐãĪãģãģãžã",
+ "Code Block": "ãģãžãããããŊ",
+ "Unordered List": "įŪæĄæļã",
+ "Ordered List": "įŠå·äŧããŠãđã",
+ "Link": "ãŠãģãŊ",
+ "Image": "įŧå",
+ "Upload Image": "įŧåããĒããããžã",
+ "Tip: xLog Flavored Markdown": "ããģãïžxLog éĒĻãŪããžãŊããĶãģ",
+ "Preview": "ããŽããĨãž",
+ "Publish": "å
Žé",
+ "Update": "æīæ°",
+ "Discard Changes": "åĪæīãį īæĢ",
+ "Publish at": "å
ŽéæĨæ",
+ "This post will be accessible from this time": "ããŪčĻäšãŊãããŪæéãããĒãŊãŧãđåŊč―ãŦãŠããūã",
+ "This page will be accessible from this time": "ããŪããžãļãŊãããŪæéãããĒãŊãŧãđåŊč―ãŦãŠããūã",
+ "Post slug": "čĻäšãđãĐãã°",
+ "Page slug": "ããžãļãđãĐãã°",
+ "This post will be accessible at": "ããŪčĻäšãŊäŧĨäļãŪãŠãģãŊãããĒãŊãŧãđåŊč―ãŦãŠããūã",
+ "This page will be accessible at": "ããŪããžãļãŊäŧĨäļãŪãŠãģãŊãããĒãŊãŧãđåŊč―ãŦãŠããūã",
+ "Tags": "ãŋã°",
+ "Separate multiple tags with English commas": "čĪæ°ãŪãŋã°ãåč§ãŪãģãģãïž,ïžã§åšåãĢãĶå
ĨåããĶãã ãã",
+ "Excerpt": "æįē",
+ "Leave it blank to use auto-generated excerpt": "čŠåįæãããæįēãä―ŋįĻããå īåãŊįĐšį―ãŪãūãūãŦããĶãã ãã",
+ "General": "äļčŽ",
+ "Social Platforms": "ã―ãžã·ãĢãŦããĐããããĐãžã ",
+ "Navigation": "ãããēãžã·ã§ãģ",
+ "Domains": "ããĄãĪãģ",
+ "Custom CSS": "ãŦãđãŋã CSS",
+ "Operators": "ãŠããŽãžãŋãž",
+ "Export data": "ããžãŋãŪãĻãŊãđããžã",
+ "Site Settings": "ãĩãĪãčĻåŪ",
+ "Icon": "ãĒãĪãģãģ",
+ "Banner": "ãããž",
+ "Supports both pictures and videos.": "įŧåãĻåįŧãŪäļĄæđãŦåŊūåŋããĶããūãã",
+ "Name": "åå",
+ "Description": "芎æ",
+ "Integrate Google Analytics": "Google Analytics ãĻįīäŧãããūããMeasurement ID ãŪæĪįīĒæđæģãŦãĪããĶãŊã<2>ããĄããŪæįŦ 2>ããčͧãã ããã",
+ "Integrate Umami Cloud Analytics": "Umami Cloud Analytics ãĻįīäŧãããūããWebsite ID ãŪæĪįīĒæđæģãŦãĪããĶãŊã<2>ããĄããŪæįŦ 2>ããčͧãã ããã",
+ "Save": "äŋå",
+ "Tips": "ããģã",
+ "social tips": {
+ "p1": "įīäŧãããããĐããããĐãžã ãŪæĻčãŊãįŧéĒãŪåģäļé
ãŦčĄĻįĪšãããūãã",
+ "p2": "xLog ãŊ<2>ããĄããŪããĐããããĐãžã 2>ãĻįīäŧãåŊč―ã§ããïžįīäŧããŦæåãããĻčŠåįãŦããŪããīãĻãŠãģãŊãčĄĻįĪšãããūããïžããŪäŧãŪããĐããããĐãžã ãŪå īåããããĐãŦããŪããīãčĄĻįĪšãããūãããããĩããžãããĶæŽēããããĐããããĐãžã ããããūããããæŊé Issue ããããŊ PR ãä―æããĶãxLog ãããåŪæåšĶãŪéŦãããĐããããĐãžã ãŦãããūãããã",
+ "p3": "<2>xSync2>ãä―ŋįĻããĶãTwitterãTelegramãMediumãSubstack ãŠãĐãŪããĐããããĐãžã ãŦįīäŧããããģãģããģããčŠåįãŦåæããããĻãã§ããūããåæčĻåŪãčĄãĢãå īåããããŦãčĄĻįĪšãããūãã"
+ },
+ "Platform": "ããĐããããĐãžã ",
+ "Identity": "ãĒãĪããģããĢããĢ",
+ "Remove": "åéĪ",
+ "New Item": "æ°ãããĒãĪãã ",
+ "xLog provides some out-of-the-box built-in pages": "xLog ãŦãŊãããĪããä―ŋããããžãļããģããŽãžãããããūãã",
+ "Home page": "ããžã ããžãļ",
+ "Archives page": "ãĒãžãŦãĪãããžãļ",
+ "Tag page": "ãŋã°ããžãļ",
+ "NFT Showcase page": "NFT ã·ã§ãžãąãžãđããžãļ",
+ "Label": "ãĐããŦ",
+ "URL": "URL",
+ "subdomain": "ãĩãããĄãĪãģ",
+ "Custom Domain": "ãŦãđãŋã ããĄãĪãģ",
+ "Set the following record on your DNS provider to active your custom domain": "ãŦãđãŋã ããĄãĪãģãæåđãŦãããŦãŊãDNS ããããĪããžãŦæŽĄãŪãŽãģãžããčĻåŪããĶãã ããã",
+ "Scope: These styles will be applied to your entire blog, including this dashboard.": "éĐįĻįŊåēïžããããŪãđãŋãĪãŦãŊãããŪããã·ãĨããžããåŦãããã°å
Ļä―ãŦéĐįĻãããūãã",
+ "Support": "ãĩããžã",
+ "CSS variables: xLog provides some built-in CSS variables": "CSS åĪæ°ïžxLog ãŊãããĪããŪããŦããĪãģ CSS åĪæ°ãæäūããĶããūãã",
+ "Address": "ä―æ",
+ "Character": "ããĢãĐãŊãŋãž",
+ "New operator": "æ°ãããŠããŽãžãŋãž",
+ "Operator Address": "ãŠããŽãžãŋãžãĒããŽãđ",
+ "Operator Character Check": "ãŠããŽãžãŋãžããĢãĐãŊãŋãžãã§ããŊ",
+ "Warning": "čĶå",
+ "Operators have permissions to enter your dashboard, change your settings(excluding xLog subdomain) and post, modify, delete contents on your site.": "ã·ãĢããžčŠčĻžã§ãŊãããã·ãĨããžããļãŪãĒãŊãŧãđãčĻåŪãŪåĪæīïžxLog ãĩãããĄãĪãģãéĪãïžããĩãĪããŪãģãģããģããŪå
ŽéãŧäŋŪæĢãŧåéĪãåŊč―ã§ãã",
+ "Add": "æ°čĶ",
+ "delete_confirmation_post": "ããŪčĻäšãåéĪããĶãããããã§ããïž",
+ "delete_confirmation_page": "ããŪããžãļãåéĪããĶãããããã§ããïž"
+}
\ No newline at end of file
diff --git a/src/lib/i18n/locales/ja/index.json b/src/lib/i18n/locales/ja/index.json
new file mode 100644
index 00000000..057af974
--- /dev/null
+++ b/src/lib/i18n/locales/ja/index.json
@@ -0,0 +1,26 @@
+{
+ "Blog Free": "čŠįąãŦåĩä―ãã",
+ "description": "<0>xLog0>ãŊã芰ã§ããåĐįĻã§ãã<3>ããããŊãã§ãžãģ3>äļãŪ<7>ãŠãžããģã―ãžãđ7>ãŪããã°ãģããĨãããĢã§ãã",
+ "Get my xLog in 5 minutes": "5åã§čŠåãŪxLogãæãŦå
Ĩããã",
+ "Features": "įđåūī",
+ "Showcase": "ã·ã§ãžãąãžãđ",
+ "Integration": "įĩąå",
+ "Source Code": "ã―ãžãđãģãžã",
+ "Visit": "čĻŠå",
+ "Easy": "į°Ąå",
+ "Easy description": "
Web3ãĶãĐãŽãã ãūããŊ
ãĄãžãŦãĒããŽãđ ã§æĨįķãããŦãđãŋã ããĄãĪãģããĩããđãŊãŠãã·ã§ãģããããããģãĄãģããNFTéģé ãRSSãŠãĐãŪæĐč―ãåããåäššãŪãĶã§ããĩãĪããį°ĄåãŦæ§įŊã§ããūããæéãåķéãŊäļåãããūããã",
+ "Safe": "åŪå
Ļ",
+ "Safe description": "æ§æãčĻäšããĩããđãŊãŠãã·ã§ãģããģãĄãģããŠãĐãããđãĶãŪããã°ããžãŋãŊãããŠãčŠčšŦãį―ēåããĶããããŊãã§ãžãģãŦåŪå
ĻãŦäŋåãããūããããŠãäŧĨåĪãŪ芰ãåĪæīã§ããŠããããŦãŠãĢãĶããūãã",
+ "Fast": "éŦé",
+ "Fast description": "ããããŊãã§ãžãģãä―éãæåģããããã§ãŊãããūãããxLogãŊãéŦéãŠããĢãã·ãĨãĄãŦããšã ãĻåĪæ°ãŪæéĐåæŠį―ŪãæĄįĻããæĨĩéãŪãããĐãžããģãđãįšæŪããūãã",
+ "Customizable": "ãŦãđãŋããĪãšåŊč―",
+ "Customizable description": "čŠåãŪ
ããĄãĪãģ ãä―ŋįĻãããĶã§ããĩãĪããŪ
ãđãŋãĪãŦ ããŦãđãŋããĪãšããåŪå
ĻãŦčŠįąãŦãĶã§ããĩãĪããä―æã§ããūãããããŊããŠããŪãĶã§ããĩãĪãã§ãããä―ãŪåķéããããūããã",
+ "Open": "ãŠãžããģ",
+ "Open description": "æĻæšįãŠ
Markdown æ§æãæĄįĻãããĪãģããžã/ãĻãŊãđããžãããžãŦãĻčąåŊãŠAPIãæäūããããĻã§ãį§ŧčĄãį°ĄåãŦãŠããūãããããđãĶãŪãģãžããŊGitHubã§
ãŠãžããģã―ãžãđ ã§ãããããđãĶãŪ
ããžãŋãéæãŦ ããããŊãã§ãžãģãŦäŋåãããūãã",
+ "Discover these awesome teams and creators on xLog (sorted by update time)": "xLogã§ããããŪįī æīãããããžã ããŊãžãŦãŠäššããĄãįščĶããūãããïžæīæ°æéé ïž",
+ "Follow All!": "ããđãĶãããĐããžããïž",
+ "Show more": "ããĢãĻčĄĻįĪšãã",
+ "Submit yours": "čŠåãŪãæįĻŋãã",
+ "xLog's open design allows it to integrate with many other open protocols and applications without friction.": "xLogãŪãŠãžããģãŠčĻčĻãŦãããäŧãŪåĪããŪãŠãžããģããããģãŦããĒããŠãąãžã·ã§ãģãĻãđã ãžãšãŦįĩąåããããĻãã§ããūãã",
+ "Dashboard": "ããã·ãĨããžã"
+}
\ No newline at end of file
diff --git a/src/lib/i18n/locales/ja/site.json b/src/lib/i18n/locales/ja/site.json
new file mode 100644
index 00000000..626c40f4
--- /dev/null
+++ b/src/lib/i18n/locales/ja/site.json
@@ -0,0 +1,10 @@
+{
+ "Home": "ããžã ",
+ "Archives": "ãĒãžãŦãĪã",
+ "About": "įīđäŧ",
+ "Tags": "ãŋã°",
+ "load more": "ãūã {{count}}äŧķãŪ{{name}}ããããūãã",
+ "signed and stored on the blockchain": "{{name}}ãŊãåĩä―č
ãŦããĢãĶį―ēåãããããããŊãã§ãžãģãŦåŪå
ĻãŦäŋåãããĶããūãã",
+ "Write a comment on the blockchain": "ããããŊãã§ãžãģã§ãģãĄãģããã",
+ "powered by": "
ããŪãĩãĪããŊã ãŦããĢãĶä―åããūã "
+}
diff --git a/src/lib/i18n/locales/zh-TW/common.json b/src/lib/i18n/locales/zh-TW/common.json
new file mode 100644
index 00000000..37245f2e
--- /dev/null
+++ b/src/lib/i18n/locales/zh-TW/common.json
@@ -0,0 +1,87 @@
+{
+ "Connect": "éĢį·",
+ "Followers": "įēįĩē",
+ "Following": "čŋ―čđĪäļ",
+ "Followings": "čŋ―čđĪäļ",
+ "Follow": "čŋ―čđĪ",
+ "Unfollow": "åæķčŋ―čđĪ",
+ "intlDateTime": "{{val, datetime}}",
+ "post": "æįŦ ",
+ "posts": "æįŦ ",
+ "page": "é éĒ",
+ "pages": "é éĒ",
+ "comment": "įčĻ",
+ "comments": "įčĻ",
+ "Comment": "įčĻ",
+ "Comments": "įčĻ",
+ "reply": "åčĶ",
+ "replies": "åčĶ",
+ "like": "čŪ",
+ "likes": "čŪ",
+ "blog": "éĻč―æ ž",
+ "Owner": "ææč
",
+ "Transaction Hash": "äšĪæéæđåž",
+ "IPFS Address": "IPFS ä―å",
+ "BNB Greenfield Address": "BNB Greenfield ä―å",
+ "Creation": "åĩåŧš",
+ "Last Update": "æåūæīæ°",
+ "Create Character": "åĩåŧščšŦäŧ―",
+ "Submit": "æäšĪ",
+ "Reply": "åčĶ",
+ "Cancel Reply": "åæķåčĶ",
+ "Edit": "į·ĻčžŊ",
+ "Cancel Edit": "åæķį·ĻčžŊ",
+ "Confirm Modification": "įĒščŠį·ĻčžŊ",
+ "ago": "{{time}}å",
+ "joined ago": "{{time}}åå å
Ĩ",
+ "obtained ago": "{{time}}åįēåū",
+ "Like": "éŧčŪ",
+ "Mint to an NFT": "įčįš NFT",
+ "Like successfully": "éŧčŪæå",
+ "Mint successfully": "įčåŪæï―",
+ "like stored": "ä― įéŧčŪå·ēčĒŦåŪå
Ļå°åēååĻååĄéäļïžåŊäŧĨåĻ <2>Crossbell Scan2> äļæĨį",
+ "mint stored": "ä― å·ēå°éįŊæįŦ įčæ NFTïžåŊäŧĨåĻ <2>xChar2> æ <6>Crossbell Scan6> äļæĨį",
+ "Got it, thanks!": "įĨéåĶïžææĐįåŋï―",
+ "Like List": "æčŪåčĄĻ",
+ "Mint List": "įčåčĄĻ",
+ "Revert": "æķå",
+ "Confirm to revert": "įĒšåŪæķå",
+ "like revert": "čŦįĒšåŪæŊåĶæģčĶæķåéåéŧčŪæä―ïž",
+ "Cancel": "įŪäš",
+ "Confirm": "įĒšåŪ",
+ "No Content Yet.": "äŧéšžé―æē",
+ "Close": "éé",
+ "Dashboard": "äļŧæ§čš",
+ "Copied!": "æ·čēåŪæ",
+ "Operator Sign": "į°―åææŽ",
+ "Switch Characters": "åæčšŦäŧ―",
+ "Upgrade to Wallet": "åįīįšéĒå
čŠč",
+ "Disconnect": "äļæ·éĢį·",
+ "Loading": "čžå
Ĩäļ...",
+ "Showcase": "åąįĪšæŦ",
+ "AI-generated summary": "AI įæįæčĶ",
+ "Generating": "įæäļ...",
+ "Show more": "éĄŊįĪšæīåĪ",
+ "Patron": "čīåĐ",
+ "Become a patron of {{name}}": "æįš {{name}} įčīåĐč
",
+ "Latest patrons": "ææ°čīåĐč
",
+ "Latest tipper": "ææ°čīåĐč
",
+ "You are here to be the first patron.": "ä― æŊįŽŽäļä―čīåĐč
ã",
+ "You are here to be the first tipper.": "ä― æŊįŽŽäļä―čīåĐč
ã",
+ "Select a tier": "éļæäļåįįī",
+ "One-time": "äļæŽĄæ§",
+ "Monthly and NFT Rewards": "æŊæå NFT įåĩ",
+ "Coming soon": "åģå°æĻåš",
+ "What is MIRA? Where can I get some?": "MIRA æŊäŧéšžïžč―ååïžæåĻåŠčĢĄåŊäŧĨįēåūïž",
+ "Tip": "čīåĐ",
+ "Tip the post: {{name}}": "čīåĐæįŦ ïž{{name}}",
+ "Custom": "čŠčĻ",
+ "Mintable": "Mintable",
+ "Successfully followed": "åŋïžä― å·ēįķéå§<2>čŋ―čđĪäŧåįææ°åæ
2>åã",
+ "Enable AI Filtering": "AI éæŋū",
+ "Filter out possible low-quality content based on AI ratings.": "åšæž AI čĐåéæŋūåŊč―äļä―ģįå
§åŪđ",
+ "Refreshing": "éæ°čžå
Ĩäļ",
+ "Search for your interest": "æä― ææģ",
+ "results": "é
įĩæ",
+ "My xLog": "ä― į xLog"
+}
\ No newline at end of file
diff --git a/src/lib/i18n/locales/zh-TW/dashboard.json b/src/lib/i18n/locales/zh-TW/dashboard.json
new file mode 100644
index 00000000..514b3dc3
--- /dev/null
+++ b/src/lib/i18n/locales/zh-TW/dashboard.json
@@ -0,0 +1,198 @@
+{
+ "Dashboard": "æīåŊ",
+ "Posts": "æįŦ ",
+ "Pages": "é éĒ",
+ "Notifications": "éįĨ",
+ "Unread notifications": "æŠčŪéįĨ",
+ "Settings": "čĻåŪ",
+ "Events": "æīŧå",
+ "New Events": "æ°æīŧå",
+ "Site Stats": "įķēįŦįĩąčĻ",
+ "Published posts": "æįŦ ",
+ "Received comments": "įčĻ",
+ "Followers": "įēįĩē",
+ "Viewed": "įčĶ―é",
+ "Received tips": "Donate",
+ "Site Duration": "Blog čŠį",
+ "days": "åĪĐ",
+ "Deleted!": "åŠæäšåĶïž",
+ "Fail to Deleted.": "å éĪåĪąčīĨ",
+ "Converted!": "č―ææåïž",
+ "Failed to convert.": "č―æåĪąæã",
+ "All Posts": "æææįŦ ",
+ "All Pages": "ææé éĒ",
+ "Published": "å·ēįžä―",
+ "published": "å·ēįžä―",
+ "Draft": "čįĻŋ",
+ "draft": "čįĻŋ",
+ "Scheduled": "åŪæįžä―",
+ "scheduled": "åŪæįžä―",
+ "published and local modified": "å·ēįžä―äļæå°æŠæīæ°įå
§åŪđ",
+ "link post-vs-page": "https://wordpress.com/zh-tw/support/post-vs-page/",
+ "posts description": "æįŦ æŊææéååšåĻä― įįķēįŦäļååšįæĒįŪãåŊäŧĨå°åŪåįä―æŊæīæ°ïžäŧĨæäūæ°å
§åŪđįĩĶčŪč
ã<2>æįŦ čé éĒ2>ã",
+ "pages description": "é éĒæŊéæ
įïžäļåæĨæå―ąéŋãåŪåæīåæŊä― įķēįŦäļįæ°ļäđ
å
įī ïžæŊåĶâéæžæåâãâčŊįđŦæåâįã <2>æįŦ čé éĒ2>ã",
+ "pages add": "åĩåŧšé éĒåūïžä― åŊäŧĨå°å
ķ<2>æ·ŧå å°ä― įķēįŦįå°čŠčåŪäļ2>ïžäŧĨäūŋįčĶ―č
åŊäŧĨæūå°åŪã",
+ "New Post": "æ°åŧšæįŦ ",
+ "New Page": "æ°åŧšé éĒ",
+ "Import": "åŊå
Ĩ",
+ "Import markdown file with front matter supported": "åŊå
Ĩ Markdown æäŧķ(æŊæ Front Matter)",
+ "View Site": "æĨįįķēįŦ",
+ "hello": {
+ "welcome": "
ð ä― åĨ―åïž
æĄčŋä―ŋįĻ xLogïž
äŧĨäļæŊäļäšæįĻįéĢįĩïžåđŦåĐä― éå§ä―ŋįĻ xLogïž
",
+ "hidden": "ð ä― åĨ―å",
+ "community": "
å å
ĨæåįįĪūåïžčŠčæ°æåæįĩĶäš xLog ååĐïž
"
+ },
+ "Edit": "į·ĻčžŊ ",
+ "Convert to Page": "č―æįšé éĒ",
+ "Convert to Post": "č―æįšæįŦ ",
+ "Select All": "å
ĻéĻéļæ",
+ "Deselect All": "åæķéļæ",
+ "Delete": "åŠéĪ",
+ "Heading": "æĻéĄ",
+ "Bold": "įēéŦ",
+ "Italic": "æéŦ",
+ "Strikethrough": "åŠéĪį·",
+ "Underline": "åšį·",
+ "Quote": "åžįĻ",
+ "Inline Code": "čĄå
§įĻåžįĒž",
+ "Code Block": "įĻåžįĒžååĄ",
+ "Unordered List": "įĄåšåčĄĻ",
+ "Ordered List": "æåšåčĄĻ",
+ "Link": "éĢįĩ",
+ "Image": "åį",
+ "Upload Image": "äļåģåį",
+ "Help: xLog Flavored Markdown": "åđŦåĐïžxLog éĒĻæ žį Markdown",
+ "Preview": "é čĶ―",
+ "Publish": "įžåļ",
+ "Update": "æīæ°",
+ "Discard Changes": "æĻæĢčŪæī",
+ "Publish at": "įžåļæé",
+ "This post will be accessible from this time": "æĪæįŦ å°åūæĪæééå§åŊįčĶ―",
+ "This page will be accessible from this time": "æĪé éĒå°åūæĪæééå§åŊįčĶ―",
+ "Post slug": "æįŦ įéĢįĩ",
+ "Page slug": "é éĒįéĢįĩ",
+ "This post will be accessible at": "æĪæįŦ å°åŊééäŧĨäļéĢįĩįčĶ―",
+ "This page will be accessible at": "æĪé éĒå°åŊééäŧĨäļéĢįĩįčĶ―",
+ "Tags": "æĻįąĪ",
+ "Separate multiple tags with English commas": "åĪåæĻįąĪčŦįĻčąæéčåé",
+ "Excerpt": "æčĶ",
+ "Leave it blank to use auto-generated excerpt": "įįĐšåä―ŋįĻčŠåįæįæčĶ",
+ "General": "äļčŽ",
+ "Social Platforms": "įĪūäšĪåŠéŦ",
+ "Navigation": "å°čŠ",
+ "Domains": "įķēå",
+ "Custom CSS": "čŠåŪįūĐ CSS",
+ "Operators": "čšŦäŧ―ææŽ",
+ "Export data": "åŊåščģæ",
+ "Site Settings": "įķēįŦčĻį―Ū",
+ "Icon": "åæĻ",
+ "Banner": "æĐŦåđ
",
+ "Supports both pictures and videos.": "æŊæåįåå―ąįã",
+ "Name": "åįĻą",
+ "Description": "čŠæäŧįīđ",
+ "Integrate Google Analytics": "å° Google Analytics æīåčģä― įįķēįŦäļãčŦæį
§<2>éčĢĄ2>į芊ææĨæūä― į Measurement IDã",
+ "Integrate Umami Cloud Analytics": "å° Umami Cloud Analytics æīåčģä― įįķēįŦäļãčŦæį
§<2>éčĢĄ2>į芊ææĨæūä― į Website IDã",
+ "Save": "åēå",
+ "Tips": "æįĪš",
+ "social tips": {
+ "p1": "éäšįĪūäšĪåđģå°æéĄŊįĪšåĻä― į xLog įåģäļč§ã",
+ "p2": "æåæŊæī<2>éäšåđģå°2>ïžčŠåéĄŊįĪšå
ķæĻčŠåéĢįĩãå°æžå
ķäŧåđģå°ïžå°éĄŊįĪšé čĻæĻčŠãåĶæä― æå
ķäŧéæąïžčŦéĻæåæåæäšĪåéĄæPRïžäŧĨæŊæīæīåĪįåđģå°ã",
+ "p3": "ä― éåŊäŧĨåĻ <2>xSync2> äļéĢæĨå° TwitterãTelegram é ŧéãMediumãSubstack įåđģå°ïžäļĶčŠååæĨå
§åŪđãįķä― åĻéĢčĢĄčĻį―ŪåæĨåūïžåŪäđæéĄŊįĪšåĻéčĢĄã"
+ },
+ "Platform": "åđģå°",
+ "Identity": "čšŦäŧ―",
+ "Remove": "į§ŧéĪ",
+ "New Item": "æ°åŧšé
įŪ",
+ "xLog provides some out-of-the-box built-in pages": "xLog æäūäšäļäšéįŪąåģįĻįå
§åŧšé éĒ",
+ "Home page": "éĶé ",
+ "Archives page": "å°åé éĒ",
+ "Tag page": "æĻįąĪé éĒ",
+ "NFT Showcase page": "NFT åąįĪšé éĒ",
+ "Label": "æĻįąĪ",
+ "URL": "éĢįĩ",
+ "subdomain": "åįķēå",
+ "Custom Domain": "čŠčĻįķēå",
+ "Set the following record on your DNS provider to active your custom domain": "åĻä― į DNS æäūåäļčĻåŪäŧĨäļįīéäŧĨåįĻčŠčĻįķēå",
+ "Scope: These styles will be applied to your entire blog, including this dashboard.": "įŊåïžéäšæĻĢåžå°åĨįĻčģä― įæīåéĻč―æ žïžå
æŽæĪåčĄĻæŋã",
+ "Support": "æŊæī",
+ "CSS variables: xLog provides some built-in CSS variables": "CSS čŪæļïžxLog æäūäšäļäšå
§åŧšį CSS čŪæļ",
+ "Address": "å°å",
+ "Character": "čšŦäŧ―",
+ "New operator": "æ°åŧšææŽ",
+ "Operator Address": "ææŽå°å",
+ "Operator Character Check": "čšŦäŧ―ææŽæŠĒæĨ",
+ "Warning": "čĶå",
+ "Operators have permissions to enter your dashboard, change your settings(excluding xLog subdomain) and post, modify, delete contents on your site.": "ææŽč
åŊäŧĨéēå
Ĩä― įåčĄĻæŋïžæīæđä― įčĻåŪïžäļå
æŽ xLog åįķēåïžäļĶåĻä― įįķēįŦäļįžä―ãäŋŪæđãåŠéĪå
§åŪđã",
+ "Add": "æ°åĒ",
+ "xLog News": "xLog æ°č",
+ "More": "æīåĪ",
+ "Meet New Friends": "čŠčæ°æå",
+ "Need help?": "éčĶåđŦåĐïž",
+ "Your post has been securely stored on the blockchain. Now you may want to": "ä― įæįŦ å·ēįķåŪå
Ļå°ååēåĻååĄéäļãįūåĻä― åŊč―æģčĶ",
+ "View the post": "æĨįæįŦ ",
+ "View the transaction": "æĨįäšĪæ",
+ "Share to Twitter": "åäšŦå° Twitter",
+ "Got it, thanks!": "įĨéäšïžčŽčŽïž",
+ "Published!": "å·ēįžä―ïž",
+ "Title goes here...": "æĻéĄåĻéčĢĄ...",
+ "Start writing...": "éå§åŊŦä―...",
+ "Slug can only contain letters, numbers, hyphens, and underscores.": "įįķēååŠč―å
åŦåæŊãæļåãéĢåįŽĶååšį·ã",
+ "Date": "æĨæ",
+ "Prize": "įé",
+ "Winners": "įēįč
",
+ "Learn more": "éēäļæĨäšč§Ģ",
+ "Ended": "å·ēįĩæ",
+ "Upcoming": "åģå°éå§",
+ "Ongoing": "éēčĄäļ",
+ "Import from Markdown files": "åū Markdown æŠæĄåŊå
Ĩ",
+ "Import from Mirror.xyz": "åū Mirror.xyz åŊå
Ĩ",
+ "Select Markdown Files": "éļæ Markdown æŠæĄ",
+ "No files chosen": "æŠé￿пĄ",
+ "No entries": "įĄé
įŪ",
+ "Preview your Mirror.xyz entries": "é čĶ―ä― į Mirror.xyz é
įŪ",
+ "Please select .md files, multiple files are supported, and front matter is supported.": "čŦéļæ .md æŠæĄïžæŊæīåĪåæŠæĄïžäļĶæŊæī front matterã",
+ "Achievements": "æå°ą",
+ "Tokens": "čæŽčēĻåđĢ",
+ "$MIRA is a valuable token in the Crossbell world, and can be easily exchanged on the Crosschain Bridge and Uniswap.": "$MIRA æŊ Crossbell äļįäļįäļįĻŪæįčēīįäŧĢåđĢïžåŊåĻč·ĻéæĐå Uniswap äļčžéŽå
æã",
+ "In the early stage, xLog will use $MIRA to motivate creators.": "åĻæĐæéæŪĩïžxLog å°ä―ŋįĻ $MIRA æŋåĩåĩä―č
ã",
+ "You can obtain $MIRA through the following ways:": "ä― åŊäŧĨééäŧĨäļæđåžįēåū $MIRAïž",
+ "Creator incentive program.": "åĩä―č
æŋåĩčĻįŦã",
+ "Participate in events.": "åå æīŧåã",
+ "Swap from USDC.": "åū USDC å
æã",
+ "Received tips and sponsorships from readers.": "åūčŪč
æķå°æčģåčīåĐã",
+ "Swap to USDC": "å
ææ USDC",
+ "Free Claim": "å
čēŧé å",
+ "$XLOG is related to xLog DAO, but it's too early now, please stay tuned.": "$XLOG č xLog DAO įļéïžä―įūåĻéįšæå°æĐïžæŽčŦæåū
ã",
+ "Stay tuned": "æŽčŦæåū
",
+ "This is a token used for interaction on the Crossbell blockchain, which can be claimed for free from the faucet, so there's no need to worry about its balance.": "éæŊäļåįĻæž Crossbell ååĄéäļäšåįčæŽčēĻåđĢïžåŊäŧĨåūæ°īéūé å
čēŧé åïžå æĪäļįĻæåŋå
ķéĪéĄã",
+ "Balance": "éĪéĄ",
+ "Swap Tutorial": "å
ææåļ",
+ "DNS Checking": "DNS æŠĒæĨäļ",
+ "DNS check passed.": "DNS æŠĒæĨééã",
+ "DNS check failed.": "DNS æŠĒæĨåĪąæã",
+ "Recheck": "éæ°æŠĒæĨ",
+ "Hottest": "įąé",
+ "Latest": "ææ°",
+ "Following": "čŋ―čđĪ",
+ "Create a Post": "æ°åĒæįŦ ",
+ "Change Site Icon or domain": "čŪæīįķēįŦåįĪšæåå",
+ "Join xLog's Discord channel": "å å
Ĩ xLog į Discord é ŧé",
+ "Participate in the development of xLog": "åč xLog įįžåą",
+ "Follow xLog's Twitter": "čŋ―čđĪ xLog į Twitter",
+ "Check out the updates of other bloggers": "įįå
ķäŧ Blogger įæīæ°",
+ "You have already imported them, please enter the post page to create a new post!": "å·ēįķåŊå
ĨåŪæäšåĶïžčŦå°æįŦ é éĒæ°åĒæ°įå
§åŪđïž",
+ "Today": "äŧåĪĐ",
+ "This month": "æŽæ",
+ "This week": "æŽåĻ",
+ "All time": "å
ĻéĻ",
+ "delete_confirmation_post": "ä― įĒščŠčĶåŠéĪéįŊæįŦ åïž",
+ "delete_confirmation_page": "ä― įĒščŠčĶåŠéĪéåé éĒåïž",
+ "Confirm": "įĒščŠ",
+ "Cancel": "åæķ",
+ "Published a new post on my blockchain blog: {{title}}. Check it out now!": "æåĻæįååĄééĻč―æ žįžä―äšäļįæ°įæįŦ ã{{title}}ãïžåŋŦäūįįå§ïž",
+ "Comments": "įčĻ",
+ "You can subscribe to comments through an RSS reader to receive timely reminders.": "ä― åŊäŧĨéé RSS éąčŪåĻčĻéąįčĻïžäŧĨäūŋåææķå°éįĨã",
+ "Subscription address:": "čĻéąå°åïž",
+ "comment on your": "åčĶäšä― į {{type}}ã
{{toTitle}} ã",
+ "{{newCount}} new comments": "{{newCount}} æĒæ°įčĻ"
+}
\ No newline at end of file
diff --git a/src/lib/i18n/locales/zh-TW/index.json b/src/lib/i18n/locales/zh-TW/index.json
new file mode 100644
index 00000000..ea31bccc
--- /dev/null
+++ b/src/lib/i18n/locales/zh-TW/index.json
@@ -0,0 +1,61 @@
+{
+ "Write": "Write",
+ "Own": "Own",
+ "Earn": "Earn",
+ ".": ".",
+ "Look at others'": "įįåĨäšš",
+ "description": "<0>xLog0>ãæä―ģ <7>éæš7> <3>ååĄé3> éĻč―æ žįĪūįūĪã",
+ "Get my xLog in 5 minutes": "äšåéæ°åŊŦčŠæ",
+ "Explore the xLog way": "æĒįīĒ xLog äđč·Ŋ",
+ "features": {
+ "Write": {
+ "subtitle": "éæäūčĻïžįĒįĒæä―",
+ "description": "éæūåĩé åïžæįšæéįŪĄįåΧåļŦïžčŪåŊŦä―æīé æĒïžå°æģĻåĩé æŠäūã"
+ },
+ "Own": {
+ "subtitle": "éäļå
§åŪđïžåŪå
ĻįĄæ",
+ "description": "éé Crossbell ååĄéįžä―ä― įå
§åŪđïžåŪå
Ļææ§ä― įæŽåĐčåŪå
Ļã
xLog äļååēäŧŧä―čģæïžįĄæģååĨŠæäŋŪæđä― įå
§åŪđåæŽåĐïžåģä―ŋ xLog æģéæĻĢåã
äšč§Ģ Crossbell æŊåĶä―å·Ĩä―įã ",
+ "extra": {
+ "title": "äļčĶčžäŋĄïžå
æéĐč",
+ "description": "äļčžäŋĄäŧŧä―äššïžå
æŽ xLogãåŧšč°æŠĒæĨäšĪææ·åēčååĄéåįīäŧĢįĒžïžéĐčäšåŊĶæŊåĶįŽĶå xLog æčēæã",
+ "button": "æé xLog įįĨį§éĒįī"
+ }
+ },
+ "Earn": {
+ "subtitle": "čģšåčæŽčēĻåđĢåæŽį",
+ "description": "ååĄéįšåŠį§įå
§åŪđåĩä―č
æäūéæå
ŽæĢįįåĩæĐæïžxLog DAO æīéēäļæĨäŋéēįĪūįūĪįžåąã"
+ }
+ },
+ "Home": "éĶé ",
+ "Activities": "æįŦ æĩ",
+ "Source Code": "åå§įĒž",
+ "Features": "įđčē",
+ "Showcase": "åąįĪšæŦ",
+ "Integration": "æīå",
+ "Visit": "čĻŠå",
+ "Easy to get started": "čŪåŊŦä―æīį°ĄåŪ",
+ "Easy to get started text": "xLog æŊæ
Web3 éĒå
å
éŧåéĩäŧķ éĢæĨïžčŪä― čžéŽåĩåŧšåŪåķåéĻč―æ žïžäšŦæčŠåŪįūĐååãčĻéąãįčĻãNFT éé ãRSS čĻéąå AI åĒåž·įåč―ãåŠé 5 åéåģåŊåŪæïžįĄéįģčŦæčēŧįĻã",
+ "Elegant experience": "åŠé
æ°ļäļéæ",
+ "Elegant experience text": "éæŽį·ĻčžŊåĻïž
åŊĶæé čĶ― ïžåĩä―įĄåĢåïžä―ŋįϿϿšį
Markdown čŠæģ ïžæŊæ
HTML ã
éģčĶé ŧ å
æļåļå
Žåž ãé éĒčĻčĻåŠé
ïžįščŪč
æäūčéĐįéąčŪéŦéĐã",
+ "Fast": "äļåįēūå―Đįčåū",
+ "Fast text": "ååĄéä―æïžäļïžéŦæį·ĐåæĐåķååĪįĻŪåŠåæđæĄïžæŋįžååĄéį
æĨĩčīæ§č― ïžåææäū
PWA čŪæĻčžéŽæŽå°åŪčĢåä―ŋįĻïžå éåŊĶįūįŪæĻïž",
+ "Safe": "čģåŪïžææåĻčĄ",
+ "Safe text": "ææčģæïžå
æŽé
į―ŪãæįŦ ãčĻéąãįčĻįïžé―čĒŦåŪå
Ļå°ååēåĻ
ååĄé äļãåŠææĻææį
į§é° æč―ææ§åčĻŠåéäščģæïžįĒšäŋæĻįéąį§åūå°æåΧįĻåšĶįäŋč·ã",
+ "Customizable": "åĩæïžčŠįąæŪį",
+ "Customizable text": "æĻåŊäŧĨčŠįąå°ä―ŋįĻ
čŠå·ąįåå ïžåĻčŠå·ąåæįéĒĻæ žäļčŠåŪįūĐįķēįŦïžxLog æäūčąåŊįäļŧéĄåæäŧķįģŧįĩąïžčŪæĻ
éĻåŋææŽē å°æé åąŽæžčŠå·ąįåæ§åįķēįŦãåąįūæĻįįĻįđéĒĻéïž",
+ "Open": "éæūïžéįĻčŠåĶ",
+ "Open text": "xLog æäūå°å
Ĩåå°åšå·Ĩå
·ïžčąåŊį
API å
įŽŽäļæđ æīåïžčۿϿīå čŠįąå°įŪĄįåä―ŋįĻįķēįŦãææäŧĢįĒžé―åĻ GitHub äļ
éæš ïžææčģæé―åĻååĄéäļ
éæååē ïžæēæäŧŧä―éąįã",
+ "Creator Incentives": "åĩä―č
æŋåĩ",
+ "Creator Incentives text": "åĻæĐæéæŪĩïžxLog äŧĨ
MIRA æäū
æŋåĩ ãæåæĢįĐæĨĩæ§åŧšäŧĢåđĢįķæŋæĻĄåïžåæąčŪ xLog æįšįžåļéŦčģŠéå
§åŪđįæä―ģåđģå°ãæååļæįšæĻæäūæåĨ―įéŦéĐåæåΧįåđåžåå ąïžčŪæĻåĻåĩä―ãåäšŦåįĪūäšĪäļæå°æīå čŠįąååŋŦæĻã",
+ "DAO": "åŧäļåŋåčŠæēŧįĩįđ",
+ "DAO text": "æåå°åŧšįŦäļå xLog DAOïžčŪåĩä―č
åŊäŧĨä―ŋįĻ
čæŽčēĻåđĢ éēčĄæįĨĻãæåįļäŋĄïžéå°ä―ŋæåįįĪūåæīå éæūãå
Žåđģåæ°äļŧåïžčŪæŊåäššé―č―įžæŪčŠå·ąįå―ąéŋååčēĒįŧåđåžãæåæåū
čæĻæææé äļåæīå įđæĶŪåææīŧåįįĪūåïž",
+ "Discover these awesome teams and creators on xLog (sorted by update time)": "åĻ xLog äļįžįūéäščķ
æĢįåéååĩä―č
åïžææīæ°æéæåšïž",
+ "Follow All!": "čŋ―čđĪææäššïž",
+ "Already Followed All!": "å·ēčŋ―čđĪææäššïž",
+ "Show more": "éĄŊįĪšæīåĪ",
+ "Submit yours": "įįä― įð",
+ "xLog's open design allows it to integrate with many other open protocols and applications without friction.": "æåįļäŋĄïžåŠæåĻéæūãäščŊãå
ąäšŦįåšįĪäļæč―ææīåΧįåđåžååĩæ°ã",
+ "Dashboard": "äļŧæ§čš",
+ "Suggested creators for you": "æĻčĶįĩĶä― äļäšåŠčģŠåĩä―č
",
+ "Hot Topics": "æĩčĄčĐąéĄ"
+}
diff --git a/src/lib/i18n/locales/zh-TW/site.json b/src/lib/i18n/locales/zh-TW/site.json
new file mode 100644
index 00000000..c2710677
--- /dev/null
+++ b/src/lib/i18n/locales/zh-TW/site.json
@@ -0,0 +1,18 @@
+{
+ "Home": "éĶé ",
+ "Archives": "å°å",
+ "About": "éæž",
+ "Tags": "æĻįąĪ",
+ "load more": "éæ{{count}}įŊ{{name}}ïžéŧéļčžå
ĨæīåĪæįŦ ",
+ "signed and stored on the blockchain": "æĪ{{name}}æļææææŽįąååĄéå åŊæčĄåæšč―åįīäŋéå
æļåĩä―č
ææã",
+ "Write a comment on the blockchain": "åĻååĄéäļįčĻã",
+ "powered by": "
įą æäūæŊæī ",
+ "This address is in local editing preview mode and cannot be viewed by the public.": "æĪå°åčæžæŽå°į·ĻčžŊé čĶ―æĻĄåžïžå°æŠå
Žéã",
+ "View on xChar": "åĻ xChar äļæŠĒčĶ",
+ "View on xFeed": "åĻ xFeed äļæŠĒčĶ",
+ "View on Hoot It": "åĻ Hoot It äļæŠĒčĶ",
+ "View on Crossbell Scan": "åĻ Crossbell Scan äļæŠĒčĶ",
+ "Subscribe to JSON Feed": "čĻéą JSON Feed",
+ "Subscribe to RSS": "čĻéą RSS",
+ "Search on this site": "åĻéåįķēįŦäļæå°"
+}
\ No newline at end of file
diff --git a/src/lib/i18n/locales/zh/common.json b/src/lib/i18n/locales/zh/common.json
new file mode 100644
index 00000000..2918aace
--- /dev/null
+++ b/src/lib/i18n/locales/zh/common.json
@@ -0,0 +1,87 @@
+{
+ "Connect": "čŋæĨ",
+ "Followers": "å
ģæģĻč
",
+ "Following": "æĢåĻå
ģæģĻ",
+ "Followings": "æĢåĻå
ģæģĻ",
+ "Follow": "å
ģæģĻ",
+ "Unfollow": "åæķå
ģæģĻ",
+ "intlDateTime": "{{val, datetime}}",
+ "post": "æįŦ ",
+ "posts": "æįŦ ",
+ "page": "éĄĩéĒ",
+ "pages": "éĄĩéĒ",
+ "comment": "čŊčŪš",
+ "comments": "čŊčŪš",
+ "Comment": "čŊčŪš",
+ "Comments": "čŊčŪš",
+ "reply": "ååĪ",
+ "replies": "ååĪ",
+ "like": "åæŽĒ",
+ "likes": "åæŽĒ",
+ "blog": "ååŪĒ",
+ "Owner": "ææč
",
+ "Transaction Hash": "äšĪæååļ",
+ "IPFS Address": "IPFS å°å",
+ "BNB Greenfield Address": "BNB Greenfield å°å",
+ "Creation": "ååŧš",
+ "Last Update": "æåæīæ°",
+ "Create Character": "ååŧšč§čē",
+ "Submit": "æäšĪ",
+ "Reply": "ååĪ",
+ "Cancel Reply": "åæķååĪ",
+ "Edit": "įžčū",
+ "Cancel Edit": "åæķįžčū",
+ "Confirm Modification": "įĄŪčŪĪäŋŪæđ",
+ "ago": "{{time}}å",
+ "joined ago": "{{time}}åå å
Ĩ",
+ "obtained ago": "{{time}}åč·åū",
+ "Like": "įđčĩ",
+ "Mint to an NFT": "įčäļš NFT",
+ "Like successfully": "įđčĩæå",
+ "Mint successfully": "įčæå",
+ "like stored": "ä― įįđčĩå·ēčĒŦåŪå
Ļå°ååĻåĻåšåéūäļïžåŊäŧĨåĻ <2>Crossbell Scan2> äļæĨį",
+ "mint stored": "ä― å·ēå°æĪįŊæįŦ įčæNFT, åŊäŧĨåĻ <2>xChar2> æ <6>Crossbell Scan6> äļæĨį",
+ "Got it, thanks!": "åĨ―įïžč°Ēč°Ēïž",
+ "Like List": "įđčĩåčĄĻ",
+ "Mint List": "įčåčĄĻ",
+ "Revert": "æĪé",
+ "Confirm to revert": "įĄŪčŪĪæĪé",
+ "like revert": "čŊ·įĄŪčŪοϿŊåĶæģčĶæĪéčŋäļŠįđčĩæä―ïž",
+ "Cancel": "åæķ",
+ "Confirm": "įĄŪčŪĪ",
+ "No Content Yet.": "ææ å
åŪđ",
+ "Close": "å
ģé",
+ "Dashboard": "äŧŠčĄĻį",
+ "Copied!": "å·ēåĪåķïž",
+ "Operator Sign": "įūåææ",
+ "Switch Characters": "åæĒč§čē",
+ "Upgrade to Wallet": "åįš§äļšéąå
",
+ "Disconnect": "æåžčŋæĨ",
+ "Loading": "å č――äļ",
+ "Showcase": "åąįĪšæ",
+ "AI-generated summary": "AI įæįæčĶ",
+ "Generating": "įæäļ",
+ "Show more": "æūįĪšæīåĪ",
+ "Patron": "čĩåĐ",
+ "Become a patron of {{name}}" : "æäļš {{name}} įčĩåĐč
",
+ "Latest patrons": "æčŋčĩåĐč
",
+ "Latest tipper": "æčŋčĩčĩč
",
+ "You are here to be the first patron.": "ä― å°æŊįŽŽäļäļŠčĩåĐč
ã",
+ "You are here to be the first tipper.": "ä― å°æŊįŽŽäļäļŠčĩčĩč
ã",
+ "Select a tier": "éæĐäļäļŠįįš§",
+ "One-time": "äļæŽĄæ§",
+ "Monthly and NFT Rewards": "æŊæå NFT åĨåą",
+ "Coming soon": "åģå°æĻåš",
+ "What is MIRA? Where can I get some?" : "MIRA æŊäŧäđïžæåĻåŠéåŊäŧĨč·åūïž",
+ "Tip": "čĩčĩ",
+ "Tip the post: {{name}}": "čĩčĩæįŦ ïž{{name}}",
+ "Custom": "čŠåŪäđ",
+ "Mintable": "åŊéļé ",
+ "Successfully followed": "åŋïžä― å·ēįŧååĪåĨ―<2>åĻčŋéč·äļä― å
ģæģĻįåäļŧįææ°åĻæ2>äšã",
+ "Enable AI Filtering": "åŊįĻ AI čŋæŧĪ",
+ "Filter out possible low-quality content based on AI ratings.": "åšäš AI čŊåčŋæŧĪåŊč―čīĻéäļä―ģįå
åŪđã",
+ "Refreshing": "å·æ°äļ",
+ "Search for your interest": "æįīĒä― æå
īčķĢįå
åŪđ",
+ "results": "æĄįŧæ",
+ "My xLog": "æį xLog"
+}
diff --git a/src/lib/i18n/locales/zh/dashboard.json b/src/lib/i18n/locales/zh/dashboard.json
new file mode 100644
index 00000000..be107594
--- /dev/null
+++ b/src/lib/i18n/locales/zh/dashboard.json
@@ -0,0 +1,204 @@
+{
+ "Dashboard": "äŧŠčĄĻį",
+ "Posts": "æįŦ ",
+ "Pages": "éĄĩéĒ",
+ "Notifications": "éįĨ",
+ "Unread notifications": "æŠčŊŧéįĨ",
+ "Settings": "čŪūį―Ū",
+ "Events": "æīŧåĻ",
+ "New Events": "æ°æīŧåĻ",
+ "Site Stats": "įŦįđįŧčŪĄ",
+ "Published posts": "ååļįæįŦ ",
+ "Received comments": "æķå°įčŊčŪš",
+ "Followers": "å
ģæģĻč
",
+ "Viewed": "æĩč§é",
+ "Received tips": "æķå°įæčĩ",
+ "Site Duration": "įŦįđčŋčĄæķéī",
+ "days": "åĪĐ",
+ "Deleted!": "å·ēå éĪïž",
+ "Fail to Deleted.": "å éĪåĪąčīĨ",
+ "Converted!": "å·ēč―ŽæĒïž",
+ "Failed to convert.": "č―ŽæĒåĪąčīĨã",
+ "All Posts": "æææįŦ ",
+ "All Pages": "ææéĄĩéĒ",
+ "Published": "å·ēååļ",
+ "published": "å·ēååļ",
+ "Draft": "čįĻŋ",
+ "draft": "čįĻŋ",
+ "Scheduled": "åŪæķååļ",
+ "scheduled": "åŪæķååļ",
+ "published and local modified": "å·ēååļåđķæŽå°äŋŪæđ",
+ "link post-vs-page": "https://wordpress.com/zh-cn/support/post-vs-page/",
+ "posts description": "æįŦ æŊææķéīååšåĻä― įį―įŦäļååšįæĄįŪãåŊäŧĨå°åŪäŧŽįä―æŊæīæ°ïžäŧĨæäūæ°å
åŪđįŧčŊŧč
ã<2>æįŦ äļéĄĩéĒ2>ã",
+ "pages description": "éĄĩéĒæŊéæįïžäļåæĨæå―ąåãåŪäŧŽæīåæŊä― į―įŦäļįæ°ļäđ
å
įī ïžæŊåĶâå
ģäšæäŧŽâãâčįģŧæäŧŽâįã<2>æįŦ äļéĄĩéĒ2>ã",
+ "pages add": "ååŧšéĄĩéĒåïžä― åŊäŧĨå°å
ķ<2>æ·ŧå å°ä― į―įŦįåŊžčŠčåäļ2>ïžäŧĨäūŋčŪŋéŪč
åŊäŧĨæūå°åŪã",
+ "New Post": "æ°åŧšæįŦ ",
+ "New Page": "æ°åŧšéĄĩéĒ",
+ "Import": "åŊžå
Ĩ",
+ "Import markdown file with front matter supported": "åŊžå
Ĩ Markdown æäŧķ(æŊæ Front Matter)",
+ "View Site": "æĨįįŦįđ",
+ "hello": {
+ "welcome": "
ð ä― åĨ―åïž
æŽĒčŋä―ŋįĻ xLogïž
äŧĨäļæŊäļäšæįĻįéūæĨïžåļŪåĐä― åžå§ä―ŋįĻ xLogïž
",
+ "hidden": "ð ä― åĨ―å",
+ "community": "
å å
ĨæäŧŽįįĪūåšïžčŪĪčŊæ°æåæå
ąååŧščŪū xLogïž
"
+ },
+ "Edit": "įžčū",
+ "Convert to Page": "č―ŽæĒäļšéĄĩéĒ",
+ "Convert to Post": "č―ŽæĒäļšæįŦ ",
+ "Select All": "å
ĻéĻéæĐ",
+ "Deselect All": "åæķéæĐ",
+ "Delete": "å éĪ",
+ "Heading": "æ éĒ",
+ "Bold": "įēä―",
+ "Italic": "æä―",
+ "Strikethrough": "å éĪįšŋ",
+ "Underline": "äļåįšŋ",
+ "Quote": "åžįĻ",
+ "Inline Code": "čĄå
äŧĢį ",
+ "Code Block": "äŧĢį å",
+ "Unordered List": "æ åšåčĄĻ",
+ "Ordered List": "æåšåčĄĻ",
+ "Link": "éūæĨ",
+ "Image": "åūį",
+ "Upload Image": "äļäž åūį",
+ "Mention": "æå",
+ "Tip: xLog Flavored Markdown": "åļŪåĐïžxLog éĢæ žį Markdown",
+ "Preview": "éĒč§",
+ "Publish": "ååļ",
+ "Update": "æīæ°",
+ "Discard Changes": "æūåžåæī",
+ "Publish at": "ååļæķéī",
+ "This post will be accessible from this time": "æĪæįŦ å°äŧæĪæķéīåžå§åŊčŪŋéŪ",
+ "This page will be accessible from this time": "æĪéĄĩéĒå°äŧæĪæķéīåžå§åŊčŪŋéŪ",
+ "Post slug": "æįŦ įéūæĨ",
+ "Page slug": "éĄĩéĒįéūæĨ",
+ "This post will be accessible at": "æĪæįŦ å°åŊéčŋäŧĨäļéūæĨčŪŋéŪ",
+ "This page will be accessible at": "æĪéĄĩéĒå°åŊéčŋäŧĨäļéūæĨčŪŋéŪ",
+ "Tags": "æ įū",
+ "Separate multiple tags with English commas": "åĪäļŠæ įūčŊ·įĻčąæéå·åé",
+ "Excerpt": "æčĶ",
+ "Leave it blank to use auto-generated excerpt": "įįĐšåä―ŋįĻčŠåĻįæįæčĶ",
+ "General": "åļļč§",
+ "Social Platforms": "įĪūäšĪåđģå°",
+ "Navigation": "åŊžčŠ",
+ "Domains": "åå",
+ "Custom CSS": "čŠåŪäđ CSS",
+ "Operators": "å―ąåææ",
+ "Export data": "åŊžåšæ°æŪ",
+ "Site Settings": "įŦįđčŪūį―Ū",
+ "Icon": "åūæ ",
+ "Banner": "æĻŠåđ
",
+ "Supports both pictures and videos.": "æŊæåūįåč§éĒã",
+ "Name": "åį§°",
+ "Description": "æčŋ°",
+ "Integrate Google Analytics": "å° Google Analytics éæå°ä― įįŦįđäļãä― åŊäŧĨæį
§<2>čŋé2>įčŊīææĨæūä― į Measurement IDã",
+ "Integrate Umami Cloud Analytics": "å° Umami Cloud Analytics éæå°ä― įįŦįđäļãä― åŊäŧĨæį
§<2>čŋé2>įčŊīææĨæūä― į Website IDã",
+ "Save": "äŋå",
+ "Tips": "æįĪš",
+ "social tips": {
+ "p1": "čŋäšįĪūäšĪåđģå°å°æūįĪšåĻä― į xLog įåģäļč§ã",
+ "p2": "æäŧŽæŊæ<2>čŋäšåđģå°2>ïžčŠåĻæūįĪšå
ķæ åŋåéūæĨãåŊđäšå
ķäŧåđģå°ïžå°æūįĪšéŧčŪĪæ åŋãåĶæä― æå
ķäŧéæąïžčŊ·éæķåæäŧŽæäšĪéŪéĒæPRïžäŧĨæŊææīåĪįåđģå°ã",
+ "p3": "ä― čŋåŊäŧĨåĻ <2>xSync2> äļčŋæĨå° TwitterãTelegram éĒéãMediumãSubstack įåđģå°ïžåđķčŠåĻåæĨå
åŪđãå―ä― åĻéĢéčŪūį―ŪåæĨåïžåŪäđäžæūįĪšåĻčŋéã"
+ },
+ "Platform": "åđģå°",
+ "Identity": "čšŦäŧ―",
+ "Remove": "į§ŧéĪ",
+ "New Item": "æ°åŧšéĄđįŪ",
+ "xLog provides some out-of-the-box built-in pages": "xLog æäūäšäļäšåžįŪąåģįĻįå
į―ŪéĄĩéĒ",
+ "Home page": "éĶéĄĩ",
+ "Archives page": "å―æĄĢéĄĩéĒ",
+ "Tag page": "æ įūéĄĩéĒ",
+ "NFT Showcase page": "NFT åąįĪšéĄĩéĒ",
+ "Label": "æ įū",
+ "URL": "éūæĨ",
+ "subdomain": "ååå",
+ "Custom Domain": "čŠåŪäđåå",
+ "Set the following record on your DNS provider to active your custom domain": "åĻä― į DNS æäūåäļčŪūį―ŪäŧĨäļčŪ°å―äŧĨæŋæīŧčŠåŪäđåå",
+ "Scope: These styles will be applied to your entire blog, including this dashboard.": "čåīïžčŋäšæ ·åžå°åšįĻäšä― įæīäļŠååŪĒïžå
æŽčŋäļŠäŧŠčĄĻįã",
+ "Support": "æŊæ",
+ "CSS variables: xLog provides some built-in CSS variables": "CSS åéïžxLog æäūäšäļäšå
į―Ūį CSS åé",
+ "Using a browser plugin that can modify page styles, such as Stylebot, can help with debugging.": "ä―ŋįĻåŊäŧĨäŋŪæđéĄĩéĒæ ·åžįæĩč§åĻæäŧķïžäūåĶ StylebotïžåŊäŧĨåļŪåĐč°čŊã",
+ "Address": "å°å",
+ "Character": "č§čē",
+ "New operator": "æ°åŧšææ",
+ "Operator Address": "ææå°å",
+ "Operator Character Check": "ææč§čēæĢæĨ",
+ "Warning": "čĶå",
+ "Operators have permissions to enter your dashboard, change your settings(excluding xLog subdomain) and post, modify, delete contents on your site.": "å―ąåææåŊäŧĨčŋå
Ĩä― įäŧŠčĄĻįïžæīæđä― įčŪūį―Ūïžäļå
æŽ xLog åååïžåđķåĻä― įįŦįđäļååļãäŋŪæđãå éĪå
åŪđã",
+ "Add": "æ·ŧå ",
+ "xLog News": "xLog æ°éēäš",
+ "More": "æīåĪ",
+ "Meet New Friends": "čŪĪčŊæ°æå",
+ "Need help?": "éčĶåļŪåĐïž",
+ "Your post has been securely stored on the blockchain. Now you may want to": "ä― įæįŦ å·ēįŧåŪå
Ļå°ååĻåĻåšåéūäļãį°åĻä― åŊč―æģčĶ",
+ "View the post": "æĨįæįŦ ",
+ "View the transaction": "æĨįäšĪæ",
+ "Share to Twitter": "åäšŦå° Twitter",
+ "Got it, thanks!": "åĨ―įïžč°Ēč°Ēïž",
+ "Published!": "å·ēååļïž",
+ "Title goes here...": "æ éĒåĻčŋé...",
+ "Start writing...": "åžå§åä―...",
+ "Slug can only contain letters, numbers, hyphens, and underscores.": "įéūæĨåŠč―å
åŦåæŊãæ°åãčŋåįŽĶåäļåįšŋã",
+ "Date": "æĨæ",
+ "Prize": "åĨé",
+ "Winners": "č·åĨč
",
+ "Learn more": "äšč§ĢæīåĪ",
+ "Ended": "å·ēįŧæ",
+ "Upcoming": "åģå°åžå§",
+ "Ongoing": "čŋčĄäļ",
+ "Import from Markdown files": "äŧ Markdown æäŧķåŊžå
Ĩ",
+ "Import from Mirror.xyz": "äŧ Mirror.xyz åŊžå
Ĩ",
+ "Select Markdown Files": "éæĐ Markdown æäŧķ",
+ "No files chosen": "æŠéæĐæäŧķ",
+ "No entries": "æ æĄįŪ",
+ "Preview your Mirror.xyz entries": "éĒč§ä― į Mirror.xyz æĄįŪ",
+ "Please select .md files, multiple files are supported, and front matter is supported.": "čŊ·éæĐ .md æäŧķïžæŊæåĪäļŠæäŧķïžæŊæ front matterã",
+ "Achievements": "æå°ą",
+ "Tokens": "äŧĢåļ",
+ "$MIRA is a valuable token in the Crossbell world, and can be easily exchanged on the Crosschain Bridge and Uniswap.": "$MIRA æŊ Crossbell äļįäļįäļį§įčīĩįäŧĢåļïžåŊäŧĨč―ŧæūå°åĻ Crosschain Bridge å Uniswap äļå
æĒã",
+ "In the early stage, xLog will use $MIRA to motivate creators.": "åĻæĐæéķæŪĩïžxLog å°ä―ŋįĻ $MIRA æŋåąåä―č
ã",
+ "You can obtain $MIRA through the following ways:": "ä― åŊäŧĨéčŋäŧĨäļæđåžč·åū $MIRAïž",
+ "Creator incentive program.": "åä―č
æŋåąčŪĄåã",
+ "Participate in events.": "åå æīŧåĻã",
+ "Swap from USDC.": "äŧ USDC å
æĒã",
+ "Received tips and sponsorships from readers.": "äŧčŊŧč
æķå°æčĩåčĩåĐã",
+ "Swap to USDC": "å
æĒå° USDC",
+ "Free Claim": "å
čīđéĒå",
+ "$XLOG is related to xLog DAO, but it's too early now, please stay tuned.": "$XLOG äļ xLog DAO įļå
ģïžä―į°åĻčŋäļšæķå°æĐïžæŽčŊ·æåū
ã",
+ "Stay tuned": "æŽčŊ·æåū
",
+ "This is a token used for interaction on the Crossbell blockchain, which can be claimed for free from the faucet, so there's no need to worry about its balance.": "čŋæŊäļäļŠįĻäš Crossbell åšåéūäļäšĪäšįäŧĢåļïžåŊäŧĨäŧæ°īéūåĪīå
čīđéĒåïžæäŧĨäļįĻæ
åŋåŪįä―éĒã",
+ "Balance": "ä―éĒ",
+ "Swap Tutorial": "å
æĒæįĻ",
+ "DNS Checking": "DNS æĢæĨäļ",
+ "DNS check passed.": "DNS æĢæĨéčŋã",
+ "DNS check failed.": "DNS æĢæĨåĪąčīĨã",
+ "Subdomain Checking": "åååæĢæĨäļ",
+ "Subdomain Available.": "ååååŊįĻã",
+ "Subdomain Unavailable.": "åååäļåŊįĻã",
+ "Recheck": "éæ°æĢæĨ",
+ "Hottest": "æį",
+ "Latest": "ææ°",
+ "Following": "å
ģæģĻ",
+ "Create a Post": "ååŧšæįŦ ",
+ "Change Site Icon or domain": "æīæđįŦįđåūæ æåå",
+ "Join xLog's Discord channel": "å å
Ĩ xLog į Discord éĒé",
+ "Participate in the development of xLog": "åäļ xLog įåžå",
+ "Follow xLog's Twitter": "å
ģæģĻ xLog į Twitter",
+ "Check out the updates of other bloggers": "æĨįå
ķäŧåäļŧįæīæ°",
+ "You have already imported them, please enter the post page to create a new post!": "æĻå·ēįŧåŊžå
ĨäšåŪäŧŽïžčŊ·čŋå
ĨæįŦ éĄĩéĒååŧšæ°įæįŦ å§ã",
+ "Today": "äŧåĪĐ",
+ "This month": "æŽæ",
+ "This week": "æŽåĻ",
+ "All time": "å
ĻéĻ",
+ "Confirm Deletion?": "įĄŪčŪĪå éĪïž",
+ "delete_confirmation_post": "ä― įĄŪåŪčĶå éĪčŋįŊæįŦ åïž",
+ "delete_confirmation_page": "ä― įĄŪåŪčĶå éĪčŋäļŠéĄĩéĒåïž",
+ "Confirm": "įĄŪčŪĪ",
+ "Cancel": "åæķ",
+ "Published a new post on my blockchain blog: {{title}}. Check it out now!": "åĻæįåšåéūååŪĒååļäšäļįŊæ°æįŦ ã{{title}}ãïžåŋŦæĨįįå§ïž",
+ "Comments": "čŊčŪš",
+ "You can subscribe to comments through an RSS reader to receive timely reminders.": "ä― åŊäŧĨéčŋ RSS é
čŊŧåĻčŪĒé
čŊčŪšïžäŧĨäūŋåæķæķå°æéã",
+ "Subscription address:": "čŪĒé
å°åïž",
+ "comment on your" : "čŊčŪšäšä― į{{type}}ã
{{toTitle}} ã",
+ "{{newCount}} new comments" : "{{newCount}} æĄæ°čŊčŪš"
+}
\ No newline at end of file
diff --git a/src/lib/i18n/locales/zh/index.json b/src/lib/i18n/locales/zh/index.json
new file mode 100644
index 00000000..a7048a85
--- /dev/null
+++ b/src/lib/i18n/locales/zh/index.json
@@ -0,0 +1,61 @@
+{
+ "Write": "åä―",
+ "Own": "æĨæ",
+ "Earn": "čĩå",
+ ".": "ã",
+ "Look at others'": "įįå
ķäŧäššį",
+ "description": "<0>xLog0> æŊéĒåææäššįææĢ <3>éūäļ3> <7>åžæš7> ååŪĒįĪūåšã",
+ "Get my xLog in 5 minutes": "5 åéæĨæčŠå·ąį xLog",
+ "Explore the xLog way": "æĒįīĒ xLog äđč·Ŋ",
+ "features": {
+ "Write": {
+ "subtitle": "å―įĩææĨäļīæķåä―",
+ "description": "čŪĐåä―č
äŧŽæčąčæķãäļåŋ
čĶįæĩįĻïžåå°åä―čŋįĻäļįéŧįĒïžčŪĐä― ååĒéč―åĪäļæģĻäšåé ã"
+ },
+ "Own": {
+ "subtitle": "åĻåšåéūäļæĨæčŠå·ąįå
åŪđ",
+ "description": "éčŋåĻ Crossbell åšåéūäļååļæĨæĨæčŠå·ąįå
åŪđã xLog äļäžååĻäŧŧä―æ°æŪïžäđæ æģåĨåĪšæäŋŪæđä― įæåĐåå
åŪđïžåģä―ŋ xLog æģčŋæ ·åã
äšč§Ģ Crossbell æŊåĶä―å·Ĩä―įã ",
+ "extra": {
+ "title": "äļčĶįļäŋĄïžåŧéŠčŊ",
+ "description": "åĻäščį―äļäļč―ŧäŋĄäŧŧä―äššæŊäļäļŠåĨ―äđ æŊïžå
æŽ xLogãå æĪïžæäŧŽåžšįåŧščŪŪä― æĩč§ xLog äļįäŧŧä―įŦįđïžæĢæĨéĄĩéĒåšéĻįäšĪæååēïžé
čŊŧåšåéūåįšĶäŧĢį ïžįįåŪæ
æŊåĶäļ xLog æå̰᧰įäļčīã",
+ "button": "åŧéŠčŊ"
+ }
+ },
+ "Earn": {
+ "subtitle": "čĩåäŧĢåļåæåĐ",
+ "description": "äžį§įå
åŪđåščŊĨåūå°åĨåąïžčåšåéūäļšåä―č
æäūäšéæå
ŽæĢįåĨåąæšäžãxLog DAO å°čŋäļæĨäŋčŋæäŧŽįĪūåšįååąã"
+ }
+ },
+ "Features": "įđčē",
+ "Showcase": "åąįĪšæ",
+ "Integration": "éæ",
+ "Home": "éĶéĄĩ",
+ "Activities": "åĻæ",
+ "Source Code": "æšį ",
+ "Visit": "čŪŋéŪ",
+ "Easy to get started": "įŪåäļæ",
+ "Easy to get started text": "xLog æŊæ
web3 éąå
å
įĩåéŪäŧķ čŋæĨïžä―ŋä― č―åĪåŋŦéååŧšäļäļŠåŪåķįååŪĒïžå
·æčŠåŪäđååãčŪĒé
ãčŊčŪšãNFT éļé ãRSS čŪĒé
å AI åĒåžšįåč―ïžäŧ
é 5 åéåģåŊåŪæïžæ éįģčŊ·æčīđįĻã",
+ "Safe": "åŪå
Ļ",
+ "Safe text": "ææååŪĒæ°æŪïžå
æŽé
į―ŪãæįŦ ãčŪĒé
ãčŊčŪšįïžé―įąä― čŠå·ąįūååđķåŪå
Ļå°ååĻåĻ
åšåéū äļïžåŠæä― ææį
į§éĨ æč―čŋčĄæ§åķåčŪŋéŪãå
æŽ xLog åĻå
įäŧŧä―äššé―æ æģčŋčĄæīæđã",
+ "Fast": "åŋŦé",
+ "Fast text": "åšåéūåđķäļæŧæåģįä―æįãxLogéčŋå
ķéŦæįįžåæšåķåäžåĪäžåïžåŊäŧĨčūūå°æä―ģæ§č―ãįŦįđčŋæŊæ
PWA įĻäšæŽå°åŪčĢ
åä―ŋįĻã",
+ "Customizable": "åŊåŪåķ",
+ "Customizable text": "ä― åŊäŧĨčŠįąå°ä―ŋįĻ
čŠå·ąįåå ãčŠåŪäđį―įŦåđķæčŠå·ąįååĨ―čŋčĄ
čŪūčŪĄ ãčŋæŊä― įį―įŦïžæēĄæäŧŧä―éåķãxLog éžåąåđķå°æäūäļ°åŊį
äļŧéĒåæäŧķ įģŧįŧïžäŧĨåļŪåĐä― čŋčĄčŠåŪäđã",
+ "Open": "åžæū",
+ "Open text": "xLogæäūåŊžå
ĨååŊžåšå·Ĩå
·ïžäŧĨåäļ°åŊį
API åįŽŽäļæđ
éæ ãææäŧĢį é―åĻ GitHub äļ
åžæš ïžæææ°æŪé―åĻåšåéūäļ
éæ ãxLog æēĄæäŧŧä―éįã",
+ "Elegant experience": "äžé
įä―éŠ",
+ "Elegant experience text": "xLog æäūåæ įžčūåĻïžå
·æ
åŪæķéĒč§ åč―ïžæäūäžį§įåä―ä―éŠïžä―ŋįĻæ åį
Markdown čŊæģ ïžæŊæ
HTML ã
éģč§éĒ åæ°åĶčĄĻčūūåžãéĄĩéĒčŪūčŪĄäžé
ïžäļščŊŧč
æäūčéįé
čŊŧä―éŠã",
+ "Creator Incentives": "åä―č
æŋåą",
+ "Creator Incentives text": "åĻæĐæéķæŪĩïžxLogäŧĨ
MIRA æäū
æŋåą ãæäŧŽæĢåĻį§ŊææåŧšäŧĢåļįŧæĩæĻĄåïžäŧĨįĄŪäŋxLogæäļšååļéŦčīĻéå
åŪđįæä―ģåđģå°ã",
+ "DAO": "åŧäļåŋåčŠæēŧįŧįŧ",
+ "DAO text": "å°åŧšįŦäļäļŠxLog DAOïžåĻå
ķäļåä―č
ä―ŋįĻ
äŧĢåļ čŋčĄæįĨĻã",
+ "Discover these awesome teams and creators on xLog (sorted by update time)": "åĻ xLog äļåį°čŋäščķ
æĢįåĒéååä―č
äŧŽïžææīæ°æķéīæåšïž",
+ "Follow All!": "å
ģæģĻææïž",
+ "Already Followed All!" : "å·ēįŧå
ģæģĻææïž",
+ "Show more": "æūįĪšæīåĪ",
+ "Submit yours": "æäšĪä― į",
+ "xLog's open design allows it to integrate with many other open protocols and applications without friction.": "xLog įåžæūåžčŪūčŪĄä―ŋå
ķč―åĪäļčŪļåĪå
ķäŧåžæūåčŪŪååšįĻįĻåšæ įžéæïžæēĄæäŧŧä―éåķã",
+ "Dashboard": "äŧŠčĄĻį",
+ "Suggested creators for you": "äļšä― æĻčįåä―č
",
+ "Hot Topics": "įéĻčŊéĒ"
+}
\ No newline at end of file
diff --git a/src/lib/i18n/locales/zh/site.json b/src/lib/i18n/locales/zh/site.json
new file mode 100644
index 00000000..1926e4a1
--- /dev/null
+++ b/src/lib/i18n/locales/zh/site.json
@@ -0,0 +1,19 @@
+{
+ "Home": "äļŧéĄĩ",
+ "Archives": "å―æĄĢ",
+ "About": "å
ģäš",
+ "Tags": "æ įū",
+ "load more": "čŋæ {{count}} įŊ{{name}}ïžįđåŧå č――æīåĪ",
+ "signed and stored on the blockchain": "æĪ{{name}}æ°æŪæææįąåšåéūå åŊææŊåæšč―åįšĶäŋéäŧ
å―åä―č
ææã",
+ "Write a comment on the blockchain": "åĻåšåéūäļåäļä― įčŊčŪš",
+ "powered by": "
įą æäūæŊæ ",
+ "This address is in local editing preview mode and cannot be viewed by the public.":
+ "æĪå°ååĪäšæŽå°įžčūéĒč§æĻĄåžïžæ æģčĒŦå
ŽäžæĨįã",
+ "View on xChar": "åĻ xChar äļæĨį",
+ "View on xFeed": "åĻ xFeed äļæĨį",
+ "View on Hoot It": "åĻ Hoot It äļæĨį",
+ "View on Crossbell Scan": "åĻ Crossbell Scan äļæĨį",
+ "Subscribe to JSON Feed": "čŪĒé
JSON Feed",
+ "Subscribe to RSS": "čŪĒé
RSS",
+ "Search on this site": "åĻæŽįŦæįīĒ"
+}
\ No newline at end of file
diff --git a/src/lib/i18n/settings.ts b/src/lib/i18n/settings.ts
new file mode 100644
index 00000000..4da7f705
--- /dev/null
+++ b/src/lib/i18n/settings.ts
@@ -0,0 +1,15 @@
+export const fallbackLng = "en"
+export const languages = ["en", "zh", "zh-TW", "ja"]
+export const defaultNS = "common"
+
+export function getOptions(lng = fallbackLng, ns = defaultNS) {
+ return {
+ // debug: true,
+ supportedLngs: languages,
+ fallbackLng,
+ lng,
+ fallbackNS: defaultNS,
+ defaultNS,
+ ns,
+ }
+}
diff --git a/src/lib/ipfs-parser.ts b/src/lib/ipfs-parser.ts
index cbcc389e..97504f2b 100644
--- a/src/lib/ipfs-parser.ts
+++ b/src/lib/ipfs-parser.ts
@@ -7,8 +7,13 @@ export type ToGatewayConfig = {
forceFallback?: boolean
}
-export const toGateway = (url: string) => {
- const ipfsUrl = toIPFS(url)
+export const toGateway = (url: string | URL) => {
+ let ipfsUrl
+ if (typeof url === "string") {
+ ipfsUrl = toIPFS(url)
+ } else {
+ ipfsUrl = toIPFS(url.toString())
+ }
return ipfsUrl?.replaceAll(IPFS_PREFIX, IPFS_GATEWAY)
}
diff --git a/src/lib/json-feed.ts b/src/lib/json-feed.ts
index c10a1b69..0d2e464e 100644
--- a/src/lib/json-feed.ts
+++ b/src/lib/json-feed.ts
@@ -1,78 +1,7 @@
-import type { GetServerSidePropsContext } from "next"
-
-import { QueryClient } from "@tanstack/react-query"
-
-import { getSiteLink } from "~/lib/helpers"
-import { ExpandedNote, PageVisibilityEnum } from "~/lib/types"
-import { renderPageContent } from "~/markdown"
-import { fetchGetPagesBySite } from "~/queries/page.server"
-import { fetchGetSite } from "~/queries/site.server"
+import { ExpandedNote } from "~/lib/types"
import { SITE_URL } from "./env"
-export const getJsonFeed = async (domainOrSubdomain: string, path: string) => {
- const queryClient = new QueryClient()
-
- const site = await fetchGetSite(domainOrSubdomain, queryClient)
- const pages = await fetchGetPagesBySite(
- {
- characterId: site?.characterId,
- type: "post",
- visibility: PageVisibilityEnum.Published,
- keepBody: true,
- },
- queryClient,
- )
-
- const hasAudio = pages.list?.find((page) => page.metadata?.content?.audio)
-
- const link = getSiteLink({
- subdomain: site?.handle || "",
- })
- return {
- version: "https://jsonfeed.org/version/1",
- title: site?.metadata?.content?.name,
- description: site?.metadata?.content?.bio,
- icon: site?.metadata?.content?.avatars?.[0],
- home_page_url: link,
- feed_url: `${link}${path}`,
- ...(hasAudio && {
- _itunes: {
- image: site?.metadata?.content?.avatars?.[0],
- author: site?.metadata?.content?.name,
- summary: site?.metadata?.content?.bio,
- },
- }),
- items: pages.list?.map((page) => ({
- id: page.characterId + "-" + page.noteId,
- title: page.metadata?.content?.title,
- content_html:
- page.metadata?.content?.content &&
- renderPageContent(page.metadata?.content?.content, true).contentHTML,
- summary: page.metadata?.content?.summary,
- url: `/api/redirection?characterId=${page.characterId}¬eId=${page.noteId}`,
- image: page.metadata?.content?.cover,
- date_published: page.metadata?.content?.date_published,
- date_modified: page.updatedAt,
- tags: page.metadata?.content?.tags,
- author: site?.metadata?.content?.name,
- ...(page.metadata?.content?.audio && {
- _itunes: {
- image: page.metadata?.content?.cover,
- summary: page.metadata?.content?.summary,
- },
- attachments: [
- {
- url: page.metadata?.content?.audio,
- mime_type: "audio/mpeg",
- title: page.metadata?.content?.title,
- },
- ],
- }),
- })),
- }
-}
-
export const parsePost = (post: ExpandedNote, withTwitter?: boolean) => {
let twitter
if (withTwitter) {
@@ -98,15 +27,3 @@ export const parsePost = (post: ExpandedNote, withTwitter?: boolean) => {
},
}
}
-
-export const setHeader = (ctx: GetServerSidePropsContext, isXml?: boolean) => {
- ctx.res.setHeader(
- "Content-Type",
- ctx.query.format === "xml" || isXml
- ? "application/xml; charset=utf-8"
- : "application/feed+json; charset=utf-8",
- )
- ctx.res.setHeader("Access-Control-Allow-Methods", "GET")
- ctx.res.setHeader("Access-Control-Allow-Origin", "*")
- ctx.res.setHeader("Cache-Control", "public, max-age=1800")
-}
diff --git a/src/lib/query-client.ts b/src/lib/query-client.ts
new file mode 100644
index 00000000..a4a512ac
--- /dev/null
+++ b/src/lib/query-client.ts
@@ -0,0 +1,6 @@
+import { cache } from "react"
+
+import { QueryClient } from "@tanstack/react-query"
+
+const getQueryClient = cache(() => new QueryClient())
+export default getQueryClient
diff --git a/src/lib/redis.server.ts b/src/lib/redis.server.ts
index c90713b5..dda5ef7c 100644
--- a/src/lib/redis.server.ts
+++ b/src/lib/redis.server.ts
@@ -35,6 +35,7 @@ export async function cacheGet(options: {
key: string | (Record
| string | undefined | number)[]
getValueFun: () => Promise
noUpdate?: boolean
+ allowEmpty?: boolean
}) {
const redis = await redisPromise
if (redis && redis.status === "ready") {
@@ -57,17 +58,32 @@ export async function cacheGet(options: {
}
return JSON.parse(cacheValue)
} else {
- const value = await options.getValueFun()
- if (options.noUpdate) {
- await redis.set(redisKey, JSON.stringify(value))
+ if (options.allowEmpty) {
+ options.getValueFun().then(async (value) => {
+ if (options.noUpdate) {
+ await redis.set(redisKey, JSON.stringify(value))
+ } else {
+ redis.set(redisKey, JSON.stringify(value), "EX", REDIS_EXPIRE)
+ }
+ })
+ return null
} else {
- redis.set(redisKey, JSON.stringify(value), "EX", REDIS_EXPIRE)
+ const value = await options.getValueFun()
+ if (options.noUpdate) {
+ await redis.set(redisKey, JSON.stringify(value))
+ } else {
+ redis.set(redisKey, JSON.stringify(value), "EX", REDIS_EXPIRE)
+ }
+ return value
}
- return value
}
} else {
console.error("redis not ready")
- return await options.getValueFun()
+ if (options.allowEmpty) {
+ return null
+ } else {
+ return await options.getValueFun()
+ }
}
}
diff --git a/src/lib/server-helper.ts b/src/lib/server-helper.ts
new file mode 100644
index 00000000..8dc094bf
--- /dev/null
+++ b/src/lib/server-helper.ts
@@ -0,0 +1,75 @@
+// @ts-ignore
+import jsonfeedToRSS from "jsonfeed-to-rss"
+
+export const getQuery = (req: Request) => {
+ const url = new URL(req.url)
+ const searchParams = url.searchParams
+ const obj = {} as Record
+
+ for (const [key, value] of searchParams.entries()) {
+ obj[key] = value
+ }
+
+ return obj
+}
+
+export class NextServerResponse {
+ #status: number = 200
+ constructor() {}
+
+ status(status: number) {
+ this.#status = status
+ return this
+ }
+
+ json(data: any) {
+ const nextData = JSON.stringify(data)
+
+ return new Response(nextData, {
+ status: this.#status,
+ headers: {
+ "Content-Type": "application/json",
+ },
+ })
+ }
+
+ send(data: any) {
+ // if (data instanceof Stream) {
+ // return
+ // }
+
+ if (typeof data === "object" || typeof data === "undefined") {
+ return this.json(data)
+ }
+
+ return new Response(data, { status: this.#status })
+ }
+
+ end() {
+ return new Response("", { status: this.#status })
+ }
+
+ rss(data: any, format = "json") {
+ if (format === "xml") {
+ return new Response(jsonfeedToRSS(data), {
+ status: this.#status,
+ headers: {
+ "Content-Type": "application/xml; charset=utf-8",
+ "Access-Control-Allow-Methods": "GET",
+ "Access-Control-Allow-Origin": "*",
+ "Cache-Control": "public, max-age=1800",
+ },
+ })
+ } else {
+ return new Response(JSON.stringify(data), {
+ status: this.#status,
+ headers: {
+ "Content-Type": "application/feed+json; charset=utf-8",
+ "Access-Control-Allow-Methods": "GET",
+ "Access-Control-Allow-Origin": "*",
+ "Cache-Control": "public, max-age=1800",
+ },
+ })
+ }
+ }
+}
diff --git a/src/lib/types.ts b/src/lib/types.ts
index 0b9b6e7f..6a6104f8 100644
--- a/src/lib/types.ts
+++ b/src/lib/types.ts
@@ -1,4 +1,4 @@
-import { CharacterEntity, NoteEntity } from "crossbell.js"
+import type { CharacterEntity, NoteEntity } from "crossbell.js"
export type Site = {
id: string
diff --git a/src/lib/user-contents.ts b/src/lib/user-contents.ts
deleted file mode 100644
index 1750576b..00000000
--- a/src/lib/user-contents.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-export function getUserContentsUrl(filename: string): string
-export function getUserContentsUrl(filename: undefined | null): undefined
-export function getUserContentsUrl(
- filename: T,
-): T
-export function getUserContentsUrl(filename: string | undefined | null) {
- if (!filename) return undefined
- return filename
-}
diff --git a/src/lib/utils.ts b/src/lib/utils.ts
index 3a4eac70..e100112a 100644
--- a/src/lib/utils.ts
+++ b/src/lib/utils.ts
@@ -39,3 +39,12 @@ export const throttle = (func: Function, limit: number) => {
}
}
}
+
+export const calculateElementTop = (el: HTMLElement) => {
+ let top = 0
+ while (el) {
+ top += el.offsetTop
+ el = el.offsetParent as HTMLElement
+ }
+ return top
+}
diff --git a/src/markdown/index.ts b/src/markdown/index.ts
index 78365b1b..e4d9cb1c 100644
--- a/src/markdown/index.ts
+++ b/src/markdown/index.ts
@@ -3,9 +3,9 @@ import type { Root } from "mdast"
import { Result as TocResult, toc } from "mdast-util-toc"
import { ReactElement, createElement } from "react"
import { toast } from "react-hot-toast"
-import { Element } from "react-scroll"
import { refractor } from "refractor"
import jsx from "refractor/lang/jsx"
+import solidity from "refractor/lang/solidity"
import tsx from "refractor/lang/tsx"
import rehypeAutolinkHeadings from "rehype-autolink-headings"
import rehypeInferDescriptionMeta from "rehype-infer-description-meta"
@@ -32,6 +32,7 @@ import { APlayer } from "~/components/ui/APlayer"
import { ZoomedImage } from "~/components/ui/Image"
import { Mention } from "~/components/ui/Mention"
import { Mermaid } from "~/components/ui/Mermaid"
+import { Tweet } from "~/components/ui/Tweet"
import { rehypeAudio } from "./rehype-audio"
import {
@@ -41,6 +42,7 @@ import {
} from "./rehype-custom-wrapper"
import { rehypeImage } from "./rehype-image"
import { rehypeTable } from "./rehype-table"
+import { rehypeTweet } from "./rehype-tweet"
import { rehypeWrapCode } from "./rehype-wrap-code"
import { rehypeExternalLink } from "./rehyper-external-link"
import { remarkCallout } from "./remark-callout"
@@ -73,6 +75,7 @@ export type Rendered = {
refractor.alias("html", ["svelte", "vue"])
refractor.register(tsx)
refractor.register(jsx)
+refractor.register(solidity)
const rehypePrism = rehypePrismGenerator(refractor)
@@ -156,14 +159,6 @@ export const renderPageContent = (
},
children: [],
},
- {
- type: "element",
- tagName: "anchor",
- properties: {
- name: node.properties?.id,
- },
- children: [],
- },
]
},
})
@@ -172,6 +167,7 @@ export const renderPageContent = (
.use(rehypeExternalLink)
.use(rehypeWrapCode)
.use(rehypeInferDescriptionMeta)
+ .use(rehypeTweet)
.use(rehypeRewrite, {
selector: "p, li",
rewrite: (node: any) => {
@@ -217,10 +213,10 @@ export const renderPageContent = (
createElement: createElement,
components: {
img: ZoomedImage,
- anchor: Element,
mention: Mention,
mermaid: Mermaid,
audio: APlayer,
+ tweet: Tweet,
style: Style,
} as any,
})
diff --git a/src/markdown/rehype-image.ts b/src/markdown/rehype-image.ts
index 1b336097..4c8a7f71 100644
--- a/src/markdown/rehype-image.ts
+++ b/src/markdown/rehype-image.ts
@@ -4,7 +4,6 @@ import { visit } from "unist-util-visit"
import { IS_PROD } from "~/lib/constants"
import { toGateway } from "~/lib/ipfs-parser"
-import { getUserContentsUrl } from "~/lib/user-contents"
import { MarkdownEnv } from "."
@@ -41,7 +40,7 @@ export const rehypeImage: Plugin, Root> = ({
return
}
- node.properties.src = getUserContentsUrl(url)
+ node.properties.src = url
})
}
}
diff --git a/src/markdown/rehype-tweet.ts b/src/markdown/rehype-tweet.ts
new file mode 100644
index 00000000..6cbe30d0
--- /dev/null
+++ b/src/markdown/rehype-tweet.ts
@@ -0,0 +1,31 @@
+import { Root } from "rehype-raw"
+import { Plugin } from "unified"
+import { visit } from "unist-util-visit"
+
+export const rehypeTweet: Plugin, Root> = () => (tree) => {
+ visit(tree, { tagName: "a" }, (node, i, parent) => {
+ if (
+ !parent ||
+ !("tagName" in parent) ||
+ parent.tagName !== "p" ||
+ parent.children.length > 1
+ )
+ return
+
+ const tweetRegex =
+ /^https?:\/\/(?:www\.)?twitter\.com\/\w+\/status\/(\d+)(?:\?.*)?(?:#.*)?$/
+
+ const href = node.properties?.href
+
+ if (typeof href === "string") {
+ const match = href.match(tweetRegex)
+ if (match && match[0] === href) {
+ const tweetId = match[1]
+ node.tagName = "tweet"
+ node.properties = {
+ id: tweetId,
+ }
+ }
+ }
+ })
+}
diff --git a/src/middleware.ts b/src/middleware.ts
index 58263ca3..6c7c33b0 100644
--- a/src/middleware.ts
+++ b/src/middleware.ts
@@ -53,7 +53,9 @@ export default async function middleware(req: NextRequest) {
pathname.startsWith("/locales/") ||
pathname.match(/^\/(workbox|worker|fallback)-\w+\.js(\.map)?$/) ||
pathname === "/sw.js" ||
- pathname === "/sw.js.map"
+ pathname === "/sw.js.map" ||
+ pathname === "/robots.txt" ||
+ pathname === "/sitemap.xml"
) {
return NextResponse.next()
}
@@ -76,15 +78,27 @@ export default async function middleware(req: NextRequest) {
)
}
+ // https://github.com/vercel/next.js/issues/46618#issuecomment-1450416633
+ const requestHeaders = new Headers(req.headers)
+ requestHeaders.set("x-pathname", req.nextUrl.pathname)
+
if (tenant?.subdomain) {
const url = req.nextUrl.clone()
- url.pathname = `/_site/${tenant?.subdomain}${url.pathname}`
- return NextResponse.rewrite(url)
+ url.pathname = `/site/${tenant?.subdomain}${url.pathname}`
+ return NextResponse.rewrite(url, {
+ request: {
+ headers: requestHeaders,
+ },
+ })
}
if (DISCORD_LINK && pathname === "/discord") {
return NextResponse.redirect(DISCORD_LINK)
}
- return NextResponse.next()
+ return NextResponse.next({
+ request: {
+ headers: requestHeaders,
+ },
+ })
}
diff --git a/src/models/home.model.ts b/src/models/home.model.ts
index e8689122..43e1d9a3 100644
--- a/src/models/home.model.ts
+++ b/src/models/home.model.ts
@@ -330,7 +330,7 @@ export const getShowcase = async () => {
.toPromise()
result.data?.characters?.forEach((site: any) => {
- if (site.metadata.content) {
+ if (site.metadata?.content) {
site.metadata.content.name = site.metadata?.content?.name || site.handle
} else {
site.metadata.content = {
diff --git a/src/models/page.model.ts b/src/models/page.model.ts
index 6fe74ce3..463b4d21 100644
--- a/src/models/page.model.ts
+++ b/src/models/page.model.ts
@@ -598,18 +598,6 @@ export async function updateComment(
})
}
-export async function getSummary({
- cid,
- lang,
-}: {
- cid: string
- lang?: string
-}) {
- return (
- await (await fetch(`/api/summary?cid=${cid}&lang=${lang || "en"}`)).json()
- ).data
-}
-
export async function checkMirror(characterId: number) {
const notes = await indexer.getNotes({
characterId,
diff --git a/src/pages/404.tsx b/src/pages/404.tsx
deleted file mode 100644
index b1766644..00000000
--- a/src/pages/404.tsx
+++ /dev/null
@@ -1,39 +0,0 @@
-import { useState } from "react"
-
-import { SiteLayout } from "~/components/site/SiteLayout"
-import { SitePage } from "~/components/site/SitePage"
-import { SITE_URL } from "~/lib/env"
-
-export default function Custom404() {
- const [siteId, setSiteId] = useState("")
-
- try {
- fetch(`/api/host2handle?host=${window.location.host}`)
- .then((res) => res.json())
- .then((tenant) => {
- if (tenant.subdomain) {
- setSiteId(tenant.subdomain)
- }
- })
- } catch (error) {}
-
- return (
-
-
-
- )
-}
diff --git a/src/pages/_site/[site]/[page].tsx b/src/pages/_site/[site]/[page].tsx
deleted file mode 100644
index bc5ec2cf..00000000
--- a/src/pages/_site/[site]/[page].tsx
+++ /dev/null
@@ -1,64 +0,0 @@
-import { GetServerSideProps } from "next"
-import { ReactElement } from "react"
-
-import { QueryClient } from "@tanstack/react-query"
-
-import { SiteLayout } from "~/components/site/SiteLayout"
-import { getServerSideProps as getLayoutServerSideProps } from "~/components/site/SiteLayout.server"
-import { SitePage } from "~/components/site/SitePage"
-import { serverSidePropsHandler } from "~/lib/server-side-props"
-import { useGetPage } from "~/queries/page"
-import { useGetSite } from "~/queries/site"
-
-export const getServerSideProps: GetServerSideProps = serverSidePropsHandler(
- async (ctx) => {
- const queryClient = new QueryClient()
- const domainOrSubdomain = ctx.params!.site as string
- const pageSlug = ctx.params!.page as string
-
- const { props: layoutProps } = await getLayoutServerSideProps(
- ctx,
- queryClient,
- {
- useStat: true,
- },
- )
-
- return {
- props: {
- ...layoutProps,
- domainOrSubdomain,
- pageSlug,
- },
- }
- },
-)
-
-function SitePagePage({
- domainOrSubdomain,
- pageSlug,
-}: {
- domainOrSubdomain: string
- pageSlug: string
-}) {
- const site = useGetSite(domainOrSubdomain)
- const page = useGetPage({
- characterId: site.data?.characterId,
- slug: pageSlug,
- useStat: true,
- })
-
- return (
-
- )
-}
-
-SitePagePage.getLayout = (page: ReactElement) => {
- return (
-
- {page}
-
- )
-}
-
-export default SitePagePage
diff --git a/src/pages/_site/[site]/archives.tsx b/src/pages/_site/[site]/archives.tsx
deleted file mode 100644
index 087e8258..00000000
--- a/src/pages/_site/[site]/archives.tsx
+++ /dev/null
@@ -1,67 +0,0 @@
-import { GetServerSideProps } from "next"
-import type { ReactElement } from "react"
-
-import { QueryClient } from "@tanstack/react-query"
-
-import { SiteArchives } from "~/components/site/SiteArchives"
-import { SiteLayout } from "~/components/site/SiteLayout"
-import { getServerSideProps as getLayoutServerSideProps } from "~/components/site/SiteLayout.server"
-import { serverSidePropsHandler } from "~/lib/server-side-props"
-import { PageVisibilityEnum } from "~/lib/types"
-import { useGetPagesBySiteLite } from "~/queries/page"
-import { useGetSite } from "~/queries/site"
-
-export const getServerSideProps: GetServerSideProps = serverSidePropsHandler(
- async (ctx) => {
- const queryClient = new QueryClient()
- const domainOrSubdomain = ctx.params!.site as string
- const { props: layoutProps } = await getLayoutServerSideProps(
- ctx,
- queryClient,
- {
- limit: 100,
- },
- )
-
- return {
- props: {
- ...layoutProps,
- domainOrSubdomain,
- },
- }
- },
-)
-
-function SiteArchivesPage({
- domainOrSubdomain,
-}: {
- domainOrSubdomain: string
-}) {
- const site = useGetSite(domainOrSubdomain)
- const posts = useGetPagesBySiteLite({
- characterId: site.data?.characterId,
- limit: 100,
- type: "post",
- visibility: PageVisibilityEnum.Published,
- })
-
- return (
-
- )
-}
-
-SiteArchivesPage.getLayout = (page: ReactElement) => {
- return (
-
- {page}
-
- )
-}
-
-export default SiteArchivesPage
diff --git a/src/pages/_site/[site]/feed/index.tsx b/src/pages/_site/[site]/feed/index.tsx
deleted file mode 100644
index 6e39838b..00000000
--- a/src/pages/_site/[site]/feed/index.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-// @ts-ignore
-import jsonfeedToRSS from "jsonfeed-to-rss"
-import { GetServerSideProps } from "next"
-
-import { getJsonFeed, setHeader } from "~/lib/json-feed"
-
-export const getServerSideProps: GetServerSideProps = async (ctx) => {
- setHeader(ctx)
- const domainOrSubdomain = ctx.params!.site as string
-
- const data = await getJsonFeed(domainOrSubdomain, "/feed")
-
- ctx.res.write(
- ctx.query.format === "xml" ? jsonfeedToRSS(data) : JSON.stringify(data),
- )
- ctx.res.end()
-
- return {
- props: {},
- }
-}
-
-const SiteFeed: React.FC = () => null
-
-export default SiteFeed
diff --git a/src/pages/_site/[site]/index.tsx b/src/pages/_site/[site]/index.tsx
deleted file mode 100644
index 0d56f358..00000000
--- a/src/pages/_site/[site]/index.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-import { GetServerSideProps } from "next"
-import type { ReactElement } from "react"
-
-import { QueryClient } from "@tanstack/react-query"
-
-import { SiteHome } from "~/components/site/SiteHome"
-import { SiteLayout } from "~/components/site/SiteLayout"
-import { getServerSideProps as getLayoutServerSideProps } from "~/components/site/SiteLayout.server"
-import { PageVisibilityEnum } from "~/lib/types"
-import { useGetPagesBySiteLite } from "~/queries/page"
-import { useGetSite } from "~/queries/site"
-
-export const getServerSideProps: GetServerSideProps = async (ctx) => {
- const queryClient = new QueryClient()
- const domainOrSubdomain = ctx.params!.site as string
- const { props: layoutProps } = await getLayoutServerSideProps(
- ctx,
- queryClient,
- {
- useStat: true,
- },
- )
-
- return {
- props: {
- ...layoutProps,
- domainOrSubdomain,
- },
- }
-}
-
-function SiteIndexPage({ domainOrSubdomain }: { domainOrSubdomain: string }) {
- const site = useGetSite(domainOrSubdomain)
- const posts = useGetPagesBySiteLite({
- characterId: site.data?.characterId,
- type: "post",
- visibility: PageVisibilityEnum.Published,
- useStat: true,
- })
-
- return (
-
- )
-}
-
-SiteIndexPage.getLayout = (page: ReactElement) => {
- return (
-
- {page}
-
- )
-}
-
-export default SiteIndexPage
diff --git a/src/pages/_site/[site]/manifest.json.tsx b/src/pages/_site/[site]/manifest.json.tsx
deleted file mode 100644
index cf3f59eb..00000000
--- a/src/pages/_site/[site]/manifest.json.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-import { GetServerSideProps } from "next"
-
-import { QueryClient } from "@tanstack/react-query"
-
-import { fetchGetSite } from "~/queries/site.server"
-
-export const getServerSideProps: GetServerSideProps = async (ctx) => {
- ctx.res.setHeader("Content-Type", "application/json")
-
- const queryClient = new QueryClient()
- const domainOrSubdomain = ctx.params!.site as string
- const site = await fetchGetSite(domainOrSubdomain, queryClient)
-
- ctx.res.write(
- JSON.stringify({
- name: site?.metadata?.content?.name,
- short_name: site?.metadata?.content?.name,
- description: site?.metadata?.content?.bio,
- icons: [
- {
- src: site?.metadata?.content?.avatars?.[0] || "assets/logo.png",
- type: "image/png",
- sizes: "any",
- },
- ],
- theme_color: "#ffffff",
- background_color: "#ffffff",
- start_url: "/",
- display: "standalone",
- orientation: "portrait",
- }),
- )
- ctx.res.end()
-
- return {
- props: {},
- }
-}
-
-const ManifestJson: React.FC = () => null
-
-export default ManifestJson
diff --git a/src/pages/_site/[site]/nft.tsx b/src/pages/_site/[site]/nft.tsx
deleted file mode 100644
index d2b66c3b..00000000
--- a/src/pages/_site/[site]/nft.tsx
+++ /dev/null
@@ -1,91 +0,0 @@
-import { GetServerSideProps } from "next"
-import { useTranslation } from "next-i18next"
-import Script from "next/script"
-import { ReactElement, useEffect, useState } from "react"
-import type { Asset } from "unidata.js"
-
-import { QueryClient } from "@tanstack/react-query"
-
-import { SiteLayout } from "~/components/site/SiteLayout"
-import { getServerSideProps as getLayoutServerSideProps } from "~/components/site/SiteLayout.server"
-import { UniLink } from "~/components/ui/UniLink"
-import { UniMedia } from "~/components/ui/UniMedia"
-import { useGetNFTs, useGetSite } from "~/queries/site"
-
-export const getServerSideProps: GetServerSideProps = async (ctx) => {
- const queryClient = new QueryClient()
- const domainOrSubdomain = ctx.params!.site as string
- const { props: layoutProps } = await getLayoutServerSideProps(
- ctx,
- queryClient,
- {
- skipPages: true,
- },
- )
-
- return {
- props: {
- ...layoutProps,
- domainOrSubdomain,
- },
- }
-}
-
-function SiteNFTPage({ domainOrSubdomain }: { domainOrSubdomain: string }) {
- const site = useGetSite(domainOrSubdomain)
- const { t } = useTranslation(["common", "site"])
-
- const nftsOrigin = useGetNFTs(site.data?.owner)
-
- const [nfts, setNfts] = useState([])
- useEffect(() => {
- if (nftsOrigin?.data?.list && !nfts.length) {
- setNfts(nftsOrigin.data.list)
- }
- }, [nftsOrigin.data, nfts])
-
- return (
- <>
-
- NFT {t("Showcase")}
-
- {nftsOrigin.isLoading ? (
-
{t("Loading")}...
- ) : (
-
- {nfts
- .filter((nft) => nft.items?.[0]?.address)
- .map((nft: Asset) => (
-
-
-
- {nft.name}
-
-
- ))}
-
- )}
-
- >
- )
-}
-
-SiteNFTPage.getLayout = (page: ReactElement) => {
- return {page}
-}
-
-export default SiteNFTPage
diff --git a/src/pages/_site/[site]/preview/[page].tsx b/src/pages/_site/[site]/preview/[page].tsx
deleted file mode 100644
index 6c9f191b..00000000
--- a/src/pages/_site/[site]/preview/[page].tsx
+++ /dev/null
@@ -1,73 +0,0 @@
-import { GetServerSideProps } from "next"
-import { useRouter } from "next/router"
-import type { ReactElement } from "react"
-
-import { QueryClient } from "@tanstack/react-query"
-
-import { SiteLayout } from "~/components/site/SiteLayout"
-import { getServerSideProps as getLayoutServerSideProps } from "~/components/site/SiteLayout.server"
-import { SitePage } from "~/components/site/SitePage"
-import { useUserRole } from "~/hooks/useUserRole"
-import { getSiteLink } from "~/lib/helpers"
-import { serverSidePropsHandler } from "~/lib/server-side-props"
-import { useGetPage } from "~/queries/page"
-import { useGetSite } from "~/queries/site"
-
-export const getServerSideProps: GetServerSideProps = serverSidePropsHandler(
- async (ctx) => {
- const queryClient = new QueryClient()
- const domainOrSubdomain = ctx.params!.site as string
-
- const { props: layoutProps } = await getLayoutServerSideProps(
- ctx,
- queryClient,
- {
- preview: true,
- },
- )
-
- return {
- props: {
- ...layoutProps,
- domainOrSubdomain,
- },
- }
- },
-)
-
-function SitePagePage() {
- const router = useRouter()
- const domainOrSubdomain = router.query.site as string
- const pageSlug = router.query.page as string
- const userRole = useUserRole(domainOrSubdomain)
-
- const site = useGetSite(domainOrSubdomain)
-
- const page = useGetPage({
- characterId: site.data?.characterId,
- slug: pageSlug,
- handle: domainOrSubdomain,
- })
-
- if (userRole.isSuccess && !userRole.data && page.isSuccess) {
- router.push(
- getSiteLink({
- subdomain: domainOrSubdomain,
- }),
- )
- }
-
- return (
-
- )
-}
-
-SitePagePage.getLayout = (page: ReactElement) => {
- return {page}
-}
-
-export default SitePagePage
diff --git a/src/pages/_site/[site]/robots.txt.tsx b/src/pages/_site/[site]/robots.txt.tsx
deleted file mode 100644
index e71b848a..00000000
--- a/src/pages/_site/[site]/robots.txt.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import { GetServerSideProps } from "next"
-
-export const getServerSideProps: GetServerSideProps = async (ctx) => {
- ctx.res.setHeader("Content-Type", "text/plain")
- ctx.res.setHeader("Access-Control-Allow-Methods", "GET")
- ctx.res.setHeader("Access-Control-Allow-Origin", "*")
-
- ctx.res.write(`User-agent: *
-Disallow: /dashboard/
-Disallow: /preview/
-
-Sitemap: https://${ctx.req.headers.host}/sitemap.xml`)
- ctx.res.end()
-
- return {
- props: {},
- }
-}
-
-const RobotsTxt: React.FC = () => null
-
-export default RobotsTxt
diff --git a/src/pages/_site/[site]/search.tsx b/src/pages/_site/[site]/search.tsx
deleted file mode 100644
index 1cb4d148..00000000
--- a/src/pages/_site/[site]/search.tsx
+++ /dev/null
@@ -1,76 +0,0 @@
-import { GetServerSideProps } from "next"
-import { useTranslation } from "next-i18next"
-import { useRouter } from "next/router"
-import type { ReactElement } from "react"
-
-import { QueryClient } from "@tanstack/react-query"
-
-import { SearchInput } from "~/components/common/SearchInput"
-import { SiteLayout } from "~/components/site/SiteLayout"
-import { getServerSideProps as getLayoutServerSideProps } from "~/components/site/SiteLayout.server"
-import { SiteSearch } from "~/components/site/SiteSearch"
-import { useGetSearchPagesBySite } from "~/queries/page"
-import { useGetSite } from "~/queries/site"
-
-export const getServerSideProps: GetServerSideProps = async (ctx) => {
- const queryClient = new QueryClient()
- const domainOrSubdomain = ctx.params!.site as string
- const { props: layoutProps } = await getLayoutServerSideProps(
- ctx,
- queryClient,
- {
- skipPages: true,
- },
- )
-
- return {
- props: {
- ...layoutProps,
- domainOrSubdomain,
- },
- }
-}
-
-function SiteSearchPage({ domainOrSubdomain }: { domainOrSubdomain: string }) {
- const site = useGetSite(domainOrSubdomain)
- const router = useRouter()
- const keyword = router.query.q as string
- const { t } = useTranslation(["common"])
-
- const posts = useGetSearchPagesBySite({
- characterId: site.data?.characterId,
- keyword,
- })
-
- return (
- <>
-
-
-
-
- {posts.data?.pages?.[0].count || "0"} {t("results")}
-
- {posts.isLoading ? (
- <>{t("Loading")}...>
- ) : (
-
- )}
- >
- )
-}
-
-SiteSearchPage.getLayout = (page: ReactElement) => {
- return (
-
- {page}
-
- )
-}
-
-export default SiteSearchPage
diff --git a/src/pages/_site/[site]/sitemap.xml.tsx b/src/pages/_site/[site]/sitemap.xml.tsx
deleted file mode 100644
index f8a31073..00000000
--- a/src/pages/_site/[site]/sitemap.xml.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-import dayjs from "dayjs"
-import { GetServerSideProps } from "next"
-
-import { QueryClient } from "@tanstack/react-query"
-
-import { getSiteLink } from "~/lib/helpers"
-import { PageVisibilityEnum } from "~/lib/types"
-import { fetchGetPagesBySite } from "~/queries/page.server"
-import { fetchGetSite } from "~/queries/site.server"
-
-export const getServerSideProps: GetServerSideProps = async (ctx) => {
- const queryClient = new QueryClient()
- ctx.res.setHeader("Content-Type", "text/xml")
- ctx.res.setHeader("Access-Control-Allow-Methods", "GET")
- ctx.res.setHeader("Access-Control-Allow-Origin", "*")
- const domainOrSubdomain = ctx.params!.site as string
-
- const site = await fetchGetSite(domainOrSubdomain, queryClient)
- const pages = await fetchGetPagesBySite(
- {
- characterId: site?.characterId,
- type: "post",
- visibility: PageVisibilityEnum.Published,
- limit: 1000,
- },
- queryClient,
- )
-
- const link = getSiteLink({
- domain: site?.metadata?.content?.custom_domain,
- subdomain: site?.handle || "",
- })
- ctx.res.write(`
-
-${pages.list?.map(
- (page: any) => `
- ${link}/${page.slug || page.id}
- ${dayjs(page.date_updated).format("YYYY-MM-DD")}
- `,
-).join(`
-`)}
- `)
- ctx.res.end()
-
- return {
- props: {},
- }
-}
-
-const SiteFeed: React.FC = () => null
-
-export default SiteFeed
diff --git a/src/pages/_site/[site]/tag/[tag].tsx b/src/pages/_site/[site]/tag/[tag].tsx
deleted file mode 100644
index 52409b90..00000000
--- a/src/pages/_site/[site]/tag/[tag].tsx
+++ /dev/null
@@ -1,69 +0,0 @@
-import { GetServerSideProps } from "next"
-import type { ReactElement } from "react"
-
-import { QueryClient } from "@tanstack/react-query"
-
-import { SiteArchives } from "~/components/site/SiteArchives"
-import { SiteLayout } from "~/components/site/SiteLayout"
-import { getServerSideProps as getLayoutServerSideProps } from "~/components/site/SiteLayout.server"
-import { serverSidePropsHandler } from "~/lib/server-side-props"
-import { PageVisibilityEnum } from "~/lib/types"
-import { useGetPagesBySiteLite } from "~/queries/page"
-import { useGetSite } from "~/queries/site"
-
-export const getServerSideProps: GetServerSideProps = serverSidePropsHandler(
- async (ctx) => {
- const queryClient = new QueryClient()
- const domainOrSubdomain = ctx.params!.site as string
- const tag = ctx.params!.tag as string
-
- const { props: layoutProps } = await getLayoutServerSideProps(
- ctx,
- queryClient,
- {
- limit: 100,
- },
- )
-
- return {
- props: {
- ...layoutProps,
- domainOrSubdomain,
- tag,
- },
- }
- },
-)
-
-function SiteTagPage({
- domainOrSubdomain,
- tag,
-}: {
- domainOrSubdomain: string
- tag: string
-}) {
- const site = useGetSite(domainOrSubdomain)
- const posts = useGetPagesBySiteLite({
- characterId: site.data?.characterId,
- limit: 100,
- type: "post",
- visibility: PageVisibilityEnum.Published,
- tags: [tag],
- })
-
- return (
-
- )
-}
-
-SiteTagPage.getLayout = (page: ReactElement) => {
- return {page}
-}
-
-export default SiteTagPage
diff --git a/src/pages/activities.tsx b/src/pages/activities.tsx
deleted file mode 100644
index 9ccdccf5..00000000
--- a/src/pages/activities.tsx
+++ /dev/null
@@ -1,86 +0,0 @@
-import { GetServerSideProps } from "next"
-import { serverSideTranslations } from "next-i18next/serverSideTranslations"
-import { ReactElement, useState } from "react"
-
-import { useAccountState, useConnectModal } from "@crossbell/connect-kit"
-import { QueryClient, dehydrate } from "@tanstack/react-query"
-
-import { MainFeed } from "~/components/main/MainFeed"
-import { MainLayout } from "~/components/main/MainLayout"
-import { MainSidebar } from "~/components/main/MainSidebar"
-import { Tabs } from "~/components/ui/Tabs"
-import { languageDetector } from "~/lib/language-detector"
-import type { FeedType } from "~/models/home.model"
-import { prefetchGetFeed, prefetchGetShowcase } from "~/queries/home.server"
-
-export const getServerSideProps: GetServerSideProps = async (ctx) => {
- const queryClient = new QueryClient()
- await prefetchGetShowcase(queryClient)
- await prefetchGetFeed(
- {
- type: "latest",
- },
- queryClient,
- )
-
- return {
- props: {
- ...(await serverSideTranslations(languageDetector(ctx), [
- "common",
- "index",
- "dashboard",
- ])),
- dehydratedState: JSON.parse(JSON.stringify(dehydrate(queryClient))),
- },
- }
-}
-
-function Activities() {
- const currentCharacterId = useAccountState(
- (s) => s.computed.account?.characterId,
- )
- const connectModal = useConnectModal()
-
- const [feedType, setFeedType] = useState("latest")
- const tabs = [
- {
- text: "Latest",
- onClick: () => setFeedType("latest"),
- active: feedType === "latest",
- },
- {
- text: "Hottest",
- onClick: () => setFeedType("hot"),
- active: feedType === "hot",
- },
- {
- text: "Following",
- onClick: () => {
- if (!currentCharacterId) {
- connectModal.show()
- } else {
- setFeedType("following")
- }
- },
- active: feedType === "following",
- },
- ]
-
- return (
-
- )
-}
-
-Activities.getLayout = (page: ReactElement) => {
- return {page}
-}
-
-export default Activities
diff --git a/src/pages/api/check-domain.tsx b/src/pages/api/check-domain.tsx
deleted file mode 100644
index 64229d33..00000000
--- a/src/pages/api/check-domain.tsx
+++ /dev/null
@@ -1,19 +0,0 @@
-import { NextApiRequest, NextApiResponse } from "next"
-
-import { checkDomainServer } from "~/models/site.model"
-
-export default async function handler(
- req: NextApiRequest,
- res: NextApiResponse,
-) {
- const { handle, domain } = req.query
-
- if (!handle || !domain) {
- res.status(400).json({ error: "Missing characterId or domain" })
- return
- }
-
- res.status(200).json({
- data: await checkDomainServer(domain as string, handle as string),
- })
-}
diff --git a/src/pages/api/healthcheck.ts b/src/pages/api/healthcheck.ts
deleted file mode 100644
index 52f5b68c..00000000
--- a/src/pages/api/healthcheck.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { NextApiRequest, NextApiResponse } from "next"
-
-export default async function healthcheck(
- req: NextApiRequest,
- res: NextApiResponse,
-) {
- res.status(200).json({
- ok: true,
- })
-}
diff --git a/src/pages/api/nfts.ts b/src/pages/api/nfts.ts
deleted file mode 100644
index 3b77bc63..00000000
--- a/src/pages/api/nfts.ts
+++ /dev/null
@@ -1,67 +0,0 @@
-import { NextApiRequest, NextApiResponse } from "next"
-import { Asset } from "unidata.js"
-
-import { IPFS_GATEWAY } from "~/lib/env"
-import { cacheGet, getRedis } from "~/lib/redis.server"
-import { getNFTs } from "~/models/site.model"
-
-export default async function handler(
- req: NextApiRequest,
- res: NextApiResponse,
-) {
- const query = req.query
-
- if (!query.address) {
- res.status(400).end()
- return
- }
-
- const redis = await getRedis()
- const redisKey = `nfts/${query.address}`
-
- let cache
- try {
- cache = await redis?.get(redisKey)
- } catch (error) {}
- if (cache) {
- res.status(200).json(JSON.parse(cache))
- } else {
- const result = await getNFTs(query.address as string)
- await Promise.all(
- result.list.map(async (nft: Asset) => {
- if (!nft.items?.[0].mime_type && nft.items?.[0]?.address) {
- try {
- new URL(nft.items[0].address)
- } catch (error) {
- return nft
- }
- try {
- const mime_type = await cacheGet({
- key: `nft-mimetype/${nft.items[0].address}`,
- getValueFun: async () => {
- const head = await fetch(
- `${nft.items![0].address!.replace(
- IPFS_GATEWAY,
- "https://gateway.ipfs.io/ipfs/",
- )}`,
- {
- method: "HEAD",
- },
- )
- return head.headers.get("content-type")
- },
- })
- nft.items[0].mime_type = mime_type
- } catch (error) {
- console.warn(error)
- }
- }
- return nft
- }),
- )
- redis?.set(redisKey, JSON.stringify(result), "EX", 60 * 60 * 24)
- res.status(200).json({
- list: [],
- })
- }
-}
diff --git a/src/pages/api/slug2id.ts b/src/pages/api/slug2id.ts
deleted file mode 100644
index 51fb49be..00000000
--- a/src/pages/api/slug2id.ts
+++ /dev/null
@@ -1,69 +0,0 @@
-import { NextApiRequest, NextApiResponse } from "next"
-
-import { getNoteSlug } from "~/lib/helpers"
-import { cacheDelete, cacheGet } from "~/lib/redis.server"
-
-export async function getIdBySlug(slug: string, characterId: string | number) {
- slug = (slug as string)?.toLowerCase?.()
-
- const result = (await cacheGet({
- key: ["slug2id", characterId, slug],
- getValueFun: async () => {
- let note
- let cursor = ""
-
- do {
- const response = await (
- await fetch(
- `https://indexer.crossbell.io/v1/notes?characterId=${characterId}&sources=xlog&cursor=${cursor}&limit=100`,
- )
- ).json()
- cursor = response.cursor
- note = response?.list?.find(
- (item: any) =>
- slug === getNoteSlug(item) ||
- slug === `${characterId}-${item.noteId}`,
- )
- } while (!note && cursor)
-
- return {
- noteId: note?.noteId,
- }
- },
- noUpdate: true,
- })) as {
- noteId: number
- }
-
- // revalidate
- if (result) {
- const noteIdMatch = slug.match(`^${characterId}-(\\d+)$`)
- if (!noteIdMatch?.[1]) {
- fetch(
- `https://indexer.crossbell.io/v1/characters/${characterId}/notes/${result.noteId}`,
- )
- .then((res) => res.json())
- .then((note) => {
- if ((note && getNoteSlug(note) !== slug) || note.deleted) {
- cacheDelete(["slug2id", characterId + "", slug])
- }
- })
- }
- }
-
- return result
-}
-
-export default async function handler(
- req: NextApiRequest,
- res: NextApiResponse,
-) {
- let { characterId, slug } = req.query
-
- if (!slug || !characterId) {
- res.status(400).send("Bad Request")
- return
- }
-
- res.status(200).send(await getIdBySlug(slug as string, characterId as string))
-}
diff --git a/src/pages/api/summary.ts b/src/pages/api/summary.ts
deleted file mode 100644
index 8c7bf66b..00000000
--- a/src/pages/api/summary.ts
+++ /dev/null
@@ -1,137 +0,0 @@
-import { OpenAI } from "langchain"
-import { AnalyzeDocumentChain, loadSummarizationChain } from "langchain/chains"
-import { PromptTemplate } from "langchain/prompts"
-import { NextApiRequest, NextApiResponse } from "next"
-
-import { Metadata } from "@prisma/client"
-
-import { toGateway } from "~/lib/ipfs-parser"
-import prisma from "~/lib/prisma.server"
-import { cacheGet } from "~/lib/redis.server"
-import removeMarkdown from "remove-markdown"
-
-const model = new OpenAI({
- openAIApiKey: process.env.OPENAI_API_KEY,
- modelName: "gpt-3.5-turbo",
- temperature: 0.3,
- maxTokens: 400,
-})
-
-const chains = new Map()
-
-const getOriginalSummary = async (cid: string, lang: string) => {
- try {
- let { content } = await (await fetch(toGateway(`ipfs://${cid}`))).json()
-
- if (content?.length > 5000) {
- content = content.slice(0, 5000)
- }
- if (content?.length < 200) {
- return ""
- } else if (content) {
- console.time(`fetching summary ${cid}, ${lang}`)
-
- let chain = chains.get(lang)
- if (!chain) {
- const prompt = new PromptTemplate({
- template: `Summarize this in "${lang}" language:
- "{text}"
- CONCISE SUMMARY:`,
- inputVariables: ["text"],
- })
-
- const combineDocsChain = loadSummarizationChain(model, {
- prompt,
- combineMapPrompt: prompt,
- combinePrompt: prompt,
- })
-
- chain = new AnalyzeDocumentChain({
- combineDocumentsChain: combineDocsChain,
- })
-
- chains.set(lang, chain)
- }
-
- const res = await chain.call({
- input_document: removeMarkdown(content, {
- useImgAltText: true,
- gfm: true,
- }),
- })
-
- console.timeEnd(`fetching summary ${cid}, ${lang}`)
-
- return res?.text
- }
- } catch (error) {
- console.error(error)
- console.timeEnd(`fetching summary ${cid}, ${lang}`)
- }
-}
-
-export async function getSummary(cid: string, lang: string = "en") {
- const summary = await cacheGet({
- key: ["summary", cid, lang],
- getValueFun: async () => {
- if (["en", "zh", "zh-TW", "ja"].includes(lang)) {
- const key = `ai_summary_${lang.replace("-", "").toLowerCase()}`
- const meta = await prisma.metadata.findFirst({
- where: {
- uri: `ipfs://${cid}`,
- },
- })
- if (meta) {
- if (meta?.[key as keyof Metadata]) {
- return meta?.[key as keyof Metadata]
- } else {
- const summary = await getOriginalSummary(cid, lang)
- if (summary) {
- await prisma.metadata.update({
- where: {
- uri: `ipfs://${cid}`,
- },
- data: {
- [key as keyof Metadata]: summary,
- },
- })
-
- return summary
- }
- }
- } else {
- const summary = await getOriginalSummary(cid, lang)
- if (summary) {
- await prisma.metadata.create({
- data: {
- uri: `ipfs://${cid}`,
- [key as keyof Metadata]: summary,
- },
- })
-
- return summary
- }
- }
- }
- },
- noUpdate: true,
- })
-
- return summary
-}
-
-export default async function handler(
- req: NextApiRequest,
- res: NextApiResponse,
-) {
- let { cid, lang } = req.query
-
- if (!cid) {
- res.status(400).send("Bad Request")
- return
- }
-
- res.status(200).json({
- data: await getSummary(cid as string, lang as string),
- })
-}
diff --git a/src/pages/dashboard/[subdomain]/pages.tsx b/src/pages/dashboard/[subdomain]/pages.tsx
deleted file mode 100644
index 8012a44a..00000000
--- a/src/pages/dashboard/[subdomain]/pages.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import { GetServerSideProps } from "next"
-import type { ReactElement } from "react"
-
-import { DashboardLayout } from "~/components/dashboard/DashboardLayout"
-import { getServerSideProps as getLayoutServerSideProps } from "~/components/dashboard/DashboardLayout.server"
-import { PagesManager } from "~/components/dashboard/PagesManager"
-import { serverSidePropsHandler } from "~/lib/server-side-props"
-
-export const getServerSideProps: GetServerSideProps = serverSidePropsHandler(
- async (ctx) => {
- const { props: layoutProps } = await getLayoutServerSideProps(ctx)
-
- return {
- props: {
- ...layoutProps,
- },
- }
- },
-)
-
-export default function SubdomainPages() {
- return
-}
-
-SubdomainPages.getLayout = (page: ReactElement) => {
- return {page}
-}
diff --git a/src/pages/dashboard/[subdomain]/posts.tsx b/src/pages/dashboard/[subdomain]/posts.tsx
deleted file mode 100644
index ae09d358..00000000
--- a/src/pages/dashboard/[subdomain]/posts.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import { GetServerSideProps } from "next"
-import type { ReactElement } from "react"
-
-import { DashboardLayout } from "~/components/dashboard/DashboardLayout"
-import { getServerSideProps as getLayoutServerSideProps } from "~/components/dashboard/DashboardLayout.server"
-import { PagesManager } from "~/components/dashboard/PagesManager"
-import { serverSidePropsHandler } from "~/lib/server-side-props"
-
-export const getServerSideProps: GetServerSideProps = serverSidePropsHandler(
- async (ctx) => {
- const { props: layoutProps } = await getLayoutServerSideProps(ctx)
-
- return {
- props: {
- ...layoutProps,
- },
- }
- },
-)
-
-export default function SubdomainPosts() {
- return
-}
-
-SubdomainPosts.getLayout = (page: ReactElement) => {
- return {page}
-}
diff --git a/src/pages/feed/hottest/0.tsx b/src/pages/feed/hottest/0.tsx
deleted file mode 100644
index 4c3dd571..00000000
--- a/src/pages/feed/hottest/0.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-// @ts-ignore
-import jsonfeedToRSS from "jsonfeed-to-rss"
-import { GetServerSideProps } from "next"
-
-import { SITE_URL } from "~/lib/env"
-import { parsePost, setHeader } from "~/lib/json-feed"
-import { ExpandedNote } from "~/lib/types"
-import { getFeed } from "~/models/home.model"
-
-export const getServerSideProps: GetServerSideProps = async (ctx) => {
- setHeader(ctx)
-
- const feed = await getFeed({
- type: "hot",
- daysInterval: 0,
- })
-
- const data = {
- version: "https://jsonfeed.org/version/1",
- title: "xLog Hot",
- icon: "https://ipfs.4everland.xyz/ipfs/bafkreigxdnr5lvtjxqin5upquomrti2s77hlgtjy5zaeu43uhpny75rbga",
- home_page_url: `${SITE_URL}/activities`,
- feed_url: `${SITE_URL}/feed/hottest`,
- items: feed?.list?.map((post: ExpandedNote) =>
- parsePost(post, !!ctx.query.withTwitter),
- ),
- }
-
- ctx.res.write(
- ctx.query.format === "xml" ? jsonfeedToRSS(data) : JSON.stringify(data),
- )
- ctx.res.end()
-
- return {
- props: {},
- }
-}
-
-const LatestFeed: React.FC = () => null
-
-export default LatestFeed
diff --git a/src/pages/feed/hottest/1.tsx b/src/pages/feed/hottest/1.tsx
deleted file mode 100644
index 25c92dae..00000000
--- a/src/pages/feed/hottest/1.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-// @ts-ignore
-import jsonfeedToRSS from "jsonfeed-to-rss"
-import { GetServerSideProps } from "next"
-
-import { SITE_URL } from "~/lib/env"
-import { parsePost, setHeader } from "~/lib/json-feed"
-import { ExpandedNote } from "~/lib/types"
-import { getFeed } from "~/models/home.model"
-
-export const getServerSideProps: GetServerSideProps = async (ctx) => {
- setHeader(ctx)
-
- const feed = await getFeed({
- type: "hot",
- daysInterval: 1,
- })
-
- const data = {
- version: "https://jsonfeed.org/version/1",
- title: "xLog Daily Hot",
- icon: "https://ipfs.4everland.xyz/ipfs/bafkreigxdnr5lvtjxqin5upquomrti2s77hlgtjy5zaeu43uhpny75rbga",
- home_page_url: `${SITE_URL}/activities`,
- feed_url: `${SITE_URL}/feed/hottest`,
- items: feed?.list?.map((post: ExpandedNote) =>
- parsePost(post, !!ctx.query.withTwitter),
- ),
- }
-
- ctx.res.write(
- ctx.query.format === "xml" ? jsonfeedToRSS(data) : JSON.stringify(data),
- )
- ctx.res.end()
-
- return {
- props: {},
- }
-}
-
-const LatestFeed: React.FC = () => null
-
-export default LatestFeed
diff --git a/src/pages/feed/hottest/30.tsx b/src/pages/feed/hottest/30.tsx
deleted file mode 100644
index bd383b50..00000000
--- a/src/pages/feed/hottest/30.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-// @ts-ignore
-import jsonfeedToRSS from "jsonfeed-to-rss"
-import { GetServerSideProps } from "next"
-
-import { SITE_URL } from "~/lib/env"
-import { parsePost, setHeader } from "~/lib/json-feed"
-import { ExpandedNote } from "~/lib/types"
-import { getFeed } from "~/models/home.model"
-
-export const getServerSideProps: GetServerSideProps = async (ctx) => {
- setHeader(ctx)
-
- const feed = await getFeed({
- type: "hot",
- daysInterval: 30,
- })
-
- const data = {
- version: "https://jsonfeed.org/version/1",
- title: "xLog Monthly Hot",
- icon: "https://ipfs.4everland.xyz/ipfs/bafkreigxdnr5lvtjxqin5upquomrti2s77hlgtjy5zaeu43uhpny75rbga",
- home_page_url: `${SITE_URL}/activities`,
- feed_url: `${SITE_URL}/feed/hottest`,
- items: feed?.list?.map((post: ExpandedNote) =>
- parsePost(post, !!ctx.query.withTwitter),
- ),
- }
-
- ctx.res.write(
- ctx.query.format === "xml" ? jsonfeedToRSS(data) : JSON.stringify(data),
- )
- ctx.res.end()
-
- return {
- props: {},
- }
-}
-
-const LatestFeed: React.FC = () => null
-
-export default LatestFeed
diff --git a/src/pages/feed/hottest/7.tsx b/src/pages/feed/hottest/7.tsx
deleted file mode 100644
index 7364af4b..00000000
--- a/src/pages/feed/hottest/7.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-// @ts-ignore
-import jsonfeedToRSS from "jsonfeed-to-rss"
-import { GetServerSideProps } from "next"
-
-import { SITE_URL } from "~/lib/env"
-import { parsePost, setHeader } from "~/lib/json-feed"
-import { ExpandedNote } from "~/lib/types"
-import { getFeed } from "~/models/home.model"
-
-export const getServerSideProps: GetServerSideProps = async (ctx) => {
- setHeader(ctx)
-
- const feed = await getFeed({
- type: "hot",
- daysInterval: 7,
- })
-
- const data = {
- version: "https://jsonfeed.org/version/1",
- title: "xLog Weekly Hot",
- icon: "https://ipfs.4everland.xyz/ipfs/bafkreigxdnr5lvtjxqin5upquomrti2s77hlgtjy5zaeu43uhpny75rbga",
- home_page_url: `${SITE_URL}/activities`,
- feed_url: `${SITE_URL}/feed/hottest`,
- items: feed?.list?.map((post: ExpandedNote) =>
- parsePost(post, !!ctx.query.withTwitter),
- ),
- }
-
- ctx.res.write(
- ctx.query.format === "xml" ? jsonfeedToRSS(data) : JSON.stringify(data),
- )
- ctx.res.end()
-
- return {
- props: {},
- }
-}
-
-const LatestFeed: React.FC = () => null
-
-export default LatestFeed
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
deleted file mode 100644
index 8b0b356a..00000000
--- a/src/pages/index.tsx
+++ /dev/null
@@ -1,575 +0,0 @@
-import { GetServerSideProps } from "next"
-import { Trans, useTranslation } from "next-i18next"
-import { serverSideTranslations } from "next-i18next/serverSideTranslations"
-import { useRouter } from "next/router"
-import { ReactElement, useState } from "react"
-import { Element, Link } from "react-scroll"
-
-import { useAccountState } from "@crossbell/connect-kit"
-import {
- CrossbellChainLogo,
- XCharLogo,
- XFeedLogo,
- XShopLogo,
- XSyncLogo,
-} from "@crossbell/ui"
-import { RssIcon } from "@heroicons/react/24/outline"
-import { QueryClient, dehydrate } from "@tanstack/react-query"
-
-import { CharacterFloatCard } from "~/components/common/CharacterFloatCard"
-import { FollowAllButton } from "~/components/common/FollowAllButton"
-import { Logo } from "~/components/common/Logo"
-import { MainLayout } from "~/components/main/MainLayout"
-import { Button } from "~/components/ui/Button"
-import { Image } from "~/components/ui/Image"
-import { Tooltip } from "~/components/ui/Tooltip"
-import { UniLink } from "~/components/ui/UniLink"
-import { CSB_SCAN, GITHUB_LINK } from "~/lib/env"
-import { getSiteLink } from "~/lib/helpers"
-import { languageDetector } from "~/lib/language-detector"
-import { useGetShowcase } from "~/queries/home"
-import { prefetchGetShowcase } from "~/queries/home.server"
-
-export const getServerSideProps: GetServerSideProps = async (ctx) => {
- const queryClient = new QueryClient()
- await prefetchGetShowcase(queryClient)
-
- return {
- props: {
- ...(await serverSideTranslations(languageDetector(ctx), [
- "common",
- "index",
- ])),
- dehydratedState: dehydrate(queryClient),
- },
- }
-}
-
-function Home() {
- const isConnected = useAccountState((s) => !!s.computed.account)
- const router = useRouter()
- const showcaseSites = useGetShowcase()
- const { t } = useTranslation("index")
-
- const tryNow = () => {
- router.push("/dashboard")
- }
-
- const features: {
- title: string
- subfeatures: {
- screenshot?: {
- src: string
- }
- icon: string
- title: string
- }[]
- extra?: boolean
- }[] = [
- {
- title: "Write",
- subfeatures: [
- {
- screenshot: {
- src: "/assets/easy.png",
- },
- icon: "ðĪŠ",
- title: "Easy to get started",
- },
- {
- screenshot: {
- src: "/assets/experience.png",
- },
- icon: "ð",
- title: "Elegant experience",
- },
- {
- screenshot: {
- src: "/assets/fast.png",
- },
- icon: "ð",
- title: "Fast",
- },
- ],
- },
- {
- title: "Own",
- subfeatures: [
- {
- screenshot: {
- src: "/assets/safe.png",
- },
- icon: "ð",
- title: "Safe",
- },
- {
- screenshot: {
- src: "/assets/customizable.png",
- },
- icon: "ðĻ",
- title: "Customizable",
- },
- {
- screenshot: {
- src: "/assets/open.png",
- },
- icon: "ð",
- title: "Open",
- },
- ],
- extra: true,
- },
- {
- title: "Earn",
- subfeatures: [
- {
- icon: "ðŠ",
- title: "Creator Incentives",
- },
- {
- icon: "ðïļ",
- title: "DAO",
- },
- ],
- },
- ]
-
- const integrations = [
- {
- name: "RSS",
- icon: ,
- url:
- getSiteLink({
- subdomain: "xlog",
- }) + "/feed?format=xml",
- },
- {
- name: "JSON Feed",
- icon: ,
- url:
- getSiteLink({
- subdomain: "xlog",
- }) + "/feed",
- },
- {
- name: "xChar",
- icon: ,
- url: "https://xchar.app/",
- },
- {
- name: "xFeed",
- icon: ,
- url: "https://crossbell.io/feed",
- },
- {
- name: "xSync",
- icon: ,
- url: "https://xsync.app/",
- },
- {
- name: "xShop",
- icon: ,
- text: "Coming soon",
- },
- {
- name: "Crossbell Scan",
- icon: ,
- url: "https://scan.crossbell.io/",
- },
- {
- name: "Crossbell Faucet",
- icon: ,
- url: "https://faucet.crossbell.io/",
- },
- {
- name: "Crossbell Export",
- icon: ,
- url: "https://export.crossbell.io/",
- },
- {
- name: "Crossbell SDK",
- icon: ,
- url: "https://crossbell-box.github.io/crossbell.js/",
- },
- {
- name: "RSS3",
- icon: (
-
- ),
- url: "https://rss3.io/",
- },
- {
- name: "Hoot It",
- icon: (
-
- ),
- url: "https://hoot.it/search/xLog",
- },
- {
- name: "Raycast",
- icon: ,
- url: "https://www.raycast.com/Songkeys/crossbell",
- },
- {
- name: "Obsidian",
- icon: (
-
- ),
- text: "Coming soon",
- },
- ]
-
- const [showcaseMore, setShowcaseMore] = useState(false)
-
- return (
-
-
-
- {features.map((feature) => (
-
- {t(feature.title)}
- {t(".")}
-
- ))}
-
-
-
- xLog is the best{" "}
-
- on-chain
- {" "}
- and{" "}
-
- open-source
- {" "}
- blogging community for everyone.
-
-
-
-
- {isConnected ? (
- <>
-
- {t("Dashboard")}
- >
- ) : (
- t("Get my xLog in 5 minutes")
- )}
-
-
-
- {t("Look at others'")}
-
-
-
-
- {t("Explore the xLog way")}
-
-
-
-
-
- {features.map((feature, index) => (
-
-
-
-
- {index + 1}
-
-
- {t(feature.title)}
-
-
- {t(`features.${feature.title}.subtitle`)}
-
-
-
- .
-
- ),
- }}
- ns="index"
- />
-
-
-
- {feature.subfeatures.map((item) => (
-
- {item.screenshot?.src && (
-
-
-
- )}
-
- {item.icon}
-
- {t(item.title)}
-
-
-
- ,
- axfm: (
-
- .
-
- ),
- aincentive: (
-
- .
-
- ),
- }}
- ns="index"
- />
-
-
- ))}
-
- {feature.extra && (
-
-
- ðĪŦ{" "}
-
- {t(`features.${feature.title}.extra.title`)}
-
-
-
{t(`features.${feature.title}.extra.description`)}
-
- window.open(
- getSiteLink({
- subdomain: "xlog",
- }),
- )
- }
- >
- {t(`features.${feature.title}.extra.button`)}
-
-
- )}
-
- ))}
-
-
-
- {t("Showcase")}
-
-
-
- {t(
- "Discover these awesome teams and creators on xLog (sorted by update time)",
- )}
-
-
s.characterId)
- .filter(Boolean)
- .map(Number)}
- siteIds={showcaseSites.data?.map(
- (s: { handle: string }) => s.handle,
- )}
- />
-
-
-
-
-
- {t("Integration")}
-
-
-
- {t(
- "xLog's open design allows it to integrate with many other open protocols and applications without friction.",
- )}
-
-
- {integrations.map((item, index) => (
-
- {item.url ? (
-
-
- {item.icon}
-
-
- {item.name}
-
-
- ) : (
-
-
-
- {item.icon}
-
-
- {item.name}
-
-
-
- )}
-
- ))}
-
-
-
-
-
-
-
-
-
-
-
- {isConnected ? (
-
-
- {t("Get my xLog in 5 minutes")}
-
-
- ) : (
-
- {t("Get my xLog in 5 minutes")}
-
- )}
-
-
- )
-}
-
-Home.getLayout = (page: ReactElement) => {
- return {page}
-}
-
-export default Home
diff --git a/src/pages/search.tsx b/src/pages/search.tsx
deleted file mode 100644
index c3940f77..00000000
--- a/src/pages/search.tsx
+++ /dev/null
@@ -1,54 +0,0 @@
-import { GetServerSideProps } from "next"
-import { serverSideTranslations } from "next-i18next/serverSideTranslations"
-import { useRouter } from "next/router"
-import { ReactElement } from "react"
-
-import { QueryClient, dehydrate } from "@tanstack/react-query"
-
-import { SearchInput } from "~/components/common/SearchInput"
-import { MainFeed } from "~/components/main/MainFeed"
-import { MainLayout } from "~/components/main/MainLayout"
-import { MainSidebar } from "~/components/main/MainSidebar"
-import { languageDetector } from "~/lib/language-detector"
-import { prefetchGetShowcase } from "~/queries/home.server"
-
-export const getServerSideProps: GetServerSideProps = async (ctx) => {
- const queryClient = new QueryClient()
- await prefetchGetShowcase(queryClient)
-
- return {
- props: {
- ...(await serverSideTranslations(languageDetector(ctx), [
- "common",
- "index",
- "dashboard",
- ])),
- dehydratedState: dehydrate(queryClient),
- },
- }
-}
-
-function Search() {
- const router = useRouter()
- const keyword = router.query.q as string
-
- return (
-
- )
-}
-
-Search.getLayout = (page: ReactElement) => {
- return {page}
-}
-
-export default Search
diff --git a/src/pages/topic/[topic].tsx b/src/pages/topic/[topic].tsx
deleted file mode 100644
index db3124ca..00000000
--- a/src/pages/topic/[topic].tsx
+++ /dev/null
@@ -1,58 +0,0 @@
-import { GetServerSideProps } from "next"
-import { serverSideTranslations } from "next-i18next/serverSideTranslations"
-import { useRouter } from "next/router"
-import { ReactElement } from "react"
-
-import { QueryClient, dehydrate } from "@tanstack/react-query"
-
-import { MainFeed } from "~/components/main/MainFeed"
-import { MainLayout } from "~/components/main/MainLayout"
-import { MainSidebar } from "~/components/main/MainSidebar"
-import { languageDetector } from "~/lib/language-detector"
-import { prefetchGetShowcase } from "~/queries/home.server"
-
-import topics from "../../../data/topics.json"
-
-export const getServerSideProps: GetServerSideProps = async (ctx) => {
- const queryClient = new QueryClient()
- await prefetchGetShowcase(queryClient)
-
- return {
- props: {
- ...(await serverSideTranslations(languageDetector(ctx), [
- "common",
- "index",
- "dashboard",
- ])),
- dehydratedState: dehydrate(queryClient),
- },
- }
-}
-
-function Topic() {
- const router = useRouter()
- const topic = router.query.topic as string
-
- const info = topics.find((t) => t.name === topic)
-
- return (
-
-
-
-
Topic: {topic}
-
{info?.description}
-
-
-
-
-
-
-
- )
-}
-
-Topic.getLayout = (page: ReactElement) => {
- return {page}
-}
-
-export default Topic
diff --git a/src/providers/LangProvider.tsx b/src/providers/LangProvider.tsx
new file mode 100644
index 00000000..738a9deb
--- /dev/null
+++ b/src/providers/LangProvider.tsx
@@ -0,0 +1,18 @@
+import { ReactNode, createContext } from "react"
+
+export interface LangContextType {
+ lang: string
+}
+
+export const LangContext = createContext(undefined)
+
+interface LangProviderProps {
+ children: ReactNode
+ lang: string
+}
+
+export function LangProvider({ children, lang }: LangProviderProps) {
+ return (
+ {children}
+ )
+}
diff --git a/src/queries/home.ts b/src/queries/home.ts
index 041ac416..480ff5fb 100644
--- a/src/queries/home.ts
+++ b/src/queries/home.ts
@@ -1,3 +1,5 @@
+"use client"
+
import { useInfiniteQuery, useQuery } from "@tanstack/react-query"
import * as homeModel from "~/models/home.model"
diff --git a/src/queries/page.server.ts b/src/queries/page.server.ts
index 7ba9558e..829fe3af 100644
--- a/src/queries/page.server.ts
+++ b/src/queries/page.server.ts
@@ -1,12 +1,71 @@
+import AsyncLock from "async-lock"
+import { AnalyzeDocumentChain, loadSummarizationChain } from "langchain/chains"
+import { OpenAI } from "langchain/llms/openai"
+import { PromptTemplate } from "langchain/prompts"
+import removeMarkdown from "remove-markdown"
+
+import { Metadata } from "@prisma/client"
import { QueryClient } from "@tanstack/react-query"
-import { cacheGet } from "~/lib/redis.server"
+import { getNoteSlug } from "~/lib/helpers"
+import { toGateway } from "~/lib/ipfs-parser"
+import prisma from "~/lib/prisma.server"
+import { cacheDelete, cacheGet } from "~/lib/redis.server"
import * as pageModel from "~/models/page.model"
-import { getIdBySlug } from "~/pages/api/slug2id"
-import { getSummary } from "~/pages/api/summary"
+
+export async function getIdBySlug(slug: string, characterId: string | number) {
+ slug = (slug as string)?.toLowerCase?.()
+
+ const result = (await cacheGet({
+ key: ["slug2id", characterId, slug],
+ getValueFun: async () => {
+ let note
+ let cursor = ""
+
+ do {
+ const response = await (
+ await fetch(
+ `https://indexer.crossbell.io/v1/notes?characterId=${characterId}&sources=xlog&cursor=${cursor}&limit=100`,
+ )
+ ).json()
+ cursor = response.cursor
+ note = response?.list?.find(
+ (item: any) =>
+ slug === getNoteSlug(item) ||
+ slug === `${characterId}-${item.noteId}`,
+ )
+ } while (!note && cursor)
+
+ return {
+ noteId: note?.noteId,
+ }
+ },
+ noUpdate: true,
+ })) as {
+ noteId: number
+ }
+
+ // revalidate
+ if (result) {
+ const noteIdMatch = slug.match(`^${characterId}-(\\d+)$`)
+ if (!noteIdMatch?.[1]) {
+ fetch(
+ `https://indexer.crossbell.io/v1/characters/${characterId}/notes/${result.noteId}`,
+ )
+ .then((res) => res.json())
+ .then((note) => {
+ if ((note && getNoteSlug(note) !== slug) || note.deleted) {
+ cacheDelete(["slug2id", characterId + "", slug])
+ }
+ })
+ }
+ }
+
+ return result
+}
export const fetchGetPage = async (
- input: Parameters[0],
+ input: Partial[0]>,
queryClient: QueryClient,
) => {
const key = ["getPage", input.characterId, input]
@@ -23,7 +82,14 @@ export const fetchGetPage = async (
}
return cacheGet({
key,
- getValueFun: () => pageModel.getPage(input),
+ getValueFun: () =>
+ pageModel.getPage({
+ slug: input.slug,
+ characterId: input.characterId!,
+ useStat: input.useStat,
+ noteId: input.noteId,
+ handle: input.handle,
+ }),
}) as Promise>
})
}
@@ -62,15 +128,128 @@ export const fetchGetPagesBySite = async (
})
}
-export const prefetchGetSummary = async (
- input: { cid?: string; lang?: string },
- queryClient: QueryClient,
-) => {
- const key = ["getSummary", input.cid, input.lang]
- await queryClient.fetchQuery(key, async () => {
- if (!input.cid || !input.lang) {
- return
- }
- return getSummary(input.cid, input.lang)
+// Post summary
+
+let model: OpenAI | undefined
+if (process.env.OPENAI_API_KEY) {
+ model = new OpenAI({
+ openAIApiKey: process.env.OPENAI_API_KEY,
+ modelName: "gpt-3.5-turbo",
+ temperature: 0.3,
+ maxTokens: 400,
})
}
+const chains = new Map()
+
+const getOriginalSummary = async (cid: string, lang: string) => {
+ if (!model) return
+ try {
+ let { content } = await (await fetch(toGateway(`ipfs://${cid}`))).json()
+
+ if (content?.length > 5000) {
+ content = content.slice(0, 5000)
+ }
+ if (content?.length < 200) {
+ return
+ } else if (content) {
+ console.time(`fetching summary ${cid}, ${lang}`)
+
+ let chain = chains.get(lang)
+ if (!chain) {
+ const prompt = new PromptTemplate({
+ template: `Summarize this in "${lang}" language:
+ "{text}"
+ CONCISE SUMMARY:`,
+ inputVariables: ["text"],
+ })
+
+ const combineDocsChain = loadSummarizationChain(model, {
+ type: "map_reduce",
+ combineMapPrompt: prompt,
+ combinePrompt: prompt,
+ })
+
+ chain = new AnalyzeDocumentChain({
+ combineDocumentsChain: combineDocsChain,
+ })
+
+ chains.set(lang, chain)
+ }
+
+ const res = await chain.call({
+ input_document: removeMarkdown(content, {
+ useImgAltText: true,
+ gfm: true,
+ }),
+ })
+
+ console.timeEnd(`fetching summary ${cid}, ${lang}`)
+
+ return res?.text as string
+ }
+ } catch (error) {
+ console.error(error)
+ console.timeEnd(`fetching summary ${cid}, ${lang}`)
+ }
+}
+
+const lock = new AsyncLock()
+
+export async function getSummary({
+ cid,
+ lang = "en",
+}: {
+ cid: string
+ lang?: string
+}) {
+ const summary = (await cacheGet({
+ key: ["summary", cid, lang],
+ allowEmpty: true,
+ noUpdate: true,
+ getValueFun: async () => {
+ if (["en", "zh", "zh-TW", "ja"].includes(lang)) {
+ let result
+ await lock.acquire(cid, async () => {
+ const meta = await prisma.metadata.findFirst({
+ where: {
+ uri: `ipfs://${cid}`,
+ },
+ })
+ const key = `ai_summary_${lang.replace("-", "").toLowerCase()}`
+ if (meta) {
+ if (meta?.[key as keyof Metadata]) {
+ result = meta?.[key as keyof Metadata]
+ } else {
+ const summary = await getOriginalSummary(cid, lang)
+ if (summary) {
+ await prisma.metadata.update({
+ where: {
+ uri: `ipfs://${cid}`,
+ },
+ data: {
+ [key as keyof Metadata]: summary,
+ },
+ })
+ result = summary
+ }
+ }
+ } else {
+ const summary = await getOriginalSummary(cid, lang)
+ if (summary) {
+ await prisma.metadata.create({
+ data: {
+ uri: `ipfs://${cid}`,
+ [key as keyof Metadata]: summary,
+ },
+ })
+ result = summary
+ }
+ }
+ })
+ return result
+ }
+ },
+ })) as string | undefined
+
+ return summary
+}
diff --git a/src/queries/page.ts b/src/queries/page.ts
index 0e54db32..994e5f89 100644
--- a/src/queries/page.ts
+++ b/src/queries/page.ts
@@ -1,3 +1,5 @@
+"use client"
+
import {
useAccountState,
useIsNoteLiked,
@@ -357,22 +359,8 @@ export function useGetComments(
})
}
-export function useGetSummary(input: { cid?: string; lang?: string }) {
- return useQuery(["getSummary", input.cid, input.lang], async () => {
- if (!input.cid || !input.lang) {
- return
- }
- return pageModel.getSummary({
- cid: input.cid,
- lang: input.lang,
- })
- })
-}
-
export function useGetMirrorXyz(input: { address?: string }) {
return useQuery(["getMirror", input.address], async () => {
- const { getDefaultSlug } = await import("~/lib/default-slug")
-
if (!input.address) {
return null
}
@@ -385,18 +373,7 @@ export function useGetMirrorXyz(input: { address?: string }) {
)
).json()
- return response?.data?.projectFeed?.posts?.map((post: any) => {
- return {
- title: post.title,
- date_published: new Date(
- post.publishedAtTimestamp * 1000,
- ).toISOString(),
- slug: getDefaultSlug(post.title, post.digest),
- tags: ["Mirror.xyz"],
- content: post.body,
- external_urls: [`https://mirror.xyz/${input.address}/${post.digest}`],
- }
- }) as {
+ return response?.data?.projectFeed?.posts as {
title: string
type: string
size: number
diff --git a/src/queries/site.server.ts b/src/queries/site.server.ts
index c971ad51..bbd18044 100644
--- a/src/queries/site.server.ts
+++ b/src/queries/site.server.ts
@@ -1,6 +1,9 @@
+import { Asset } from "unidata.js"
+
import { QueryClient } from "@tanstack/react-query"
-import { cacheGet } from "~/lib/redis.server"
+import { IPFS_GATEWAY } from "~/lib/env"
+import { cacheGet, getRedis } from "~/lib/redis.server"
import * as siteModel from "~/models/site.model"
export const prefetchGetSite = async (
@@ -16,14 +19,27 @@ export const prefetchGetSite = async (
})
}
-export const fetchGetSite = async (input: string, queryClient: QueryClient) => {
+export const fetchGetSite = async (
+ input: string,
+ queryClient: QueryClient,
+): Promise> => {
const key = ["getSite", input]
- return await queryClient.fetchQuery(key, async () => {
- return cacheGet({
- key,
- getValueFun: () => siteModel.getSite(input),
- }) as Promise>
- })
+
+ // https://github.com/vercel/next.js/blob/8d228780e72706ef4bd5b6327ede2c0340181353/packages/next/src/lib/metadata/resolvers/resolve-opengraph.ts#L49-L51
+ // Next.js will mutate objects in place. The fetch result will be cached by Next.js as well.
+ // Consequently, when we pass site into `generateMetadata`, `site.metadata.content.avatars` will be replaced with `URL` by Next.js.
+ // To resolve this issue, we return a new object every time `fetchGetSite` is used.
+ // Remove this temporary solution once https://github.com/vercel/next.js/issues/49501 has been resolved.
+ return JSON.parse(
+ JSON.stringify(
+ await queryClient.fetchQuery(key, async () => {
+ return cacheGet({
+ key,
+ getValueFun: () => siteModel.getSite(input),
+ })
+ }),
+ ),
+ )
}
export const prefetchGetSiteSubscriptions = async (
@@ -88,3 +104,52 @@ export const fetchGetComments = async (
}) as Promise>
})
}
+
+export const getNFTs = async (address?: string) => {
+ const redis = await getRedis()
+ const redisKey = `nfts/${address}`
+
+ let cache
+ try {
+ cache = await redis?.get(redisKey)
+ } catch (error) {}
+ if (cache) {
+ return JSON.parse(cache)
+ } else {
+ const result = await siteModel.getNFTs(address as string)
+ await Promise.all(
+ result.list.map(async (nft: Asset) => {
+ if (!nft.items?.[0].mime_type && nft.items?.[0]?.address) {
+ try {
+ new URL(nft.items[0].address)
+ } catch (error) {
+ return nft
+ }
+ try {
+ const mime_type = await cacheGet({
+ key: `nft-mimetype/${nft.items[0].address}`,
+ getValueFun: async () => {
+ const head = await fetch(
+ `${nft.items![0].address!.replace(
+ IPFS_GATEWAY,
+ "https://gateway.ipfs.io/ipfs/",
+ )}`,
+ {
+ method: "HEAD",
+ },
+ )
+ return head.headers.get("content-type")
+ },
+ })
+ nft.items[0].mime_type = mime_type
+ } catch (error) {
+ console.warn(error)
+ }
+ }
+ return nft
+ }),
+ )
+ redis?.set(redisKey, JSON.stringify(result), "EX", 60 * 60 * 24)
+ return result
+ }
+}
diff --git a/src/queries/site.ts b/src/queries/site.ts
index d5ba56dd..e2daed17 100644
--- a/src/queries/site.ts
+++ b/src/queries/site.ts
@@ -1,3 +1,5 @@
+"use client"
+
import {
useAccountState,
useFollowCharacter,
@@ -117,9 +119,7 @@ export function useSubscribeToSite() {
queryClient.invalidateQueries([
"getSubscription",
variables.characterId,
- account?.type === "email"
- ? account?.character?.handle
- : account?.handle,
+ account?.characterId,
]),
])
},
@@ -171,9 +171,7 @@ export function useUnsubscribeFromSite() {
queryClient.invalidateQueries([
"getSubscription",
variables.characterId,
- account?.type === "email"
- ? account?.character?.handle
- : account?.handle,
+ account?.characterId,
]),
])
},
@@ -278,22 +276,6 @@ export function useRemoveOperator() {
)
}
-export const useGetNFTs = (address?: string) => {
- return useQuery(["getNFTs", address], async () => {
- if (!address) {
- return null
- }
- return await (
- await fetch(
- "/api/nfts?" +
- new URLSearchParams({
- address,
- } as any),
- )
- ).json()
- })
-}
-
export const useGetStat = (
data: Partial[0]>,
) => {
@@ -401,3 +383,29 @@ export const useGetGreenfieldId = (cid?: string) => {
return siteModel.getGreenfieldId(cid)
})
}
+
+export const useGetCharacterCard = ({
+ siteId,
+ address,
+ enabled,
+}: {
+ siteId?: string
+ address?: string
+ enabled: boolean
+}) => {
+ return useQuery(
+ ["useGetCharacterCard", { siteId, address }],
+ async () => {
+ if (siteId) {
+ return siteModel.getSite(siteId)
+ } else if (address) {
+ return siteModel.getSiteByAddress(address)
+ } else {
+ return null
+ }
+ },
+ {
+ enabled,
+ },
+ )
+}
diff --git a/src/queries/unidata.ts b/src/queries/unidata.ts
index d131c9a0..4250f09c 100644
--- a/src/queries/unidata.ts
+++ b/src/queries/unidata.ts
@@ -1,3 +1,5 @@
+"use client"
+
import { useEffect, useState } from "react"
import type Unidata from "unidata.js"
import { useAccount } from "wagmi"
diff --git a/tailwind.config.js b/tailwind.config.ts
similarity index 82%
rename from tailwind.config.js
rename to tailwind.config.ts
index 8d3e5a5b..37ed623f 100644
--- a/tailwind.config.js
+++ b/tailwind.config.ts
@@ -1,14 +1,18 @@
-const twColors = require("./tw-colors")
-const alwaysColor = require("tailwindcss/colors")
-const { addDynamicIconSelectors } = require("@iconify/tailwind")
+import { Config } from "tailwindcss"
+import {
+ createVariableColors,
+ variableColorsPlugin,
+} from "tailwindcss-variable-colors"
+import { default as alwaysColor } from "tailwindcss/colors"
-/** @type {import('tailwindcss').Config} */
-module.exports = {
+import { addDynamicIconSelectors } from "@iconify/tailwind"
+
+const config: Config = {
content: ["./src/**/*.tsx"],
safelist: ["icon-[mingcute--link-line]", "icon-[mingcute--copy-2-line]"],
darkMode: ["class", "html.dark"],
theme: {
- colors: twColors,
+ colors: createVariableColors(alwaysColor),
extend: {
boxShadow: {
modal: `rgb(0 0 0 / 20%) 0px 0px 1px, rgb(0 0 0 / 20%) 0px 20px 40px`,
@@ -20,7 +24,7 @@ module.exports = {
border: "var(--border-color)",
accent: "var(--theme-color)",
hover: "var(--hover-color)",
- always: alwaysColor,
+ always: alwaysColor as any,
},
spacing: {
sidebar: `240px`,
@@ -72,5 +76,8 @@ module.exports = {
require("tailwindcss-animate"),
require("tailwind-scrollbar-hide"),
addDynamicIconSelectors(),
+ variableColorsPlugin(alwaysColor),
],
}
+
+export default config
diff --git a/tsconfig.json b/tsconfig.json
index b9c9ccd1..d8c0da05 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,6 +1,10 @@
{
"compilerOptions": {
- "lib": ["DOM", "DOM.Iterable", "esnext"],
+ "lib": [
+ "DOM",
+ "DOM.Iterable",
+ "esnext"
+ ],
"isolatedModules": true,
"esModuleInterop": true,
"jsx": "preserve",
@@ -10,7 +14,9 @@
"strict": true,
"baseUrl": ".",
"paths": {
- "~/*": ["./src/*"]
+ "~/*": [
+ "./src/*"
+ ]
},
"noEmit": true,
"forceConsistentCasingInFileNames": true,
@@ -18,8 +24,22 @@
"skipLibCheck": true,
"incremental": true,
"module": "esnext",
- "typeRoots": ["./types"]
+ "typeRoots": [
+ "./types"
+ ],
+ "plugins": [
+ {
+ "name": "next"
+ }
+ ]
},
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
- "exclude": ["node_modules"]
+ "include": [
+ "next-env.d.ts",
+ "**/*.ts",
+ "**/*.tsx",
+ ".next/types/**/*.ts"
+ ],
+ "exclude": [
+ "node_modules"
+ ]
}
diff --git a/tw-colors.js b/tw-colors.js
deleted file mode 100644
index 4502c3d0..00000000
--- a/tw-colors.js
+++ /dev/null
@@ -1,293 +0,0 @@
-export default {
- slate: {
- 50: "rgba(var(--tw-colors-i-slate-50), )",
- 100: "rgba(var(--tw-colors-i-slate-100), )",
- 200: "rgba(var(--tw-colors-i-slate-200), )",
- 300: "rgba(var(--tw-colors-i-slate-300), )",
- 400: "rgba(var(--tw-colors-i-slate-400), )",
- 500: "rgba(var(--tw-colors-i-slate-500), )",
- 600: "rgba(var(--tw-colors-i-slate-600), )",
- 700: "rgba(var(--tw-colors-i-slate-700), )",
- 800: "rgba(var(--tw-colors-i-slate-800), )",
- 900: "rgba(var(--tw-colors-i-slate-900), )",
- 950: "rgba(var(--tw-colors-i-slate-950), )",
- },
- gray: {
- 50: "rgba(var(--tw-colors-i-gray-50), )",
- 100: "rgba(var(--tw-colors-i-gray-100), )",
- 200: "rgba(var(--tw-colors-i-gray-200), )",
- 300: "rgba(var(--tw-colors-i-gray-300), )",
- 400: "rgba(var(--tw-colors-i-gray-400), )",
- 500: "rgba(var(--tw-colors-i-gray-500), )",
- 600: "rgba(var(--tw-colors-i-gray-600), )",
- 700: "rgba(var(--tw-colors-i-gray-700), )",
- 800: "rgba(var(--tw-colors-i-gray-800), )",
- 900: "rgba(var(--tw-colors-i-gray-900), )",
- 950: "rgba(var(--tw-colors-i-gray-950), )",
- },
- zinc: {
- 50: "rgba(var(--tw-colors-i-zinc-50), )",
- 100: "rgba(var(--tw-colors-i-zinc-100), )",
- 200: "rgba(var(--tw-colors-i-zinc-200), )",
- 300: "rgba(var(--tw-colors-i-zinc-300), )",
- 400: "rgba(var(--tw-colors-i-zinc-400), )",
- 500: "rgba(var(--tw-colors-i-zinc-500), )",
- 600: "rgba(var(--tw-colors-i-zinc-600), )",
- 700: "rgba(var(--tw-colors-i-zinc-700), )",
- 800: "rgba(var(--tw-colors-i-zinc-800), )",
- 900: "rgba(var(--tw-colors-i-zinc-900), )",
- 950: "rgba(var(--tw-colors-i-zinc-950), )",
- },
- neutral: {
- 50: "rgba(var(--tw-colors-i-neutral-50), )",
- 100: "rgba(var(--tw-colors-i-neutral-100), )",
- 200: "rgba(var(--tw-colors-i-neutral-200), )",
- 300: "rgba(var(--tw-colors-i-neutral-300), )",
- 400: "rgba(var(--tw-colors-i-neutral-400), )",
- 500: "rgba(var(--tw-colors-i-neutral-500), )",
- 600: "rgba(var(--tw-colors-i-neutral-600), )",
- 700: "rgba(var(--tw-colors-i-neutral-700), )",
- 800: "rgba(var(--tw-colors-i-neutral-800), )",
- 900: "rgba(var(--tw-colors-i-neutral-900), )",
- 950: "rgba(var(--tw-colors-i-neutral-950), )",
- },
- stone: {
- 50: "rgba(var(--tw-colors-i-stone-50), )",
- 100: "rgba(var(--tw-colors-i-stone-100), )",
- 200: "rgba(var(--tw-colors-i-stone-200), )",
- 300: "rgba(var(--tw-colors-i-stone-300), )",
- 400: "rgba(var(--tw-colors-i-stone-400), )",
- 500: "rgba(var(--tw-colors-i-stone-500), )",
- 600: "rgba(var(--tw-colors-i-stone-600), )",
- 700: "rgba(var(--tw-colors-i-stone-700), )",
- 800: "rgba(var(--tw-colors-i-stone-800), )",
- 900: "rgba(var(--tw-colors-i-stone-900), )",
- 950: "rgba(var(--tw-colors-i-stone-950), )",
- },
- red: {
- 50: "rgba(var(--tw-colors-i-red-50), )",
- 100: "rgba(var(--tw-colors-i-red-100), )",
- 200: "rgba(var(--tw-colors-i-red-200), )",
- 300: "rgba(var(--tw-colors-i-red-300), )",
- 400: "rgba(var(--tw-colors-i-red-400), )",
- 500: "rgba(var(--tw-colors-i-red-500), )",
- 600: "rgba(var(--tw-colors-i-red-600), )",
- 700: "rgba(var(--tw-colors-i-red-700), )",
- 800: "rgba(var(--tw-colors-i-red-800), )",
- 900: "rgba(var(--tw-colors-i-red-900), )",
- 950: "rgba(var(--tw-colors-i-red-950), )",
- },
- orange: {
- 50: "rgba(var(--tw-colors-i-orange-50), )",
- 100: "rgba(var(--tw-colors-i-orange-100), )",
- 200: "rgba(var(--tw-colors-i-orange-200), )",
- 300: "rgba(var(--tw-colors-i-orange-300), )",
- 400: "rgba(var(--tw-colors-i-orange-400), )",
- 500: "rgba(var(--tw-colors-i-orange-500), )",
- 600: "rgba(var(--tw-colors-i-orange-600), )",
- 700: "rgba(var(--tw-colors-i-orange-700), )",
- 800: "rgba(var(--tw-colors-i-orange-800), )",
- 900: "rgba(var(--tw-colors-i-orange-900), )",
- 950: "rgba(var(--tw-colors-i-orange-950), )",
- },
- amber: {
- 50: "rgba(var(--tw-colors-i-amber-50), )",
- 100: "rgba(var(--tw-colors-i-amber-100), )",
- 200: "rgba(var(--tw-colors-i-amber-200), )",
- 300: "rgba(var(--tw-colors-i-amber-300), )",
- 400: "rgba(var(--tw-colors-i-amber-400), )",
- 500: "rgba(var(--tw-colors-i-amber-500), )",
- 600: "rgba(var(--tw-colors-i-amber-600), )",
- 700: "rgba(var(--tw-colors-i-amber-700), )",
- 800: "rgba(var(--tw-colors-i-amber-800), )",
- 900: "rgba(var(--tw-colors-i-amber-900), )",
- 950: "rgba(var(--tw-colors-i-amber-950), )",
- },
- yellow: {
- 50: "rgba(var(--tw-colors-i-yellow-50), )",
- 100: "rgba(var(--tw-colors-i-yellow-100), )",
- 200: "rgba(var(--tw-colors-i-yellow-200), )",
- 300: "rgba(var(--tw-colors-i-yellow-300), )",
- 400: "rgba(var(--tw-colors-i-yellow-400), )",
- 500: "rgba(var(--tw-colors-i-yellow-500), )",
- 600: "rgba(var(--tw-colors-i-yellow-600), )",
- 700: "rgba(var(--tw-colors-i-yellow-700), )",
- 800: "rgba(var(--tw-colors-i-yellow-800), )",
- 900: "rgba(var(--tw-colors-i-yellow-900), )",
- 950: "rgba(var(--tw-colors-i-yellow-950), )",
- },
- lime: {
- 50: "rgba(var(--tw-colors-i-lime-50), )",
- 100: "rgba(var(--tw-colors-i-lime-100), )",
- 200: "rgba(var(--tw-colors-i-lime-200), )",
- 300: "rgba(var(--tw-colors-i-lime-300), )",
- 400: "rgba(var(--tw-colors-i-lime-400), )",
- 500: "rgba(var(--tw-colors-i-lime-500), )",
- 600: "rgba(var(--tw-colors-i-lime-600), )",
- 700: "rgba(var(--tw-colors-i-lime-700), )",
- 800: "rgba(var(--tw-colors-i-lime-800), )",
- 900: "rgba(var(--tw-colors-i-lime-900), )",
- 950: "rgba(var(--tw-colors-i-lime-950), )",
- },
- green: {
- 50: "rgba(var(--tw-colors-i-green-50), )",
- 100: "rgba(var(--tw-colors-i-green-100), )",
- 200: "rgba(var(--tw-colors-i-green-200), )",
- 300: "rgba(var(--tw-colors-i-green-300), )",
- 400: "rgba(var(--tw-colors-i-green-400), )",
- 500: "rgba(var(--tw-colors-i-green-500), )",
- 600: "rgba(var(--tw-colors-i-green-600), )",
- 700: "rgba(var(--tw-colors-i-green-700), )",
- 800: "rgba(var(--tw-colors-i-green-800), )",
- 900: "rgba(var(--tw-colors-i-green-900), )",
- 950: "rgba(var(--tw-colors-i-green-950), )",
- },
- emerald: {
- 50: "rgba(var(--tw-colors-i-emerald-50), )",
- 100: "rgba(var(--tw-colors-i-emerald-100), )",
- 200: "rgba(var(--tw-colors-i-emerald-200), )",
- 300: "rgba(var(--tw-colors-i-emerald-300), )",
- 400: "rgba(var(--tw-colors-i-emerald-400), )",
- 500: "rgba(var(--tw-colors-i-emerald-500), )",
- 600: "rgba(var(--tw-colors-i-emerald-600), )",
- 700: "rgba(var(--tw-colors-i-emerald-700), )",
- 800: "rgba(var(--tw-colors-i-emerald-800), )",
- 900: "rgba(var(--tw-colors-i-emerald-900), )",
- 950: "rgba(var(--tw-colors-i-emerald-950), )",
- },
- teal: {
- 50: "rgba(var(--tw-colors-i-teal-50), )",
- 100: "rgba(var(--tw-colors-i-teal-100), )",
- 200: "rgba(var(--tw-colors-i-teal-200), )",
- 300: "rgba(var(--tw-colors-i-teal-300), )",
- 400: "rgba(var(--tw-colors-i-teal-400), )",
- 500: "rgba(var(--tw-colors-i-teal-500), )",
- 600: "rgba(var(--tw-colors-i-teal-600), )",
- 700: "rgba(var(--tw-colors-i-teal-700), )",
- 800: "rgba(var(--tw-colors-i-teal-800), )",
- 900: "rgba(var(--tw-colors-i-teal-900), )",
- 950: "rgba(var(--tw-colors-i-teal-950), )",
- },
- cyan: {
- 50: "rgba(var(--tw-colors-i-cyan-50), )",
- 100: "rgba(var(--tw-colors-i-cyan-100), )",
- 200: "rgba(var(--tw-colors-i-cyan-200), )",
- 300: "rgba(var(--tw-colors-i-cyan-300), )",
- 400: "rgba(var(--tw-colors-i-cyan-400), )",
- 500: "rgba(var(--tw-colors-i-cyan-500), )",
- 600: "rgba(var(--tw-colors-i-cyan-600), )",
- 700: "rgba(var(--tw-colors-i-cyan-700), )",
- 800: "rgba(var(--tw-colors-i-cyan-800), )",
- 900: "rgba(var(--tw-colors-i-cyan-900), )",
- 950: "rgba(var(--tw-colors-i-cyan-950), )",
- },
- sky: {
- 50: "rgba(var(--tw-colors-i-sky-50), )",
- 100: "rgba(var(--tw-colors-i-sky-100), )",
- 200: "rgba(var(--tw-colors-i-sky-200), )",
- 300: "rgba(var(--tw-colors-i-sky-300), )",
- 400: "rgba(var(--tw-colors-i-sky-400), )",
- 500: "rgba(var(--tw-colors-i-sky-500), )",
- 600: "rgba(var(--tw-colors-i-sky-600), )",
- 700: "rgba(var(--tw-colors-i-sky-700), )",
- 800: "rgba(var(--tw-colors-i-sky-800), )",
- 900: "rgba(var(--tw-colors-i-sky-900), )",
- 950: "rgba(var(--tw-colors-i-sky-950), )",
- },
- blue: {
- 50: "rgba(var(--tw-colors-i-blue-50), )",
- 100: "rgba(var(--tw-colors-i-blue-100), )",
- 200: "rgba(var(--tw-colors-i-blue-200), )",
- 300: "rgba(var(--tw-colors-i-blue-300), )",
- 400: "rgba(var(--tw-colors-i-blue-400), )",
- 500: "rgba(var(--tw-colors-i-blue-500), )",
- 600: "rgba(var(--tw-colors-i-blue-600), )",
- 700: "rgba(var(--tw-colors-i-blue-700), )",
- 800: "rgba(var(--tw-colors-i-blue-800), )",
- 900: "rgba(var(--tw-colors-i-blue-900), )",
- 950: "rgba(var(--tw-colors-i-blue-950), )",
- },
- indigo: {
- 50: "rgba(var(--tw-colors-i-indigo-50), )",
- 100: "rgba(var(--tw-colors-i-indigo-100), )",
- 200: "rgba(var(--tw-colors-i-indigo-200), )",
- 300: "rgba(var(--tw-colors-i-indigo-300), )",
- 400: "rgba(var(--tw-colors-i-indigo-400), )",
- 500: "rgba(var(--tw-colors-i-indigo-500), )",
- 600: "rgba(var(--tw-colors-i-indigo-600), )",
- 700: "rgba(var(--tw-colors-i-indigo-700), )",
- 800: "rgba(var(--tw-colors-i-indigo-800), )",
- 900: "rgba(var(--tw-colors-i-indigo-900), )",
- 950: "rgba(var(--tw-colors-i-indigo-950), )",
- },
- violet: {
- 50: "rgba(var(--tw-colors-i-violet-50), )",
- 100: "rgba(var(--tw-colors-i-violet-100), )",
- 200: "rgba(var(--tw-colors-i-violet-200), )",
- 300: "rgba(var(--tw-colors-i-violet-300), )",
- 400: "rgba(var(--tw-colors-i-violet-400), )",
- 500: "rgba(var(--tw-colors-i-violet-500), )",
- 600: "rgba(var(--tw-colors-i-violet-600), )",
- 700: "rgba(var(--tw-colors-i-violet-700), )",
- 800: "rgba(var(--tw-colors-i-violet-800), )",
- 900: "rgba(var(--tw-colors-i-violet-900), )",
- 950: "rgba(var(--tw-colors-i-violet-950), )",
- },
- purple: {
- 50: "rgba(var(--tw-colors-i-purple-50), )",
- 100: "rgba(var(--tw-colors-i-purple-100), )",
- 200: "rgba(var(--tw-colors-i-purple-200), )",
- 300: "rgba(var(--tw-colors-i-purple-300), )",
- 400: "rgba(var(--tw-colors-i-purple-400), )",
- 500: "rgba(var(--tw-colors-i-purple-500), )",
- 600: "rgba(var(--tw-colors-i-purple-600), )",
- 700: "rgba(var(--tw-colors-i-purple-700), )",
- 800: "rgba(var(--tw-colors-i-purple-800), )",
- 900: "rgba(var(--tw-colors-i-purple-900), )",
- 950: "rgba(var(--tw-colors-i-purple-950), )",
- },
- fuchsia: {
- 50: "rgba(var(--tw-colors-i-fuchsia-50), )",
- 100: "rgba(var(--tw-colors-i-fuchsia-100), )",
- 200: "rgba(var(--tw-colors-i-fuchsia-200), )",
- 300: "rgba(var(--tw-colors-i-fuchsia-300),