Skip to content

Commit

Permalink
Merge pull request #501 from VitNode/delete/download_language_and_fil…
Browse files Browse the repository at this point in the history
…es_status_plugin

perf: Delete download language option from AdminCP & Files status form plugin dev view in AdminCP
  • Loading branch information
aXenDeveloper authored Sep 9, 2024
2 parents fceda91 + dd17d9f commit 0a12058
Show file tree
Hide file tree
Showing 26 changed files with 20 additions and 736 deletions.
11 changes: 0 additions & 11 deletions apps/backend/schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,6 @@ enum EmailProvider {
smtp
}

type FilesAdminPluginsObj {
admin_pages: Int!
admin_templates: Int!
databases: Int!
default_page: Boolean!
pages: Int!
templates: Int!
}

type FilesAuthorizationCoreSessions {
allow_upload: Boolean!
max_storage_for_submit: Int!
Expand Down Expand Up @@ -226,7 +217,6 @@ type Mutation {
admin__core_groups__edit(color: String, content: ContentCreateAdminGroups!, id: Int!, name: [StringLanguageInput!]!): ShowAdminGroups!
admin__core_languages__create(allow_in_input: Boolean!, code: String!, locale: String!, name: String!, time_24: Boolean!, timezone: String!): ShowCoreLanguages!
admin__core_languages__delete(code: String!): String!
admin__core_languages__download(code: String!, plugins: [String!]!): String!
admin__core_languages__edit(allow_in_input: Boolean!, default: Boolean!, enabled: Boolean!, id: Int!, locale: String!, name: String!, time_24: Boolean!, timezone: String!): ShowCoreLanguages!
admin__core_main_settings__edit(site_copyright: [StringLanguageInput!]!, site_description: [StringLanguageInput!]!, site_name: String!, site_short_name: String!): EditAdminSettingsObj!
admin__core_manifest_metadata__edit(background_color: String!, display: String!, start_url: String!, theme_color: String!): ShowAdminManifestMetadataObj!
Expand Down Expand Up @@ -295,7 +285,6 @@ type Query {
admin__core_manifest_metadata__show: ShowAdminManifestMetadataObj!
admin__core_members__show(cursor: Int, first: Int, groups: [Int!], id: Float, last: Int, search: String, sortBy: ShowAdminMembersSortByArgs): ShowAdminMembersObj!
admin__core_members__stats_sign_up: [SignUpStatsAdminMembers!]!
admin__core_plugins__files(code: String!): FilesAdminPluginsObj!
admin__core_plugins__nav__show(plugin_code: String!): [ShowAdminNavPluginsObj!]!
admin__core_plugins__show(code: String, cursor: Int, first: Int, last: Int, search: String, sortBy: ShowAdminPluginsSortByArgs): ShowAdminPluginsObj!
admin__core_security__captcha__show: ShowAdminCaptchaSecurityObj!
Expand Down
23 changes: 0 additions & 23 deletions apps/frontend/src/graphql/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,6 @@ export const EmailProvider = {
} as const;

export type EmailProvider = typeof EmailProvider[keyof typeof EmailProvider];
export type FilesAdminPluginsObj = {
__typename?: 'FilesAdminPluginsObj';
admin_pages: Scalars['Int']['output'];
admin_templates: Scalars['Int']['output'];
databases: Scalars['Int']['output'];
default_page: Scalars['Boolean']['output'];
pages: Scalars['Int']['output'];
templates: Scalars['Int']['output'];
};

export type FilesAuthorizationCoreSessions = {
__typename?: 'FilesAuthorizationCoreSessions';
allow_upload: Scalars['Boolean']['output'];
Expand Down Expand Up @@ -259,7 +249,6 @@ export type Mutation = {
admin__core_groups__edit: ShowAdminGroups;
admin__core_languages__create: ShowCoreLanguages;
admin__core_languages__delete: Scalars['String']['output'];
admin__core_languages__download: Scalars['String']['output'];
admin__core_languages__edit: ShowCoreLanguages;
admin__core_main_settings__edit: EditAdminSettingsObj;
admin__core_manifest_metadata__edit: ShowAdminManifestMetadataObj;
Expand Down Expand Up @@ -368,12 +357,6 @@ export type MutationAdmin__Core_Languages__DeleteArgs = {
};


export type MutationAdmin__Core_Languages__DownloadArgs = {
code: Scalars['String']['input'];
plugins: Array<Scalars['String']['input']>;
};


export type MutationAdmin__Core_Languages__EditArgs = {
allow_in_input: Scalars['Boolean']['input'];
default: Scalars['Boolean']['input'];
Expand Down Expand Up @@ -667,7 +650,6 @@ export type Query = {
admin__core_manifest_metadata__show: ShowAdminManifestMetadataObj;
admin__core_members__show: ShowAdminMembersObj;
admin__core_members__stats_sign_up: Array<SignUpStatsAdminMembers>;
admin__core_plugins__files: FilesAdminPluginsObj;
admin__core_plugins__nav__show: Array<ShowAdminNavPluginsObj>;
admin__core_plugins__show: ShowAdminPluginsObj;
admin__core_security__captcha__show: ShowAdminCaptchaSecurityObj;
Expand Down Expand Up @@ -720,11 +702,6 @@ export type QueryAdmin__Core_Members__ShowArgs = {
};


export type QueryAdmin__Core_Plugins__FilesArgs = {
code: Scalars['String']['input'];
};


export type QueryAdmin__Core_Plugins__Nav__ShowArgs = {
plugin_code: Scalars['String']['input'];
};
Expand Down
28 changes: 0 additions & 28 deletions apps/frontend/src/plugins/admin/langs/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,16 +222,6 @@
"overview": {
"title": "Overview"
},
"files": {
"title": "Files",
"databases": "Databases",
"admin_pages": "Admin Pages",
"admin_templates": "Admin Templates",
"pages": "Pages",
"templates": "Templates",
"default_page": "Default Page",
"file_detected": "{count, plural, =0 {No files} =1 {1 file} other {# files}} detected"
},
"nav": {
"title": "Navigation in AdminCP",
"lang_key": "Lang Key: <key></key>",
Expand Down Expand Up @@ -446,24 +436,6 @@
"form_confirm_text": "Type the name of the language <text></text> to confirm.",
"success": "Language has been deleted.",
"submit": "Yes, delete language"
},
"download": {
"title": "Download Language - {code}",
"desc": "Choose which plugins language you want to download.",
"all": {
"label": "All",
"desc": "Download language for all plugins."
},
"plugins": "Plugins",
"search": "Search by name...",
"empty": "No plugins found.",
"selected": "{count, plural, =0 {No plugins} =1 {1 plugin} other {# plugins}} selected",
"submit": "Download"
},
"update": {
"title": "Update Language - {code}",
"submit": "Update Language",
"success": "Language has been updated."
}
}
},
Expand Down
10 changes: 0 additions & 10 deletions packages/backend/src/core/admin/languages/download/download.dto.ts

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions packages/backend/src/core/admin/languages/languages.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { CreateAdminCoreLanguagesResolver } from './create/create.resolver';
import { CreateAdminCoreLanguageService } from './create/create.service';
import { DeleteAdminCoreLanguagesResolver } from './delete/delete.resolver';
import { DeleteAdminCoreLanguageService } from './delete/delete.service';
import { DownloadAdminCoreLanguagesResolver } from './download/download.resolver';
import { DownloadAdminCoreLanguageService } from './download/download.service';
import { EditAdminCoreLanguagesResolver } from './edit/edit.resolver';
import { EditAdminCoreLanguagesService } from './edit/edit.service';

Expand All @@ -17,8 +15,6 @@ import { EditAdminCoreLanguagesService } from './edit/edit.service';
EditAdminCoreLanguagesService,
DeleteAdminCoreLanguagesResolver,
DeleteAdminCoreLanguageService,
DownloadAdminCoreLanguageService,
DownloadAdminCoreLanguagesResolver,
],
})
export class AdminLanguagesModule {}
28 changes: 0 additions & 28 deletions packages/backend/src/core/admin/plugins/files/files.dto.ts

This file was deleted.

20 changes: 0 additions & 20 deletions packages/backend/src/core/admin/plugins/files/files.resolver.ts

This file was deleted.

55 changes: 0 additions & 55 deletions packages/backend/src/core/admin/plugins/files/files.service.ts

This file was deleted.

Loading

0 comments on commit 0a12058

Please sign in to comment.