@vitnode/blog 1.2.0-canary.52 → 1.2.0-canary.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/src/api/modules/admin/admin.module.d.ts +8 -8
  2. package/dist/src/api/modules/admin/admin.module.js +1 -1
  3. package/dist/src/api/modules/admin/categories/categories.admin.module.d.ts +4 -4
  4. package/dist/src/api/modules/admin/categories/categories.admin.module.js +1 -1
  5. package/dist/src/api/modules/admin/categories/routes/create.route.d.ts +3 -3
  6. package/dist/src/api/modules/admin/categories/routes/create.route.d.ts.map +1 -1
  7. package/dist/src/api/modules/admin/categories/routes/create.route.js +1 -1
  8. package/dist/src/api/modules/admin/categories/routes/delete.route.d.ts +1 -1
  9. package/dist/src/api/modules/admin/categories/routes/delete.route.js +1 -1
  10. package/dist/src/api/modules/admin/categories/routes/edit.route.d.ts +3 -3
  11. package/dist/src/api/modules/admin/categories/routes/edit.route.js +1 -1
  12. package/dist/src/api/modules/admin/posts/posts.admin.module.d.ts +4 -4
  13. package/dist/src/api/modules/admin/posts/posts.admin.module.js +1 -1
  14. package/dist/src/api/modules/admin/posts/routes/create.route.d.ts +3 -3
  15. package/dist/src/api/modules/admin/posts/routes/create.route.d.ts.map +1 -1
  16. package/dist/src/api/modules/admin/posts/routes/create.route.js +1 -1
  17. package/dist/src/api/modules/admin/posts/routes/delete.route.d.ts +1 -1
  18. package/dist/src/api/modules/admin/posts/routes/delete.route.js +1 -1
  19. package/dist/src/api/modules/admin/posts/routes/edit.route.d.ts +3 -3
  20. package/dist/src/api/modules/admin/posts/routes/edit.route.js +1 -1
  21. package/dist/src/api/modules/categories/categories.module.d.ts +3 -3
  22. package/dist/src/api/modules/categories/categories.module.js +1 -1
  23. package/dist/src/api/modules/categories/routes/get.route.d.ts +2 -2
  24. package/dist/src/api/modules/categories/routes/get.route.d.ts.map +1 -1
  25. package/dist/src/api/modules/categories/routes/get.route.js +1 -1
  26. package/dist/src/api/modules/categories/test.route.d.ts +3 -3
  27. package/dist/src/api/modules/categories/test.route.js +1 -1
  28. package/dist/src/api/modules/posts/posts.module.d.ts +1 -1
  29. package/dist/src/api/modules/posts/posts.module.js +1 -1
  30. package/dist/src/api/modules/posts/routes/get.route.d.ts +2 -2
  31. package/dist/src/api/modules/posts/routes/get.route.js +1 -1
  32. package/dist/src/app_admin/blog/categories/page.d.ts +2 -2
  33. package/dist/src/app_admin/blog/categories/page.d.ts.map +1 -1
  34. package/dist/src/app_admin/blog/categories/page.js +1 -1
  35. package/dist/src/app_admin/blog/posts/page.d.ts +2 -2
  36. package/dist/src/app_admin/blog/posts/page.d.ts.map +1 -1
  37. package/dist/src/app_admin/blog/posts/page.js +1 -1
  38. package/dist/src/config.api.js +1 -1
  39. package/dist/src/config.js +1 -1
  40. package/dist/src/database/index.d.ts +3 -3
  41. package/dist/src/emails/test-template.d.ts +1 -1
  42. package/dist/src/emails/test-template.d.ts.map +1 -1
  43. package/dist/src/emails/test-template.js +1 -1
  44. package/dist/src/views/admin/categories/actions/actions.js +1 -1
  45. package/dist/src/views/admin/categories/actions/create-edit/create-edit.d.ts +2 -2
  46. package/dist/src/views/admin/categories/actions/create-edit/mutation-api.d.ts +2 -2
  47. package/dist/src/views/admin/categories/actions/create-edit/mutation-api.d.ts.map +1 -1
  48. package/dist/src/views/admin/categories/table/actions/edit-action.d.ts +1 -1
  49. package/dist/src/views/admin/categories/table/actions/edit-action.js +1 -1
  50. package/dist/src/views/admin/posts/actions/actions.js +1 -1
  51. package/dist/src/views/admin/posts/actions/create-edit/create-edit.d.ts +2 -2
  52. package/dist/src/views/admin/posts/actions/create-edit/create-edit.d.ts.map +1 -1
  53. package/dist/src/views/admin/posts/actions/create-edit/mutation-api.d.ts +2 -2
  54. package/dist/src/views/admin/posts/actions/create-edit/mutation-api.d.ts.map +1 -1
  55. package/dist/src/views/admin/posts/table/actions/edit-action.d.ts +1 -1
  56. package/dist/src/views/admin/posts/table/actions/edit-action.d.ts.map +1 -1
  57. package/dist/src/views/admin/posts/table/actions/edit-action.js +1 -1
  58. package/dist/tsconfig.tsbuildinfo +1 -1
  59. package/package.json +16 -19
  60. package/src/app_admin/blog/categories/page.tsx +15 -16
  61. package/src/app_admin/blog/posts/page.tsx +15 -16
