From 8288c235d07e586319384e13d1a557f33b782edd Mon Sep 17 00:00:00 2001 From: 778a69cd <778a69cd@potsda.mn> Date: Mon, 3 Apr 2023 13:19:09 +0200 Subject: [PATCH] Revert "Added option to change sorting on homepage to upcoming" This reverts commit fa6d875bb47e9e21fd82c3eed7d0a7303e32ddfb. --- js/src/graphql/admin.ts | 3 --- js/src/types/admin.model.ts | 3 +-- js/src/types/config.model.ts | 8 +------ js/src/types/enums.ts | 5 ----- js/src/views/Admin/Settings.vue | 26 +---------------------- js/src/views/Home.vue | 30 +++++---------------------- lib/graphql/schema/admin.ex | 8 ------- lib/graphql/schema/config.ex | 2 -- lib/mobilizon/config.ex | 6 ------ schema.graphql | 18 ---------------- test/graphql/resolvers/admin_test.exs | 3 --- 11 files changed, 8 insertions(+), 104 deletions(-) diff --git a/js/src/graphql/admin.ts b/js/src/graphql/admin.ts index 4c6bfaecc..0d47b0fa7 100644 --- a/js/src/graphql/admin.ts +++ b/js/src/graphql/admin.ts @@ -184,7 +184,6 @@ export const ADMIN_SETTINGS_FRAGMENT = gql` instanceLongDescription instanceSlogan contact - InstanceHomepageSorting instanceTerms instanceTermsType instanceTermsUrl @@ -213,7 +212,6 @@ export const SAVE_ADMIN_SETTINGS = gql` $instanceLongDescription: String $instanceSlogan: String $contact: String - $InstanceHomepageSorting: InstanceHomepageSorting $instanceTerms: String $instanceTermsType: InstanceTermsType $instanceTermsUrl: String @@ -230,7 +228,6 @@ export const SAVE_ADMIN_SETTINGS = gql` instanceLongDescription: $instanceLongDescription instanceSlogan: $instanceSlogan contact: $contact - InstanceHomepageSorting: $InstanceHomepageSorting instanceTerms: $instanceTerms instanceTermsType: $instanceTermsType instanceTermsUrl: $instanceTermsUrl diff --git a/js/src/types/admin.model.ts b/js/src/types/admin.model.ts index ed74b1062..00d165428 100644 --- a/js/src/types/admin.model.ts +++ b/js/src/types/admin.model.ts @@ -1,6 +1,6 @@ import type { IEvent } from "@/types/event.model"; import type { IGroup } from "./actor"; -import { InstanceTermsType, InstanceHomepageSorting } from "./enums"; +import { InstanceTermsType } from "./enums"; export interface IDashboard { lastPublicEventPublished: IEvent; @@ -25,7 +25,6 @@ export interface IAdminSettings { instanceSlogan: string; instanceLongDescription: string; contact: string; - InstanceHomepageSorting: InstanceHomepageSorting; instanceTerms: string; instanceTermsType: InstanceTermsType; instanceTermsUrl: string | null; diff --git a/js/src/types/config.model.ts b/js/src/types/config.model.ts index 2ceeaa5a2..97544c2e5 100644 --- a/js/src/types/config.model.ts +++ b/js/src/types/config.model.ts @@ -1,9 +1,4 @@ -import { - InstancePrivacyType, - InstanceTermsType, - InstanceHomepageSorting, - RoutingType -} from "./enums"; +import { InstancePrivacyType, InstanceTermsType, RoutingType } from "./enums"; import type { IProvider } from "./resource"; export interface IOAuthProvider { @@ -84,7 +79,6 @@ export interface IConfig { provider: string; autocomplete: boolean; }; - instanceHomepageSorting: InstanceHomepageSorting; terms: { bodyHtml: string; type: InstanceTermsType; diff --git a/js/src/types/enums.ts b/js/src/types/enums.ts index 2d6f76781..1061d196b 100644 --- a/js/src/types/enums.ts +++ b/js/src/types/enums.ts @@ -1,9 +1,4 @@ /* eslint-disable no-unused-vars */ -export enum InstanceHomepageSorting { - DEFAULT = "DEFAULT", - UPCOMING = "UPCOMING", -} - export enum InstanceTermsType { DEFAULT = "DEFAULT", URL = "URL", diff --git a/js/src/views/Admin/Settings.vue b/js/src/views/Admin/Settings.vue index d938c89db..137e7907a 100644 --- a/js/src/views/Admin/Settings.vue +++ b/js/src/views/Admin/Settings.vue @@ -64,24 +64,6 @@

{{ $t("Registration is closed.") }}

- - - {{ $t("Recently Created") }} - - - {{ $t("Upcoming") }} - -