mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
Organise files more consistently
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import type { PeerId } from "@app/lib/project";
|
||||
|
||||
export interface Author {
|
||||
peer: PeerId;
|
||||
urn: string;
|
||||
profile: {
|
||||
name: string;
|
||||
ens: {
|
||||
name: string;
|
||||
} | null;
|
||||
} | null;
|
||||
}
|
||||
|
||||
export interface PeerIdentity {
|
||||
urn: string;
|
||||
name: string;
|
||||
ens: {
|
||||
name: string;
|
||||
} | null;
|
||||
}
|
||||
|
||||
export interface PeerInfo {
|
||||
id: PeerId;
|
||||
person?: PeerIdentity;
|
||||
delegate: boolean;
|
||||
}
|
||||
|
||||
// Formats COBs Object Ids
|
||||
export function formatObjectId(id: string): string {
|
||||
return id.substring(0, 11);
|
||||
}
|
||||
Reference in New Issue
Block a user