@@ -1,5 +1,5 @@
1
- import { z } from 'zod';
2
- import type { zodCreateCategorySchema } from '../../../../../api/modules/admin/categories/routes/create.route';
1
+ import { z } from "zod";
2
+ import type { zodCreateCategorySchema } from "../../../../../api/modules/admin/categories/routes/create.route";
3
3
  export declare const CreateEditActionCategoriesAdmin: ({ data, }: {
4
4
  data?: z.infer<typeof zodCreateCategorySchema> & {
5
5
  id: number;
@@ -1,5 +1,5 @@
1
- import type { z } from 'zod';
2
- import type { zodCreateCategorySchema } from '../../../../../api/modules/admin/categories/routes/create.route';
1
+ import type { z } from "zod";
2
+ import type { zodCreateCategorySchema } from "../../../../../api/modules/admin/categories/routes/create.route";
3
3
  export declare const createMutationApi: (body: z.infer<typeof zodCreateCategorySchema>) => Promise<{
4
4
  error: string;
5
5
  } | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"mutation-api.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/admin/categories/actions/create-edit/mutation-api.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAK7B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iEAAiE,CAAC;AAI/G,eAAO,MAAM,iBAAiB,GAC5B,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC;;cAoB9C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,iBAGnC,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE;;cAsB1D,CAAC"}
1
+ {"version":3,"file":"mutation-api.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/admin/categories/actions/create-edit/mutation-api.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iEAAiE,CAAC;AAE/G,eAAO,MAAM,iBAAiB,GAC5B,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC;;cAoB9C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,iBAGnC,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE;;cAsB1D,CAAC"}
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  declare const CreateEditActionCategoriesAdmin: React.ComponentType<{
3
3
  data?: import("zod").infer<typeof import("../../../../../api/modules/admin/categories/routes/create.route").zodCreateCategorySchema> & {
4
4
  id: number;
@@ -1 +1 @@
1
- "use client";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{Button}from"@vitnode/core/components/ui/button";import{Dialog,DialogContent,DialogDescription,DialogHeader,DialogTitle,DialogTrigger}from"@vitnode/core/components/ui/dialog";import{Loader}from"@vitnode/core/components/ui/loader";import{Tooltip,TooltipContent,TooltipProvider,TooltipTrigger}from"@vitnode/core/components/ui/tooltip";import{PencilIcon}from"lucide-react";import{useTranslations}from"next-intl";import dynamic from"next/dynamic";import React from"react";const CreateEditActionCategoriesAdmin=dynamic(async()=>import("../../actions/create-edit/create-edit.js").then(mod=>({default:mod.CreateEditActionCategoriesAdmin})));export const EditAction=props=>{const t=useTranslations("@vitnode/blog.admin.categories.edit");return _jsxs(Dialog,{children:[_jsx(TooltipProvider,{children:_jsxs(Tooltip,{children:[_jsx(TooltipTrigger,{asChild:true,children:_jsx(DialogTrigger,{asChild:true,children:_jsx(Button,{"aria-label":t("title"),size:"icon",variant:"ghost",children:_jsx(PencilIcon,{})})})}),_jsx(TooltipContent,{children:t("title")})]})}),_jsxs(DialogContent,{children:[_jsxs(DialogHeader,{children:[_jsx(DialogTitle,{children:t("title")}),_jsx(DialogDescription,{children:props.data.title})]}),_jsx(React.Suspense,{fallback:_jsx(Loader,{}),children:_jsx(CreateEditActionCategoriesAdmin,{...props})})]})]})};
1
+ "use client";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{Button}from"@vitnode/core/components/ui/button";import{Dialog,DialogContent,DialogDescription,DialogHeader,DialogTitle,DialogTrigger}from"@vitnode/core/components/ui/dialog";import{Loader}from"@vitnode/core/components/ui/loader";import{Tooltip,TooltipContent,TooltipProvider,TooltipTrigger}from"@vitnode/core/components/ui/tooltip";import{PencilIcon}from"lucide-react";import dynamic from"next/dynamic";import{useTranslations}from"next-intl";import React from"react";const CreateEditActionCategoriesAdmin=dynamic(async()=>import("../../actions/create-edit/create-edit.js").then(mod=>({default:mod.CreateEditActionCategoriesAdmin})));export const EditAction=props=>{const t=useTranslations("@vitnode/blog.admin.categories.edit");return _jsxs(Dialog,{children:[_jsx(TooltipProvider,{children:_jsxs(Tooltip,{children:[_jsx(TooltipTrigger,{asChild:true,children:_jsx(DialogTrigger,{asChild:true,children:_jsx(Button,{"aria-label":t("title"),size:"icon",variant:"ghost",children:_jsx(PencilIcon,{})})})}),_jsx(TooltipContent,{children:t("title")})]})}),_jsxs(DialogContent,{children:[_jsxs(DialogHeader,{children:[_jsx(DialogTitle,{children:t("title")}),_jsx(DialogDescription,{children:props.data.title})]}),_jsx(React.Suspense,{fallback:_jsx(Loader,{}),children:_jsx(CreateEditActionCategoriesAdmin,{...props})})]})]})};
@@ -1 +1 @@
1
- "use client";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{Button}from"@vitnode/core/components/ui/button";import{Dialog,DialogContent,DialogDescription,DialogHeader,DialogTitle,DialogTrigger}from"@vitnode/core/components/ui/dialog";import{Loader}from"@vitnode/core/components/ui/loader";import{PlusIcon}from"lucide-react";import{useTranslations}from"next-intl";import dynamic from"next/dynamic";import React from"react";const CreateEditActionPostsAdmin=dynamic(async()=>import("./create-edit/create-edit.js").then(module=>({default:module.CreateEditActionPostsAdmin})));export const ActionsPostsAdmin=()=>{const t=useTranslations("@vitnode/blog.admin.posts.create");return _jsxs(Dialog,{children:[_jsx(DialogTrigger,{asChild:true,children:_jsxs(Button,{children:[_jsx(PlusIcon,{}),t("title")]})}),_jsxs(DialogContent,{children:[_jsxs(DialogHeader,{children:[_jsx(DialogTitle,{children:t("title")}),_jsx(DialogDescription,{children:t("desc")})]}),_jsx(React.Suspense,{fallback:_jsx(Loader,{}),children:_jsx(CreateEditActionPostsAdmin,{})})]})]})};
1
+ "use client";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{Button}from"@vitnode/core/components/ui/button";import{Dialog,DialogContent,DialogDescription,DialogHeader,DialogTitle,DialogTrigger}from"@vitnode/core/components/ui/dialog";import{Loader}from"@vitnode/core/components/ui/loader";import{PlusIcon}from"lucide-react";import dynamic from"next/dynamic";import{useTranslations}from"next-intl";import React from"react";const CreateEditActionPostsAdmin=dynamic(async()=>import("./create-edit/create-edit.js").then(module=>({default:module.CreateEditActionPostsAdmin})));export const ActionsPostsAdmin=()=>{const t=useTranslations("@vitnode/blog.admin.posts.create");return _jsxs(Dialog,{children:[_jsx(DialogTrigger,{asChild:true,children:_jsxs(Button,{children:[_jsx(PlusIcon,{}),t("title")]})}),_jsxs(DialogContent,{children:[_jsxs(DialogHeader,{children:[_jsx(DialogTitle,{children:t("title")}),_jsx(DialogDescription,{children:t("desc")})]}),_jsx(React.Suspense,{fallback:_jsx(Loader,{}),children:_jsx(CreateEditActionPostsAdmin,{})})]})]})};
@@ -1,5 +1,5 @@
1
- import { z } from 'zod';
2
- import type { zodPostSchema } from '../../../../../api/modules/posts/routes/get.route';
1
+ import { z } from "zod";
2
+ import type { zodPostSchema } from "../../../../../api/modules/posts/routes/get.route";
3
3
  export declare const CreateEditActionPostsAdmin: ({ data, }: {
4
4
  data?: z.infer<typeof zodPostSchema> & {
5
5
  id?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"create-edit.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/admin/posts/actions/create-edit/create-edit.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAM1E,eAAO,MAAM,0BAA0B,GAAI,WAExC;IACD,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,GAAG;QAAE,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACxD,4CAiIA,CAAC"}
1
+ {"version":3,"file":"create-edit.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/admin/posts/actions/create-edit/create-edit.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAI1E,eAAO,MAAM,0BAA0B,GAAI,WAExC;IACD,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,GAAG;QAAE,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACxD,4CAiIA,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { z } from 'zod';
2
- import type { zodCreatePostSchema } from '../../../../../api/modules/admin/posts/routes/create.route';
1
+ import type { z } from "zod";
2
+ import type { zodCreatePostSchema } from "../../../../../api/modules/admin/posts/routes/create.route";
3
3
  export declare const createMutationApi: (body: z.infer<typeof zodCreatePostSchema>) => Promise<{
4
4
  error: string;
5
5
  } | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"mutation-api.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/admin/posts/actions/create-edit/mutation-api.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAK7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAIzF,eAAO,MAAM,iBAAiB,GAC5B,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC;;cAoB1C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,iBAGnC,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE;;cAsBtD,CAAC"}
1
+ {"version":3,"file":"mutation-api.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/admin/posts/actions/create-edit/mutation-api.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAEzF,eAAO,MAAM,iBAAiB,GAC5B,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC;;cAoB1C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,iBAGnC,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE;;cAsBtD,CAAC"}
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  declare const CreateEditActionPostsAdmin: React.ComponentType<{
3
3
  data?: import("zod").infer<typeof import("../../../../../api/modules/posts/routes/get.route").zodPostSchema> & {
4
4
  id?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"edit-action.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/admin/posts/table/actions/edit-action.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,QAAA,MAAM,0BAA0B;;UAetB,CAAN;;EAXH,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,OAAO,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,0BAA0B,CAAC,CAAC,4CA+BzE,CAAC"}
1
+ {"version":3,"file":"edit-action.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/admin/posts/table/actions/edit-action.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,QAAA,MAAM,0BAA0B;;UAetB,CAAR;;EAXD,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,OAAO,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,0BAA0B,CAAC,CAAC,4CA+BzE,CAAC"}
@@ -1 +1 @@
1
- "use client";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{Button}from"@vitnode/core/components/ui/button";import{Dialog,DialogContent,DialogDescription,DialogHeader,DialogTitle,DialogTrigger}from"@vitnode/core/components/ui/dialog";import{Loader}from"@vitnode/core/components/ui/loader";import{Tooltip,TooltipContent,TooltipProvider,TooltipTrigger}from"@vitnode/core/components/ui/tooltip";import{PencilIcon}from"lucide-react";import{useTranslations}from"next-intl";import dynamic from"next/dynamic";import React from"react";const CreateEditActionPostsAdmin=dynamic(async()=>import("../../actions/create-edit/create-edit.js").then(mod=>({default:mod.CreateEditActionPostsAdmin})));export const EditAction=props=>{const t=useTranslations("@vitnode/blog.admin.posts.edit");return _jsxs(Dialog,{children:[_jsx(TooltipProvider,{children:_jsxs(Tooltip,{children:[_jsx(TooltipTrigger,{asChild:true,children:_jsx(DialogTrigger,{asChild:true,children:_jsx(Button,{"aria-label":t("title"),size:"icon",variant:"ghost",children:_jsx(PencilIcon,{})})})}),_jsx(TooltipContent,{children:t("title")})]})}),_jsxs(DialogContent,{children:[_jsxs(DialogHeader,{children:[_jsx(DialogTitle,{children:t("title")}),_jsx(DialogDescription,{children:props.data.title})]}),_jsx(React.Suspense,{fallback:_jsx(Loader,{}),children:_jsx(CreateEditActionPostsAdmin,{...props})})]})]})};
1
+ "use client";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{Button}from"@vitnode/core/components/ui/button";import{Dialog,DialogContent,DialogDescription,DialogHeader,DialogTitle,DialogTrigger}from"@vitnode/core/components/ui/dialog";import{Loader}from"@vitnode/core/components/ui/loader";import{Tooltip,TooltipContent,TooltipProvider,TooltipTrigger}from"@vitnode/core/components/ui/tooltip";import{PencilIcon}from"lucide-react";import dynamic from"next/dynamic";import{useTranslations}from"next-intl";import React from"react";const CreateEditActionPostsAdmin=dynamic(async()=>import("../../actions/create-edit/create-edit.js").then(mod=>({default:mod.CreateEditActionPostsAdmin})));export const EditAction=props=>{const t=useTranslations("@vitnode/blog.admin.posts.edit");return _jsxs(Dialog,{children:[_jsx(TooltipProvider,{children:_jsxs(Tooltip,{children:[_jsx(TooltipTrigger,{asChild:true,children:_jsx(DialogTrigger,{asChild:true,children:_jsx(Button,{"aria-label":t("title"),size:"icon",variant:"ghost",children:_jsx(PencilIcon,{})})})}),_jsx(TooltipContent,{children:t("title")})]})}),_jsxs(DialogContent,{children:[_jsxs(DialogHeader,{children:[_jsx(DialogTitle,{children:t("title")}),_jsx(DialogDescription,{children:props.data.title})]}),_jsx(React.Suspense,{fallback:_jsx(Loader,{}),children:_jsx(CreateEditActionPostsAdmin,{...props})})]})]})};