Showing 150 of 428 total issues
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");
Function PresentationScriptDocumentation
has 74 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 74 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 VariablesDocumentation
has 73 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 AsyncFormSelect
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function AsyncFormSelect(props: IProps) {
const {
input,
url,
referenceUrl,
File RenderNavigation.tsx
has 279 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import styled, { css } from "styled-components";
import Link from "next/link";
import {
HeaderMenuItemType,
INavigationMenuItem,
Function EntityPresentationScriptSettings
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function EntityPresentationScriptSettings() {
const entity = useEntitySlug();
const entityPresentationScript = useEntityConfiguration(
"entity_presentation_script",
entity
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 ThemeSettings
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function ThemeSettings() {
const themeColor = useAppConfiguration("theme_color");
const domainMessages = useAppConfigurationDomainMessages("theme_color");
const userPreference = useUserPreference("theme");
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 CRUDDocumentation
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function CRUDDocumentation() {
return (
<DocumentationRoot>
<p>
This setting generally allows you to disable CRUD functionalities and
Function MenuSettings
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function MenuSettings() {
const domainMessages = useAppConfigurationDomainMessages(
"disabled_menu_entities"
);
Function UsersLinkToDatabaseDocumentation
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function UsersLinkToDatabaseDocumentation() {
return (
<DocumentationRoot>
<p>
Linking your DashPress users to your database allows you to write
Function EntityRelationTable
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function EntityRelationTable() {
const parentEntity = useEntitySlug();
const entityId = useEntityId();
const { _ } = useLingui();
const childEntity = useRouteParam("childEntity");
Function ConfirmAlert
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function ConfirmAlert() {
const rootRef = useRef<HTMLDivElement>(null);
const { _ } = useLingui();
const [title, action, onClose] = useConfirmAlertStore((store) => [
Function ViewsDocumentation
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function ViewsDocumentation() {
return (
<DocumentationRoot>
<p>
Views enable you to implement query tabs. Say you have an{" "}
Function useEntityFieldValidations
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function useEntityFieldValidations(entity: string) {
const entityValidationsMap = useEntityConfiguration(
"entity_validations",
entity
);
File Form.tsx
has 259 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { QueryFilterSchema } from "shared/types/data";
import { Form, Field, useField } from "react-final-form";
import arrayMutators from "final-form-arrays";
import { FieldArray } from "react-final-form-arrays";
import { ACTIONS_ACCESSOR } from "frontend/views/data/Table/useTableColumns";