2x
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
.index {
|
||||
padding: 18px;
|
||||
border-radius: 12px;
|
||||
background-color: #fff;
|
||||
width: 50vw;
|
||||
max-width: 400px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: 1;
|
||||
|
||||
.link {
|
||||
color: var(--color-primary);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
> * + * {
|
||||
margin-top: 18px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 28px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.content {
|
||||
color: #666;
|
||||
padding: 16px 0;
|
||||
line-height: 1.7;
|
||||
max-height: 50vh;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.btn {
|
||||
padding: 16px;
|
||||
background-color: var(--color-primary);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
border-radius: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
import { Popups } from 'lbl-popups'
|
||||
import { Observer } from 'mobx-react'
|
||||
import { FC } from 'react'
|
||||
import styles from './index.module.scss'
|
||||
|
||||
const Help: FC = () => {
|
||||
return (
|
||||
<Observer>
|
||||
{() => (
|
||||
<div className={styles.index}>
|
||||
<div className={styles.title}>关于内网穿透NAT</div>
|
||||
|
||||
<div className={styles.content}>
|
||||
<p>
|
||||
该 utools 扩展是基于 localtunnel 的封装,目前已在 GitHub 开源:
|
||||
<span
|
||||
className={styles.link}
|
||||
onClick={() => utools.shellOpenExternal('https://github.com/lblblong/nat-utools')}
|
||||
>
|
||||
https://github.com/lblblong/nat-utools
|
||||
</span>
|
||||
</p>
|
||||
<h4>使用说明:</h4>
|
||||
<p>
|
||||
点击右下角 +
|
||||
号按钮,输入你本地服务监听的端口号,如果需要自定义子域名则输入自定义的子域名,然后点击确定,即可获得可被外网访问的地址
|
||||
</p>
|
||||
<h4>参数说明:</h4>
|
||||
<p>
|
||||
<ul>
|
||||
<li>端口号:需要通过内网穿透公开的本地端口号</li>
|
||||
<li>子域名:自定义的子域名,过于火热的域名通常会被占用</li>
|
||||
<li>自定义HOST:当你需要公开的服务不在localhost上时,你会需要它</li>
|
||||
</ul>
|
||||
</p>
|
||||
<h4>状态说明:</h4>
|
||||
<p>
|
||||
<ul>
|
||||
<li>灰色:未启动</li>
|
||||
<li>灰蓝闪动:连接中</li>
|
||||
<li>蓝色:已启动</li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</Observer>
|
||||
)
|
||||
}
|
||||
|
||||
export function openHelp() {
|
||||
return Popups.open({
|
||||
el: Help,
|
||||
position: 'center',
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user