Remove categories

This commit is contained in:
Felix Ableitner 2021-03-03 16:25:05 +01:00
parent 4b9591670f
commit 71a451fa60
7 changed files with 1 additions and 27 deletions

View file

@ -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);
}

View file

@ -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;
}

View file

@ -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`
*/

View file

@ -8,7 +8,6 @@ export enum UserOperation {
CreateCommunity,
CreatePost,
ListCommunities,
ListCategories,
GetPost,
GetCommunity,
CreateComment,

View file

@ -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;

View file

@ -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;
}

View file

@ -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);
}