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

matrix-ui-com

v1.1.0

Published

Matrix admin ui component.

Downloads

12

Readme

更新记录

[email protected]:

  • antd5
  • vite - https://cathalmacdonnacha.com/migrating-from-create-react-app-cra-to-vite

[email protected]:

  • antd4

[email protected]:

  • 支持微信开放平台登录,兼容之前版本

[email protected]:

  • 支持pnpm

[email protected]:

  • 支持微信小程序登录、绑定手机号

[email protected]:

  • 导出改为CSV,xlsx依赖导致js太大
  • Login改造为React Hook

[email protected]:

  • Home和Login改造,通过React Hook管理状态,不再依赖React Route

[email protected]:

  • oo-rest-mobx拆分为matrix-ui-service和matrix-ui-com

[email protected]

  • 开发环境登录模式改为不需要密码;
  • domain store支持react hook
  • DomainService泛型结构优化
  • DictService和ui逻辑分离
  • DomainService增加store列表本地更新功能,不用每次去服务端获取;
  • 科研项目不再依赖oo-rest-mobx,未来拆分为matrix-ui-service和matrix-ui-com

[email protected]

  • ant design v4改造完成
  • 鄞州教科升级至本版本

本地开发依赖

yarn build
npm link

方案 1:npm link

npm link用来把最新代码发布到本地,其它工程可以通过npm link oo-rest-mobx进行最新代码依赖,这样修改后不用每次发布新版本

方案 2:依赖oo-rest-mobx的ts源码

  1. 复制源码到res-web/src/oo-rest-mobx-src
  2. 按照react-app-rewire-alias步骤,配置typescript别名
    {
    	"compilerOptions": {
    		"baseUrl": "./",
    		"paths": {
    		"oo-rest-mobx": [
    			"src/oo-rest-mobx-src/index.ts"
    		]
    		}
    	}
    }

    如果配置src之外的目录,如../../matrix-admin/oo-rest-mobx/src/index.ts,ide可以识别并跳转,但编译有问题(react-app-rewire-alias的demo是可以的,原因未知)

    D:/git_repo/my-project/matrix-admin/oo-rest-mobx/src/ant-design-field/DatePickerField.tsx 12:0
    Module parse failed: The keyword 'interface' is reserved (12:0)
    File was processed with these loaders:
    * ./node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js
    You may need an additional loader to handle the result of these loaders.
    | import isString from 'lodash/isString';
    | import { DatePickerProps } from 'antd/lib/date-picker';
    > interface P extends FieldProps {
    |   //DatePicker的required可能根据返回值不同而变化
    |   required?: boolean;
  3. 使用unison命令行做双向同步,也可以使用微软SyncToy,或inotify+unison进行自动监控同步
    unison ~/git_repo/my-project/yzedu-research/res-web/src/node_modules/oo-rest-mobx ~/git_repo/my-project/matrix-admin/oo-rest-mobx/src -batch -prefer newer

方案 3:本地依赖lib目录

方案 2

  1. 别名链接改为"oo-rest-mobx": ["../../matrix-admin/oo-rest-mobx/lib/index.d.ts"]
  2. 不需要同步动作

方案 4:mklink、New-Item、ln创建软链接到源码src/node_modules目录

但目前本方案都无法编译,硬链接只支持文件

mklink /h oo-rest-mobx "D:\git_repo\my-project\matrix-admin\oo-rest-mobx\src"
New-Item -ItemType SymbolicLink -Path oo-rest-mobx -Target "D:\git_repo\my-project\matrix-admin\oo-rest-mobx\src"