@yimingliao/cms 0.0.92 → 0.0.94

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.
@@ -475,48 +475,56 @@ function createSignInPage({
475
475
  }),
476
476
  { onSuccess: (data) => setAdmin(data?.admin || null) }
477
477
  );
478
- return /* @__PURE__ */ jsx(Form, { className: "mx-auto mt-20 w-96", onSubmit: () => void execute(), children: /* @__PURE__ */ jsxs(Card, { children: [
479
- /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "mx-auto", children: t("auth.sign-in.text") }) }),
480
- /* @__PURE__ */ jsxs(CardContent, { className: "relative flex flex-col gap-6", children: [
481
- /* @__PURE__ */ jsx(Field, { htmlFor: "email", label: t("auth.sign-in.email.text"), children: /* @__PURE__ */ jsx(
482
- Input,
483
- {
484
- id: "email",
485
- type: "email",
486
- placeholder: t("auth.sign-in.email.placeholder.text"),
487
- autoComplete: "email",
488
- fieldName: "email",
489
- value: formData.email,
490
- setFormData,
491
- isDisabled: isRedirecting,
492
- isError: errors.includes("email")
493
- }
494
- ) }),
495
- /* @__PURE__ */ jsx(Field, { htmlFor: "password", label: t("auth.sign-in.password.text"), children: /* @__PURE__ */ jsx(
496
- PasswordInput,
497
- {
498
- id: "password",
499
- placeholder: t("auth.sign-in.password.placeholder.text"),
500
- fieldName: "password",
501
- value: formData.password,
502
- setFormData,
503
- isDisabled: isRedirecting,
504
- isError: errors.includes("password")
505
- }
506
- ) }),
507
- /* @__PURE__ */ jsx(
508
- Button2,
509
- {
510
- size: "xs",
511
- variant: "link",
512
- className: "w-fit",
513
- isDisabled: isRedirecting,
514
- children: /* @__PURE__ */ jsx(Link, { href: PATHS.auth.forgotPassword.path, children: t("auth.sign-in.anchor.text") })
515
- }
516
- ),
517
- /* @__PURE__ */ jsx(Button2, { type: "submit", isLoading: isRedirecting, children: t("auth.sign-in.button.text") })
518
- ] })
519
- ] }) });
478
+ return /* @__PURE__ */ jsx(
479
+ Form,
480
+ {
481
+ className: "mx-auto w-96",
482
+ style: { marginTop: "56px" },
483
+ onSubmit: () => void execute(),
484
+ children: /* @__PURE__ */ jsxs(Card, { children: [
485
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "mx-auto", children: t("auth.sign-in.text") }) }),
486
+ /* @__PURE__ */ jsxs(CardContent, { className: "relative flex flex-col gap-6", children: [
487
+ /* @__PURE__ */ jsx(Field, { htmlFor: "email", label: t("auth.sign-in.email.text"), children: /* @__PURE__ */ jsx(
488
+ Input,
489
+ {
490
+ id: "email",
491
+ type: "email",
492
+ placeholder: t("auth.sign-in.email.placeholder.text"),
493
+ autoComplete: "email",
494
+ fieldName: "email",
495
+ value: formData.email,
496
+ setFormData,
497
+ isDisabled: isRedirecting,
498
+ isError: errors.includes("email")
499
+ }
500
+ ) }),
501
+ /* @__PURE__ */ jsx(Field, { htmlFor: "password", label: t("auth.sign-in.password.text"), children: /* @__PURE__ */ jsx(
502
+ PasswordInput,
503
+ {
504
+ id: "password",
505
+ placeholder: t("auth.sign-in.password.placeholder.text"),
506
+ fieldName: "password",
507
+ value: formData.password,
508
+ setFormData,
509
+ isDisabled: isRedirecting,
510
+ isError: errors.includes("password")
511
+ }
512
+ ) }),
513
+ /* @__PURE__ */ jsx(
514
+ Button2,
515
+ {
516
+ size: "xs",
517
+ variant: "link",
518
+ className: "w-fit",
519
+ isDisabled: isRedirecting,
520
+ children: /* @__PURE__ */ jsx(Link, { href: PATHS.auth.forgotPassword.path, children: t("auth.sign-in.anchor.text") })
521
+ }
522
+ ),
523
+ /* @__PURE__ */ jsx(Button2, { type: "submit", isLoading: isRedirecting, children: t("auth.sign-in.button.text") })
524
+ ] })
525
+ ] })
526
+ }
527
+ );
520
528
  };
