Showing 165 of 459 total issues
Function useEntityFormView
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function useEntityFormView(entity: string): Record<
string,
{
label: MessageDescriptor;
Cmp: ReactElement;
Function ListRoles
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function ListRoles() {
const domainMessages = useDomainMessages(LANG_DOMAINS.ACCOUNT.ROLES);
useSetPageDetails({
pageTitle: domainMessages.TEXT_LANG.TITLE,
viewKey: `list-roles`,
File NotFound.tsx
has 299 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import type { CustomNextPage } from "@/frontend/_layouts/types";
import { BaseErrorCmp } from "./_Base";
// eslint-disable-next-line react/function-component-definition
Function UsersLinkToDatabase
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function UsersLinkToDatabase() {
const domainMessages = useDomainMessages({
plural: msg`Users Link To Database`,
singular: msg`Users Link To Database`,
});
Function RolesDocumentation
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function RolesDocumentation() {
return (
<DocumentationRoot>
<p>
DashPress has two default roles which are not editable or deletable and
Function requestHandler
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async (req: NextApiRequest, res: NextApiResponse) => {
const before = μs.now();
return await requestHook(req, async () => {
const validationsToRun = (validations || []).filter((validation) => {
Function EntityDictionSettings
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function EntityDictionSettings() {
const entity = useEntitySlug();
const domainMessages = useAppConfigurationDomainMessages("entity_diction");
const entityDiction = useEntityDiction(entity);
const upsertConfigurationMutation = useUpsertConfigurationMutation(
Function SiteSettings
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function SiteSettings() {
const siteSettings = useAppConfiguration("site_settings");
const domainMessages = useAppConfigurationDomainMessages("site_settings");
File UnAuthorized.tsx
has 287 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import type { CustomNextPage } from "@/frontend/_layouts/types";
import { BaseErrorCmp } from "./_Base";
// eslint-disable-next-line react/function-component-definition
Function VariablesDocumentation
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function VariablesDocumentation() {
return (
<DocumentationRoot>
<p>
Variables are what you use to store values for later use. We have two
Function PresentationScriptDocumentation
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function PresentationScriptDocumentation() {
return (
<DocumentationRoot>
<p>
For a quick showoff, copy and paste the script below, save the form, and
Function StorageCredentialsSettings
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function StorageCredentialsSettings() {
const storageList = useStorageIntegrationsList();
const activeStorageIntegration = useActiveStorageIntegration();
const fileStorageDomainMessages = useDomainMessages(
LANG_DOMAINS.INTEGRATIONS.FILE_STORAGE
Function UserPreferences
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function UserPreferences() {
const { theme, setTheme } = useTheme();
const themes = usePortalThemesSelection();
const domainMessages = useDomainMessages(LANG_DOMAINS.ACCOUNT.PREFERENCES);
Function EntityPresentationScriptSettings
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function EntityPresentationScriptSettings() {
const entity = useEntitySlug();
const entityPresentationScript = useEntityConfiguration(
"entity_presentation_script",
entity
Function AsyncFormSelect
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function AsyncFormSelect(props: IProps) {
const { _ } = useLingui();
const { input, url, referenceUrl } = props;
Function filterOperatorToQuery
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
filterOperatorToQuery(
query: T,
column: string,
{ operator, value, value2 }: IColumnFilterBag<unknown>,
groupOperator: "and" | "or"
Function RelationsSettingsDocumentation
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function RelationsSettingsDocumentation() {
return (
<DocumentationRoot>
<p>
This setting helps you manage how this entity will be presented on other
Function useFEPagination
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function useFEPagination<T>(
endPoint: string,
dataState: IPaginatedDataState<T>
): UseQueryResult<PaginatedData<T>> {
return useQuery<PaginatedData<T>>({
Function GeneralStorageSettings
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function GeneralStorageSettings() {
const fileUploadSettings = useAppConfiguration("file_upload_settings");
const upsertFileUploadSettingsMutation = useUpsertConfigurationMutation(
"file_upload_settings"
Function MenuSettings
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function MenuSettings() {
const domainMessages = useAppConfigurationDomainMessages(
"disabled_menu_entities"
);