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

@qynpm/admin-shell

v1.0.2

Published

起印后台受控视觉外壳组件包。

Readme

@qynpm/admin-shell

后台管理系统的受控视觉外壳,统一提供侧栏、顶部栏、标签栏、内容区和整体 Shell。

公开组件

  • QyAdminShell
  • QyAdminSidebar
  • QyAdminTopbar
  • QyAdminTabs
  • QyAdminContent

业务项目通常只装配 QyAdminShell

<QyAdminShell :model="shellModel" :host="shellHost">
  <AdminShellRouteOutlet />
</QyAdminShell>

modelhost 的权威协议来自 @qynpm/admin-framework。项目品牌通过 model.brand 注入。右上角控制台入口默认使用当前站点的 /auth,并复用 host.switchSystem 执行跳转;传入 model.consoleEntry 可覆盖入口,显式传入 null 可隐藏入口。公共包不会内置具体项目名称或 Logo。

QyAdminContent

QyAdminContent 是 Shell 与页面之间的唯一内容承载层:

  • <main> 负责内容 viewport、高度、背景、横向溢出边界和 Shell 到页面的响应式 padding。
  • admin-shell__main-inner 负责最大宽度与居中。
  • 普通模式在 inner 上生成唯一的 admin-shell__page-workspace,负责表面、边框、圆角、内部 padding 和页面纵向承载。
  • bare 模式保留内容 <main>,但不生成 workspace 视觉 class,并移除普通页面 padding、最大宽度和表面。

业务页面和 QyPage 不得重复绘制 workspace,也不应覆盖 admin-shell__main*。Drawer 等 overlay 继续 Teleport 到 body,不进入 workspace。

主题前置条件

消费项目必须在 Element Plus 原始 CSS 后自行导入 @qynpm/admin-theme@qynpm/admin-shell 只消费 --qy-* tokens,不会自动复制或定义整套 tokens:

import 'element-plus/dist/index.css'
import '@qynpm/admin-theme'

边界

本包只负责视觉和交互意图,不直接依赖:

  • Vue Router、RouterView、KeepAlive
  • Pinia 或项目 store
  • API client、动态路由加载和 feedback
  • 登录、退出、快捷入口或系统切换接口
  • 项目业务 DTO、权限码和品牌资源

Router、Tabs 持久化、业务 API 和页面出口由消费项目的 host adapter 负责。当前只维护 Vue 3 + Element Plus renderer;Naive UI 和 React 如有需要,以独立 renderer 或独立实现接入,不在组件内部增加条件分支。

验证

pnpm --filter @qynpm/admin-framework build
pnpm --filter @qynpm/ui build
pnpm --filter @qynpm/admin-shell test
pnpm --filter @qynpm/admin-shell typecheck
pnpm --filter @qynpm/admin-shell build