Skip to content

Commit bd7d61a

Browse files
author
zhupengcong
committed
update
1 parent 831005d commit bd7d61a

File tree

513 files changed

+87842
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

513 files changed

+87842
-0
lines changed

README.md

+390
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,390 @@
1+
# Overview
2+
3+
Filscan(https://filscan.io/) is the first data browser in the Filecoin ecosystem and is dedicated to building the Filecoin network data analysis center, providing the Filecoin ecosystem data services, visualization and other one-stop data analysis for the whole network, and building a data intelligence platform for 3rd party ecosystem applications.
4+
5+
# Table of Contents
6+
- [Overview](#overview)
7+
- [Table of Contents](#table-of-contents)
8+
- Key Features of Filscan
9+
- Half year Plan
10+
- Get involved and Contribute
11+
- [Front-End](#front-end)
12+
- [Install](#install)
13+
- [Environmental requirements](#environmental-requirements)
14+
- [Install Dependencies](#install-dependencies)
15+
- [Compiles and hot-reloads for development](#compiles-and-hot-reloads-for-development)
16+
- [API Environment Configuration](#api-environment-configuration)
17+
- [Build](#build)
18+
- [Lints and fixes files](#lints-and-fixes-files)
19+
- [Customize configuration](#customize-configuration)
20+
- [Back-End](#back-end)
21+
- [Build and Install](#build-and-install)
22+
- [Environment](#environment)
23+
- [System Require](#system-require)
24+
- [Build](#build-1)
25+
- [Configuration](#configuration)
26+
- [Run](#run)
27+
- [API Document](#api-document)
28+
- [License](#license)
29+
30+
31+
## Key Features of Filscan
32+
33+
• Provide data applications based on various scenarios
34+
35+
![image](https://user-images.githubusercontent.com/86345705/129295935-15f398b2-fbe9-46fb-9d95-f6e8b5c7beb3.png)
36+
37+
• Provide real-time data display and API interface
38+
39+
40+
![image](https://user-images.githubusercontent.com/86345705/129296005-298481b5-db14-4c79-b8c3-1e80ff7f1f61.png)
41+
42+
• Provide data visualization services to increase business management capabilities
43+
44+
45+
![image](https://user-images.githubusercontent.com/86345705/129296094-c463333b-494c-47c7-a25a-9406eb8edcd8.png)
46+
47+
• Provide rich data analysis functions to drive business progress
48+
49+
![image](https://user-images.githubusercontent.com/86345705/129296192-7b9ae3b2-d576-44b8-b7f7-6a17b297ee42.png)
50+
51+
• Provide advanced services such as predictive data analysis and business evaluation
52+
53+
![image](https://user-images.githubusercontent.com/86345705/129296331-5e75e79e-2cc5-4533-a5df-a8b2605e414e.png)
54+
55+
• Monitoring panel to support multi-node data collection and monitoring
56+
57+
![image](https://user-images.githubusercontent.com/86345705/129296455-c5d02cab-27b4-4bf8-9803-67a99914cd25.png)
58+
59+
### Half year plan :(Next 6 months)
60+
61+
• Upgrade the back-end architecture to improve the loading speed
62+
63+
• Better UI display and more intuitive data display
64+
65+
• Added order query about Filecoin real data
66+
67+
• Added the isolated block statistics and query function
68+
69+
• Set private Key to control API interfaces
70+
71+
• Add address collection list, convenient to view address information faster
72+
73+
### Get involved and Contribute
74+
75+
As a Filecoin ecosystem open source project, Filscan is keen to welcome your feedback and suggestions.
76+
77+
Reach us@
78+
79+
Twitter: https://twitter.com/force_ipfs
80+
81+
Medium: https://ipfsforce-1751.medium.com/
82+
83+
84+
85+
# Front-End
86+
87+
## Install
88+
89+
### Environmental requirements
90+
91+
- required: Node.js(https://nodejs.org/en/)
92+
93+
- optional : Yarn (https://yarnpkg.com/)
94+
95+
### Install Dependencies
96+
```
97+
yarn install or npm install 
98+
```
99+
### Compiles and hot-reloads for development
100+
```
101+
yarn serve or npm run serve
102+
```
103+
### API Environment Configuration
104+
105+
By default, the profiles are in the root directory of the project. You can modify the value of **VUE_APP_BASE_URL** to change the server address.
106+
107+
**Example:**
108+
109+
If you want to change the server address, you can open the file .env.development. Then you will see the default value of **VUE_APP_BASE_URL** is "http://192.168.1.2:8700/v0/filscan", modify it according to your actual server address. Please notice that you should run "yarn serve" or "npm run serve" to apply this change.
110+
111+
### Build
112+
```
113+
yarn build:pro or npm run build:pro
114+
```
115+
### Lints and fixes files
116+
```
117+
yarn lint or npm run lint
118+
```
119+
### Customize configuration
120+
121+
See Configuration Reference(https://cli.vuejs.org/config/).
122+
123+
# [Back-End](https://github.com/ipfs-force-community/filscan-backend)
124+
125+
## Build and Install
126+
127+
### Environment
128+
129+
- golang >= v1.13
130+
- mongo >= v4.2
131+
- lotus >= v0.2.7
132+
133+
### System Require
134+
135+
- Linux or Mac OS
136+
137+
## Build Setup
138+
139+
```bash
140+
# install dependencies
141+
$ npm install
142+
143+
# serve with hot reload at localhost:3003
144+
$ npm run dev
145+
146+
# build for production and launch server
147+
$ npm run build
148+
$ npm run start
149+
150+
# generate static project
151+
$ npm run generate
152+
```
153+
### Configuration
154+
155+
Edit app.conf in path /conf and set the correct parameter
156+
```
157+
mongoHost = "127.0.0.1:27017"
158+
159+
mongoUser = "root"
160+
161+
mongoPass = "admin"
162+
163+
mongoDB   = "filscan"
164+
165+
lotusGetWay="192.168.1.1:1234"
166+
```
167+
### Run
168+
169+
Make sure mongo and lotus is active, and run the filscan_lotus
170+
```
171+
./filscan_lotus
172+
```
173+
The application will check lotus and mongo’s status. The application will stop if got any error from them. If application start success, it will work until sync all data down from lotus.
174+
175+
## Document
176+
177+
```
178+
├── api
179+
│ ├── custom.js
180+
│ └── index.js // 后端api
181+
├── assets // 资源文件
182+
├── bu-components // 业务组件
183+
│ ├── address // 地址组件
184+
│ │ ├── ClaimAccount.vue
185+
│ │ ├── account
186+
│ │ │ └── index.vue
187+
│ │ ├── chart // 地址详情页图表
188+
│ │ │ ├── GeneralBalance.vue
189+
│ │ │ ├── MinerBalance.vue
190+
│ │ │ ├── MinerPower.vue
191+
│ │ │ └── index.vue
192+
│ │ ├── generalDetail.vue // 一般地址详情页
193+
│ │ ├── miner-overview
194+
│ │ │ ├── AddressBalance.vue
195+
│ │ │ ├── PowerGrowth.vue
196+
│ │ │ ├── QualityPower.vue
197+
│ │ │ └── index.vue
198+
│ │ ├── minerDetail.vue // 矿工详情页
199+
│ │ └── mixin.js
200+
│ ├── home // 主页面组件
201+
│ │ ├── BlocksWon.vue
202+
│ │ ├── BoardItem.vue
203+
│ │ ├── Filecoin.vue
204+
│ │ ├── ViewMore.vue
205+
│ │ ├── Watch.vue
206+
│ │ ├── chart
207+
│ │ │ ├── block-reward.vue
208+
│ │ │ ├── index.vue
209+
│ │ │ ├── region-power.vue
210+
│ │ │ └── top-power.vue
211+
│ │ ├── index.js
212+
│ │ ├── latest
213+
│ │ │ ├── LatestBlock.vue
214+
│ │ │ ├── LatestMessage.vue
215+
│ │ │ ├── MessageItem.vue
216+
│ │ │ └── TipsetItem.vue
217+
│ │ └── metaList.vue
218+
│ ├── mining // 排行榜组件
219+
│ │ ├── MinerRate.vue
220+
│ │ ├── PoolRanking.vue
221+
│ │ ├── TopMiner.vue
222+
│ │ └── powerRate.vue
223+
│ ├── pk
224+
│ │ ├── PkItem.vue
225+
│ │ └── miner-select.vue
226+
│ └── tipset
227+
│ ├── BlockDetail.vue
228+
│ ├── BlockList.vue
229+
│ ├── Graph.vue
230+
│ ├── MbBlockList.vue
231+
│ ├── TicketChain.vue
232+
│ ├── chain.vue
233+
│ └── mixin.js
234+
├── chart
235+
│ ├── index.js
236+
│ ├── options.js
237+
│ └── theme
238+
│ ├── dark.js
239+
│ └── light.js
240+
├── coindesign // web端组件
241+
├── coinmobile // 移动端组件
242+
├── components
243+
│ ├── MessageList.vue
244+
│ ├── coindesign.js
245+
│ ├── coinmobile.js
246+
│ ├── element-setup.js
247+
│ └── index.js
248+
├── directives // 指令
249+
│ └── scroll.js
250+
├── filters // 过滤器
251+
│ ├── filters.js
252+
│ └── index.js
253+
├── lang // 国家化语言
254+
│ ├── en.js // 英语
255+
│ ├── ja.js // 日本语
256+
│ ├── ko.js // 韩国语
257+
│ └── zh.js // 中文
258+
├── layouts // 模版文件
259+
│ ├── default.vue web默认模版
260+
│ ├── error.vue 404页面
261+
│ └── mlayout.vue 手机端默认模版
262+
├── middleware
263+
│ ├── auth.js
264+
│ └── device.js
265+
├── mixins
266+
│ ├── headerMixin.js
267+
│ ├── index.js
268+
│ ├── searchMixin.js
269+
│ └── service.js
270+
├── pages // 页面
271+
│ ├── account
272+
│ │ └── index.vue
273+
│ ├── address // 地址详情页
274+
│ │ ├── general.vue
275+
│ │ └── miner.vue
276+
│ ├── address.vue
277+
│ ├── blocks-won.vue
278+
│ ├── cw.vue
279+
│ ├── forcepool
280+
│ │ ├── center.vue
281+
│ │ ├── force-admin.vue
282+
│ │ ├── force-detail.vue
283+
│ │ ├── force-list.vue
284+
│ │ └── force-notice.vue
285+
│ ├── index.vue // 首页主页面
286+
│ ├── message
287+
│ │ └── detail.vue
288+
│ ├── miner-pk.vue
289+
│ ├── mining.vue // 排行榜
290+
│ ├── mobile // 移动端 结构与web端一致
291+
│ │ ├── address
292+
│ │ │ ├── general.vue
293+
│ │ │ └── miner.vue
294+
│ │ ├── index.vue
295+
│ │ ├── mining.vue
296+
│ │ ├── no-result.vue
297+
│ │ ├── resources
298+
│ │ │ ├── calculator.vue
299+
│ │ │ └── tools.vue
300+
│ │ ├── statistics
301+
│ │ │ ├── charts.vue
302+
│ │ │ ├── fil.vue
303+
│ │ │ ├── gas.vue
304+
│ │ │ ├── peer.vue
305+
│ │ │ └── power.vue
306+
│ │ └── tipset
307+
│ │ ├── address-detail.vue
308+
│ │ ├── address-list.vue
309+
│ │ ├── chain.vue
310+
│ │ ├── dsn-detail.vue
311+
│ │ ├── dsn.vue
312+
│ │ ├── message-detail.vue
313+
│ │ ├── message-list.vue
314+
│ │ ├── pool-detail.vue
315+
│ │ ├── pool-message-detail.vue
316+
│ │ ├── pool-message-list.vue
317+
│ │ └── transfer-list.vue
318+
│ ├── more
319+
│ │ └── gas.vue
320+
│ ├── no-result.vue
321+
│ ├── resources // 资源
322+
│ │ ├── calculator.vue // 计算器
323+
│ │ └── tools.vue // 工具
324+
│ ├── statistics // 统计
325+
│ │ ├── charts.vue // 图表统计
326+
│ │ ├── fil.vue // FIL
327+
│ │ ├── gas.vue // Gas趋势
328+
│ │ ├── map.vue
329+
│ │ ├── peer.vue
330+
│ │ └── power.vue // 基线与算力走势
331+
│ ├── tipset // 区块链
332+
│ │ ├── address-detail.vue // 地址详情页
333+
│ │ ├── address-list.vue // 地址列表
334+
│ │ ├── chain.vue // 区块
335+
│ │ ├── dsn-detail.vue // 订单详情页
336+
│ │ ├── dsn.vue // 订单列表
337+
│ │ ├── message-detail.vue // 消息详情页
338+
│ │ ├── message-list.vue // 消息列表
339+
│ │ ├── pool-detail.vue // 存储池详情页面
340+
│ │ ├── pool-message-detail.vue // 待打包消息池列表
341+
│ │ ├── pool-message-list.vue // 待打包消息池
342+
│ │ └── transfer-list.vue //转账列表
343+
│ └── token.vue
344+
├── patches // 依赖包打补丁
345+
│ └── postcss-pxtorem+5.1.1.patch
346+
├── plugins
347+
│ ├── bus-inject.js // 大巴车
348+
│ ├── elTableInfiniteScroll.js
349+
│ ├── i18n.js // 国际化语言
350+
│ ├── index.js
351+
│ ├── leecharts.js // 图表
352+
│ ├── main.js // 主文件
353+
│ ├── store.js // vuex永久化存储
354+
│ └── vuex-persist.js // vuex永久化存储
355+
├── static // 静态资源文件
356+
│ └── favicon.ico // 浏览器图标
357+
├── store //状态管理
358+
│ ├── account.js // 用户
359+
│ ├── address.js // 地址
360+
│ ├── app.js // 整站
361+
│ ├── dsn.js // 订单
362+
│ ├── home.js // 主页
363+
│ ├── index.js
364+
│ ├── message.js // 消息
365+
│ ├── mining.js // 排行榜
366+
│ ├── notice.js // 通知
367+
│ ├── pk.js
368+
│ ├── stats.js
369+
│ ├── tipset.js // 区块
370+
│ └── token.js // 用户信息
371+
└── utils // 工具包
372+
├── api.js // 接口字符串
373+
├── index.js // 工具包
374+
├── key.js // 密钥
375+
└── request.js // 请求服务
376+
├── tsconfig.json
377+
├── prettier.config.js
378+
├── nuxt.config.js 配置文件
379+
```
380+
381+
382+
383+
384+
385+
## License
386+
Dual-licensed under
387+
388+
[MIT](https://github.com/filecoin-project/lotus/blob/master/LICENSE-MIT)
389+
390+
[Apache 2.0](https://github.com/filecoin-project/lotus/blob/master/LICENSE-APACHE)

0 commit comments

Comments
 (0)