diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..35410ca --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..df7825d --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..a073237 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/prettier.xml b/.idea/prettier.xml new file mode 100644 index 0000000..0c83ac4 --- /dev/null +++ b/.idea/prettier.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/.idea/tron-v1.iml b/.idea/tron-v1.iml new file mode 100644 index 0000000..24643cc --- /dev/null +++ b/.idea/tron-v1.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..0560c21 --- /dev/null +++ b/next.config.js @@ -0,0 +1,25 @@ +/** @type {import('next').NextConfig} */ +const withLess = require('next-with-less'); + +const nextConfig = { + webpack: (config) => { + config.module.rules.push({ + test: /\.less$/, + use: [ + 'style-loader', + 'css-loader', + { + loader: 'less-loader', + options: { + lessOptions: { + javascriptEnabled: true, + }, + }, + }, + ], + }); + return config; + }, +}; + +module.exports = nextConfig; diff --git a/src/app/home/resources2/components/MyResources.tsx b/src/app/home/resources2/components/MyResources.tsx new file mode 100644 index 0000000..05e3130 --- /dev/null +++ b/src/app/home/resources2/components/MyResources.tsx @@ -0,0 +1,177 @@ +"use client"; +import React from "react"; +import { + Button, + Card, + Col, + Dropdown, + Row, + Space, + Table, + Tabs, + type TabsProps, + Typography, +} from "antd"; +import { CalculatorOutlined, MoreOutlined } from "@ant-design/icons"; +import Link from "antd/lib/typography/Link"; +import MyStake from "@/app/home/resources2/components/MyStake"; + +const { Text } = Typography; + +const MyResources = () => { + const columns_key1 = [ + { + title: "资源类型", + dataIndex: "name", + key: "name", + }, + { + title: "获取资源数量", + dataIndex: "quantity", + key: "quantity", + }, + { + title: "质押数量", + dataIndex: "name", + key: "name", + }, + { + title: "最后操作时间 (UTC)", + dataIndex: "quantity", + key: "quantity", + }, + { + title: "操作", + render: () => { + return ( + + + + ); + }, + }, + ]; + + const items: TabsProps["items"] = [ + { + key: "1", + label: "质押获得", + children: , + }, + { + key: "2", + label: "他人代理给自己", + children:
, + }, + { + key: "3", + label: "代理给他人", + children:
, + }, + ]; + + return ( + + + + +
我的能量
+ + + 去管理 + + + } + > + + + 可用: + 0 + + + 已使用: + 0 + + + 质押获得: + 0 + + + 他人代理给自己: + 0 + + + 代理给他人: + 0 + + + + + + +
+ + + +
我的带宽
+ + + + + } + > + + + 可用: + 0 + + + 已使用: + 0 + + + 质押获得: + 0 + + + 他人代理给自己: + 0 + + + 代理给他人: + 0 + + + + + + +
+ + + + {" "} + + + + ); +}; + +export default MyResources; diff --git a/src/app/home/resources2/components/MyStake.tsx b/src/app/home/resources2/components/MyStake.tsx new file mode 100644 index 0000000..ea00c9e --- /dev/null +++ b/src/app/home/resources2/components/MyStake.tsx @@ -0,0 +1,163 @@ +"use client"; +import React from "react"; +import { + Button, + Card, + Col, + Dropdown, + Row, + Space, + Table, + Tabs, + type TabsProps, + Typography, +} from "antd"; +import { CalculatorOutlined, MoreOutlined } from "@ant-design/icons"; +import Link from "antd/lib/typography/Link"; + +const { Text } = Typography; + +const MyStake = () => { + const columns_key1 = [ + { + title: "资源类型", + dataIndex: "name", + key: "name", + }, + { + title: "获取资源数量", + dataIndex: "quantity", + key: "quantity", + }, + { + title: "质押数量", + dataIndex: "name", + key: "name", + }, + { + title: "最后操作时间 (UTC)", + dataIndex: "quantity", + key: "quantity", + }, + { + title: "操作", + render: () => { + return ( + + + + ); + }, + }, + ]; + + const items: TabsProps["items"] = [ + { + key: "1", + label: "质押中", + children:
, + }, + { + key: "2", + label: "解锁中", + children:
, + }, + ]; + + return ( + + + + +
质押中
+ + } + > + + + 数量: + 0 + + + 能量: + 0 + + + 带宽: + 0 + + + + + + +
+ + + +
解锁中
+ + } + > + + + 数量: + 0 + + 当前有 0 笔解锁中的交易 + +
+ + + +
待提取
+ + } + > + + + 数量: + 0 + + 当前有 0 笔解锁中的交易 + + +
+ + + + {" "} + + + + ); +}; + +export default MyStake;