@open-mercato/core 0.4.6-develop-e321a4e2a1 → 0.4.6-develop-7889bc5a01

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.
@@ -1,13 +1,14 @@
1
1
  "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { useT } from "@open-mercato/shared/lib/i18n/context";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { useEffect } from "react";
4
+ import { useRouter } from "next/navigation";
5
+ import { Spinner } from "@open-mercato/ui/primitives/spinner";
4
6
  function ProfilePage() {
5
- const t = useT();
6
- return /* @__PURE__ */ jsxs("div", { className: "max-w-2xl", children: [
7
- /* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold mb-2", children: t("profile.page.title", "Profile") }),
8
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mb-6", children: t("profile.page.description", "Manage your account settings") }),
9
- /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("profile.page.selectItem", "Select an item from the menu to manage your account.") })
10
- ] });
7
+ const router = useRouter();
8
+ useEffect(() => {
9
+ router.replace("/backend/profile/change-password");
10
+ }, [router]);
11
+ return /* @__PURE__ */ jsx(Spinner, { className: "h-4 w-4" });
11
12
  }
12
13
  export {
13
14
  ProfilePage as default
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/modules/auth/backend/profile/page.tsx"],
4
- "sourcesContent": ["'use client'\nimport * as React from 'react'\nimport { useT } from '@open-mercato/shared/lib/i18n/context'\n\nexport default function ProfilePage() {\n const t = useT()\n\n return (\n <div className=\"max-w-2xl\">\n <h1 className=\"text-2xl font-bold mb-2\">{t('profile.page.title', 'Profile')}</h1>\n <p className=\"text-muted-foreground mb-6\">\n {t('profile.page.description', 'Manage your account settings')}\n </p>\n <p className=\"text-sm text-muted-foreground\">\n {t('profile.page.selectItem', 'Select an item from the menu to manage your account.')}\n </p>\n </div>\n )\n}\n"],
5
- "mappings": ";AAQI,SACE,KADF;AANJ,SAAS,YAAY;AAEN,SAAR,cAA+B;AACpC,QAAM,IAAI,KAAK;AAEf,SACE,qBAAC,SAAI,WAAU,aACb;AAAA,wBAAC,QAAG,WAAU,2BAA2B,YAAE,sBAAsB,SAAS,GAAE;AAAA,IAC5E,oBAAC,OAAE,WAAU,8BACV,YAAE,4BAA4B,8BAA8B,GAC/D;AAAA,IACA,oBAAC,OAAE,WAAU,iCACV,YAAE,2BAA2B,sDAAsD,GACtF;AAAA,KACF;AAEJ;",
4
+ "sourcesContent": ["'use client'\nimport { useEffect } from 'react'\nimport { useRouter } from 'next/navigation'\nimport { Spinner } from '@open-mercato/ui/primitives/spinner'\n\nexport default function ProfilePage() {\n const router = useRouter()\n useEffect(() => {\n router.replace('/backend/profile/change-password')\n }, [router])\n return <Spinner className=\"h-4 w-4\" />\n}\n"],
5
+ "mappings": ";AAUS;AATT,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AAET,SAAR,cAA+B;AACpC,QAAM,SAAS,UAAU;AACzB,YAAU,MAAM;AACd,WAAO,QAAQ,kCAAkC;AAAA,EACnD,GAAG,CAAC,MAAM,CAAC;AACX,SAAO,oBAAC,WAAQ,WAAU,WAAU;AACtC;",
6
6
  "names": []
7
7
  }
@@ -1,13 +1,14 @@
1
1
  "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { useT } from "@open-mercato/shared/lib/i18n/context";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { useEffect } from "react";
4
+ import { useRouter } from "next/navigation";
5
+ import { Spinner } from "@open-mercato/ui/primitives/spinner";
4
6
  function SettingsPage() {
5
- const t = useT();
6
- return /* @__PURE__ */ jsxs("div", { className: "max-w-2xl", children: [
7
- /* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold mb-2", children: t("settings.page.title", "Settings") }),
8
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mb-6", children: t("settings.page.description", "System configuration and administration") }),
9
- /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("settings.page.selectItem", "Select an item from the menu to configure system settings.") })
10
- ] });
7
+ const router = useRouter();
8
+ useEffect(() => {
9
+ router.replace("/backend/config/system-status");
10
+ }, [router]);
11
+ return /* @__PURE__ */ jsx(Spinner, { className: "h-4 w-4" });
11
12
  }
12
13
  export {
13
14
  SettingsPage as default
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/modules/auth/backend/settings/page.tsx"],
4
- "sourcesContent": ["'use client'\nimport * as React from 'react'\nimport { useT } from '@open-mercato/shared/lib/i18n/context'\n\nexport default function SettingsPage() {\n const t = useT()\n\n return (\n <div className=\"max-w-2xl\">\n <h1 className=\"text-2xl font-bold mb-2\">{t('settings.page.title', 'Settings')}</h1>\n <p className=\"text-muted-foreground mb-6\">\n {t('settings.page.description', 'System configuration and administration')}\n </p>\n <p className=\"text-sm text-muted-foreground\">\n {t('settings.page.selectItem', 'Select an item from the menu to configure system settings.')}\n </p>\n </div>\n )\n}\n"],
5
- "mappings": ";AAQI,SACE,KADF;AANJ,SAAS,YAAY;AAEN,SAAR,eAAgC;AACrC,QAAM,IAAI,KAAK;AAEf,SACE,qBAAC,SAAI,WAAU,aACb;AAAA,wBAAC,QAAG,WAAU,2BAA2B,YAAE,uBAAuB,UAAU,GAAE;AAAA,IAC9E,oBAAC,OAAE,WAAU,8BACV,YAAE,6BAA6B,yCAAyC,GAC3E;AAAA,IACA,oBAAC,OAAE,WAAU,iCACV,YAAE,4BAA4B,4DAA4D,GAC7F;AAAA,KACF;AAEJ;",
4
+ "sourcesContent": ["'use client'\nimport { useEffect } from 'react'\nimport { useRouter } from 'next/navigation'\nimport { Spinner } from '@open-mercato/ui/primitives/spinner'\n\nexport default function SettingsPage() {\n const router = useRouter()\n useEffect(() => {\n router.replace('/backend/config/system-status')\n }, [router])\n return <Spinner className=\"h-4 w-4\" />\n}\n"],
5
+ "mappings": ";AAUS;AATT,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AAET,SAAR,eAAgC;AACrC,QAAM,SAAS,UAAU;AACzB,YAAU,MAAM;AACd,WAAO,QAAQ,+BAA+B;AAAA,EAChD,GAAG,CAAC,MAAM,CAAC;AACX,SAAO,oBAAC,WAAQ,WAAU,WAAU;AACtC;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-mercato/core",
3
- "version": "0.4.6-develop-e321a4e2a1",
3
+ "version": "0.4.6-develop-7889bc5a01",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -207,7 +207,7 @@
207
207
  }
208
208
  },
209
209
  "dependencies": {
210
- "@open-mercato/shared": "0.4.6-develop-e321a4e2a1",
210
+ "@open-mercato/shared": "0.4.6-develop-7889bc5a01",
211
211
  "@types/html-to-text": "^9.0.4",
212
212
  "@types/semver": "^7.5.8",
213
213
  "@xyflow/react": "^12.6.0",
@@ -1,19 +1,12 @@
1
1
  'use client'
2
- import * as React from 'react'
3
- import { useT } from '@open-mercato/shared/lib/i18n/context'
2
+ import { useEffect } from 'react'
3
+ import { useRouter } from 'next/navigation'
4
+ import { Spinner } from '@open-mercato/ui/primitives/spinner'
4
5
 
5
6
  export default function ProfilePage() {
6
- const t = useT()
7
-
8
- return (
9
- <div className="max-w-2xl">
10
- <h1 className="text-2xl font-bold mb-2">{t('profile.page.title', 'Profile')}</h1>
11
- <p className="text-muted-foreground mb-6">
12
- {t('profile.page.description', 'Manage your account settings')}
13
- </p>
14
- <p className="text-sm text-muted-foreground">
15
- {t('profile.page.selectItem', 'Select an item from the menu to manage your account.')}
16
- </p>
17
- </div>
18
- )
7
+ const router = useRouter()
8
+ useEffect(() => {
9
+ router.replace('/backend/profile/change-password')
10
+ }, [router])
11
+ return <Spinner className="h-4 w-4" />
19
12
  }
@@ -1,19 +1,12 @@
1
1
  'use client'
2
- import * as React from 'react'
3
- import { useT } from '@open-mercato/shared/lib/i18n/context'
2
+ import { useEffect } from 'react'
3
+ import { useRouter } from 'next/navigation'
4
+ import { Spinner } from '@open-mercato/ui/primitives/spinner'
4
5
 
5
6
  export default function SettingsPage() {
6
- const t = useT()
7
-
8
- return (
9
- <div className="max-w-2xl">
10
- <h1 className="text-2xl font-bold mb-2">{t('settings.page.title', 'Settings')}</h1>
11
- <p className="text-muted-foreground mb-6">
12
- {t('settings.page.description', 'System configuration and administration')}
13
- </p>
14
- <p className="text-sm text-muted-foreground">
15
- {t('settings.page.selectItem', 'Select an item from the menu to configure system settings.')}
16
- </p>
17
- </div>
18
- )
7
+ const router = useRouter()
8
+ useEffect(() => {
9
+ router.replace('/backend/config/system-status')
10
+ }, [router])
11
+ return <Spinner className="h-4 w-4" />
19
12
  }