wind пре 1 месец
родитељ
комит
06a8804211

+ 2 - 0
.gitignore

@@ -19,6 +19,7 @@
 
 # production
 /build
+/log
 
 # misc
 .DS_Store
@@ -31,6 +32,7 @@ yarn-error.log*
 yarn.lock
 package-lock.json
 pnpm-lock.yaml
+nohup.out
 
 # env files (can opt-in for committing if needed)
 .env*

+ 28 - 0
ecosystem.config.js

@@ -0,0 +1,28 @@
+module.exports = {
+  apps: [
+    {
+      name: "hipo-web3-dev",
+      script: "yarn",
+      args: "dev",
+      instances: 1,
+      autorestart: true,
+      watch: false,
+      max_memory_restart: "1G",
+      env: {
+        NODE_ENV: "development",
+      },
+    },
+    {
+      name: "hipo-web3-prod",
+      script: "yarn",
+      args: "start",
+      instances: 1,
+      autorestart: true,
+      watch: false,
+      max_memory_restart: "1G",
+      env: {
+        NODE_ENV: "producation",
+      },
+    },
+  ],
+};

+ 11 - 4
src/app/(home)/components/Contact/index.tsx

@@ -1,5 +1,6 @@
 "use client";
 import React, { useState } from "react";
+import Image from "next/image";
 import styles from "./contact.module.css";
 
 const Contact: React.FC = () => {
@@ -65,7 +66,13 @@ const Contact: React.FC = () => {
           })}
         </div>
         <div className={styles["logo-list"]}>
-          <img className={styles["logo-list-img"]} src={logoTabData[currentIndex].logoList} />
+          <Image
+            alt="logos"
+            width={1260}
+            height={560}
+            className={styles["logo-list-img"]}
+            src={logoTabData[currentIndex].logoList}
+          />
         </div>
       </div>
       <a id={styles.contactUs} />
@@ -73,15 +80,15 @@ const Contact: React.FC = () => {
         <div className={styles.title}>联系我们</div>
         <div className={styles.contact}>
           <div className={styles.item}>
-            <img src="/asset/ic_address.png" />
+            <Image alt="icon" width={21} height={25} src="/asset/ic_address.png" />
             地址: 北京市朝阳区东三环富力双子座A座601
           </div>
           <div className={styles.item}>
-            <img src="/asset/ic_phone.png" />
+            <Image alt="icon" width={21} height={25} src="/asset/ic_phone.png" />
             联系电话: 李女士 13810542631
           </div>
           <div className={styles.item}>
-            <img src="/asset/ic_email.png" />
+            <Image alt="icon" width={21} height={25} src="/asset/ic_email.png" />
             联系邮箱: hipo@hi-po.com.cn
           </div>
         </div>

+ 8 - 8
src/app/(home)/components/Services/index.tsx

@@ -20,15 +20,15 @@ export default async function Service() {
             {servicesList?.records?.map((item, index) => {
               return (
                 <div className={styles["col-md-4"]} key={index}>
-                  {/* <a href={item.fileUrl}> */}
-                  <div className={styles["card-item"]}>
-                    <div className={styles["flex-row"]}>
-                      <Image alt="product-image" width={80} height={80} src={item.icon} className={styles.icon} />
-                      <div className={styles.content3}>{item.title}</div>
+                  <a href={item.fileUrl}>
+                    <div className={styles["card-item"]}>
+                      <div className={styles["flex-row"]}>
+                        <Image alt="product-image" width={80} height={80} src={item.icon} className={styles.icon} />
+                        <div className={styles.content3}>{item.title}</div>
+                      </div>
+                      <div className={styles.content4}>{item.desc}</div>
                     </div>
-                    <div className={styles.content4}>{item.desc}</div>
-                  </div>
-                  {/* </a> */}
+                  </a>
                 </div>
               );
             })}

+ 2 - 1
src/app/caseList/page.tsx

@@ -1,4 +1,5 @@
 import React from "react";
+import Image from "next/image";
 import Nav from "@/components/Nav";
 import Footer from "@/components/Footer";
 import styles from "./caseList.module.css";
@@ -16,7 +17,7 @@ export default async function CaseList() {
               return (
                 <a href={`/articleDetail/${item.id}.html`} key={index}>
                   <div className={styles.articleItem}>
-                    <img className={styles.articleImg} src={item?.cover} />
+                    <Image alt="pic" width={315} height={212} className={styles.articleImg} src={item?.cover} />
 
                     <div className={styles.articleText}>
                       <div className={styles.articleTitle}>{item?.title}</div>

+ 0 - 1
src/app/partner/[id]/page.tsx

@@ -1,6 +1,5 @@
 import React from "react";
 import Image from "next/image";
-import type { Metadata } from "next";
 import Nav from "@/components/Nav";
 import Footer from "@/components/Footer";
 import styles from "./partner.module.css";

+ 1 - 1
src/app/partner/[id]/partner.module.css

@@ -113,7 +113,7 @@
       display: flex;
       flex-direction: row;
       flex-wrap: wrap;
-      justify-content: start;
+      justify-content: flex-start;
       margin-top: 60px;
 
       .item {

+ 2 - 1
src/components/Nav/navMobile.tsx

@@ -1,6 +1,7 @@
 "use client";
 
 import React, { useState } from "react";
+import Image from "next/image";
 import Link from "next/link";
 import styles from "./nav.module.css";
 
@@ -20,7 +21,7 @@ const NavMobile: React.FC = () => {
           }}
         >
           <div className={styles.logo}>HIPO 高潜</div>
-          <img src="/asset/ic_menu_dark.png" className={styles.menu} />
+          <Image alt="menu" width={24} height={15} src="/asset/ic_menu_dark.png" className={styles.menu} />
         </div>
         <div className={styles["nav-line"]} />
         <div className={showMenu === "show" ? styles.show : styles.hide}>

+ 1 - 1
src/lib/parser.ts

@@ -1,4 +1,4 @@
-const { JSDOM } = require("jsdom");
+import { JSDOM } from "jsdom";
 
 export function getDesc180(content: string) {
   let result = "";