-
Notifications
You must be signed in to change notification settings - Fork 610
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1769 from bluesky-social/account-manager
Account Manager
- Loading branch information
Showing
92 changed files
with
1,565 additions
and
1,338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export const ADMIN_PASSWORD = 'admin-pass' | ||
export const MOD_PASSWORD = 'mod-pass' | ||
export const TRIAGE_PASSWORD = 'triage-pass' | ||
export const JWT_SECRET = 'jwt-secret' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Database, Migrator } from '../../db' | ||
import { DatabaseSchema } from './schema' | ||
import migrations from './migrations' | ||
|
||
export * from './schema' | ||
|
||
export type AccountDb = Database<DatabaseSchema> | ||
|
||
export const getDb = (location: string): AccountDb => { | ||
return Database.sqlite(location) | ||
} | ||
|
||
export const getMigrator = (db: AccountDb) => { | ||
return new Migrator(db.db, migrations) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Selectable } from 'kysely' | ||
|
||
export interface Actor { | ||
did: string | ||
handle: string | null | ||
createdAt: string | ||
takedownRef: string | null | ||
} | ||
|
||
export type ActorEntry = Selectable<Actor> | ||
|
||
export const tableName = 'actor' | ||
|
||
export type PartialDB = { [tableName]: Actor } |
File renamed without changes.
File renamed without changes.
5 changes: 4 additions & 1 deletion
5
packages/pds/src/service-db/schema/index.ts → ...ds/src/account-manager/db/schema/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.