From 8bcd3f5c0634173a3da1032cb57c81f0445a8264 Mon Sep 17 00:00:00 2001 From: aXenDeveloper Date: Fri, 23 Feb 2024 16:53:00 +0100 Subject: [PATCH] perf(frontend): Add missing forwardRef and write some docs for components --- docs/pages/frontend/components/_meta.json | 6 +- docs/pages/frontend/components/colors.mdx | 8 +- docs/pages/frontend/components/date.mdx | 8 +- .../frontend/components/group/_meta.json | 3 + .../frontend/components/group/format.mdx | 19 +++++ docs/pages/frontend/components/loaders.mdx | 18 +++-- docs/pages/frontend/components/shadcn.mdx | 2 +- docs/pages/frontend/components/user-group.mdx | 7 -- docs/pages/frontend/components/user-input.mdx | 7 -- docs/pages/frontend/components/user-link.mdx | 11 --- .../pages/frontend/components/user/_meta.json | 5 ++ .../frontend/components/{ => user}/avatar.mdx | 24 +++--- docs/pages/frontend/components/user/input.mdx | 32 ++++++++ docs/pages/frontend/components/user/link.mdx | 17 ++++ .../core/views/core/langs/actions/create.tsx | 2 +- .../langs/table/actions/delete/delete.tsx | 2 +- .../langs/table/actions/download/content.tsx | 2 +- .../langs/table/actions/download/download.tsx | 2 +- .../views/core/langs/table/actions/edit.tsx | 2 +- .../langs/table/actions/update/update.tsx | 2 +- .../core/views/core/langs/table/table.tsx | 2 +- .../core/plugins/actions/create/create.tsx | 2 +- .../core/plugins/actions/upload/upload.tsx | 2 +- .../plugins/table/actions/delete/delete.tsx | 2 +- .../core/views/core/plugins/table/content.tsx | 2 +- .../core/views/core/plugins/table/table.tsx | 2 +- .../views/core/styles/nav/actions/create.tsx | 2 +- .../nav/table/actions/delete/delete.tsx | 2 +- .../core/styles/nav/table/actions/edit.tsx | 2 +- .../views/core/styles/nav/table/table.tsx | 2 +- .../styles/themes/actions/create/create.tsx | 2 +- .../styles/themes/actions/upload/upload.tsx | 2 +- .../themes/table/actions/delete/delete.tsx | 2 +- .../table/actions/download/download.tsx | 2 +- .../styles/themes/table/actions/edit/edit.tsx | 2 +- .../core/styles/themes/table/content.tsx | 2 +- .../views/core/styles/themes/table/table.tsx | 2 +- .../actions/actions-groups-members-admin.tsx | 2 +- .../create-edit-form-groups-members-admin.tsx | 2 +- .../groups/table/actions/delete/delete.tsx | 2 +- .../members/groups/table/actions/edit.tsx | 2 +- .../views/members/groups/table/content.tsx | 2 +- .../core/views/members/groups/table/table.tsx | 2 +- .../views/administrators/actions/create.tsx | 2 +- .../table/actions/delete/delete.tsx | 2 +- .../views/administrators/table/content.tsx | 2 +- .../views/administrators/table/table.tsx | 2 +- .../staff/views/moderators/actions/create.tsx | 2 +- .../table/actions/delete/delete.tsx | 2 +- .../staff/views/moderators/table/content.tsx | 2 +- .../staff/views/moderators/table/table.tsx | 2 +- .../views/members/users/table/content.tsx | 2 +- .../core/views/members/users/table/table.tsx | 2 +- .../forum/views/forums/actions/actions.tsx | 2 +- .../content/permissions/content.tsx | 2 +- .../create-edit-form-forum-admin.tsx | 2 +- .../views/forums/table/content-table.tsx | 2 +- .../admin/forum/views/forums/table/table.tsx | 2 +- .../(admin)/admin/(auth)/core/loading.tsx | 2 +- .../admin/(auth)/members/groups/loading.tsx | 2 +- .../(admin)/admin/(auth)/members/loading.tsx | 2 +- .../admin/(auth)/members/staff/loading.tsx | 2 +- .../admin/(configs)/install/loading.tsx | 2 +- .../(admin)/admin/(configs)/loading.tsx | 2 +- .../(main)/(container)/forum/loading.tsx | 2 +- .../(main)/(container)/topic/loading.tsx | 2 +- .../app/[locale]/(apps)/(main)/loading.tsx | 2 +- .../advanced-filter-toolbar-data-table.tsx | 2 +- .../toolbar/filter/content/list.tsx | 2 +- .../data-table/toolbar/filter/filter.tsx | 2 +- frontend/components/date-format.tsx | 79 +++++++++++++++++++ .../components/date-format/date-format.tsx | 68 ---------------- .../code/container-code-action-menu.tsx | 2 +- .../toolbar/buttons/emoji/emoji-button.tsx | 2 +- .../groups/input/content/content.tsx | 2 +- .../components/groups/input/group-input.tsx | 2 +- .../header-content/header-content.tsx | 17 ++-- frontend/components/icon/icon.tsx | 9 --- .../components/icon/input/content/content.tsx | 2 +- frontend/components/icon/input/icon-input.tsx | 2 +- frontend/components/{loader => }/loader.tsx | 0 frontend/components/ui/button.tsx | 2 +- frontend/components/ui/dropdown-menu.tsx | 2 +- .../user/inputs/content/content.tsx | 2 +- .../components/user/inputs/user-input.tsx | 2 +- .../views/global/loading/loading-view.tsx | 2 +- .../header/change-avatar/change-avatar.tsx | 2 +- .../modal/modal-change-avatar.tsx | 2 +- .../forums/views/[id]/actions/actions.tsx | 2 +- .../forums/views/[id]/topics-list/item.tsx | 2 +- .../views/[id]/topics-list/topics-list.tsx | 2 +- .../forum/topic/posts/meta-tags/meta-tag.tsx | 2 +- .../views/forum/topic/posts/post/post.tsx | 2 +- 93 files changed, 276 insertions(+), 212 deletions(-) create mode 100644 docs/pages/frontend/components/group/_meta.json create mode 100644 docs/pages/frontend/components/group/format.mdx delete mode 100644 docs/pages/frontend/components/user-group.mdx delete mode 100644 docs/pages/frontend/components/user-input.mdx delete mode 100644 docs/pages/frontend/components/user-link.mdx create mode 100644 docs/pages/frontend/components/user/_meta.json rename docs/pages/frontend/components/{ => user}/avatar.mdx (51%) create mode 100644 docs/pages/frontend/components/user/input.mdx create mode 100644 docs/pages/frontend/components/user/link.mdx create mode 100644 frontend/components/date-format.tsx delete mode 100644 frontend/components/date-format/date-format.tsx rename frontend/components/{loader => }/loader.tsx (100%) diff --git a/docs/pages/frontend/components/_meta.json b/docs/pages/frontend/components/_meta.json index 120e9412c..16810cc31 100644 --- a/docs/pages/frontend/components/_meta.json +++ b/docs/pages/frontend/components/_meta.json @@ -1,15 +1,13 @@ { "shadcn": "Shadcn UI", - "avatar": "Avatar", + "user": "User", + "group": "Group", "data-table": "Data Table", "dialog": "Dialog", "tabs": "Tabs", "loaders": "Loaders", "date": "Date Format", "editor": "Editor", - "user-link": "User Link", - "user-input": "User Input", - "user-group": "User Group", "icons": "Icons", "colors": "Colors" } diff --git a/docs/pages/frontend/components/colors.mdx b/docs/pages/frontend/components/colors.mdx index 4c3f45cc8..d12c39418 100644 --- a/docs/pages/frontend/components/colors.mdx +++ b/docs/pages/frontend/components/colors.mdx @@ -31,7 +31,9 @@ return ( ); ``` -### Props +## Props -- `disabled` - _(Boolen)_ - If `true`, the input will be disabled, -- `disableRemoveColor` - _(Boolen)_ - If `true`, the remove color button will be disabled +| Name | Type | Default | Description | +| -------------------- | ------ | ------- | --------------------------------------------------- | +| `disabled` | `bool` | `false` | If `true`, the input will be disabled | +| `disableRemoveColor` | `bool` | `false` | If `true`, the remove color button will be disabled | diff --git a/docs/pages/frontend/components/date.mdx b/docs/pages/frontend/components/date.mdx index c0ecc3c40..60a31de4f 100644 --- a/docs/pages/frontend/components/date.mdx +++ b/docs/pages/frontend/components/date.mdx @@ -5,7 +5,13 @@ We're creating `DateFormat` component to help you formating date using [date-fns ## Usage ```tsx -import { DateFormat } from '@/components/date-format/date-format'; +import { DateFormat } from "@/components/date-format"; ; ``` + +## Props + +| Name | Type | Default | Description | +| ----------------- | ---- | ------- | -------------- | +| date _(Required)_ | Date | - | Date to format | diff --git a/docs/pages/frontend/components/group/_meta.json b/docs/pages/frontend/components/group/_meta.json new file mode 100644 index 000000000..e59d3fe50 --- /dev/null +++ b/docs/pages/frontend/components/group/_meta.json @@ -0,0 +1,3 @@ +{ + "format": "Format Name" +} diff --git a/docs/pages/frontend/components/group/format.mdx b/docs/pages/frontend/components/group/format.mdx new file mode 100644 index 000000000..d293cfadc --- /dev/null +++ b/docs/pages/frontend/components/group/format.mdx @@ -0,0 +1,19 @@ +import { Callout } from "nextra/components"; + +# Group Format + +Allows you to display single name group with formatted text. + +## Example + +```tsx +import { GroupFormat } from "@/components/groups/group-format"; + +return ; +``` + +## Props + +| Name | Type | Default | Description | +| -------------------- | ------------------------- | ------- | ---------------------------- | +| `group` _(Required)_ | `{name: TextLanguage[];}` | | The group object to display. | diff --git a/docs/pages/frontend/components/loaders.mdx b/docs/pages/frontend/components/loaders.mdx index 97496d100..78d1290ec 100644 --- a/docs/pages/frontend/components/loaders.mdx +++ b/docs/pages/frontend/components/loaders.mdx @@ -1,4 +1,4 @@ -import { Callout } from 'nextra/components'; +import { Callout } from "nextra/components"; # Loaders @@ -9,7 +9,7 @@ VitNode provides a few loaders to help you load any data to the frontend. This loader looks like a spinner and it's used to show that something is loading. ```tsx -import { Loader } from '@/components/loader/loader'; +import { Loader } from "@/components/loader"; export const TestComponent = () => { if (isLoading) return ; @@ -21,8 +21,8 @@ export const TestComponent = () => { This component accepts also a smaller version by passing the `small` prop. - You can use `` component to show a loader in the middle of the page when you're loading - data. + You can use `` component to show a loader in the middle of the page + when you're loading data. ## Build-in Loaders @@ -32,12 +32,12 @@ We're modifying few components to help you load data to the frontend. You can us ### Button ```tsx -import { Button } from '@/components/ui/button'; +import { Button } from "@/components/ui/button"; export const TestComponent = () => { return ( ); }; @@ -46,9 +46,11 @@ export const TestComponent = () => { ### DropdownMenuItem ```tsx -import { DropdownMenuItem } from '@/components/ui/dropdown-menu'; +import { DropdownMenuItem } from "@/components/ui/dropdown-menu"; export const TestComponent = () => { - return {t('testing')}; + return ( + {t("testing")} + ); }; ``` diff --git a/docs/pages/frontend/components/shadcn.mdx b/docs/pages/frontend/components/shadcn.mdx index fc7758730..22e0e8f70 100644 --- a/docs/pages/frontend/components/shadcn.mdx +++ b/docs/pages/frontend/components/shadcn.mdx @@ -40,6 +40,7 @@ VitNode uses [Shadcn UI](https://ui.shadcn.com/) as the default UI framework. - [Data Table](/frontend/components/data-table) - [Dialog](/frontend/components/dialog) - [Tabs](/frontend/components/tabs) +- [Collapse](https://ui.shadcn.com/docs/components/collapse) ## Not Supported Components @@ -47,7 +48,6 @@ List of components that are not supported _(yet)_ by VitNode: - [Calendar](https://ui.shadcn.com/docs/components/calendar) - [Carousel](https://ui.shadcn.com/docs/components/carousel) -- [Collapse](https://ui.shadcn.com/docs/components/collapse) - [Context Menu](https://ui.shadcn.com/docs/components/context-menu) - [Date Picker](https://ui.shadcn.com/docs/components/date-picker) - [Menubar](https://ui.shadcn.com/docs/components/menubar) diff --git a/docs/pages/frontend/components/user-group.mdx b/docs/pages/frontend/components/user-group.mdx deleted file mode 100644 index 805c51dda..000000000 --- a/docs/pages/frontend/components/user-group.mdx +++ /dev/null @@ -1,7 +0,0 @@ -import { Callout } from 'nextra/components'; - -# User Group - - - This feature is currently planned but not yet implemented. - diff --git a/docs/pages/frontend/components/user-input.mdx b/docs/pages/frontend/components/user-input.mdx deleted file mode 100644 index 4af67171e..000000000 --- a/docs/pages/frontend/components/user-input.mdx +++ /dev/null @@ -1,7 +0,0 @@ -import { Callout } from 'nextra/components'; - -# User Input - - - This feature is currently planned but not yet implemented. - diff --git a/docs/pages/frontend/components/user-link.mdx b/docs/pages/frontend/components/user-link.mdx deleted file mode 100644 index 5262eda0d..000000000 --- a/docs/pages/frontend/components/user-link.mdx +++ /dev/null @@ -1,11 +0,0 @@ -# User Link - -Allows to link to a user profile with formatting based on the user's group. - -## Example - -```tsx -import { UserLink } from '@/components/user/link/user-link'; - -return ; -``` diff --git a/docs/pages/frontend/components/user/_meta.json b/docs/pages/frontend/components/user/_meta.json new file mode 100644 index 000000000..3afdb0e5e --- /dev/null +++ b/docs/pages/frontend/components/user/_meta.json @@ -0,0 +1,5 @@ +{ + "avatar": "Avatar", + "link": "Link", + "input": "Input" +} diff --git a/docs/pages/frontend/components/avatar.mdx b/docs/pages/frontend/components/user/avatar.mdx similarity index 51% rename from docs/pages/frontend/components/avatar.mdx rename to docs/pages/frontend/components/user/avatar.mdx index 43ab17d78..d80370150 100644 --- a/docs/pages/frontend/components/avatar.mdx +++ b/docs/pages/frontend/components/user/avatar.mdx @@ -1,6 +1,6 @@ -import { Callout } from 'nextra/components'; +import { Callout } from "nextra/components"; -# Avatar User +# Avatar To use the Avatar component you have to import from `@/components/user/avatar/avatar-user`. Component requires `sizeInRem` prop to be passed. @@ -11,15 +11,10 @@ Component requires `sizeInRem` prop to be passed. ## Current User -If you want to display the user avatar, you need to pass a user object with: - -- `id` - user's id -- `name` - user's name -- `avatar` - user's `UploadCoreAttachmentsObj` interface, -- `avatar_color` - user's avatar color +If you want to display the user avatar, you need to pass `User` object. ```tsx -import { AvatarUser } from '@/components/user/avatar/avatar-user'; +import { AvatarUser } from "@/components/user/avatar/avatar-user"; ; ``` + +## Props + +| Name | Type | Default | Description | +| ------------------------ | -------- | ------- | ------------------ | +| `user` _(Required)_ | `User` | | User object | +| `sizeInRem` _(Required)_ | `number` | `1.75` | Size of the avatar | diff --git a/docs/pages/frontend/components/user/input.mdx b/docs/pages/frontend/components/user/input.mdx new file mode 100644 index 000000000..744c4a862 --- /dev/null +++ b/docs/pages/frontend/components/user/input.mdx @@ -0,0 +1,32 @@ +import { Callout } from "nextra/components"; + +# User Input + +Allows you to select a user (or users) from a list of users in the system. + +## Example + +```tsx {1, 10} +import { UserInput } from "@/components/user/inputs/user-input"; + +return ( + ( + + {t("create_edit.type.user")} + + + + )} + /> +); +``` + +## Props + +| Name | Type | Default | Description | +| -------------------- | ----------------------------- | ------- | ------------------------------------ | +| `value` _(Required)_ | `{id: number; name: string;}` | | The value of the user input. | +| `multiple` | `boolean` | `false` | Allow multiple users to be selected. | diff --git a/docs/pages/frontend/components/user/link.mdx b/docs/pages/frontend/components/user/link.mdx new file mode 100644 index 000000000..e47cd1d29 --- /dev/null +++ b/docs/pages/frontend/components/user/link.mdx @@ -0,0 +1,17 @@ +# User Link + +Allows to link to a user profile with formatting based on the user's group. + +## Example + +```tsx +import { UserLink } from "@/components/user/link/user-link"; + +return ; +``` + +## Props + +| Name | Type | Default | Description | +| ------------------- | ------ | ------- | ----------- | +| `user` _(Required)_ | `User` | - | User object | diff --git a/frontend/admin/core/views/core/langs/actions/create.tsx b/frontend/admin/core/views/core/langs/actions/create.tsx index 75231ffc8..4aadf153b 100644 --- a/frontend/admin/core/views/core/langs/actions/create.tsx +++ b/frontend/admin/core/views/core/langs/actions/create.tsx @@ -4,7 +4,7 @@ import { Plus } from "lucide-react"; import { useTranslations } from "next-intl"; import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; diff --git a/frontend/admin/core/views/core/langs/table/actions/delete/delete.tsx b/frontend/admin/core/views/core/langs/table/actions/delete/delete.tsx index e848dca12..7484a4be2 100644 --- a/frontend/admin/core/views/core/langs/table/actions/delete/delete.tsx +++ b/frontend/admin/core/views/core/langs/table/actions/delete/delete.tsx @@ -1,6 +1,6 @@ import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { AlertDialog, AlertDialogContent } from "@/components/ui/alert-dialog"; import type { ShowCoreLanguages } from "@/graphql/hooks"; diff --git a/frontend/admin/core/views/core/langs/table/actions/download/content.tsx b/frontend/admin/core/views/core/langs/table/actions/download/content.tsx index b746c3413..dc873b4dc 100644 --- a/frontend/admin/core/views/core/langs/table/actions/download/content.tsx +++ b/frontend/admin/core/views/core/langs/table/actions/download/content.tsx @@ -32,7 +32,7 @@ import { CommandInput, CommandItem } from "@/components/ui/command"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import corePackages from "@/package.json"; import type { ShowCoreLanguages } from "@/graphql/hooks"; diff --git a/frontend/admin/core/views/core/langs/table/actions/download/download.tsx b/frontend/admin/core/views/core/langs/table/actions/download/download.tsx index 9b9504ff9..657af5040 100644 --- a/frontend/admin/core/views/core/langs/table/actions/download/download.tsx +++ b/frontend/admin/core/views/core/langs/table/actions/download/download.tsx @@ -2,7 +2,7 @@ import { Download } from "lucide-react"; import { useTranslations } from "next-intl"; import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; import type { ShowCoreLanguages } from "@/graphql/hooks"; diff --git a/frontend/admin/core/views/core/langs/table/actions/edit.tsx b/frontend/admin/core/views/core/langs/table/actions/edit.tsx index 5fe83cc31..c952d979a 100644 --- a/frontend/admin/core/views/core/langs/table/actions/edit.tsx +++ b/frontend/admin/core/views/core/langs/table/actions/edit.tsx @@ -4,7 +4,7 @@ import { useTranslations } from "next-intl"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import type { ShowCoreLanguages } from "@/graphql/hooks"; const Content = lazy(() => diff --git a/frontend/admin/core/views/core/langs/table/actions/update/update.tsx b/frontend/admin/core/views/core/langs/table/actions/update/update.tsx index fbbc06083..d478161b7 100644 --- a/frontend/admin/core/views/core/langs/table/actions/update/update.tsx +++ b/frontend/admin/core/views/core/langs/table/actions/update/update.tsx @@ -1,6 +1,6 @@ import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { Dialog, DialogContent } from "@/components/ui/dialog"; import type { ShowCoreLanguages } from "@/graphql/hooks"; diff --git a/frontend/admin/core/views/core/langs/table/table.tsx b/frontend/admin/core/views/core/langs/table/table.tsx index 8f917fa42..13c780f68 100644 --- a/frontend/admin/core/views/core/langs/table/table.tsx +++ b/frontend/admin/core/views/core/langs/table/table.tsx @@ -2,7 +2,7 @@ import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import type { LangsCoreAdminViewProps } from "../langs-core-admin-view"; const Content = lazy(() => diff --git a/frontend/admin/core/views/core/plugins/actions/create/create.tsx b/frontend/admin/core/views/core/plugins/actions/create/create.tsx index 81746b431..f91d13493 100644 --- a/frontend/admin/core/views/core/plugins/actions/create/create.tsx +++ b/frontend/admin/core/views/core/plugins/actions/create/create.tsx @@ -4,7 +4,7 @@ import { Plus } from "lucide-react"; import { useTranslations } from "next-intl"; import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; diff --git a/frontend/admin/core/views/core/plugins/actions/upload/upload.tsx b/frontend/admin/core/views/core/plugins/actions/upload/upload.tsx index 4b5ab8523..1d4477736 100644 --- a/frontend/admin/core/views/core/plugins/actions/upload/upload.tsx +++ b/frontend/admin/core/views/core/plugins/actions/upload/upload.tsx @@ -4,7 +4,7 @@ import { Upload } from "lucide-react"; import { useTranslations } from "next-intl"; import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; diff --git a/frontend/admin/core/views/core/plugins/table/actions/delete/delete.tsx b/frontend/admin/core/views/core/plugins/table/actions/delete/delete.tsx index 878a59300..86efc3201 100644 --- a/frontend/admin/core/views/core/plugins/table/actions/delete/delete.tsx +++ b/frontend/admin/core/views/core/plugins/table/actions/delete/delete.tsx @@ -2,7 +2,7 @@ import { Trash2 } from "lucide-react"; import { useTranslations } from "next-intl"; import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { AlertDialog, AlertDialogContent, diff --git a/frontend/admin/core/views/core/plugins/table/content.tsx b/frontend/admin/core/views/core/plugins/table/content.tsx index f1ee55156..f3817ae51 100644 --- a/frontend/admin/core/views/core/plugins/table/content.tsx +++ b/frontend/admin/core/views/core/plugins/table/content.tsx @@ -9,7 +9,7 @@ import type { } from "@/graphql/hooks"; import { Badge } from "@/components/ui/badge"; import { HeaderSortingDataTable } from "@/components/data-table/header"; -import { DateFormat } from "@/components/date-format/date-format"; +import { DateFormat } from "@/components/date-format"; import { DataTable } from "@/components/data-table/data-table"; import { Switch } from "@/components/ui/switch"; import { ActionsItemPluginsAdmin } from "./actions/actions"; diff --git a/frontend/admin/core/views/core/plugins/table/table.tsx b/frontend/admin/core/views/core/plugins/table/table.tsx index baf4ff436..22d406bc1 100644 --- a/frontend/admin/core/views/core/plugins/table/table.tsx +++ b/frontend/admin/core/views/core/plugins/table/table.tsx @@ -2,7 +2,7 @@ import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import type { Admin__Core_Plugins__ShowQuery } from "@/graphql/hooks"; const ContentTablePluginsAdmin = lazy(() => diff --git a/frontend/admin/core/views/core/styles/nav/actions/create.tsx b/frontend/admin/core/views/core/styles/nav/actions/create.tsx index 4704c95e2..6fb8e009f 100644 --- a/frontend/admin/core/views/core/styles/nav/actions/create.tsx +++ b/frontend/admin/core/views/core/styles/nav/actions/create.tsx @@ -4,7 +4,7 @@ import { Plus } from "lucide-react"; import { useTranslations } from "next-intl"; import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; diff --git a/frontend/admin/core/views/core/styles/nav/table/actions/delete/delete.tsx b/frontend/admin/core/views/core/styles/nav/table/actions/delete/delete.tsx index a5fcebf4e..29f7e14bb 100644 --- a/frontend/admin/core/views/core/styles/nav/table/actions/delete/delete.tsx +++ b/frontend/admin/core/views/core/styles/nav/table/actions/delete/delete.tsx @@ -2,7 +2,7 @@ import { Trash2 } from "lucide-react"; import { useTranslations } from "next-intl"; import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { AlertDialog, AlertDialogContent, diff --git a/frontend/admin/core/views/core/styles/nav/table/actions/edit.tsx b/frontend/admin/core/views/core/styles/nav/table/actions/edit.tsx index 1dbf8d725..0c6c373bd 100644 --- a/frontend/admin/core/views/core/styles/nav/table/actions/edit.tsx +++ b/frontend/admin/core/views/core/styles/nav/table/actions/edit.tsx @@ -4,7 +4,7 @@ import { Pencil } from "lucide-react"; import { useTranslations } from "next-intl"; import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; import type { ShowCoreNav } from "@/graphql/hooks"; diff --git a/frontend/admin/core/views/core/styles/nav/table/table.tsx b/frontend/admin/core/views/core/styles/nav/table/table.tsx index 784ffeb6a..be271f8e7 100644 --- a/frontend/admin/core/views/core/styles/nav/table/table.tsx +++ b/frontend/admin/core/views/core/styles/nav/table/table.tsx @@ -2,7 +2,7 @@ import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import type { Admin__Core_Nav__ShowQuery } from "@/graphql/hooks"; const Content = lazy(() => diff --git a/frontend/admin/core/views/core/styles/themes/actions/create/create.tsx b/frontend/admin/core/views/core/styles/themes/actions/create/create.tsx index 44043fcde..d6591e80b 100644 --- a/frontend/admin/core/views/core/styles/themes/actions/create/create.tsx +++ b/frontend/admin/core/views/core/styles/themes/actions/create/create.tsx @@ -4,7 +4,7 @@ import { Plus } from "lucide-react"; import { useTranslations } from "next-intl"; import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; diff --git a/frontend/admin/core/views/core/styles/themes/actions/upload/upload.tsx b/frontend/admin/core/views/core/styles/themes/actions/upload/upload.tsx index 65c654b38..3f4a69bba 100644 --- a/frontend/admin/core/views/core/styles/themes/actions/upload/upload.tsx +++ b/frontend/admin/core/views/core/styles/themes/actions/upload/upload.tsx @@ -4,7 +4,7 @@ import { Upload } from "lucide-react"; import { useTranslations } from "next-intl"; import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; diff --git a/frontend/admin/core/views/core/styles/themes/table/actions/delete/delete.tsx b/frontend/admin/core/views/core/styles/themes/table/actions/delete/delete.tsx index dff261033..1794b80a5 100644 --- a/frontend/admin/core/views/core/styles/themes/table/actions/delete/delete.tsx +++ b/frontend/admin/core/views/core/styles/themes/table/actions/delete/delete.tsx @@ -2,7 +2,7 @@ import { Trash2 } from "lucide-react"; import { useTranslations } from "next-intl"; import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { AlertDialog, AlertDialogContent, diff --git a/frontend/admin/core/views/core/styles/themes/table/actions/download/download.tsx b/frontend/admin/core/views/core/styles/themes/table/actions/download/download.tsx index 6214ff966..e84d0d684 100644 --- a/frontend/admin/core/views/core/styles/themes/table/actions/download/download.tsx +++ b/frontend/admin/core/views/core/styles/themes/table/actions/download/download.tsx @@ -2,7 +2,7 @@ import { Download } from "lucide-react"; import { useTranslations } from "next-intl"; import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; import type { ActionsItemThemesAdminProps } from "../actions"; diff --git a/frontend/admin/core/views/core/styles/themes/table/actions/edit/edit.tsx b/frontend/admin/core/views/core/styles/themes/table/actions/edit/edit.tsx index bb153e0fa..a6ad28740 100644 --- a/frontend/admin/core/views/core/styles/themes/table/actions/edit/edit.tsx +++ b/frontend/admin/core/views/core/styles/themes/table/actions/edit/edit.tsx @@ -4,7 +4,7 @@ import { Pencil } from "lucide-react"; import { useTranslations } from "next-intl"; import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; import type { ActionsItemThemesAdminProps } from "../actions"; diff --git a/frontend/admin/core/views/core/styles/themes/table/content.tsx b/frontend/admin/core/views/core/styles/themes/table/content.tsx index 900cf5a49..f91324faf 100644 --- a/frontend/admin/core/views/core/styles/themes/table/content.tsx +++ b/frontend/admin/core/views/core/styles/themes/table/content.tsx @@ -5,7 +5,7 @@ import { ExternalLink } from "lucide-react"; import { DataTable } from "@/components/data-table/data-table"; import { HeaderSortingDataTable } from "@/components/data-table/header"; -import { DateFormat } from "@/components/date-format/date-format"; +import { DateFormat } from "@/components/date-format"; import { Badge } from "@/components/ui/badge"; import type { Admin_Core_Themes__ShowQuery, diff --git a/frontend/admin/core/views/core/styles/themes/table/table.tsx b/frontend/admin/core/views/core/styles/themes/table/table.tsx index d484b70cb..aac829397 100644 --- a/frontend/admin/core/views/core/styles/themes/table/table.tsx +++ b/frontend/admin/core/views/core/styles/themes/table/table.tsx @@ -2,7 +2,7 @@ import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import type { Admin_Core_Themes__ShowQuery } from "@/graphql/hooks"; const Content = lazy(() => diff --git a/frontend/admin/core/views/members/groups/actions/actions-groups-members-admin.tsx b/frontend/admin/core/views/members/groups/actions/actions-groups-members-admin.tsx index fc5f5630e..351d2ab12 100644 --- a/frontend/admin/core/views/members/groups/actions/actions-groups-members-admin.tsx +++ b/frontend/admin/core/views/members/groups/actions/actions-groups-members-admin.tsx @@ -6,7 +6,7 @@ import { Suspense, lazy } from "react"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; const CreateEditFormGroupsMembersAdmin = lazy(() => import("../create-edit-form/create-edit-form-groups-members-admin").then( diff --git a/frontend/admin/core/views/members/groups/create-edit-form/create-edit-form-groups-members-admin.tsx b/frontend/admin/core/views/members/groups/create-edit-form/create-edit-form-groups-members-admin.tsx index bc815f4eb..002f874e8 100644 --- a/frontend/admin/core/views/members/groups/create-edit-form/create-edit-form-groups-members-admin.tsx +++ b/frontend/admin/core/views/members/groups/create-edit-form/create-edit-form-groups-members-admin.tsx @@ -8,7 +8,7 @@ import { DialogTitle } from "@/components/ui/dialog"; import { Form } from "@/components/ui/form"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { Button } from "@/components/ui/button"; import { useCreateEditFormGroupsMembersAdmin, diff --git a/frontend/admin/core/views/members/groups/table/actions/delete/delete.tsx b/frontend/admin/core/views/members/groups/table/actions/delete/delete.tsx index 825545a32..128072411 100644 --- a/frontend/admin/core/views/members/groups/table/actions/delete/delete.tsx +++ b/frontend/admin/core/views/members/groups/table/actions/delete/delete.tsx @@ -15,7 +15,7 @@ import { AlertDialogContent, AlertDialogTrigger } from "@/components/ui/alert-dialog"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; const Content = lazy(() => import("./content").then(module => ({ diff --git a/frontend/admin/core/views/members/groups/table/actions/edit.tsx b/frontend/admin/core/views/members/groups/table/actions/edit.tsx index 6ab6df7f1..49a94fca9 100644 --- a/frontend/admin/core/views/members/groups/table/actions/edit.tsx +++ b/frontend/admin/core/views/members/groups/table/actions/edit.tsx @@ -4,7 +4,7 @@ import { useTranslations } from "next-intl"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import type { ShowAdminGroups } from "@/graphql/hooks"; const CreateEditFormGroupsMembersAdmin = lazy(() => diff --git a/frontend/admin/core/views/members/groups/table/content.tsx b/frontend/admin/core/views/members/groups/table/content.tsx index 4e463fbd0..d6babdf30 100644 --- a/frontend/admin/core/views/members/groups/table/content.tsx +++ b/frontend/admin/core/views/members/groups/table/content.tsx @@ -7,7 +7,7 @@ import { Link } from "@/i18n"; import type { ShowAdminGroups } from "@/graphql/hooks"; import { useTextLang } from "@/hooks/core/use-text-lang"; import { ActionsTableGroupsMembersAdmin } from "./actions/actions"; -import { DateFormat } from "@/components/date-format/date-format"; +import { DateFormat } from "@/components/date-format"; import { HeaderSortingDataTable } from "@/components/data-table/header"; import type { GroupsMembersAdminViewProps } from "../groups-members-admin-view"; import { Badge } from "@/components/ui/badge"; diff --git a/frontend/admin/core/views/members/groups/table/table.tsx b/frontend/admin/core/views/members/groups/table/table.tsx index 550ac2219..51581bd83 100644 --- a/frontend/admin/core/views/members/groups/table/table.tsx +++ b/frontend/admin/core/views/members/groups/table/table.tsx @@ -2,7 +2,7 @@ import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import type { GroupsMembersAdminViewProps } from "../groups-members-admin-view"; const ContentTableGroupsMembersAdmin = lazy(() => diff --git a/frontend/admin/core/views/members/staff/views/administrators/actions/create.tsx b/frontend/admin/core/views/members/staff/views/administrators/actions/create.tsx index 33c45fe93..549b7da99 100644 --- a/frontend/admin/core/views/members/staff/views/administrators/actions/create.tsx +++ b/frontend/admin/core/views/members/staff/views/administrators/actions/create.tsx @@ -4,7 +4,7 @@ import { Suspense, lazy } from "react"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; import { Button } from "@/components/ui/button"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; const CreateEditFormAdministratorsStaffAdmin = lazy(() => import("../create-edit-form/create-edit-form").then(module => ({ diff --git a/frontend/admin/core/views/members/staff/views/administrators/table/actions/delete/delete.tsx b/frontend/admin/core/views/members/staff/views/administrators/table/actions/delete/delete.tsx index 520744e33..66175f338 100644 --- a/frontend/admin/core/views/members/staff/views/administrators/table/actions/delete/delete.tsx +++ b/frontend/admin/core/views/members/staff/views/administrators/table/actions/delete/delete.tsx @@ -8,7 +8,7 @@ import { AlertDialogTrigger } from "@/components/ui/alert-dialog"; import { Button } from "@/components/ui/button"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import type { ShowAdminStaffAdministrators } from "@/graphql/hooks"; const ContentDeleteActionsTableAdministratorsStaffAdmin = lazy(() => diff --git a/frontend/admin/core/views/members/staff/views/administrators/table/content.tsx b/frontend/admin/core/views/members/staff/views/administrators/table/content.tsx index 32fa16d08..5c745beef 100644 --- a/frontend/admin/core/views/members/staff/views/administrators/table/content.tsx +++ b/frontend/admin/core/views/members/staff/views/administrators/table/content.tsx @@ -6,7 +6,7 @@ import { InfinityIcon, ShieldAlert } from "lucide-react"; import type { AdministratorsStaffAdminViewProps } from "../administrators-view"; import { DataTable } from "@/components/data-table/data-table"; import type { ShowAdminStaffAdministrators } from "@/graphql/hooks"; -import { DateFormat } from "@/components/date-format/date-format"; +import { DateFormat } from "@/components/date-format"; import { HeaderSortingDataTable } from "@/components/data-table/header"; import { Badge } from "@/components/ui/badge"; import { UserLink } from "@/components/user/link/user-link"; diff --git a/frontend/admin/core/views/members/staff/views/administrators/table/table.tsx b/frontend/admin/core/views/members/staff/views/administrators/table/table.tsx index 2bc532d88..7fc4468a6 100644 --- a/frontend/admin/core/views/members/staff/views/administrators/table/table.tsx +++ b/frontend/admin/core/views/members/staff/views/administrators/table/table.tsx @@ -2,7 +2,7 @@ import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import type { AdministratorsStaffAdminViewProps } from "../administrators-view"; const ContentTableAdministratorsStaffAdmin = lazy(() => diff --git a/frontend/admin/core/views/members/staff/views/moderators/actions/create.tsx b/frontend/admin/core/views/members/staff/views/moderators/actions/create.tsx index 559af48e0..8c81a118a 100644 --- a/frontend/admin/core/views/members/staff/views/moderators/actions/create.tsx +++ b/frontend/admin/core/views/members/staff/views/moderators/actions/create.tsx @@ -4,7 +4,7 @@ import { Suspense, lazy } from "react"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; import { Button } from "@/components/ui/button"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; const CreateEditFormModeratorsStaffAdmin = lazy(() => import("../create-edit-form/create-edit-form").then(module => ({ diff --git a/frontend/admin/core/views/members/staff/views/moderators/table/actions/delete/delete.tsx b/frontend/admin/core/views/members/staff/views/moderators/table/actions/delete/delete.tsx index 82bfa9922..31b4edb08 100644 --- a/frontend/admin/core/views/members/staff/views/moderators/table/actions/delete/delete.tsx +++ b/frontend/admin/core/views/members/staff/views/moderators/table/actions/delete/delete.tsx @@ -8,7 +8,7 @@ import { AlertDialogTrigger } from "@/components/ui/alert-dialog"; import { Button } from "@/components/ui/button"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import type { ShowAdminStaffModerators } from "@/graphql/hooks"; const ContentDeleteActionsTableModeratorsStaffAdmin = lazy(() => diff --git a/frontend/admin/core/views/members/staff/views/moderators/table/content.tsx b/frontend/admin/core/views/members/staff/views/moderators/table/content.tsx index f8e6b804c..a2647b975 100644 --- a/frontend/admin/core/views/members/staff/views/moderators/table/content.tsx +++ b/frontend/admin/core/views/members/staff/views/moderators/table/content.tsx @@ -5,7 +5,7 @@ import { InfinityIcon, ShieldAlert } from "lucide-react"; import { DataTable } from "@/components/data-table/data-table"; import type { ShowAdminStaffModerators } from "@/graphql/hooks"; -import { DateFormat } from "@/components/date-format/date-format"; +import { DateFormat } from "@/components/date-format"; import { HeaderSortingDataTable } from "@/components/data-table/header"; import { Badge } from "@/components/ui/badge"; import { UserLink } from "@/components/user/link/user-link"; diff --git a/frontend/admin/core/views/members/staff/views/moderators/table/table.tsx b/frontend/admin/core/views/members/staff/views/moderators/table/table.tsx index 978291a0d..5478785f2 100644 --- a/frontend/admin/core/views/members/staff/views/moderators/table/table.tsx +++ b/frontend/admin/core/views/members/staff/views/moderators/table/table.tsx @@ -2,7 +2,7 @@ import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import type { ModeratorsStaffAdminViewProps } from "../moderators-view"; const ContentTableModeratorsStaffAdmin = lazy(() => diff --git a/frontend/admin/core/views/members/users/table/content.tsx b/frontend/admin/core/views/members/users/table/content.tsx index 7183155de..2742c7f1c 100644 --- a/frontend/admin/core/views/members/users/table/content.tsx +++ b/frontend/admin/core/views/members/users/table/content.tsx @@ -13,7 +13,7 @@ import { Link } from "@/i18n"; import { buttonVariants } from "@/components/ui/button"; import { DataTable } from "@/components/data-table/data-table"; import { AvatarUser } from "@/components/user/avatar/avatar-user"; -import { DateFormat } from "@/components/date-format/date-format"; +import { DateFormat } from "@/components/date-format"; import { GroupsFiltersUsersMembersAdmin } from "./filters/groups-filters-users-members-admin"; import { AdvancedFiltersUsersMembersAdmin } from "./filters/advanced/advanced-filters-users-members-admin"; import { useTextLang } from "@/hooks/core/use-text-lang"; diff --git a/frontend/admin/core/views/members/users/table/table.tsx b/frontend/admin/core/views/members/users/table/table.tsx index 5ffbf78cd..7ea9c4b8a 100644 --- a/frontend/admin/core/views/members/users/table/table.tsx +++ b/frontend/admin/core/views/members/users/table/table.tsx @@ -2,7 +2,7 @@ import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import type { UsersMembersAdminViewProps } from "../users-members-admin-view"; const ContentTableUsersMembersAdmin = lazy(() => diff --git a/frontend/admin/forum/views/forums/actions/actions.tsx b/frontend/admin/forum/views/forums/actions/actions.tsx index 600c633e2..de714d1ce 100644 --- a/frontend/admin/forum/views/forums/actions/actions.tsx +++ b/frontend/admin/forum/views/forums/actions/actions.tsx @@ -6,7 +6,7 @@ import { Suspense, lazy } from "react"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; import { Button } from "@/components/ui/button"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; const CreateEditFormForumAdmin = lazy(() => import("../create-edit-form/create-edit-form-forum-admin").then(module => ({ diff --git a/frontend/admin/forum/views/forums/create-edit-form/content/permissions/content.tsx b/frontend/admin/forum/views/forums/create-edit-form/content/permissions/content.tsx index 3aad7d275..89605033e 100644 --- a/frontend/admin/forum/views/forums/create-edit-form/content/permissions/content.tsx +++ b/frontend/admin/forum/views/forums/create-edit-form/content/permissions/content.tsx @@ -7,7 +7,7 @@ import { useTextLang } from "@/hooks/core/use-text-lang"; import { usePermissionsGroupsAdminAPI } from "../hooks/use-permissions-groups-admin"; import { Input } from "@/components/ui/input"; import { Switch } from "@/components/ui/switch"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import type { ShowAdminGroups } from "@/graphql/hooks"; interface Props { diff --git a/frontend/admin/forum/views/forums/create-edit-form/create-edit-form-forum-admin.tsx b/frontend/admin/forum/views/forums/create-edit-form/create-edit-form-forum-admin.tsx index 1a536cccb..00f3618fa 100644 --- a/frontend/admin/forum/views/forums/create-edit-form/create-edit-form-forum-admin.tsx +++ b/frontend/admin/forum/views/forums/create-edit-form/create-edit-form-forum-admin.tsx @@ -9,7 +9,7 @@ import { import { useCreateEditFormForumAdmin } from "./hooks/use-create-edit-form-forum-admin"; import { Form } from "@/components/ui/form"; import { Tabs } from "@/components/tabs/tabs"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { Button } from "@/components/ui/button"; import { TabsTrigger } from "@/components/tabs/tabs-trigger"; diff --git a/frontend/admin/forum/views/forums/table/content-table.tsx b/frontend/admin/forum/views/forums/table/content-table.tsx index 089e0e810..9e97ca3b0 100644 --- a/frontend/admin/forum/views/forums/table/content-table.tsx +++ b/frontend/admin/forum/views/forums/table/content-table.tsx @@ -31,7 +31,7 @@ import type { Admin__Forum_Forums__ShowFlattenedItem, Admin__Forum_Forums__ShowWithProjection } from "./types"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { ErrorAdminView } from "@/admin/core/global/error-admin-view"; import { APIKeys } from "@/graphql/api-keys"; import type { Admin__Forum_Forums__ShowQuery } from "@/graphql/hooks"; diff --git a/frontend/admin/forum/views/forums/table/table.tsx b/frontend/admin/forum/views/forums/table/table.tsx index 613b60fe8..f85e39354 100644 --- a/frontend/admin/forum/views/forums/table/table.tsx +++ b/frontend/admin/forum/views/forums/table/table.tsx @@ -2,7 +2,7 @@ import { Suspense, lazy } from "react"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; const ContentTableForumsForumAdmin = lazy(() => import("./content-table").then(module => ({ diff --git a/frontend/app/[locale]/(apps)/(admin)/admin/(auth)/core/loading.tsx b/frontend/app/[locale]/(apps)/(admin)/admin/(auth)/core/loading.tsx index 8e62dfe88..72af60fad 100644 --- a/frontend/app/[locale]/(apps)/(admin)/admin/(auth)/core/loading.tsx +++ b/frontend/app/[locale]/(apps)/(admin)/admin/(auth)/core/loading.tsx @@ -1,4 +1,4 @@ -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; export default function Loading() { return ; diff --git a/frontend/app/[locale]/(apps)/(admin)/admin/(auth)/members/groups/loading.tsx b/frontend/app/[locale]/(apps)/(admin)/admin/(auth)/members/groups/loading.tsx index 8e62dfe88..72af60fad 100644 --- a/frontend/app/[locale]/(apps)/(admin)/admin/(auth)/members/groups/loading.tsx +++ b/frontend/app/[locale]/(apps)/(admin)/admin/(auth)/members/groups/loading.tsx @@ -1,4 +1,4 @@ -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; export default function Loading() { return ; diff --git a/frontend/app/[locale]/(apps)/(admin)/admin/(auth)/members/loading.tsx b/frontend/app/[locale]/(apps)/(admin)/admin/(auth)/members/loading.tsx index 8e62dfe88..72af60fad 100644 --- a/frontend/app/[locale]/(apps)/(admin)/admin/(auth)/members/loading.tsx +++ b/frontend/app/[locale]/(apps)/(admin)/admin/(auth)/members/loading.tsx @@ -1,4 +1,4 @@ -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; export default function Loading() { return ; diff --git a/frontend/app/[locale]/(apps)/(admin)/admin/(auth)/members/staff/loading.tsx b/frontend/app/[locale]/(apps)/(admin)/admin/(auth)/members/staff/loading.tsx index 8e62dfe88..72af60fad 100644 --- a/frontend/app/[locale]/(apps)/(admin)/admin/(auth)/members/staff/loading.tsx +++ b/frontend/app/[locale]/(apps)/(admin)/admin/(auth)/members/staff/loading.tsx @@ -1,4 +1,4 @@ -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; export default function Loading() { return ; diff --git a/frontend/app/[locale]/(apps)/(admin)/admin/(configs)/install/loading.tsx b/frontend/app/[locale]/(apps)/(admin)/admin/(configs)/install/loading.tsx index 8e62dfe88..72af60fad 100644 --- a/frontend/app/[locale]/(apps)/(admin)/admin/(configs)/install/loading.tsx +++ b/frontend/app/[locale]/(apps)/(admin)/admin/(configs)/install/loading.tsx @@ -1,4 +1,4 @@ -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; export default function Loading() { return ; diff --git a/frontend/app/[locale]/(apps)/(admin)/admin/(configs)/loading.tsx b/frontend/app/[locale]/(apps)/(admin)/admin/(configs)/loading.tsx index 8e62dfe88..72af60fad 100644 --- a/frontend/app/[locale]/(apps)/(admin)/admin/(configs)/loading.tsx +++ b/frontend/app/[locale]/(apps)/(admin)/admin/(configs)/loading.tsx @@ -1,4 +1,4 @@ -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; export default function Loading() { return ; diff --git a/frontend/app/[locale]/(apps)/(main)/(container)/forum/loading.tsx b/frontend/app/[locale]/(apps)/(main)/(container)/forum/loading.tsx index 8e62dfe88..72af60fad 100644 --- a/frontend/app/[locale]/(apps)/(main)/(container)/forum/loading.tsx +++ b/frontend/app/[locale]/(apps)/(main)/(container)/forum/loading.tsx @@ -1,4 +1,4 @@ -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; export default function Loading() { return ; diff --git a/frontend/app/[locale]/(apps)/(main)/(container)/topic/loading.tsx b/frontend/app/[locale]/(apps)/(main)/(container)/topic/loading.tsx index 8e62dfe88..72af60fad 100644 --- a/frontend/app/[locale]/(apps)/(main)/(container)/topic/loading.tsx +++ b/frontend/app/[locale]/(apps)/(main)/(container)/topic/loading.tsx @@ -1,4 +1,4 @@ -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; export default function Loading() { return ; diff --git a/frontend/app/[locale]/(apps)/(main)/loading.tsx b/frontend/app/[locale]/(apps)/(main)/loading.tsx index 8fbf453cd..e431c07b4 100644 --- a/frontend/app/[locale]/(apps)/(main)/loading.tsx +++ b/frontend/app/[locale]/(apps)/(main)/loading.tsx @@ -1,4 +1,4 @@ -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; export default function Loading() { return ; diff --git a/frontend/components/data-table/toolbar/advanced-filter/advanced-filter-toolbar-data-table.tsx b/frontend/components/data-table/toolbar/advanced-filter/advanced-filter-toolbar-data-table.tsx index 8164f1991..ad55c817a 100644 --- a/frontend/components/data-table/toolbar/advanced-filter/advanced-filter-toolbar-data-table.tsx +++ b/frontend/components/data-table/toolbar/advanced-filter/advanced-filter-toolbar-data-table.tsx @@ -11,7 +11,7 @@ import { SheetTitle, SheetTrigger } from "../../../ui/sheet"; -import { Loader } from "../../../loader/loader"; +import { Loader } from "../../../loader"; interface Props { children: ReactNode; diff --git a/frontend/components/data-table/toolbar/filter/content/list.tsx b/frontend/components/data-table/toolbar/filter/content/list.tsx index 497082aa2..8819529e5 100644 --- a/frontend/components/data-table/toolbar/filter/content/list.tsx +++ b/frontend/components/data-table/toolbar/filter/content/list.tsx @@ -3,7 +3,7 @@ import { useSearchParams } from "next/navigation"; import { CheckIcon } from "@radix-ui/react-icons"; import { CommandGroup, CommandItem } from "@/components/ui/command"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { usePathname, useRouter } from "@/i18n"; import { cn } from "@/functions/classnames"; import type { ContentFilterToolbarDataTableProps } from "./content"; diff --git a/frontend/components/data-table/toolbar/filter/filter.tsx b/frontend/components/data-table/toolbar/filter/filter.tsx index 9cbad9b6c..b26e458e7 100644 --- a/frontend/components/data-table/toolbar/filter/filter.tsx +++ b/frontend/components/data-table/toolbar/filter/filter.tsx @@ -11,7 +11,7 @@ import { import { Button } from "@/components/ui/button"; import { Separator } from "@/components/ui/separator"; import { Badge } from "@/components/ui/badge"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { FilterToolbarDataTableContext } from "./hooks/use-filter-toolbar-data-table"; export interface FilterToolbarDataTableProps { diff --git a/frontend/components/date-format.tsx b/frontend/components/date-format.tsx new file mode 100644 index 000000000..d3d03ffff --- /dev/null +++ b/frontend/components/date-format.tsx @@ -0,0 +1,79 @@ +import { useLocale } from "next-intl"; +import { enUS, pl } from "date-fns/locale"; +import { format, formatDistance } from "date-fns"; +import { forwardRef } from "react"; + +import { convertUnixTime } from "@/functions/date"; +import { + Tooltip, + TooltipContent, + TooltipProvider, + TooltipTrigger +} from "./ui/tooltip"; + +interface Props { + date: number; + className?: string; +} + +export const DateFormat = forwardRef( + ({ className, date }, ref) => { + const locale = useLocale(); + const currentTime = convertUnixTime(date); + + const relative = Math.floor( + (new Date().getTime() - currentTime.getTime()) / 1000 + ); + + const getDateFormat = (dateFormat: string) => { + return format(currentTime, dateFormat, { + locale: locale === "pl" ? pl : enUS + }); + }; + + const fullDate = getDateFormat("P p"); + + const getDateWithFormatDistance = () => { + // When date is < 1 day + if (relative < 86400) { + return formatDistance(currentTime, new Date(), { + addSuffix: true, + locale: locale === "pl" ? pl : enUS + }); + } + + // When date is < 7 days + if (relative < 604800) { + return getDateFormat(locale === "pl" ? "EEEE, H:mm" : "EEEE, H:mm a"); + } + + // When date is < 1 year + return getDateFormat(locale === "pl" ? "d MMMM, H:mm" : "MMMM d, H:mm a"); + }; + + if (currentTime.getFullYear() == new Date().getFullYear()) { + return ( + + + + + {getDateWithFormatDistance()} + + + + {fullDate} + + + + ); + } + + return ( + + {fullDate} + + ); + } +); + +DateFormat.displayName = "DateFormat"; diff --git a/frontend/components/date-format/date-format.tsx b/frontend/components/date-format/date-format.tsx deleted file mode 100644 index c4e67c558..000000000 --- a/frontend/components/date-format/date-format.tsx +++ /dev/null @@ -1,68 +0,0 @@ -import { useLocale } from "next-intl"; -import { enUS, pl } from "date-fns/locale"; -import { format, formatDistance } from "date-fns"; - -import { convertUnixTime } from "@/functions/date"; -import { - Tooltip, - TooltipContent, - TooltipProvider, - TooltipTrigger -} from "../ui/tooltip"; - -interface Props { - date: number; - className?: string; -} - -export const DateFormat = ({ className, date }: Props) => { - const locale = useLocale(); - const currentTime = convertUnixTime(date); - - const relative = Math.floor( - (new Date().getTime() - currentTime.getTime()) / 1000 - ); - - const getDateFormat = (dateFormat: string) => { - return format(currentTime, dateFormat, { - locale: locale === "pl" ? pl : enUS - }); - }; - - const fullDate = getDateFormat("P p"); - - const getDateWithFormatDistance = () => { - // When date is < 1 day - if (relative < 86400) { - return formatDistance(currentTime, new Date(), { - addSuffix: true, - locale: locale === "pl" ? pl : enUS - }); - } - - // When date is < 7 days - if (relative < 604800) { - return getDateFormat(locale === "pl" ? "EEEE, H:mm" : "EEEE, H:mm a"); - } - - // When date is < 1 year - return getDateFormat(locale === "pl" ? "d MMMM, H:mm" : "MMMM d, H:mm a"); - }; - - if (currentTime.getFullYear() == new Date().getFullYear()) { - return ( - - - - {getDateWithFormatDistance()} - - - {fullDate} - - - - ); - } - - return {fullDate}; -}; diff --git a/frontend/components/editor/plugins/code/container-code-action-menu.tsx b/frontend/components/editor/plugins/code/container-code-action-menu.tsx index c6943d5ba..5f1616259 100644 --- a/frontend/components/editor/plugins/code/container-code-action-menu.tsx +++ b/frontend/components/editor/plugins/code/container-code-action-menu.tsx @@ -16,7 +16,7 @@ import { type PrettierFormatError } from "./prettier/prettier-button-code-action"; import { AlertDialog, AlertDialogContent } from "@/components/ui/alert-dialog"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { CopyButtonCodeAction } from "./copy/copy-button-code-action"; const PrettierAlertDialog = lazy(() => diff --git a/frontend/components/editor/toolbar/buttons/emoji/emoji-button.tsx b/frontend/components/editor/toolbar/buttons/emoji/emoji-button.tsx index 6d06e973a..fbb6fac3a 100644 --- a/frontend/components/editor/toolbar/buttons/emoji/emoji-button.tsx +++ b/frontend/components/editor/toolbar/buttons/emoji/emoji-button.tsx @@ -8,7 +8,7 @@ import { PopoverTrigger } from "@/components/ui/popover"; import { Button } from "@/components/ui/button"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; const ContentEmojiButtonEditor = lazy(() => import("./content").then(module => ({ diff --git a/frontend/components/groups/input/content/content.tsx b/frontend/components/groups/input/content/content.tsx index bc6c4d13b..feab232b6 100644 --- a/frontend/components/groups/input/content/content.tsx +++ b/frontend/components/groups/input/content/content.tsx @@ -5,7 +5,7 @@ import { useQuery } from "@tanstack/react-query"; import { useDebouncedCallback } from "use-debounce"; import { cn } from "@/functions/classnames"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { Input } from "@/components/ui/input"; import { Command, diff --git a/frontend/components/groups/input/group-input.tsx b/frontend/components/groups/input/group-input.tsx index 92fd91262..c9554a8a7 100644 --- a/frontend/components/groups/input/group-input.tsx +++ b/frontend/components/groups/input/group-input.tsx @@ -9,7 +9,7 @@ import type { TextLanguage } from "../../../graphql/hooks"; import { Popover, PopoverContent, PopoverTrigger } from "../../ui/popover"; import { Button } from "../../ui/button"; import { Badge } from "../../ui/badge"; -import { Loader } from "../../loader/loader"; +import { Loader } from "../../loader"; import { useTextLang } from "../../../hooks/core/use-text-lang"; export interface GroupInputItem { diff --git a/frontend/components/header-content/header-content.tsx b/frontend/components/header-content/header-content.tsx index ded7a990a..0589ad2db 100644 --- a/frontend/components/header-content/header-content.tsx +++ b/frontend/components/header-content/header-content.tsx @@ -1,4 +1,5 @@ import type { ReactNode } from "react"; +import { forwardRef } from "react"; import { cn } from "@/functions/classnames"; @@ -18,15 +19,13 @@ interface HeaderContentH2Props extends HeaderContentProps { h1?: never; } -export const HeaderContent = ({ - children, - className, - desc, - h1, - h2 -}: HeaderContentH1Props | HeaderContentH2Props) => { +export const HeaderContent = forwardRef< + HTMLDivElement, + HeaderContentH1Props | HeaderContentH2Props +>(({ children, className, desc, h1, h2 }, ref) => { return (
); -}; +}); + +HeaderContent.displayName = "HeaderContent"; diff --git a/frontend/components/icon/icon.tsx b/frontend/components/icon/icon.tsx index 3988ea7cd..e4816266a 100644 --- a/frontend/components/icon/icon.tsx +++ b/frontend/components/icon/icon.tsx @@ -21,15 +21,6 @@ export const Icon = memo(({ className, name, ...props }: Props) => { .then(mod => ({ default: mod })) ); - // const LucideIcon = dynamic( - // () => import(`lucide-react`).then(mod => mod[name]), - // { - // loading: () => { - // return ; - // } - // } - // ); - return ( }> diff --git a/frontend/components/icon/input/content/content.tsx b/frontend/components/icon/input/content/content.tsx index 99fdd0b29..79ea84f21 100644 --- a/frontend/components/icon/input/content/content.tsx +++ b/frontend/components/icon/input/content/content.tsx @@ -7,7 +7,7 @@ import { TabsTrigger } from "@/components/tabs/tabs-trigger"; import { Input } from "@/components/ui/input"; import { SkinSelectEmojiButtonEditor } from "@/components/editor/toolbar/buttons/emoji/skin-select"; import { CONFIG } from "@/config"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; const EmojisContentIconInput = lazy(() => import("./emojis/emojis").then(module => ({ diff --git a/frontend/components/icon/input/icon-input.tsx b/frontend/components/icon/input/icon-input.tsx index a679c1371..bea9ab95b 100644 --- a/frontend/components/icon/input/icon-input.tsx +++ b/frontend/components/icon/input/icon-input.tsx @@ -12,7 +12,7 @@ import { PopoverTrigger } from "@/components/ui/popover"; import { cn } from "@/functions/classnames"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import type { IconInputProps } from "./content/content"; const Content = lazy(() => diff --git a/frontend/components/loader/loader.tsx b/frontend/components/loader.tsx similarity index 100% rename from frontend/components/loader/loader.tsx rename to frontend/components/loader.tsx diff --git a/frontend/components/ui/button.tsx b/frontend/components/ui/button.tsx index 32d2d38bd..188dce531 100644 --- a/frontend/components/ui/button.tsx +++ b/frontend/components/ui/button.tsx @@ -4,7 +4,7 @@ import { forwardRef, type ButtonHTMLAttributes } from "react"; import { useTranslations } from "next-intl"; import { cn } from "@/functions/classnames"; -import { Loader } from "../loader/loader"; +import { Loader } from "../loader"; import { TooltipPortalButton } from "./button-tooltip-portal"; import { Tooltip, TooltipProvider, TooltipTrigger } from "./tooltip"; diff --git a/frontend/components/ui/dropdown-menu.tsx b/frontend/components/ui/dropdown-menu.tsx index 844f7056c..f3eec4f0f 100644 --- a/frontend/components/ui/dropdown-menu.tsx +++ b/frontend/components/ui/dropdown-menu.tsx @@ -11,7 +11,7 @@ import { import { useTranslations } from "next-intl"; import { cn } from "@/functions/classnames"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; const DropdownMenu = DropdownMenuPrimitive.Root; diff --git a/frontend/components/user/inputs/content/content.tsx b/frontend/components/user/inputs/content/content.tsx index c7669d4bf..7541a0117 100644 --- a/frontend/components/user/inputs/content/content.tsx +++ b/frontend/components/user/inputs/content/content.tsx @@ -7,7 +7,7 @@ import { useDebouncedCallback } from "use-debounce"; import { cn } from "@/functions/classnames"; import { UserInputContentList } from "./list"; import type { UserInputItem } from "../user-input"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { Input } from "@/components/ui/input"; import { Command, diff --git a/frontend/components/user/inputs/user-input.tsx b/frontend/components/user/inputs/user-input.tsx index c0dd066b7..380d09f10 100644 --- a/frontend/components/user/inputs/user-input.tsx +++ b/frontend/components/user/inputs/user-input.tsx @@ -9,7 +9,7 @@ import { PopoverContent, PopoverTrigger } from "@/components/ui/popover"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { Badge } from "@/components/ui/badge"; const UserInputContent = lazy(() => diff --git a/frontend/themes/1/core/views/global/loading/loading-view.tsx b/frontend/themes/1/core/views/global/loading/loading-view.tsx index 21ef427d7..5f6330097 100644 --- a/frontend/themes/1/core/views/global/loading/loading-view.tsx +++ b/frontend/themes/1/core/views/global/loading/loading-view.tsx @@ -1,7 +1,7 @@ import { useTranslations } from "next-intl"; import { Card, CardHeader } from "@/components/ui/card"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { cn } from "@/functions/classnames"; interface Props { diff --git a/frontend/themes/1/core/views/settings/views/overview/header/change-avatar/change-avatar.tsx b/frontend/themes/1/core/views/settings/views/overview/header/change-avatar/change-avatar.tsx index 71d6f04ba..2aa0ccc67 100644 --- a/frontend/themes/1/core/views/settings/views/overview/header/change-avatar/change-avatar.tsx +++ b/frontend/themes/1/core/views/settings/views/overview/header/change-avatar/change-avatar.tsx @@ -11,7 +11,7 @@ import { TooltipTrigger } from "@/components/ui/tooltip"; import { Button } from "@/components/ui/button"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { useSession } from "@/hooks/core/use-session"; const ModalChangeAvatar = lazy(() => diff --git a/frontend/themes/1/core/views/settings/views/overview/header/change-avatar/modal/modal-change-avatar.tsx b/frontend/themes/1/core/views/settings/views/overview/header/change-avatar/modal/modal-change-avatar.tsx index 9e2aa3fb3..90bb5e5b4 100644 --- a/frontend/themes/1/core/views/settings/views/overview/header/change-avatar/modal/modal-change-avatar.tsx +++ b/frontend/themes/1/core/views/settings/views/overview/header/change-avatar/modal/modal-change-avatar.tsx @@ -12,7 +12,7 @@ import { Label } from "@/components/ui/label"; import { Button } from "@/components/ui/button"; import { Form, FormField } from "@/components/ui/form"; import { FilesInput } from "@/components/ui/files/files-input"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { useModalChangeAvatar } from "@/hooks/core/settings/avatar/use-modal-change-avatar"; import { useSession } from "@/hooks/core/use-session"; diff --git a/frontend/themes/1/forum/views/forum/forums/views/[id]/actions/actions.tsx b/frontend/themes/1/forum/views/forum/forums/views/[id]/actions/actions.tsx index 1825c42be..5ddca56ea 100644 --- a/frontend/themes/1/forum/views/forum/forums/views/[id]/actions/actions.tsx +++ b/frontend/themes/1/forum/views/forum/forums/views/[id]/actions/actions.tsx @@ -7,7 +7,7 @@ import { useParams } from "next/navigation"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; import { getIdFormString } from "@/functions/url"; import type { PermissionsForumForumsCount } from "@/graphql/hooks"; diff --git a/frontend/themes/1/forum/views/forum/forums/views/[id]/topics-list/item.tsx b/frontend/themes/1/forum/views/forum/forums/views/[id]/topics-list/item.tsx index c836642fb..2924a53e0 100644 --- a/frontend/themes/1/forum/views/forum/forums/views/[id]/topics-list/item.tsx +++ b/frontend/themes/1/forum/views/forum/forums/views/[id]/topics-list/item.tsx @@ -1,6 +1,6 @@ import { useTranslations } from "next-intl"; -import { DateFormat } from "@/components/date-format/date-format"; +import { DateFormat } from "@/components/date-format"; import type { ShowTopicsForums } from "@/graphql/hooks"; import { useTextLang } from "@/hooks/core/use-text-lang"; import { Link } from "@/i18n"; diff --git a/frontend/themes/1/forum/views/forum/forums/views/[id]/topics-list/topics-list.tsx b/frontend/themes/1/forum/views/forum/forums/views/[id]/topics-list/topics-list.tsx index 017bd6b30..c671fcc4d 100644 --- a/frontend/themes/1/forum/views/forum/forums/views/[id]/topics-list/topics-list.tsx +++ b/frontend/themes/1/forum/views/forum/forums/views/[id]/topics-list/topics-list.tsx @@ -5,7 +5,7 @@ import { Virtuoso } from "react-virtuoso"; import { type ShowTopicsForumsObj } from "@/graphql/hooks"; import { ItemTopicListForum } from "./item"; import { useTopicsList } from "@/hooks/forums/forum/use-topics-list"; -import { Loader } from "@/components/loader/loader"; +import { Loader } from "@/components/loader"; interface Props { initData: ShowTopicsForumsObj; diff --git a/frontend/themes/1/forum/views/forum/topic/posts/meta-tags/meta-tag.tsx b/frontend/themes/1/forum/views/forum/topic/posts/meta-tags/meta-tag.tsx index 73c8b060e..b925ff16e 100644 --- a/frontend/themes/1/forum/views/forum/topic/posts/meta-tags/meta-tag.tsx +++ b/frontend/themes/1/forum/views/forum/topic/posts/meta-tags/meta-tag.tsx @@ -1,7 +1,7 @@ import { Lock, Tag, Unlock, type LucideIcon } from "lucide-react"; import { useTranslations } from "next-intl"; -import { DateFormat } from "@/components/date-format/date-format"; +import { DateFormat } from "@/components/date-format"; import type { ShowPostsForumsMetaTags } from "@/graphql/hooks"; import { cn } from "@/functions/classnames"; import { UserLink } from "@/components/user/link/user-link"; diff --git a/frontend/themes/1/forum/views/forum/topic/posts/post/post.tsx b/frontend/themes/1/forum/views/forum/topic/posts/post/post.tsx index 2b999c8c7..79bf53e81 100644 --- a/frontend/themes/1/forum/views/forum/topic/posts/post/post.tsx +++ b/frontend/themes/1/forum/views/forum/topic/posts/post/post.tsx @@ -2,7 +2,7 @@ import { useTranslations } from "next-intl"; import { AvatarUser } from "@/components/user/avatar/avatar-user"; import { UserLink } from "@/components/user/link/user-link"; -import { DateFormat } from "@/components/date-format/date-format"; +import { DateFormat } from "@/components/date-format"; import { GroupFormat } from "@/components/groups/group-format"; import { ReadOnlyEditor } from "@/components/editor/read-only/read-only-editor"; import type { TextLanguage, User } from "@/graphql/hooks";