@ichaingo/footer 1.5.21 → 1.5.23
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/index.d.ts.map +1 -1
- package/dist/index.js +37 -27
- package/dist/year.d.ts +2 -0
- package/dist/year.d.ts.map +1 -0
- package/package.json +4 -4
- package/src/index.tsx +2 -1
- package/src/year.tsx +11 -0
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,CAAC,OAAO,UAAU,MAAM,sBAqD7B"}
|
package/dist/index.js
CHANGED
|
@@ -1,42 +1,52 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
3
|
import c from "@ichaingo/image";
|
|
3
|
-
import
|
|
4
|
-
import { useLocale as
|
|
5
|
-
import
|
|
6
|
-
import { Mail as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
import r from "@ichaingo/link";
|
|
5
|
+
import { useLocale as i } from "next-intl";
|
|
6
|
+
import l from "@ichaingo/translation";
|
|
7
|
+
import { Mail as s } from "lucide-react";
|
|
8
|
+
import { useState as n, useEffect as f } from "react";
|
|
9
|
+
function m() {
|
|
10
|
+
const [a, o] = n("");
|
|
11
|
+
return f(() => {
|
|
12
|
+
o((/* @__PURE__ */ new Date()).getFullYear().toString());
|
|
13
|
+
}, []), a;
|
|
14
|
+
}
|
|
15
|
+
function N() {
|
|
16
|
+
const a = i();
|
|
17
|
+
return /* @__PURE__ */ e("footer", { className: "md:bg-module text-xs w-full p-3 mt-3", children: /* @__PURE__ */ t("div", { className: "max-w-300 flex flex-col md:flex-row justify-center mx-auto w-full py-3", children: [
|
|
18
|
+
/* @__PURE__ */ t("div", { className: "w-full md:w-1/2 flex flex-col py-3 md:py-0 gap-3 md:gap-0 justify-between", children: [
|
|
11
19
|
/* @__PURE__ */ e(c, { src: `${process.env.NEXT_PUBLIC_CDN_URL}/uploads/2025/11/26/6926f275c68ed.png`, width: 116, height: 32, objectFit: "contain" }),
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
"©
|
|
14
|
-
|
|
20
|
+
/* @__PURE__ */ t("div", { className: "text-subtitle", children: [
|
|
21
|
+
"© ",
|
|
22
|
+
m(),
|
|
23
|
+
" iChatGo ",
|
|
24
|
+
/* @__PURE__ */ e(l, { value: "allRightsReserved", parentKey: "footer" })
|
|
15
25
|
] })
|
|
16
26
|
] }),
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */ e("div", { className: "text-title", children: /* @__PURE__ */ e(
|
|
20
|
-
/* @__PURE__ */ e("div", { className: "text-subtitle flex flex-col gap-3", children: /* @__PURE__ */ e(
|
|
27
|
+
/* @__PURE__ */ t("div", { className: "flex flex-col md:flex-row justify-between shrink-0 w-full md:w-1/2", children: [
|
|
28
|
+
/* @__PURE__ */ t("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
|
|
29
|
+
/* @__PURE__ */ e("div", { className: "text-title", children: /* @__PURE__ */ e(l, { value: "product", parentKey: "footer" }) }),
|
|
30
|
+
/* @__PURE__ */ e("div", { className: "text-subtitle flex flex-col gap-3", children: /* @__PURE__ */ e(r, { href: "/token-list", baseUrl: process.env.NEXT_PUBLIC_BASE_URL, children: /* @__PURE__ */ e(l, { value: "tokenList", parentKey: "footer" }) }) })
|
|
21
31
|
] }),
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */ e("div", { className: "text-title", children: /* @__PURE__ */ e(
|
|
24
|
-
/* @__PURE__ */ e("div", { className: "text-subtitle flex flex-col gap-3", children: /* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */ e(
|
|
32
|
+
/* @__PURE__ */ t("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
|
|
33
|
+
/* @__PURE__ */ e("div", { className: "text-title", children: /* @__PURE__ */ e(l, { value: "contactUs", parentKey: "footer" }) }),
|
|
34
|
+
/* @__PURE__ */ e("div", { className: "text-subtitle flex flex-col gap-3", children: /* @__PURE__ */ t(r, { href: "mailto:contact@ichatgo.ai", className: "flex items-center", children: [
|
|
35
|
+
/* @__PURE__ */ e(s, { className: "w-4 h-4 mr-1" }),
|
|
26
36
|
"contact@ichatgo.com"
|
|
27
37
|
] }) })
|
|
28
38
|
] }),
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */ e("div", { className: "text-title", children: /* @__PURE__ */ e(
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */ e(
|
|
33
|
-
/* @__PURE__ */ e(
|
|
34
|
-
/* @__PURE__ */ e(
|
|
39
|
+
/* @__PURE__ */ t("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
|
|
40
|
+
/* @__PURE__ */ e("div", { className: "text-title", children: /* @__PURE__ */ e(l, { value: "company", parentKey: "footer" }) }),
|
|
41
|
+
/* @__PURE__ */ t("div", { className: "text-subtitle flex flex-col gap-3", children: [
|
|
42
|
+
/* @__PURE__ */ e(r, { href: `${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${a}/privacy-policy.html`, children: /* @__PURE__ */ e(l, { value: "privacyPolicy", parentKey: "footer" }) }),
|
|
43
|
+
/* @__PURE__ */ e(r, { href: `${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${a}/terms-of-service.html`, children: /* @__PURE__ */ e(l, { value: "termsOfService", parentKey: "footer" }) }),
|
|
44
|
+
/* @__PURE__ */ e(r, { href: `${process.env.NEXT_PUBLIC_OFFICIAL_URL}/${a}`, children: /* @__PURE__ */ e(l, { value: "aboutUs", parentKey: "footer" }) })
|
|
35
45
|
] })
|
|
36
46
|
] })
|
|
37
47
|
] })
|
|
38
48
|
] }) });
|
|
39
49
|
}
|
|
40
50
|
export {
|
|
41
|
-
|
|
51
|
+
N as default
|
|
42
52
|
};
|
package/dist/year.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"year.d.ts","sourceRoot":"","sources":["../src/year.tsx"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,IAAI,IAKX,MAAM,CACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ichaingo/footer",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"lucide-react": "0.539.0",
|
|
25
25
|
"react": "19.1.1",
|
|
26
26
|
"next-intl": "4.6.1",
|
|
27
|
-
"@ichaingo/image": "1.5.
|
|
28
|
-
"@ichaingo/
|
|
29
|
-
"@ichaingo/
|
|
27
|
+
"@ichaingo/image": "1.5.23",
|
|
28
|
+
"@ichaingo/link": "1.5.23",
|
|
29
|
+
"@ichaingo/translation": "1.5.23"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/src/index.tsx
CHANGED
|
@@ -4,6 +4,7 @@ import LinkBar from '@ichaingo/link';
|
|
|
4
4
|
import { useLocale } from 'next-intl';
|
|
5
5
|
import Translation from '@ichaingo/translation';
|
|
6
6
|
import { Mail } from 'lucide-react';
|
|
7
|
+
import Year from './year';
|
|
7
8
|
export default function Footer() {
|
|
8
9
|
const locale = useLocale();
|
|
9
10
|
return (
|
|
@@ -11,7 +12,7 @@ export default function Footer() {
|
|
|
11
12
|
<div className="max-w-300 flex flex-col md:flex-row justify-center mx-auto w-full py-3">
|
|
12
13
|
<div className="w-full md:w-1/2 flex flex-col py-3 md:py-0 gap-3 md:gap-0 justify-between">
|
|
13
14
|
<ImageBar src={`${process.env.NEXT_PUBLIC_CDN_URL}/uploads/2025/11/26/6926f275c68ed.png`} width={116} height={32} objectFit='contain'></ImageBar>
|
|
14
|
-
<div className='text-subtitle'>© iChatGo
|
|
15
|
+
<div className='text-subtitle'>© {Year()} iChatGo <Translation value="allRightsReserved" parentKey='footer' /></div>
|
|
15
16
|
</div>
|
|
16
17
|
<div className="flex flex-col md:flex-row justify-between shrink-0 w-full md:w-1/2">
|
|
17
18
|
<div className="flex flex-col gap-3 py-3 md:py-0">
|
package/src/year.tsx
ADDED