@hedhog/blog 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/frontend/author/components/author.screen.ts +1 -1
- package/frontend/author/components/create-panel.tsx +1 -4
- package/frontend/author/components/update-panel.tsx +3 -3
- package/frontend/category/components/category.screen.ts +1 -1
- package/frontend/category/components/create-panel.tsx +1 -4
- package/frontend/category/components/update-panel.tsx +3 -3
- package/frontend/post/components/create-panel.tsx +1 -4
- package/frontend/post/components/post.screen.ts +1 -1
- package/frontend/post/components/update-panel.tsx +3 -3
- package/package.json +1 -1
@@ -8,7 +8,7 @@ import { IconEdit, IconPlus, IconTrash } from "@tabler/icons-react";
|
|
8
8
|
import { useState } from "react";
|
9
9
|
import { useTranslation } from "react-i18next";
|
10
10
|
import AuthorCreatePanel from "./components/author-create-panel";
|
11
|
-
import
|
11
|
+
import AuthorUpdatePanel from "./components/author-update-panel";
|
12
12
|
|
13
13
|
export default function Page() {
|
14
14
|
const [selectedItems, setSelectedItems] = useState<Author[]>([]);
|
@@ -1,9 +1,6 @@
|
|
1
|
-
import { Overlay } from "@/components/custom/overlay";
|
2
1
|
import FormPanel, { FormPanelRef } from "@/components/panels/form-panel";
|
3
|
-
import { TabPanel } from "@/components/panels/tab-panel";
|
4
2
|
import { EnumFieldType } from "@/enums/EnumFieldType";
|
5
|
-
import {
|
6
|
-
import useEffectAfterFirstUpdate from "@/hooks/use-effect-after-first-update";
|
3
|
+
import { useAuthorCreate } from "@/features/blog/author";
|
7
4
|
import { Author } from "@/types/models";
|
8
5
|
import { forwardRef, useImperativeHandle, useRef } from "react";
|
9
6
|
import { useTranslation } from "react-i18next";
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import FormPanel, { FormPanelRef } from "@/components/
|
1
|
+
import FormPanel, { FormPanelRef } from "@/components/panels/form-panel";
|
2
2
|
import { Overlay } from "@/components/custom/overlay";
|
3
|
-
import { TabPanel } from "@/components/
|
3
|
+
import { TabPanel } from "@/components/panels/tab-panel";
|
4
4
|
import { EnumFieldType } from "@/enums/EnumFieldType";
|
5
|
-
import { useAuthorGet, useAuthorUpdate } from "@/features/author";
|
5
|
+
import { useAuthorGet, useAuthorUpdate } from "@/features/blog/author";
|
6
6
|
import useEffectAfterFirstUpdate from "@/hooks/use-effect-after-first-update";
|
7
7
|
import { Author } from "@/types/models";
|
8
8
|
import { forwardRef, useImperativeHandle, useRef } from "react";
|
@@ -8,7 +8,7 @@ import { IconEdit, IconPlus, IconTrash } from "@tabler/icons-react";
|
|
8
8
|
import { useState } from "react";
|
9
9
|
import { useTranslation } from "react-i18next";
|
10
10
|
import CategoryCreatePanel from "./components/category-create-panel";
|
11
|
-
import
|
11
|
+
import CategoryUpdatePanel from "./components/category-update-panel";
|
12
12
|
|
13
13
|
export default function Page() {
|
14
14
|
const [selectedItems, setSelectedItems] = useState<Category[]>([]);
|
@@ -1,12 +1,9 @@
|
|
1
|
-
import { Overlay } from "@/components/custom/overlay";
|
2
1
|
import FormPanel, {
|
3
2
|
FormPanelRef,
|
4
3
|
getFieldsLocale,
|
5
4
|
} from "@/components/panels/form-panel";
|
6
|
-
import { TabPanel } from "@/components/panels/tab-panel";
|
7
5
|
import { EnumFieldType } from "@/enums/EnumFieldType";
|
8
|
-
import {
|
9
|
-
import useEffectAfterFirstUpdate from "@/hooks/use-effect-after-first-update";
|
6
|
+
import { useCategoryCreate } from "@/features/blog/category";
|
10
7
|
import { Category } from "@/types/models";
|
11
8
|
import { forwardRef, useImperativeHandle, useRef } from "react";
|
12
9
|
import { useTranslation } from "react-i18next";
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import FormPanel, {
|
2
2
|
FormPanelRef,
|
3
3
|
getFieldsLocale,
|
4
|
-
} from "@/components/
|
4
|
+
} from "@/components/panels/form-panel";
|
5
5
|
import { Overlay } from "@/components/custom/overlay";
|
6
|
-
import { TabPanel } from "@/components/
|
6
|
+
import { TabPanel } from "@/components/panels/tab-panel";
|
7
7
|
import { EnumFieldType } from "@/enums/EnumFieldType";
|
8
|
-
import { useCategoryGet, useCategoryUpdate } from "@/features/category";
|
8
|
+
import { useCategoryGet, useCategoryUpdate } from "@/features/blog/category";
|
9
9
|
import useEffectAfterFirstUpdate from "@/hooks/use-effect-after-first-update";
|
10
10
|
import { Category } from "@/types/models";
|
11
11
|
import { forwardRef, useImperativeHandle, useRef } from "react";
|
@@ -1,9 +1,6 @@
|
|
1
|
-
import { Overlay } from "@/components/custom/overlay";
|
2
1
|
import FormPanel, { FormPanelRef } from "@/components/panels/form-panel";
|
3
|
-
import { TabPanel } from "@/components/panels/tab-panel";
|
4
2
|
import { EnumFieldType } from "@/enums/EnumFieldType";
|
5
|
-
import {
|
6
|
-
import useEffectAfterFirstUpdate from "@/hooks/use-effect-after-first-update";
|
3
|
+
import { usePostCreate } from "@/features/blog/post";
|
7
4
|
import { Post } from "@/types/models";
|
8
5
|
import { forwardRef, useImperativeHandle, useRef } from "react";
|
9
6
|
import { useTranslation } from "react-i18next";
|
@@ -8,7 +8,7 @@ import { IconEdit, IconPlus, IconTrash } from "@tabler/icons-react";
|
|
8
8
|
import { useState } from "react";
|
9
9
|
import { useTranslation } from "react-i18next";
|
10
10
|
import PostCreatePanel from "./components/post-create-panel";
|
11
|
-
import
|
11
|
+
import PostUpdatePanel from "./components/post-update-panel";
|
12
12
|
|
13
13
|
export default function Page() {
|
14
14
|
const [selectedItems, setSelectedItems] = useState<Post[]>([]);
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import FormPanel, { FormPanelRef } from "@/components/
|
1
|
+
import FormPanel, { FormPanelRef } from "@/components/panels/form-panel";
|
2
2
|
import { Overlay } from "@/components/custom/overlay";
|
3
|
-
import { TabPanel } from "@/components/
|
3
|
+
import { TabPanel } from "@/components/panels/tab-panel";
|
4
4
|
import { EnumFieldType } from "@/enums/EnumFieldType";
|
5
|
-
import { usePostGet, usePostUpdate } from "@/features/post";
|
5
|
+
import { usePostGet, usePostUpdate } from "@/features/blog/post";
|
6
6
|
import useEffectAfterFirstUpdate from "@/hooks/use-effect-after-first-update";
|
7
7
|
import { Post } from "@/types/models";
|
8
8
|
import { forwardRef, useImperativeHandle, useRef } from "react";
|