521
529
  }
522
530
  function createVerifyEmailPage({
@@ -576,33 +584,41 @@ function createEmailUnverifiedPage({
576
584
  "\xA0",
577
585
  t("auth.email-unverified.button.send-again.text")
578
586
  ] });
579
- return /* @__PURE__ */ jsx(Form, { className: "mx-auto mt-20 w-96", onSubmit: () => void execute(), children: /* @__PURE__ */ jsxs(Card, { children: [
580
- /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "mx-auto", children: t("auth.email-unverified.text") }) }),
581
- /* @__PURE__ */ jsxs(CardContent, { className: "relative flex flex-col gap-6", children: [
582
- /* @__PURE__ */ jsxs(InputGroup, { children: [
583
- /* @__PURE__ */ jsx(InputGroupAddon, { children: /* @__PURE__ */ jsx(Label, { htmlFor: "email", className: "text-foreground", children: /* @__PURE__ */ jsx(Mail, { className: "size-4" }) }) }),
584
- isLoading ? /* @__PURE__ */ jsx("div", { className: "px-2", children: /* @__PURE__ */ jsx(Spinner, {}) }) : /* @__PURE__ */ jsx(
585
- InputGroupInput,
586
- {
587
- id: "email",
588
- placeholder: "shadcn@vercel.com",
589
- disabled: true,
590
- value: admin?.email
591
- }
592
- )
593
- ] }),
594
- /* @__PURE__ */ jsx(CardDescription, { children: /* @__PURE__ */ jsx("p", { className: "text-sm whitespace-pre-line", children: t("auth.email-unverified.notice.text") }) }),
595
- /* @__PURE__ */ jsx(
596
- Button2,
597
- {
598
- type: "submit",
599
- isLoading: isLoading || isPending,
600
- isDisabled: isCounting,
601
- children: buttonText
602
- }
603
- )
604
- ] })
605
- ] }) });
587
+ return /* @__PURE__ */ jsx(
588
+ Form,
589
+ {
590
+ className: "mx-auto w-96",
591
+ style: { marginTop: "56px" },
592
+ onSubmit: () => void execute(),
593
+ children: /* @__PURE__ */ jsxs(Card, { children: [
594
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "mx-auto", children: t("auth.email-unverified.text") }) }),
595
+ /* @__PURE__ */ jsxs(CardContent, { className: "relative flex flex-col gap-6", children: [
596
+ /* @__PURE__ */ jsxs(InputGroup, { children: [
597
+ /* @__PURE__ */ jsx(InputGroupAddon, { children: /* @__PURE__ */ jsx(Label, { htmlFor: "email", className: "text-foreground", children: /* @__PURE__ */ jsx(Mail, { className: "size-4" }) }) }),
598
+ isLoading ? /* @__PURE__ */ jsx("div", { className: "px-2", children: /* @__PURE__ */ jsx(Spinner, {}) }) : /* @__PURE__ */ jsx(
599
+ InputGroupInput,
600
+ {
601
+ id: "email",
602
+ placeholder: "shadcn@vercel.com",
603
+ disabled: true,
604
+ value: admin?.email
605
+ }
606
+ )
607
+ ] }),
608
+ /* @__PURE__ */ jsx(CardDescription, { children: /* @__PURE__ */ jsx("p", { className: "text-sm whitespace-pre-line", children: t("auth.email-unverified.notice.text") }) }),
609
+ /* @__PURE__ */ jsx(
610
+ Button2,
611
+ {
612
+ type: "submit",
613
+ isLoading: isLoading || isPending,
614
+ isDisabled: isCounting,
615
+ children: buttonText
616
+ }
617
+ )
618
+ ] })
619
+ ] })
620
+ }
621
+ );
606
622
  };
607
623
  }
