mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-05-08 19:27:44 -05:00
Instead of using an `import_map.json` file to define the versions for dependencies, they are now defined directly within the import. Since the `import_map.json` file should not be used anymore and instead a `deno.json` file per function should be used, we decided to define them directly with the code. The overhead compared to a `deno.json` file per function shouldn't be that large and it makes using functions in a self-hosted setup easier.
50 lines
1015 B
TypeScript
50 lines
1015 B
TypeScript
import { ISourceOptionsGithub } from "./sources/github.ts";
|
|
import { ISourceOptionsGoogleNews } from "./sources/googlenews.ts";
|
|
import { ISourceOptionsStackOverflow } from "./sources/stackoverflow.ts";
|
|
|
|
export type TSourceType =
|
|
| "fourchan"
|
|
| "github"
|
|
| "googlenews"
|
|
| "lemmy"
|
|
| "mastodon"
|
|
| "medium"
|
|
| "nitter"
|
|
| "pinterest"
|
|
| "podcast"
|
|
| "reddit"
|
|
| "rss"
|
|
| "stackoverflow"
|
|
| "tumblr"
|
|
| "youtube"
|
|
| "none";
|
|
|
|
export interface ISource {
|
|
id: string;
|
|
columnId: string;
|
|
userId: string;
|
|
type: TSourceType;
|
|
title: string;
|
|
options?: ISourceOptions;
|
|
link?: string;
|
|
icon?: string;
|
|
updatedAt?: number;
|
|
}
|
|
|
|
export interface ISourceOptions {
|
|
fourchan?: string;
|
|
github?: ISourceOptionsGithub;
|
|
googlenews?: ISourceOptionsGoogleNews;
|
|
lemmy?: string;
|
|
mastodon?: string;
|
|
medium?: string;
|
|
nitter?: string;
|
|
pinterest?: string;
|
|
podcast?: string;
|
|
reddit?: string;
|
|
rss?: string;
|
|
stackoverflow?: ISourceOptionsStackOverflow;
|
|
tumblr?: string;
|
|
youtube?: string;
|
|
}
|