mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2025-01-16 03:47:21 +00:00
46 lines
565 B
TypeScript
46 lines
565 B
TypeScript
import { GetSiteResponse } from 'lemmy-js-client';
|
|
|
|
export interface IsoData {
|
|
path: string;
|
|
routeData: any[];
|
|
site: GetSiteResponse;
|
|
// Lang and theme
|
|
lang: string;
|
|
// communities?: ListCommunitiesResponse;
|
|
}
|
|
|
|
declare global {
|
|
interface Window {
|
|
isoData: IsoData;
|
|
}
|
|
}
|
|
|
|
export enum CommentSortType {
|
|
Hot,
|
|
Top,
|
|
New,
|
|
Old,
|
|
}
|
|
|
|
export enum CommentViewType {
|
|
Tree,
|
|
Chat,
|
|
}
|
|
|
|
export enum DataType {
|
|
Post,
|
|
Comment,
|
|
}
|
|
|
|
export enum BanType {
|
|
Community,
|
|
Site,
|
|
}
|
|
|
|
export enum UserDetailsView {
|
|
Overview,
|
|
Comments,
|
|
Posts,
|
|
Saved,
|
|
}
|