608
624
  function createForgotPasswordPage({
@@ -627,35 +643,43 @@ function createForgotPasswordPage({
627
643
  "\xA0",
628
644
  t("auth.forgot-password.button.send-again.text")
629
645
  ] });
630
- return /* @__PURE__ */ jsx(Form, { className: "mx-auto mt-20 w-96", onSubmit: () => void execute(), children: /* @__PURE__ */ jsxs(Card, { children: [
631
- /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "mx-auto", children: t("auth.forgot-password.text") }) }),
632
- /* @__PURE__ */ jsxs(CardContent, { className: "relative flex flex-col gap-6", children: [
633
- /* @__PURE__ */ jsx(Field, { htmlFor: "email", label: t("auth.forgot-password.email.text"), children: /* @__PURE__ */ jsx(
634
- Input,
635
- {
636
- id: "email",
637
- placeholder: t("auth.forgot-password.email.placeholder.text"),
638
- autoComplete: "email",
639
- fieldName: "email",
640
- value: formData.email,
641
- setFormData,
642
- isDisabled: isPending || isCounting,
643
- isError: errors.includes("email")
644
- }
645
- ) }),
646
- /* @__PURE__ */ jsx(
647
- Button2,
648
- {
649
- size: "xs",
650
- variant: "link",
651
- className: "w-fit",
652
- isDisabled: isPending,
653
- children: /* @__PURE__ */ jsx(Link, { href: PATHS.auth.signIn.path, children: t("auth.forgot-password.anchor.text") })
654
- }
655
- ),
656
- /* @__PURE__ */ jsx(Button2, { type: "submit", isLoading: isPending, isDisabled: isCounting, children: buttonText })
657
- ] })
658
- ] }) });
646
+ return /* @__PURE__ */ jsx(
647
+ Form,
648
+ {
649
+ className: "mx-auto w-96",
650
+ style: { marginTop: "56px" },
651
+ onSubmit: () => void execute(),
652
+ children: /* @__PURE__ */ jsxs(Card, { children: [
653
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "mx-auto", children: t("auth.forgot-password.text") }) }),
654
+ /* @__PURE__ */ jsxs(CardContent, { className: "relative flex flex-col gap-6", children: [
655
+ /* @__PURE__ */ jsx(Field, { htmlFor: "email", label: t("auth.forgot-password.email.text"), children: /* @__PURE__ */ jsx(
656
+ Input,
657
+ {
658
+ id: "email",
659
+ placeholder: t("auth.forgot-password.email.placeholder.text"),
660
+ autoComplete: "email",
661
+ fieldName: "email",
662
+ value: formData.email,
663
+ setFormData,
664
+ isDisabled: isPending || isCounting,
665
+ isError: errors.includes("email")
666
+ }
667
+ ) }),
668
+ /* @__PURE__ */ jsx(
669
+ Button2,
670
+ {
671
+ size: "xs",
672
+ variant: "link",
673
+ className: "w-fit",
674
+ isDisabled: isPending,
675
+ children: /* @__PURE__ */ jsx(Link, { href: PATHS.auth.signIn.path, children: t("auth.forgot-password.anchor.text") })
676
+ }
677
+ ),
678
+ /* @__PURE__ */ jsx(Button2, { type: "submit", isLoading: isPending, isDisabled: isCounting, children: buttonText })
679
+ ] })
680
+ ] })
681
+ }
682
+ );
659
683
  };
660
684
  }
661
685
  function createResetPasswordPage({
@@ -674,64 +698,72 @@ function createResetPasswordPage({
674
698
  () => resetPasswordAction({ formData: { passwordResetToken, ...formData } }),
675
699
  { onSuccess: () => router.push(PATHS.auth.signIn.path) }
676
700
  );
677
- return /* @__PURE__ */ jsx(Form, { className: "mx-auto mt-20 w-96", onSubmit: () => void execute(), children: /* @__PURE__ */ jsxs(Card, { children: [
678
- /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "mx-auto", children: t("auth.reset-password.text") }) }),
679
- /* @__PURE__ */ jsxs(CardContent, { className: "relative flex flex-col gap-6", children: [
680
- /* @__PURE__ */ jsx(
681
- Field,
682
- {
683
- htmlFor: "newPassword",
684
- label: t("auth.reset-password.new-password.text"),
685
- children: /* @__PURE__ */ jsx(
686
- PasswordInput,
701
+ return /* @__PURE__ */ jsx(
702
+ Form,
703
+ {
704
+ className: "mx-auto w-96",
705
+ style: { marginTop: "56px" },
706
+ onSubmit: () => void execute(),
707
+ children: /* @__PURE__ */ jsxs(Card, { children: [
708
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "mx-auto", children: t("auth.reset-password.text") }) }),
709
+ /* @__PURE__ */ jsxs(CardContent, { className: "relative flex flex-col gap-6", children: [
710
+ /* @__PURE__ */ jsx(
711
+ Field,
687
712
  {
688
- id: "newPassword",
689
- placeholder: t(
690
- "auth.reset-password.new-password.placeholder.text"
691
- ),
692
- fieldName: "newPassword",
693
- value: formData.newPassword,
694
- setFormData,
695
- isDisabled: isRedirecting,
696
- isError: errors.includes("newPassword")
713
+ htmlFor: "newPassword",
714
+ label: t("auth.reset-password.new-password.text"),
715
+ children: /* @__PURE__ */ jsx(
716
+ PasswordInput,
717
+ {
718
+ id: "newPassword",
719
+ placeholder: t(
720
+ "auth.reset-password.new-password.placeholder.text"
721
+ ),
722
+ fieldName: "newPassword",
723
+ value: formData.newPassword,
724
+ setFormData,
725
+ isDisabled: isRedirecting,
726
+ isError: errors.includes("newPassword")
727
+ }
728
+ )
697
729
  }
698
- )
699
- }
700
- ),
701
- /* @__PURE__ */ jsx(
702
- Field,
703
- {
704
- htmlFor: "newPasswordConfirm",
705
- label: t("auth.reset-password.new-password-confirm.text"),
706
- children: /* @__PURE__ */ jsx(
707
- PasswordInput,
730
+ ),
731
+ /* @__PURE__ */ jsx(
732
+ Field,
708
733
  {
709
- id: "newPasswordConfirm",
710
- placeholder: t(
711
- `auth.reset-password.new-password-confirm.placeholder.text`
712
- ),
713
- fieldName: "newPasswordConfirm",
714
- value: formData.newPasswordConfirm,
715
- setFormData,
734
+ htmlFor: "newPasswordConfirm",
735
+ label: t("auth.reset-password.new-password-confirm.text"),
736
+ children: /* @__PURE__ */ jsx(
737
+ PasswordInput,
738
+ {
739
+ id: "newPasswordConfirm",
740
+ placeholder: t(
741
+ `auth.reset-password.new-password-confirm.placeholder.text`
742
+ ),
743
+ fieldName: "newPasswordConfirm",
744
+ value: formData.newPasswordConfirm,
745
+ setFormData,
746
+ isDisabled: isRedirecting,
747
+ isError: errors.includes("newPasswordConfirm")
748
+ }
749
+ )
750
+ }
751
+ ),
752
+ /* @__PURE__ */ jsx(
753
+ Button2,
754
+ {
755
+ size: "xs",
756
+ variant: "link",
757
+ className: "w-fit",
716
758
  isDisabled: isRedirecting,
717
- isError: errors.includes("newPasswordConfirm")
759
+ children: /* @__PURE__ */ jsx(Link, { href: PATHS.auth.signIn.path, children: t("auth.reset-password.anchor.text") })
718
760
  }
719
- )
720
- }
721
- ),
722
- /* @__PURE__ */ jsx(
723
- Button2,
724
- {
725
- size: "xs",
726
- variant: "link",
727
- className: "w-fit",
728
- isDisabled: isRedirecting,
729
- children: /* @__PURE__ */ jsx(Link, { href: PATHS.auth.signIn.path, children: t("auth.reset-password.anchor.text") })
730
- }
731
- ),
732
- /* @__PURE__ */ jsx(Button2, { type: "submit", isLoading: isRedirecting, children: t("auth.reset-password.button.text") })
733
- ] })
734
- ] }) });
761
+ ),
762
+ /* @__PURE__ */ jsx(Button2, { type: "submit", isLoading: isRedirecting, children: t("auth.reset-password.button.text") })
763
+ ] })
764
+ ] })
765
+ }
766
+ );
735
767
  };
736
768
  }
737
769
  function createChangePasswordPage({
@@ -756,86 +788,94 @@ function createChangePasswordPage({
756
788
  }),
757
789
  { onSuccess: () => router.push(PATHS.main.dashboard.path) }
758
790
  );
759
- return /* @__PURE__ */ jsx(Form, { className: "mx-auto mt-20 w-96", onSubmit: () => void execute(), children: /* @__PURE__ */ jsxs(Card, { children: [
760
- /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "mx-auto", children: t("auth.change-password.text") }) }),
761
- /* @__PURE__ */ jsxs(CardContent, { className: "relative flex flex-col gap-6", children: [
762
- /* @__PURE__ */ jsx(
763
- Field,
764
- {
765
- htmlFor: "password",
766
- label: t("auth.change-password.password.text"),
767
- children: /* @__PURE__ */ jsx(
768
- PasswordInput,
791
+ return /* @__PURE__ */ jsx(
792
+ Form,
793
+ {
794
+ className: "mx-auto w-96",
795
+ style: { marginTop: "56px" },
796
+ onSubmit: () => void execute(),
797
+ children: /* @__PURE__ */ jsxs(Card, { children: [
798
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "mx-auto", children: t("auth.change-password.text") }) }),
799
+ /* @__PURE__ */ jsxs(CardContent, { className: "relative flex flex-col gap-6", children: [
800
+ /* @__PURE__ */ jsx(
801
+ Field,
769
802
  {
770
- id: "password",
771
- placeholder: t(
772
- "auth.change-password.password.placeholder.text"
773
- ),
774
- fieldName: "password",
775
- value: formData.password,
776
- setFormData,
777
- isDisabled: isRedirecting,
778
- isError: errors.includes("password")
803
+ htmlFor: "password",
804
+ label: t("auth.change-password.password.text"),
805
+ children: /* @__PURE__ */ jsx(
806
+ PasswordInput,
807
+ {
808
+ id: "password",
809
+ placeholder: t(
810
+ "auth.change-password.password.placeholder.text"
811
+ ),
812
+ fieldName: "password",
813
+ value: formData.password,
814
+ setFormData,
815
+ isDisabled: isRedirecting,
816
+ isError: errors.includes("password")
817
+ }
818
+ )
779
819
  }
780
- )
781
- }
782
- ),
783
- /* @__PURE__ */ jsx(
784
- Field,
785
- {
786
- htmlFor: "newPassword",
787
- label: t("auth.change-password.new-password.text"),
788
- children: /* @__PURE__ */ jsx(
789
- PasswordInput,
820
+ ),
821
+ /* @__PURE__ */ jsx(
822
+ Field,
790
823
  {
791
- id: "newPassword",
792
- placeholder: t(
793
- "auth.change-password.new-password.placeholder.text"
794
- ),
795
- fieldName: "newPassword",
796
- value: formData.newPassword,
797
- setFormData,
798
- isDisabled: isRedirecting,
799
- isError: errors.includes("newPassword")
824
+ htmlFor: "newPassword",
825
+ label: t("auth.change-password.new-password.text"),
826
+ children: /* @__PURE__ */ jsx(
827
+ PasswordInput,
828
+ {
829
+ id: "newPassword",
830
+ placeholder: t(
831
+ "auth.change-password.new-password.placeholder.text"
832
+ ),
833
+ fieldName: "newPassword",
834
+ value: formData.newPassword,
835
+ setFormData,
836
+ isDisabled: isRedirecting,
837
+ isError: errors.includes("newPassword")
838
+ }
839
+ )
800
840
  }
801
- )
802
- }
803
- ),
804
- /* @__PURE__ */ jsx(
805
- Field,
806
- {
807
- htmlFor: "newPasswordConfirm",
808
- label: t("auth.change-password.new-password-confirm.text"),
809
- children: /* @__PURE__ */ jsx(
810
- PasswordInput,
841
+ ),
842
+ /* @__PURE__ */ jsx(
843
+ Field,
811
844
  {
812
- id: "newPasswordConfirm",
813
- placeholder: t(
814
- "auth.change-password.new-password-confirm.placeholder.text"
815
- ),
816
- fieldName: "newPasswordConfirm",
817
- value: formData.newPasswordConfirm,
818
- setFormData,
845
+ htmlFor: "newPasswordConfirm",
846
+ label: t("auth.change-password.new-password-confirm.text"),
847
+ children: /* @__PURE__ */ jsx(
848
+ PasswordInput,
849
+ {
850
+ id: "newPasswordConfirm",
851
+ placeholder: t(
852
+ "auth.change-password.new-password-confirm.placeholder.text"
853
+ ),
854
+ fieldName: "newPasswordConfirm",
855
+ value: formData.newPasswordConfirm,
856
+ setFormData,
857
+ isDisabled: isRedirecting,
858
+ isError: errors.includes("newPasswordConfirm")
859
+ }
860
+ )
861
+ }
862
+ ),
863
+ /* @__PURE__ */ jsx(
864
+ Button2,
865
+ {
866
+ size: "xs",
867
+ variant: "link",
868
+ className: "w-fit",
819
869
  isDisabled: isRedirecting,
820
- isError: errors.includes("newPasswordConfirm")
870
+ children: /* @__PURE__ */ jsx(Link, { href: PATHS.main.dashboard.path, children: t("auth.change-password.anchor.text") })
821
871
  }
822
- )
823
- }
824
- ),
825
- /* @__PURE__ */ jsx(
826
- Button2,
827
- {
828
- size: "xs",
829
- variant: "link",
830
- className: "w-fit",
831
- isDisabled: isRedirecting,
832
- children: /* @__PURE__ */ jsx(Link, { href: PATHS.main.dashboard.path, children: t("auth.change-password.anchor.text") })
833
- }
834
- ),
835
- /* @__PURE__ */ jsx(Button2, { type: "submit", isLoading: isRedirecting, children: t("auth.change-password.button.text") }),
836
- " "
837
- ] })
838
- ] }) });
872
+ ),
873
+ /* @__PURE__ */ jsx(Button2, { type: "submit", isLoading: isRedirecting, children: t("auth.change-password.button.text") }),
874
+ " "
875
+ ] })
876
+ ] })
877
+ }
878
+ );
839
879
  };
