Showing 158 of 429 total issues
File defaultStyle.ts
has 792 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { css } from "styled-components";
export const dateLibraryStyle = css`
.react-datepicker__year-read-view--down-arrow,
.react-datepicker__month-read-view--down-arrow,
Function DemoForm
has 339 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function DemoForm() {
return (
<Form
onSubmit={(values: unknown) => action(values as string)}
render={({ handleSubmit }) => (
Function FormScriptDocumentation
has 197 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function FormScriptDocumentation() {
return (
<DocumentationRoot>
<p>
Forms scripts enable you to implement the complex form logic your
Function EntityRelationsSettings
has 155 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function EntityRelationsSettings() {
const entity = useEntitySlug();
const tabFromUrl = useRouteParam("tab");
const changeTabParam = useChangeRouterParam("tab");
const entityFields = useEntityFields(entity);
Function WidgetScriptDocumentation
has 141 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function WidgetScriptDocumentation() {
return (
<DocumentationRoot>
<p>
The widget script is the script that allows you to provide the data that
Function EntityFieldsSettings
has 136 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function EntityFieldsSettings() {
const tabFromUrl = useRouteParam("tab");
const changeTabParam = useChangeRouterParam("tab");
const domainMessages = useAppConfigurationDomainMessages(
"entity_columns_labels"
File Stories.tsx
has 377 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable react/function-component-definition */
import { Story } from "@storybook/react";
import { Field, Form } from "react-final-form";
import { action } from "@storybook/addon-actions";
File data.service.ts
has 374 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { NotFoundError, progammingError } from "backend/lib/errors";
import {
DataEventActions,
FilterOperators,
PaginatedData,
Function useEntityCrudView
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function useEntityCrudView(entity: string) {
const entityCrudSettings = useEntityCrudSettings(entity);
const entityFields = useEntityFields(entity);
const upsertCrudSettingsMutation = useUpsertConfigurationMutation(
Function useTableColumns
has 111 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useTableColumns = (
entity: string
): Partial<DataStateKeys<ITableColumn[]>> => {
const portalTableColumns = usePortalTableColumns(entity);
const getEntityFieldLabels = useEntityFieldLabels(entity);
Function FormIntegrationsDocumentation
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function FormIntegrationsDocumentation() {
const { _ } = useLingui();
const domainMessages = useDomainMessages(
LANG_DOMAINS.INTEGRATIONS.FORM_ACTIONS
);
Function EntityRelationDetails
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function EntityRelationDetails() {
const childEntity = useRouteParam("childEntity");
const childEntityCrudConfig = useEntityCrudConfig(childEntity);
const entityId = useEntityId();
const parentEntity = useEntitySlug();
Function ListUsers
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function ListUsers() {
const domainMessages = useDomainMessages(LANG_DOMAINS.ACCOUNT.USERS);
useSetPageDetails({
pageTitle: domainMessages.TEXT_LANG.TITLE,
File Form.tsx
has 327 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { useEntityConfiguration } from "frontend/hooks/configuration/configuration.store";
import { Field, Form } from "react-final-form";
import { ISummaryWidgetConfig, IWidgetConfig } from "shared/types/dashboard";
import { ROYGBIV, ROYGBIV_CONFIG } from "shared/constants/colors";
import { IconInputField } from "frontend/components/IconInputField";
Function RenderFormInput
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function RenderFormInput(props: IRenderFormInputProps) {
const {
formProps: formProps$1,
label,
type,
Function generateMenuItems
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async generateMenuItems(): Promise<INavigationMenuItem[]> {
let navItems: INavigationMenuItem[] = [];
navItems = navItems.concat([
{
Function FieldsSettingsDocumentation
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function FieldsSettingsDocumentation() {
return (
<DocumentationRoot>
<p>
You will be able to make field-level customizations on the tables,
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 RolesDocumentation
has 80 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 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`,
});