Remove categories
This commit is contained in:
parent
4b9591670f
commit
71a451fa60
7 changed files with 1 additions and 27 deletions
|
@ -54,7 +54,6 @@ import {
|
|||
GetSiteConfig,
|
||||
GetSiteConfigResponse,
|
||||
GetSiteResponse,
|
||||
ListCategoriesResponse,
|
||||
SaveSiteConfig,
|
||||
Search,
|
||||
SearchResponse,
|
||||
|
@ -140,10 +139,6 @@ export class LemmyHttp {
|
|||
return this.wrapper(HttpType.Put, '/site/config', form);
|
||||
}
|
||||
|
||||
async listCategories(): Promise<ListCategoriesResponse> {
|
||||
return this.wrapper(HttpType.Get, '/categories', {});
|
||||
}
|
||||
|
||||
async getModlog(form: GetModlog): Promise<GetModlogResponse> {
|
||||
return this.wrapper(HttpType.Get, '/modlog', form);
|
||||
}
|
||||
|
|
|
@ -23,7 +23,6 @@ export interface CreateCommunity {
|
|||
description?: string;
|
||||
icon?: string;
|
||||
banner?: string;
|
||||
category_id: number;
|
||||
nsfw: boolean;
|
||||
auth: string;
|
||||
}
|
||||
|
@ -79,7 +78,6 @@ export interface EditCommunity {
|
|||
description?: string;
|
||||
icon?: string;
|
||||
banner?: string;
|
||||
category_id: number;
|
||||
nsfw: boolean;
|
||||
auth: string;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Category, UserSafeSettings } from '../source';
|
||||
import { UserSafeSettings } from '../source';
|
||||
import {
|
||||
CommentView,
|
||||
CommunityView,
|
||||
|
@ -16,12 +16,6 @@ import {
|
|||
UserViewSafe,
|
||||
} from '../views';
|
||||
|
||||
export interface ListCategories {}
|
||||
|
||||
export interface ListCategoriesResponse {
|
||||
categories: Category[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Search types are `All, Comments, Posts, Communities, Users, Url`
|
||||
*/
|
||||
|
|
|
@ -8,7 +8,6 @@ export enum UserOperation {
|
|||
CreateCommunity,
|
||||
CreatePost,
|
||||
ListCommunities,
|
||||
ListCategories,
|
||||
GetPost,
|
||||
GetCommunity,
|
||||
CreateComment,
|
||||
|
|
|
@ -198,7 +198,6 @@ export interface CommunitySafe {
|
|||
name: string;
|
||||
title: string;
|
||||
description?: string;
|
||||
category_id: number;
|
||||
creator_id: number;
|
||||
removed: boolean;
|
||||
published: string;
|
||||
|
@ -238,11 +237,6 @@ export interface Comment {
|
|||
local: boolean;
|
||||
}
|
||||
|
||||
export interface Category {
|
||||
id: number;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface UserMention {
|
||||
id: number;
|
||||
recipient_id: number;
|
||||
|
|
|
@ -6,7 +6,6 @@ import {
|
|||
UserAggregates,
|
||||
} from './aggregates';
|
||||
import {
|
||||
Category,
|
||||
Comment,
|
||||
CommentReport,
|
||||
CommunitySafe,
|
||||
|
@ -182,7 +181,6 @@ export interface CommunityUserBanView {
|
|||
export interface CommunityView {
|
||||
community: CommunitySafe;
|
||||
creator: UserSafe;
|
||||
category: Category;
|
||||
subscribed: boolean;
|
||||
counts: CommunityAggregates;
|
||||
}
|
||||
|
|
|
@ -124,10 +124,6 @@ export class LemmyWebsocket {
|
|||
return wrapper(UserOperation.GetFollowedCommunities, form);
|
||||
}
|
||||
|
||||
listCategories() {
|
||||
return wrapper(UserOperation.ListCategories, {});
|
||||
}
|
||||
|
||||
createPost(form: CreatePost) {
|
||||
return wrapper(UserOperation.CreatePost, form);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue