@windrun-huaiin/third-ui 11.1.0 → 12.0.0
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/clerk/clerk-optional-auth.d.ts +12 -0
- package/dist/clerk/clerk-optional-auth.js +33 -0
- package/dist/clerk/clerk-optional-auth.mjs +31 -0
- package/dist/clerk/clerk-provider-client.d.ts +3 -1
- package/dist/clerk/clerk-provider-client.js +22 -12
- package/dist/clerk/clerk-provider-client.mjs +22 -12
- package/dist/clerk/optional-auth.d.ts +12 -0
- package/dist/clerk/optional-auth.js +47 -0
- package/dist/clerk/optional-auth.mjs +45 -0
- package/dist/clerk/patch/optional-auth.d.ts +11 -0
- package/dist/clerk/patch/optional-auth.js +27 -0
- package/dist/clerk/patch/optional-auth.mjs +25 -0
- package/dist/fuma/base/custom-home-layout.d.ts +9 -1
- package/dist/fuma/base/custom-home-layout.js +2 -2
- package/dist/fuma/base/custom-home-layout.mjs +2 -2
- package/dist/fuma/fuma-page-genarator.d.ts +3 -1
- package/dist/fuma/fuma-page-genarator.js +8 -3
- package/dist/fuma/fuma-page-genarator.mjs +8 -3
- package/dist/lib/seo-util.d.ts +6 -2
- package/dist/lib/seo-util.js +21 -11
- package/dist/lib/seo-util.mjs +21 -11
- package/dist/main/credit/credit-overview-client.js +2 -2
- package/dist/main/credit/credit-overview-client.mjs +2 -2
- package/dist/main/footer-email.js +1 -1
- package/dist/main/footer-email.mjs +1 -1
- package/dist/main/footer.d.ts +6 -2
- package/dist/main/footer.js +3 -2
- package/dist/main/footer.mjs +3 -2
- package/package.json +8 -3
- package/src/clerk/clerk-provider-client.tsx +37 -12
- package/src/clerk/patch/optional-auth.ts +24 -0
- package/src/fuma/base/custom-home-layout.tsx +11 -1
- package/src/fuma/fuma-page-genarator.tsx +19 -4
- package/src/lib/seo-util.ts +27 -13
- package/src/main/credit/credit-overview-client.tsx +4 -4
- package/src/main/footer-email.tsx +1 -1
- package/src/main/footer.tsx +10 -3
package/src/main/footer.tsx
CHANGED
|
@@ -3,6 +3,7 @@ import { globalLucideIcons as icons } from '@windrun-huaiin/base-ui/components/s
|
|
|
3
3
|
import Link from "next/link";
|
|
4
4
|
import { FooterEmail } from './footer-email';
|
|
5
5
|
import { safeT } from '../lib/t-intl';
|
|
6
|
+
import { getAsNeededLocalizedUrl } from '@windrun-huaiin/lib';
|
|
6
7
|
|
|
7
8
|
interface FooterData {
|
|
8
9
|
terms: string;
|
|
@@ -15,7 +16,13 @@ interface FooterData {
|
|
|
15
16
|
copiedText: string;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
interface FooterProps {
|
|
20
|
+
locale: string;
|
|
21
|
+
localPrefixAsNeeded?: boolean;
|
|
22
|
+
defaultLocale?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export async function Footer({ locale, localPrefixAsNeeded = true, defaultLocale = 'en' }: FooterProps) {
|
|
19
26
|
const tFooter = await getTranslations({ locale, namespace: 'footer' });
|
|
20
27
|
|
|
21
28
|
const company = safeT(tFooter, 'company', '');
|
|
@@ -36,11 +43,11 @@ export async function Footer({ locale }: { locale: string }) {
|
|
|
36
43
|
<footer>
|
|
37
44
|
<div className="w-full flex flex-col items-center justify-center px-4 py-8 space-y-3">
|
|
38
45
|
<div className="flex flex-wrap items-center justify-center gap-x-2 gap-y-2 text-xs sm:text-sm sm:gap-x-6">
|
|
39
|
-
<Link href={
|
|
46
|
+
<Link href={getAsNeededLocalizedUrl(locale, "/legal/terms", localPrefixAsNeeded, defaultLocale)} className="flex items-center space-x-1 hover:underline">
|
|
40
47
|
<icons.ReceiptText className="h-3.5 w-3.5"/>
|
|
41
48
|
<span>{data.terms}</span>
|
|
42
49
|
</Link>
|
|
43
|
-
<Link href={
|
|
50
|
+
<Link href={getAsNeededLocalizedUrl(locale, "/legal/privacy", localPrefixAsNeeded, defaultLocale)} className="flex items-center space-x-1 hover:underline">
|
|
44
51
|
<icons.ShieldUser className="h-3.5 w-3.5"/>
|
|
45
52
|
<span>{data.privacy}</span>
|
|
46
53
|
</Link>
|