840
880
  }
841
881
 
@@ -3251,8 +3251,16 @@ function createFileSoftDeleteManyAction(ctx) {
3251
3251
  const { ids: ids2 } = await fileSoftDeleteManyValidator(schemas).parseAsync(formData);
3252
3252
  const foundFiles = await fileQueryRepository.findManyByIds({ ids: ids2 });
3253
3253
  if (foundFiles.length === 0) throw ServerError.notFound();
3254
- const targetIds = foundFiles.filter((f) => !f.isLocked).map((f) => f.id);
3255
- const hasLockedFile = ids2.length !== targetIds.length;
3254
+ const lockedFiles = [];
3255
+ const targetIds = [];
3256
+ for (const file of foundFiles) {
3257
+ if (isFileLocked(file)) {
3258
+ lockedFiles.push(file.id);
3259
+ } else {
3260
+ targetIds.push(file.id);
3261
+ }
3262
+ }
3263
+ const hasLockedFile = lockedFiles.length > 0;
3256
3264
  const count = await fileCommandRepository.softDeleteMany({
3257
3265
  ids: targetIds
3258
3266
  });
@@ -3260,7 +3268,7 @@ function createFileSoftDeleteManyAction(ctx) {
3260
3268
  throw new ServerError({ i18nKey: "error.files-batch-destroy-no" });
3261
3269
  }
3262
3270
  return {
3263
- i18nKey: hasLockedFile ? "ok.destroy-ok" : "ok.files-batch-destroy-has-locked"
3271
+ i18nKey: hasLockedFile ? "ok.files-batch-destroy-has-locked" : "ok.destroy-ok"
3264
3272
  };
3265
3273
  },
3266
3274
  { type: "command" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yimingliao/cms",
3
- "version": "0.0.92",
3
+ "version": "0.0.94",
4
4
  "author": "Yiming Liao",
5
5
  "license": "MIT",
6
6
  "type": "module",