-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
83 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,83 @@ | ||
import { AppContext } from '../config' | ||
import { | ||
QueryParams, | ||
OutputSchema as AlgoOutput, | ||
} from '../lexicon/types/app/bsky/feed/getFeedSkeleton' | ||
import * as forScience from './for-science' | ||
import * as ausPol from './auspol' | ||
import * as dads from './dads' | ||
import * as dadsMedia from './dads-media' | ||
import * as EighteenPlusND from './18-plus-nd' | ||
import * as ND from './nd' | ||
import * as discourse from './discourse' | ||
import * as cats from './cats' | ||
import * as elusive from './elusive' | ||
import * as keyboards from './keyboards' | ||
import * as overheard from './overheard' | ||
import * as paxaus from './paxaus' | ||
import * as external from './externalList' | ||
import * as twelveWords from './twelve-words' | ||
|
||
type AlgoHandler = (ctx: AppContext, params: QueryParams) => Promise<AlgoOutput> | ||
|
||
const algos = { | ||
[forScience.shortname]: { | ||
handler: <AlgoHandler>forScience.handler, | ||
manager: forScience.manager, | ||
}, | ||
[ausPol.shortname]: { | ||
handler: <AlgoHandler>ausPol.handler, | ||
manager: ausPol.manager, | ||
}, | ||
[dads.shortname]: { | ||
handler: <AlgoHandler>dads.handler, | ||
manager: dads.manager, | ||
}, | ||
[dadsMedia.shortname]: { | ||
handler: <AlgoHandler>dadsMedia.handler, | ||
manager: dadsMedia.manager, | ||
}, | ||
[EighteenPlusND.shortname]: { | ||
handler: <AlgoHandler>EighteenPlusND.handler, | ||
manager: EighteenPlusND.manager, | ||
}, | ||
[ND.shortname]: { | ||
handler: <AlgoHandler>ND.handler, | ||
manager: ND.manager, | ||
}, | ||
[discourse.shortname]: { | ||
handler: <AlgoHandler>discourse.handler, | ||
manager: discourse.manager, | ||
}, | ||
[elusive.shortname]: { | ||
handler: <AlgoHandler>elusive.handler, | ||
manager: elusive.manager, | ||
}, | ||
[cats.shortname]: { | ||
handler: <AlgoHandler>cats.handler, | ||
manager: cats.manager, | ||
}, | ||
[keyboards.shortname]: { | ||
handler: <AlgoHandler>keyboards.handler, | ||
manager: keyboards.manager, | ||
}, | ||
[overheard.shortname]: { | ||
handler: <AlgoHandler>overheard.handler, | ||
manager: overheard.manager, | ||
}, | ||
[paxaus.shortname]: { | ||
handler: <AlgoHandler>paxaus.handler, | ||
manager: paxaus.manager, | ||
}, | ||
[external.shortname]: { | ||
handler: <AlgoHandler>external.handler, | ||
manager: external.manager, | ||
}, | ||
['aaaolsp7e26zo']: { | ||
// originally a skyfeed feed, so re-using the key | ||
handler: <AlgoHandler>twelveWords.handler, | ||
manager: twelveWords.manager, | ||
}, | ||
} | ||
|
||
export default algos | ||
import { AppContext } from '../config' | ||
import { | ||
QueryParams, | ||
OutputSchema as AlgoOutput, | ||
} from '../lexicon/types/app/bsky/feed/getFeedSkeleton' | ||
import * as forScience from './for-science' | ||
import * as ausPol from './auspol' | ||
import * as dads from './dads' | ||
import * as dadsMedia from './dads-media' | ||
import * as EighteenPlusND from './18-plus-nd' | ||
import * as ND from './nd' | ||
import * as discourse from './discourse' | ||
import * as cats from './cats' | ||
import * as elusive from './elusive' | ||
import * as keyboards from './keyboards' | ||
import * as overheard from './overheard' | ||
import * as paxaus from './paxaus' | ||
import * as external from './externalList' | ||
import * as twelveWords from './twelve-words' | ||
|
||
type AlgoHandler = (ctx: AppContext, params: QueryParams) => Promise<AlgoOutput> | ||
|
||
const algos = { | ||
[forScience.shortname]: { | ||
handler: <AlgoHandler>forScience.handler, | ||
manager: forScience.manager, | ||
}, | ||
[ausPol.shortname]: { | ||
handler: <AlgoHandler>ausPol.handler, | ||
manager: ausPol.manager, | ||
}, | ||
[dads.shortname]: { | ||
handler: <AlgoHandler>dads.handler, | ||
manager: dads.manager, | ||
}, | ||
[dadsMedia.shortname]: { | ||
handler: <AlgoHandler>dadsMedia.handler, | ||
manager: dadsMedia.manager, | ||
}, | ||
[EighteenPlusND.shortname]: { | ||
handler: <AlgoHandler>EighteenPlusND.handler, | ||
manager: EighteenPlusND.manager, | ||
}, | ||
[ND.shortname]: { | ||
handler: <AlgoHandler>ND.handler, | ||
manager: ND.manager, | ||
}, | ||
// [discourse.shortname]: { | ||
// handler: <AlgoHandler>discourse.handler, | ||
// manager: discourse.manager, | ||
// }, | ||
[elusive.shortname]: { | ||
handler: <AlgoHandler>elusive.handler, | ||
manager: elusive.manager, | ||
}, | ||
[cats.shortname]: { | ||
handler: <AlgoHandler>cats.handler, | ||
manager: cats.manager, | ||
}, | ||
[keyboards.shortname]: { | ||
handler: <AlgoHandler>keyboards.handler, | ||
manager: keyboards.manager, | ||
}, | ||
[overheard.shortname]: { | ||
handler: <AlgoHandler>overheard.handler, | ||
manager: overheard.manager, | ||
}, | ||
[paxaus.shortname]: { | ||
handler: <AlgoHandler>paxaus.handler, | ||
manager: paxaus.manager, | ||
}, | ||
[external.shortname]: { | ||
handler: <AlgoHandler>external.handler, | ||
manager: external.manager, | ||
}, | ||
['aaaolsp7e26zo']: { | ||
// originally a skyfeed feed, so re-using the key | ||
handler: <AlgoHandler>twelveWords.handler, | ||
manager: twelveWords.manager, | ||
}, | ||
} | ||
|
||
export default algos |