@open-mercato/core 0.4.6-develop-e321a4e2a1 → 0.4.6-develop-079c26bb68
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.
- package/dist/modules/auth/backend/profile/page.js +9 -8
- package/dist/modules/auth/backend/profile/page.js.map +2 -2
- package/dist/modules/auth/backend/settings/page.js +9 -8
- package/dist/modules/auth/backend/settings/page.js.map +2 -2
- package/package.json +2 -2
- package/src/modules/auth/backend/profile/page.tsx +8 -15
- package/src/modules/auth/backend/settings/page.tsx +8 -15
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx
|
|
3
|
-
import {
|
|
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
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
|
5
|
-
"mappings": ";
|
|
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
|
|
3
|
-
import {
|
|
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
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
|
5
|
-
"mappings": ";
|
|
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-
|
|
3
|
+
"version": "0.4.6-develop-079c26bb68",
|
|
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-
|
|
210
|
+
"@open-mercato/shared": "0.4.6-develop-079c26bb68",
|
|
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
|
|
3
|
-
import {
|
|
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
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
|
3
|
-
import {
|
|
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
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
}
|