atproto explorer pdsls.dev
atproto tool

add validation

+3 -1
package.json
···
"typescript": "^5.6.3",
"unocss": "^0.64.0",
"vite": "^5.4.10",
-
"vite-plugin-solid": "^2.10.2"
+
"vite-plugin-solid": "^2.10.2",
+
"vite-plugin-wasm": "^3.3.0"
},
"dependencies": {
"@atcute/client": "^2.0.4",
"@solidjs/router": "^0.15.1",
"hls.js": "^1.5.17",
+
"public-transport": "file:pkg/pt.tgz",
"solid-js": "^1.9.3"
},
"packageManager": "pnpm@9.12.2+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228"
pkg/pt.tgz

This is a binary file and will not be displayed.

+21
pnpm-lock.yaml
···
hls.js:
specifier: ^1.5.17
version: 1.5.17
+
public-transport:
+
specifier: file:pkg/pt.tgz
+
version: file:pkg/pt.tgz
solid-js:
specifier: ^1.9.3
version: 1.9.3
···
vite-plugin-solid:
specifier: ^2.10.2
version: 2.10.2(solid-js@1.9.3)(vite@5.4.10(@types/node@22.8.1))
+
vite-plugin-wasm:
+
specifier: ^3.3.0
+
version: 3.3.0(vite@5.4.10(@types/node@22.8.1))
packages:
···
engines: {node: '>=14'}
hasBin: true
+
public-transport@file:pkg/pt.tgz:
+
resolution: {integrity: sha512-f4xFcUOg64Y4D6c5cEV4FDly5mYn7dlUo8WoPJlfdhF09NioxYvmjCPz/chTfoLNtea3v3fs3UDtxclOhXFLyw==, tarball: file:pkg/pt.tgz}
+
version: 0.1.0
+
readdirp@3.6.0:
resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
engines: {node: '>=8.10.0'}
···
'@testing-library/jest-dom':
optional: true
+
vite-plugin-wasm@3.3.0:
+
resolution: {integrity: sha512-tVhz6w+W9MVsOCHzxo6SSMSswCeIw4HTrXEi6qL3IRzATl83jl09JVO1djBqPSwfjgnpVHNLYcaMbaDX5WB/pg==}
+
peerDependencies:
+
vite: ^2 || ^3 || ^4 || ^5
+
vite@5.4.10:
resolution: {integrity: sha512-1hvaPshuPUtxeQ0hsVH3Mud0ZanOLwVTneA1EgbAM5LhaZEqyPWGRQ7BtaMvUrTDeEaC8pxtj6a6jku3x4z6SQ==}
engines: {node: ^18.0.0 || >=20.0.0}
···
prettier@3.3.3: {}
+
public-transport@file:pkg/pt.tgz: {}
+
readdirp@3.6.0:
dependencies:
picomatch: 2.3.1
···
vitefu: 0.2.5(vite@5.4.10(@types/node@22.8.1))
transitivePeerDependencies:
- supports-color
+
+
vite-plugin-wasm@3.3.0(vite@5.4.10(@types/node@22.8.1)):
+
dependencies:
+
vite: 5.4.10(@types/node@22.8.1)
vite@5.4.10(@types/node@22.8.1):
dependencies:
+5 -1
src/App.tsx
···
TbMoonStar,
TbSun,
} from "./lib/svg.jsx";
+
import { authenticate_post } from "public-transport";
let rpc = new XRPC({
handler: new CredentialManager({ service: "https://public.api.bsky.app" }),
···
rpc = new XRPC({ handler: new CredentialManager({ service: pds }) });
try {
const res = await getRecord(params.repo, params.collection, params.rkey);
+
setNotice("Validating...");
+
await authenticate_post(res.data.uri, res.data.cid!, res.data.value);
setRecord(res.data);
setNotice("");
} catch (err: any) {
-
setNotice(err.message);
+
if (err.message) setNotice(err.message);
+
else setNotice(`Invalid Record: ${err}`);
}
});
+2 -1
vite.config.ts
···
import { defineConfig } from "vite";
import solidPlugin from "vite-plugin-solid";
+
import wasm from "vite-plugin-wasm";
import UnoCSS from "unocss/vite";
const SERVER_HOST = "127.0.0.1";
const SERVER_PORT = 13213;
export default defineConfig({
-
plugins: [UnoCSS(), solidPlugin()],
+
plugins: [UnoCSS(), wasm(), solidPlugin()],
server: {
host: SERVER_HOST,
port: SERVER_PORT,