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 🙏

© 2025 – Pkg Stats / Ryan Hefner

egova-admin-web

v2.4.12-r210.5

Published

新版统一用户中心前端项目

Downloads

840

Readme

egova-admin-web

新版统一用户中心前端项目

环境需求:

node>=16.0.0
pnpm>=8.0.0

运行

本地运行

pnpm install
pnpm serve

# 运行项目分支
pnpm serve --mode project

打包

pnpm build

# 打包项目分支
pnpm build --mode project

打包预览

pnpm preview

# 打包预览项目分支
pnpm preview --mode project

打包第三方集成 lib

pnpm run lib
打包后的文件在根目录lib下,
直接发布即可。
npm publish

文件拆分

*.vue 组件分散到多个文件中,可以为一个语块使用 src 这个 attribute 来导入一个外部文件

<template src="./template.html"></template>
<style src="./style.css"></style>
<script setup></script> 

如果需要给组件命名,使用了插件 vite-plugin-vue-setup-extend,就可以如下写法

<script src="./script.ts" setup name="xxx"></script>

不使用插件,则如下

<script lang="ts">
export default { name: 'CommonHeader' }
</script>
<script lang="ts" setup></script>

自定义指令集

项目中如果有全局的一些问题,可以通过自定义指令集方式实现,目前实现的有:

v-emoji:限制输入内容,默认只能输入中文,英文,数字。可通过外部传入正则表达式:

例如:

// 输入内容按照 传入的reg正则表达式进行处理
<a-input v-model:value="formData.username" v-emoji="reg"></a-input>

// 不传值,则默认只能输入 中文,英文,数字
<a-input v-model:value="formData.username" v-emoji></a-input>

v-upper:输入框小写转大写

登录页定制

支持登录页定制。

项目文件夹与项目名称

标准版本登录组件与项目版本登录组件以 src/views/login/projects 目录划分,项目名称以公司统一规范的项目命名命名。

开发说明

下述使用 name 指代项目名称:

  • 新建 src/views/login/projects/name 文件夹,组件名称命名为 LoginProjectName
  • 参考 src/views/login/projects/standard 组件开发登录组件。登录组件所需的变量与函数由 useLogin 函数统一提供,只需要定制编写 <template><style>
  • 登录入口组件添加动态组件引用 LoginProjectName: defineAsyncComponent(() => import("./projects/name/index.vue"))
  • 系统配置项 修改 登录页项目名称name

常见问题

开发环境代理配置

使用环境变量 env.PROXY_PATH_API 定义服务代理地址,变量定义在 .env.development 中:

########## 代理配置 ##########
# 主代理
PROXY_PATH_API=http://192.168.1.1/admin-api

开发时,不建议修改 .env.development 文件,应该新建 .env.development.local 文件定义本地变量。此文件会被 git 忽略,不会提交。

参考文档 环境变量和模式