mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
5 files changed
+176
-81
No files matched your search
@@ -2,7 +2,6 @@ import LightningFS from '@isomorphic-git/lightning-fs';
|
||||
import git from 'isomorphic-git';
|
||||
import http from 'isomorphic-git/http/web';
|
||||
import { Buffer } from 'buffer';
|
||||
import { generateSecretKey, nip19 } from 'nostr-tools';
|
||||
|
||||
// Polyfill Buffer for browser
|
||||
if (typeof window !== 'undefined') {
|
||||
@@ -16,7 +15,6 @@ export interface Project {
|
||||
id: string;
|
||||
name: string;
|
||||
path: string;
|
||||
nsec: string;
|
||||
createdAt: Date;
|
||||
lastModified: Date;
|
||||
}
|
||||
@@ -48,7 +46,6 @@ export class FileSystemManager {
|
||||
id,
|
||||
name,
|
||||
path: projectPath,
|
||||
nsec: nip19.nsecEncode(generateSecretKey()),
|
||||
createdAt: new Date(),
|
||||
lastModified: new Date(),
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user