@beisen-phoenix/mobile-reply-tools

移动端回复工具基础组件

Usage no npm install needed!

<script type="module">
  import beisenPhoenixMobileReplyTools from 'https://cdn.skypack.dev/@beisen-phoenix/mobile-reply-tools';
</script>

README

@beisen-phoenix/mobile-reply-tools

移动端回复工具基础组件

调试方法

hosts

127.0.0.1 dev-mobile-reply-tools.italent.link

nginx

server {
    listen 80;
    listen 443 ssl;
    server_name dev-mobile-reply-tools.italent.link;
    ssl_certificate /usr/local/etc/openssl/ZhangYangCA/zy1.crt;
    ssl_certificate_key /usr/local/etc/openssl/ZhangYangCA/zy1.key;
    location / {
        proxy_pass http://127.0.0.1:9001/;
        add_header Cache-Control "no-cache, no-store, must-revalidate";
    }
    location /__webpack_dev_server__/ {
        proxy_pass http://127.0.0.1:3000/;
    }
    location /sockjs-node/ {
        proxy_pass http://127.0.0.1:3000/sockjs-node/;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }
}

启动

npm run examples

再打开:https://dev-mobile-reply-tools.italent.link/

也可以打开具体的iframe以查看更具体的页面:https://dev-mobile-reply-tools.italent.link/iframe.html?selectedKind=beisen-phoenix-mobile-reply-tools&selectedStory=default