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

htui-yllkbz-vue

v0.2.17

Published

+ 字体为思源字体 + SourceHanSansCN-Regular 正常字体 + SourceHanSansCN-Medium 加粗字体 + 代码压缩 compression-webpack-plugin + 配置文件 baseConfig.json 相关的基本配置数据 + 接口工具 利用Nswage工具依据swagger.json生成 + vue-kst-auth 封装的授权npm包 + vue-router + Pinia 状态管理 + elementPlus ui库 + axios 尽量使用vu

Downloads

169

Readme

产品架构

  • 字体为思源字体
    • SourceHanSansCN-Regular 正常字体
    • SourceHanSansCN-Medium 加粗字体
  • 代码压缩 compression-webpack-plugin
  • 配置文件 baseConfig.json 相关的基本配置数据
  • 接口工具 利用Nswage工具依据swagger.json生成
  • vue-kst-auth 封装的授权npm包
  • vue-router
  • Pinia 状态管理
  • elementPlus ui库
  • axios 尽量使用vue-kst-auth包中暴露的_axios

目录结构

|—— build // 构建过程中版本自动生成插件
|—— public
|—— dist
    |—— component // 执行 yarn run exports 生成的web组件
|—— src
    |—— assets
        |—— them // 主题文件(element-ui自定义主题)
    |—— plugins // 插件
    |—— exports // web组件
    |—— router // 路由
    |—— store
        |—— index.ts // 基本数据
    |—— views
    | App.vue

vue-kst-auth包

  • 包含_axios,封装了axios,能够自动获取授权信息、报错拦截弹框
  • baseConfig
  • 基础数据声明

声明使用示例,更多声明查看包内容

import { ISeverityLevelDto } from "vue-kst-auth";
/** 严重等级 */
const body: ISeverityLevelDto[] | undefined = [];

封装Web Components

按照exports文件下的temp.ce.vue文件来编写web组件,相关引入elementPlus会增加打包后的文件大小,组件不需要elementPlus的情况下将相应代码注释掉或者删除掉。 exports文件下index.ts文件会自动将exports文件下.ce.vue结尾的文件全部打包成web组件

web组件使用 web components

第一种
<script type="module" src="对应地址/component/wc-lib.es.js"></script>
第二种:可以查看有哪些组件可用
    <!-- <script type="module">
        import { wcNameList } from "./component/wc-lib.es.js";
        console.log("组件列表",wcNameList);
    </script> -->
在html中使用:目前需要添加if来渲染,最好传z-index值,不然会出现层级问题
<vite-ts-vue3-temp z-index="" v-if="state.dialogVisible"></vite-ts-vue3-temp>
在Temp.ce.vue中含有获取最高层级代码,z-index不传值的情况下web组件中自动或者最高层级,可能还存在不稳定问题。

项目开始

yarn install

项目运行

yarn run serve

打包

yarn run build

Run your tests

yarn run test

Lints and fixes files

yarn run lint

Customize configuration

See Configuration Reference.