npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

chanjet-h5-hub

v1.0.0

Published

畅捷通H5微前端基座

Downloads

1

Readme

hsy-h5-hub 实时调度 H5 项目

H5 项目集合

所有子应用独立开发独立部署,但是在部署阶段,会将 dist 上传到 cdn 规定路径下

| 路由前辍 | 仓库地址 | 入口地址 | 灰度环境 | | --------------------------------------- | --------------------------------------------------------------------- | ------------------------------------------------------------ | -------- | | flyweight 路由前辍 | http://gitlab.rd.chanjet.com/hsy_ng/flyweight-h5 | https://[env-]mshop-h5.chanjet.com/index.html | | | hsy-h5 路由前辍 | http://gitlab.rd.chanjet.com/hsy_ng/hsy-mobile-h5 | https://[env-]hys-h5.chanjet.com/index.html | 无 | | /archives | http://gitlab.rd.chanjet.com/cc_web/saas-hsy-h5-archives | https://cloud.static.chanjet.com/archives/[env] | 无 | | /help-center | http://gitlab.rd.chanjet.com/cc_web/help-center-h5 | https://cloud.static.chanjet.com/help-center-h5/[env] | 无 | | /arap | http://gitlab.rd.chanjet.com/cc_web/saas-hsy-h5-arap | https://cloud.static.chanjet.com/arap/[env]/ | 无 | | /report | http://gitlab.rd.chanjet.com/cc_web/saas-hsy-h5-report | https://cloud.static.chanjet.com/cc_h5/[env]/ | 无 | | /information-framework | http://gitlab.rd.chanjet.com/cc_web/saas-hsy-h5-information-framework | https://cloud.static.chanjet.com/information-framework/[env] | 无 | | /stock | http://gitlab.rd.chanjet.com/cc_web/saas-hsy-h5-stock | https://cloud.static.chanjet.com/stock/[env] | 无 | | /voucher | http://gitlab.rd.chanjet.com/cc_web/saas-hsy-h5-voucher | https://cloud.static.chanjet.com/voucher/[env] | 无 |

flyweight-prefix

  '/goodsList',
  '/custVendorListWillContact',
  '/custVendorListWithProblem', // 问题客户
  '/custVendorListAll',
  '/checkGoods',
  '/commoditySharing', // 推荐商品
  '/couponSharing', // 促销活动分享页面
  '/makePoster', // 海报分享页面
  '/Editor', // 添加备注跟进
  '/CustDetail', // 客户详情页面
  '/extension', // 线上推广分析
  '/p-rank',
  '/cust-rank', // 客户活跃排行
  '/emp-rank',
  '/emp-sd',
  '/customer',
  '/promotion', // 商品推广
  '/mshop', // 访客数 | 浏览量 |
  '/wechatInvitationFromOldCust',
  '/customerManager', // 客户管理
  '/customerSupport',
  '/promotionFilter',
  '/promotionDetails',
  '/treescreen',
  '/screen',
  '/checkboxSelect',
  '/SelectPaymentDate',
  '/SelectPriceList',
  '/SelectReceiptType',
  '/SelectCustomerType',
  '/custVendorLabel',
  '/inviteCustomers',
  '/selectSalesmen',
  '/activePda',
  '/multiGraphShareTo',
  '/multiGraphShare',
  '/addCustomer',
  '/callPlanning',
  '/business',
  '/createPlan',
  '/customerList',
  '/routeManager',
  '/addRoute',
  '/visitSettings',
  '/visitTask',
  '/imageCollection',
  '/visitSummary',
  '/promocouponshare', // 分享促销
  '/couponlistshare', // 分享优惠券

hsy-h5-prefix

'/sale',
'/inventory',
'/settings',
'/product',
'/capital'

H5 页面调用方法

主应用域名

| 环境 | 域名 | 已有 | | -------- | ------------------------------------------- | ---- | | 开发 | https://dev-chanjet-h5-hub.chanjet.com | ok | | 预测 | https://pre-test-chanjet-h5-hub.chanjet.com | ok | | 测试 | https://test-chanjet-h5-hub.chanjet.com | ok | | 测试备用 | https://test-b-chanjet-h5-hub.chanjet.com | | 集测 | https://inte-chanjet-h5-hub.chanjet.com | ok | | 灰度 | https://hd-chanjet-h5-hub.chanjet.com | | 热修复 | https://hotfix-chanjet-h5-hub.chanjet.com | ok | | 生产 | https://chanjet-h5-hub.chanjet.com | ok |

通过网址直接访问

https://[env-]chanjet-h5-hub.chanjet.com/prefix

通过 api 访问

// 建议 不需要传递状态
window.$navigateToUrl((url: string));
// 可选 需要传递state时
history.pushState(state, title, url);

环境准备

- nodejs >= 10.0.0     # nodejs尽量使用最新的 lts 版本,
- vscode               # IDE统一使用`vscode`, 内置的辅助插件有助于快速开发
- yarn                 # 包管理统一使用yarn
- npm.rd.chanjet.com   # 必须指定npm私服, 核心依赖只能从私服拉取

如何调试本地子应用

以小档案为例演示如何连接本地应用

  1. 首先从基座中打开小档案的页面例如: https://inte-chanjet-h5-hub.chanjet.com/archives#/archives-enter
  2. 添加调试参数
    1. 参数规则: 应用名称=本地开发端口
    2. 参数: archives=8089,
    3. 完整地址:https://inte-chanjet-h5-hub.chanjet.com/archives#/archives-enter?archives=8089
    4. 刷新页面直接粘贴完整地址进入

在 console 中查看变更情况

修改前

修改后