Barazo default frontend barazo.forum
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(deps): import @barazo-forum/lexicons package (#32)

* feat(deps): import @barazo-forum/lexicons package

Add the shared lexicons package as a dependency, replacing the need for
inline AT Protocol type definitions. Re-exports Zod validation schemas,
lexicon ID constants, and record input types from the central package.

* ci: resolve lexicons link dependency in CI

Checkout and build barazo-lexicons alongside the repo so the
link:../barazo-lexicons dependency resolves during CI runs.

authored by

Guido X Jansen and committed by
GitHub
385c0c99 0dbaca35

+97
+25
.github/workflows/ci.yml
··· 18 18 - name: Checkout 19 19 uses: actions/checkout@v4 20 20 21 + - name: Clone and build barazo-lexicons 22 + run: | 23 + git clone --depth 1 https://github.com/barazo-forum/barazo-lexicons.git ../barazo-lexicons 24 + cd ../barazo-lexicons && npm install --ignore-scripts && npm run build 25 + 21 26 - name: Install pnpm 22 27 uses: pnpm/action-setup@v4 23 28 with: ··· 45 50 - name: Checkout 46 51 uses: actions/checkout@v4 47 52 53 + - name: Clone and build barazo-lexicons 54 + run: | 55 + git clone --depth 1 https://github.com/barazo-forum/barazo-lexicons.git ../barazo-lexicons 56 + cd ../barazo-lexicons && npm install --ignore-scripts && npm run build 57 + 48 58 - name: Install pnpm 49 59 uses: pnpm/action-setup@v4 50 60 with: ··· 69 79 - name: Checkout 70 80 uses: actions/checkout@v4 71 81 82 + - name: Clone and build barazo-lexicons 83 + run: | 84 + git clone --depth 1 https://github.com/barazo-forum/barazo-lexicons.git ../barazo-lexicons 85 + cd ../barazo-lexicons && npm install --ignore-scripts && npm run build 86 + 72 87 - name: Install pnpm 73 88 uses: pnpm/action-setup@v4 74 89 with: ··· 94 109 - name: Checkout 95 110 uses: actions/checkout@v4 96 111 112 + - name: Clone and build barazo-lexicons 113 + run: | 114 + git clone --depth 1 https://github.com/barazo-forum/barazo-lexicons.git ../barazo-lexicons 115 + cd ../barazo-lexicons && npm install --ignore-scripts && npm run build 116 + 97 117 - name: Install pnpm 98 118 uses: pnpm/action-setup@v4 99 119 with: ··· 127 147 steps: 128 148 - name: Checkout 129 149 uses: actions/checkout@v4 150 + 151 + - name: Clone and build barazo-lexicons 152 + run: | 153 + git clone --depth 1 https://github.com/barazo-forum/barazo-lexicons.git ../barazo-lexicons 154 + cd ../barazo-lexicons && npm install --ignore-scripts && npm run build 130 155 131 156 - name: Install pnpm 132 157 uses: pnpm/action-setup@v4
+1
.npmrc
··· 1 + @barazo-forum:registry=https://npm.pkg.github.com
+1
package.json
··· 26 26 "prepare": "husky" 27 27 }, 28 28 "dependencies": { 29 + "@barazo-forum/lexicons": "link:../barazo-lexicons", 29 30 "@phosphor-icons/react": "^2.1.7", 30 31 "@radix-ui/colors": "^3.0.0", 31 32 "@radix-ui/react-accordion": "^1.2.2",
+52
pnpm-lock.yaml
··· 7 7 importers: 8 8 .: 9 9 dependencies: 10 + '@barazo-forum/lexicons': 11 + specifier: link:../barazo-lexicons 12 + version: link:../barazo-lexicons 10 13 '@phosphor-icons/react': 11 14 specifier: ^2.1.7 12 15 version: 2.1.10(react-dom@19.2.4(react@19.2.4))(react@19.2.4) ··· 1050 1053 } 1051 1054 cpu: [arm64] 1052 1055 os: [linux] 1056 + libc: [glibc] 1053 1057 1054 1058 '@img/sharp-libvips-linux-arm@1.2.4': 1055 1059 resolution: ··· 1058 1062 } 1059 1063 cpu: [arm] 1060 1064 os: [linux] 1065 + libc: [glibc] 1061 1066 1062 1067 '@img/sharp-libvips-linux-ppc64@1.2.4': 1063 1068 resolution: ··· 1066 1071 } 1067 1072 cpu: [ppc64] 1068 1073 os: [linux] 1074 + libc: [glibc] 1069 1075 1070 1076 '@img/sharp-libvips-linux-riscv64@1.2.4': 1071 1077 resolution: ··· 1074 1080 } 1075 1081 cpu: [riscv64] 1076 1082 os: [linux] 1083 + libc: [glibc] 1077 1084 1078 1085 '@img/sharp-libvips-linux-s390x@1.2.4': 1079 1086 resolution: ··· 1082 1089 } 1083 1090 cpu: [s390x] 1084 1091 os: [linux] 1092 + libc: [glibc] 1085 1093 1086 1094 '@img/sharp-libvips-linux-x64@1.2.4': 1087 1095 resolution: ··· 1090 1098 } 1091 1099 cpu: [x64] 1092 1100 os: [linux] 1101 + libc: [glibc] 1093 1102 1094 1103 '@img/sharp-libvips-linuxmusl-arm64@1.2.4': 1095 1104 resolution: ··· 1098 1107 } 1099 1108 cpu: [arm64] 1100 1109 os: [linux] 1110 + libc: [musl] 1101 1111 1102 1112 '@img/sharp-libvips-linuxmusl-x64@1.2.4': 1103 1113 resolution: ··· 1106 1116 } 1107 1117 cpu: [x64] 1108 1118 os: [linux] 1119 + libc: [musl] 1109 1120 1110 1121 '@img/sharp-linux-arm64@0.34.5': 1111 1122 resolution: ··· 1115 1126 engines: { node: ^18.17.0 || ^20.3.0 || >=21.0.0 } 1116 1127 cpu: [arm64] 1117 1128 os: [linux] 1129 + libc: [glibc] 1118 1130 1119 1131 '@img/sharp-linux-arm@0.34.5': 1120 1132 resolution: ··· 1124 1136 engines: { node: ^18.17.0 || ^20.3.0 || >=21.0.0 } 1125 1137 cpu: [arm] 1126 1138 os: [linux] 1139 + libc: [glibc] 1127 1140 1128 1141 '@img/sharp-linux-ppc64@0.34.5': 1129 1142 resolution: ··· 1133 1146 engines: { node: ^18.17.0 || ^20.3.0 || >=21.0.0 } 1134 1147 cpu: [ppc64] 1135 1148 os: [linux] 1149 + libc: [glibc] 1136 1150 1137 1151 '@img/sharp-linux-riscv64@0.34.5': 1138 1152 resolution: ··· 1142 1156 engines: { node: ^18.17.0 || ^20.3.0 || >=21.0.0 } 1143 1157 cpu: [riscv64] 1144 1158 os: [linux] 1159 + libc: [glibc] 1145 1160 1146 1161 '@img/sharp-linux-s390x@0.34.5': 1147 1162 resolution: ··· 1151 1166 engines: { node: ^18.17.0 || ^20.3.0 || >=21.0.0 } 1152 1167 cpu: [s390x] 1153 1168 os: [linux] 1169 + libc: [glibc] 1154 1170 1155 1171 '@img/sharp-linux-x64@0.34.5': 1156 1172 resolution: ··· 1160 1176 engines: { node: ^18.17.0 || ^20.3.0 || >=21.0.0 } 1161 1177 cpu: [x64] 1162 1178 os: [linux] 1179 + libc: [glibc] 1163 1180 1164 1181 '@img/sharp-linuxmusl-arm64@0.34.5': 1165 1182 resolution: ··· 1169 1186 engines: { node: ^18.17.0 || ^20.3.0 || >=21.0.0 } 1170 1187 cpu: [arm64] 1171 1188 os: [linux] 1189 + libc: [musl] 1172 1190 1173 1191 '@img/sharp-linuxmusl-x64@0.34.5': 1174 1192 resolution: ··· 1178 1196 engines: { node: ^18.17.0 || ^20.3.0 || >=21.0.0 } 1179 1197 cpu: [x64] 1180 1198 os: [linux] 1199 + libc: [musl] 1181 1200 1182 1201 '@img/sharp-wasm32@0.34.5': 1183 1202 resolution: ··· 1346 1365 engines: { node: '>= 10' } 1347 1366 cpu: [arm64] 1348 1367 os: [linux] 1368 + libc: [glibc] 1349 1369 1350 1370 '@next/swc-linux-arm64-musl@16.1.6': 1351 1371 resolution: ··· 1355 1375 engines: { node: '>= 10' } 1356 1376 cpu: [arm64] 1357 1377 os: [linux] 1378 + libc: [musl] 1358 1379 1359 1380 '@next/swc-linux-x64-gnu@16.1.6': 1360 1381 resolution: ··· 1364 1385 engines: { node: '>= 10' } 1365 1386 cpu: [x64] 1366 1387 os: [linux] 1388 + libc: [glibc] 1367 1389 1368 1390 '@next/swc-linux-x64-musl@16.1.6': 1369 1391 resolution: ··· 1373 1395 engines: { node: '>= 10' } 1374 1396 cpu: [x64] 1375 1397 os: [linux] 1398 + libc: [musl] 1376 1399 1377 1400 '@next/swc-win32-arm64-msvc@16.1.6': 1378 1401 resolution: ··· 2353 2376 } 2354 2377 cpu: [arm] 2355 2378 os: [linux] 2379 + libc: [glibc] 2356 2380 2357 2381 '@rollup/rollup-linux-arm-musleabihf@4.57.1': 2358 2382 resolution: ··· 2361 2385 } 2362 2386 cpu: [arm] 2363 2387 os: [linux] 2388 + libc: [musl] 2364 2389 2365 2390 '@rollup/rollup-linux-arm64-gnu@4.57.1': 2366 2391 resolution: ··· 2369 2394 } 2370 2395 cpu: [arm64] 2371 2396 os: [linux] 2397 + libc: [glibc] 2372 2398 2373 2399 '@rollup/rollup-linux-arm64-musl@4.57.1': 2374 2400 resolution: ··· 2377 2403 } 2378 2404 cpu: [arm64] 2379 2405 os: [linux] 2406 + libc: [musl] 2380 2407 2381 2408 '@rollup/rollup-linux-loong64-gnu@4.57.1': 2382 2409 resolution: ··· 2385 2412 } 2386 2413 cpu: [loong64] 2387 2414 os: [linux] 2415 + libc: [glibc] 2388 2416 2389 2417 '@rollup/rollup-linux-loong64-musl@4.57.1': 2390 2418 resolution: ··· 2393 2421 } 2394 2422 cpu: [loong64] 2395 2423 os: [linux] 2424 + libc: [musl] 2396 2425 2397 2426 '@rollup/rollup-linux-ppc64-gnu@4.57.1': 2398 2427 resolution: ··· 2401 2430 } 2402 2431 cpu: [ppc64] 2403 2432 os: [linux] 2433 + libc: [glibc] 2404 2434 2405 2435 '@rollup/rollup-linux-ppc64-musl@4.57.1': 2406 2436 resolution: ··· 2409 2439 } 2410 2440 cpu: [ppc64] 2411 2441 os: [linux] 2442 + libc: [musl] 2412 2443 2413 2444 '@rollup/rollup-linux-riscv64-gnu@4.57.1': 2414 2445 resolution: ··· 2417 2448 } 2418 2449 cpu: [riscv64] 2419 2450 os: [linux] 2451 + libc: [glibc] 2420 2452 2421 2453 '@rollup/rollup-linux-riscv64-musl@4.57.1': 2422 2454 resolution: ··· 2425 2457 } 2426 2458 cpu: [riscv64] 2427 2459 os: [linux] 2460 + libc: [musl] 2428 2461 2429 2462 '@rollup/rollup-linux-s390x-gnu@4.57.1': 2430 2463 resolution: ··· 2433 2466 } 2434 2467 cpu: [s390x] 2435 2468 os: [linux] 2469 + libc: [glibc] 2436 2470 2437 2471 '@rollup/rollup-linux-x64-gnu@4.57.1': 2438 2472 resolution: ··· 2441 2475 } 2442 2476 cpu: [x64] 2443 2477 os: [linux] 2478 + libc: [glibc] 2444 2479 2445 2480 '@rollup/rollup-linux-x64-musl@4.57.1': 2446 2481 resolution: ··· 2449 2484 } 2450 2485 cpu: [x64] 2451 2486 os: [linux] 2487 + libc: [musl] 2452 2488 2453 2489 '@rollup/rollup-openbsd-x64@4.57.1': 2454 2490 resolution: ··· 2611 2647 engines: { node: '>= 10' } 2612 2648 cpu: [arm64] 2613 2649 os: [linux] 2650 + libc: [glibc] 2614 2651 2615 2652 '@tailwindcss/oxide-linux-arm64-musl@4.1.18': 2616 2653 resolution: ··· 2620 2657 engines: { node: '>= 10' } 2621 2658 cpu: [arm64] 2622 2659 os: [linux] 2660 + libc: [musl] 2623 2661 2624 2662 '@tailwindcss/oxide-linux-x64-gnu@4.1.18': 2625 2663 resolution: ··· 2629 2667 engines: { node: '>= 10' } 2630 2668 cpu: [x64] 2631 2669 os: [linux] 2670 + libc: [glibc] 2632 2671 2633 2672 '@tailwindcss/oxide-linux-x64-musl@4.1.18': 2634 2673 resolution: ··· 2638 2677 engines: { node: '>= 10' } 2639 2678 cpu: [x64] 2640 2679 os: [linux] 2680 + libc: [musl] 2641 2681 2642 2682 '@tailwindcss/oxide-wasm32-wasi@4.1.18': 2643 2683 resolution: ··· 3006 3046 } 3007 3047 cpu: [arm64] 3008 3048 os: [linux] 3049 + libc: [glibc] 3009 3050 3010 3051 '@unrs/resolver-binding-linux-arm64-musl@1.11.1': 3011 3052 resolution: ··· 3014 3055 } 3015 3056 cpu: [arm64] 3016 3057 os: [linux] 3058 + libc: [musl] 3017 3059 3018 3060 '@unrs/resolver-binding-linux-ppc64-gnu@1.11.1': 3019 3061 resolution: ··· 3022 3064 } 3023 3065 cpu: [ppc64] 3024 3066 os: [linux] 3067 + libc: [glibc] 3025 3068 3026 3069 '@unrs/resolver-binding-linux-riscv64-gnu@1.11.1': 3027 3070 resolution: ··· 3030 3073 } 3031 3074 cpu: [riscv64] 3032 3075 os: [linux] 3076 + libc: [glibc] 3033 3077 3034 3078 '@unrs/resolver-binding-linux-riscv64-musl@1.11.1': 3035 3079 resolution: ··· 3038 3082 } 3039 3083 cpu: [riscv64] 3040 3084 os: [linux] 3085 + libc: [musl] 3041 3086 3042 3087 '@unrs/resolver-binding-linux-s390x-gnu@1.11.1': 3043 3088 resolution: ··· 3046 3091 } 3047 3092 cpu: [s390x] 3048 3093 os: [linux] 3094 + libc: [glibc] 3049 3095 3050 3096 '@unrs/resolver-binding-linux-x64-gnu@1.11.1': 3051 3097 resolution: ··· 3054 3100 } 3055 3101 cpu: [x64] 3056 3102 os: [linux] 3103 + libc: [glibc] 3057 3104 3058 3105 '@unrs/resolver-binding-linux-x64-musl@1.11.1': 3059 3106 resolution: ··· 3062 3109 } 3063 3110 cpu: [x64] 3064 3111 os: [linux] 3112 + libc: [musl] 3065 3113 3066 3114 '@unrs/resolver-binding-wasm32-wasi@1.11.1': 3067 3115 resolution: ··· 5120 5168 engines: { node: '>= 12.0.0' } 5121 5169 cpu: [arm64] 5122 5170 os: [linux] 5171 + libc: [glibc] 5123 5172 5124 5173 lightningcss-linux-arm64-musl@1.30.2: 5125 5174 resolution: ··· 5129 5178 engines: { node: '>= 12.0.0' } 5130 5179 cpu: [arm64] 5131 5180 os: [linux] 5181 + libc: [musl] 5132 5182 5133 5183 lightningcss-linux-x64-gnu@1.30.2: 5134 5184 resolution: ··· 5138 5188 engines: { node: '>= 12.0.0' } 5139 5189 cpu: [x64] 5140 5190 os: [linux] 5191 + libc: [glibc] 5141 5192 5142 5193 lightningcss-linux-x64-musl@1.30.2: 5143 5194 resolution: ··· 5147 5198 engines: { node: '>= 12.0.0' } 5148 5199 cpu: [x64] 5149 5200 os: [linux] 5201 + libc: [musl] 5150 5202 5151 5203 lightningcss-win32-arm64-msvc@1.30.2: 5152 5204 resolution:
+18
src/lib/api/types.ts
··· 4 4 * @see ~/Documents/Git/barazo-forum/barazo-api/src/routes/ 5 5 */ 6 6 7 + // Re-export lexicon types for AT Protocol record validation and constants. 8 + // API response types below are enriched by the AppView (computed fields like 9 + // replyCount, indexedAt, etc.) and differ from the raw PDS record shapes. 10 + export type { 11 + TopicPostInput, 12 + TopicReplyInput, 13 + ReactionInput, 14 + ActorPreferencesInput, 15 + } from '@barazo-forum/lexicons' 16 + 17 + export { 18 + LEXICON_IDS, 19 + topicPostSchema, 20 + topicReplySchema, 21 + reactionSchema, 22 + actorPreferencesSchema, 23 + } from '@barazo-forum/lexicons' 24 + 7 25 // --- Categories --- 8 26 9 27 export interface Category {