• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

xmcp/webhole: Hole react frontend

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

xmcp/webhole

开源软件地址:

https://github.com/xmcp/webhole

开源编程语言:

JavaScript 86.7%

开源软件介绍:

The Seed

A refined version of the front-end code used at PKU Helper.

Note that this repository does not belong to any website. Developers of this repository take no responsibility of contents on websites using it.

We do not provide any kind of tech support. Use at your own risk.

Installation

A corresponding backend server is required to host APIs for the front-end code. Visit jimmielin/the-light for setup instructions for backend server.

Install nodejs and run npm install to install requirements.

As a normal Create-React-App project, run npm start to start local dev server, and run npm run build to build production HTML files into build directory.

You may need to run git submodule init && git submodule update --remote if submodule is not cloned.

Customization and Configuration

All branding information (e.g. website title, API domain, slogan) has been removed, and it is up to you to customize them.

Those customizable variables start with _BRAND in their name. You can search for _BRAND_ in src and public directory and replace all occurrences to the value you want.

Moreover, index.html includes these vital parameters that you would mostly like to change:

  • __WEBHOLE_HAPI_DOMAIN: hole backend API domain, e.g. https://hapi.your_domain.com
  • __WEBHOLE_GATEWAY_DOMAIN: gateway domain for user management, e.g. https://gateway.your_domain.com
  • __WEBHOLE_DEV_SERVER_FLAG: set to true if it is a development environment (will show an alert on the page)
  • __WEBHOLE_DISABLE_WEBP: set to true if hole backend API does not support webp image format

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap