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 🙏

© 2026 – Pkg Stats / Ryan Hefner

dfws-ve-resume-models

v0.1.6

Published

东方网升简历模型

Readme

东方网升简历模型(dfws-ve-resume-models)

发布

  1. 更改package.json版本
  2. yarn run build:component
  3. npm publish 注:镜像源需切换回NPM官方源

本地开发

  1. 进入dist文件启动服务http-server,生成本地ip可以访问的目录文件 http://10.10.12.131:8080/dfws-ve-resume-models-0.1.0.js
  2. ve-taro-resume项目 npm 目录下 download_file.py 指定文件url为本地文件 url = 'http://10.10.12.131:8080/dfws-ve-resume-models-0.1.0.js'
  3. 右键 download_file.py 文件,在终端中运行python文件就会下载下最新的本地内容

链接

示例

  • yarn
  • yarn build

何时使用

  • 最佳东方简历模块项目需要调用简历数据模型的时候

API

import { models } from 'dfws-ve-resume-models' // 导入简历数据模
// 导入models
export default [
    location,  // 项目models模块
    ...models, // 简历数据模型(按需自定义接入)
]


// 调用models
import { connect } from 'react-redux'
import { resumeProps, resumeState } from 'dfws-ve-resume-models' // 导入简历数据模型
// 调用简历数据接口
const mapStateToProps = (state: IStore) => ({
    loading: resumeState(state).loading,
    resume: resumeState(state).resume
})
const mapDispatchToProps = (dispatch: IDispatch) => ({
    getData: resumeProps(dispatch).getData,
    getBase: resumeProps(dispatch).getBase,
})
 
export default connect(
    mapStateToProps,
    mapDispatchToProps
)(Resume);


// 调用API方法
import { api } from 'dfws-ve-resume-models' // 导入简历数据模型
import dva from "@/resume/utils/dva";
import models from "@/resume/models";
 
const dvaApp = dva.createApp({
    initialState: {},
    models: models,
});
 
const store = dvaApp.getStore();
 
useEffect(() => {
   // 初始化类目信息
   api.getInitDict(store);
}, [])

reusme props

| 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | models | 公共-数据模型 | array | [resume, info] | | api | 公共-数据方法 | function | getInitDict | | props | 公共-Props的方法 | function | resumeProps、infoProps | | state | 公共-State的属性 | function | resumeState、infoState |

参考文档

react-redux