vue css js 外链_使用Vue.js和Tailwind CSS的ARK区块链资源管理器

vue css js 外链

方舟探索者3.0 (ARK Explorer 3.0)

Designed and developed from the ground-up, using lean & fast developmental frameworks (Tailwind CSS & Vue.JS).

使用精益和快速的开发框架(Tailwind CSS&Vue.JS)从头开始设计和开发。

ARKExplorer

构建设置 (Build Setup)

1.克隆存储库 (1. Clone the repository)

git clone https://github.com/ArkEcosystem/ark-explorer

2.安装依赖项 (2. Install Dependencies)

yarn install

3.量产 (3. Build for Production)

3.1主网 (3.1 Mainnet)
yarn build:mainnet
3.2 Devnet (3.2 Devnet)
yarn build:devnet
3.3自定义 (3.3 Custom)
yarn build --network my-custom-network
3.4 GitHub页面 (3.4 GitHub Pages)

If you are going to host your explorer instance on GitHub Pages you will need to specify your base url in most cases as GitHub Pages serves repositories from sub-directories instead of sub-domains.

如果要在Explorer实例上托管Explorer实例,则在大多数情况下,由于GitHub Pages从子目录而非子域提供存储库,因此您需要指定基本URL。

yarn build --base https://username.github.io/repository/

A running instance of the explorer on GitHub Pages can be found at https://arkecosystem.github.io/.

可以在https://arkecosystem.github.io/找到GitHub Pages上的资源管理器的运行实例。

This step is not required if you are hosting the explorer on your "root" repository which is usually your username https://username.github.io/.

如果将资源管理器托管在通常是用户名https://username.github.io/的 “根”存储库中,则不需要此步骤。

3.5运行Express Server (3.5 Run Express Server)

You can run the explorer as an express server. This makes it a little more light-weight but not needing to have services such as apache or nginx.

您可以将资源管理器作为快速服务器运行。 这使其重量更轻一些,但不需要诸如apache或nginx之类的服务。

EXPLORER_HOST="127.0.0.1" EXPLORER_PORT="4200" node express-server.js

4.历史记录模式 (4. History Mode)

If you wish to remove the /#/ from your URLs you can follow those steps https://router.vuejs.org/en/essentials/history-mode.html.

如果您希望从网址中删除/#/ ,则可以执行以下步骤https://router.vuejs.org/en/essentials/history-mode.html

4.1建立 (4.1 Build)

yarn build:mainnet --history

4.2发展 (4.2 Development)

yarn dev --env.routerMode=history

Keep in mind that this requires you to run your own server and a running instance of nginx.

请记住,这要求您运行自己的服务器和正在运行的Nginx实例。

5.发展 (5. Development)

主网 (Mainnet)
yarn dev # or yarn dev:mainnet
开发网 (Devnet)
yarn dev:devnet
自订 (Custom)
yarn dev --env.network=custom
更改路由器模式 (Change Router Mode)
yarn dev --env.routerMode=history

6.测试 (6. Testing)

$ yarn test

7.安全性 (7. Security)

If you discover a security vulnerability within this package, please send an e-mail to [email protected]. All security vulnerabilities will be promptly addressed.

如果您发现此软件包中存在安全漏洞,请发送电子邮件至[电子邮件保护] 。 所有安全漏洞将得到及时解决。

翻译自: https://vuejsexamples.com/a-blockchain-explorer-for-ark-using-vue-js-and-tailwind-css/

vue css js 外链

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值