@atscript/vue-aooth

中文文档
0.1.169发布于 2026/11/07MITTypeScriptESM + CJS近 30 天下载 2286

Custom form components for the Aooth auth system, built on @atscript/vue-form

原始使用文档
文档目录4 节
  1. What it provides
  2. Install
  3. Why a separate package
  4. License

Atscript UI

@atscript/vue-aooth

📚 Documentation: ui.atscript.dev

Custom Vue 3 form-field components for Aooth-driven consent collection and password-policy display. Drops into <AsForm :components> from @atscript/vue-form.

Part of the atscript-ui monorepo.

What it provides

  • AsConsentArray — multi-consent checkbox group bound to a string[]. Items arrive via @ui.form.fn.attr as { id, text, required? }. Markdown [label](url) links in consent text are sanitized to http(s):// / mailto: only.
  • AsPasswordRules — display-only readout of policy fulfilment. Each { rule, description? } rule string is evaluated through compileFieldFn from @atscript/ui-fns against the live password.
  • Both implement the TAsComponentProps contract from @atscript/vue-form — wire via <AsForm :components> and @ui.form.component.

Install

pnpm add @atscript/vue-aooth

Peer requirements: vue@^3, @atscript/vue-form, @atscript/ui-fns, @atscript/ui-styles.

Why a separate package

These components are Aooth-specific UX. Shipping them inside @atscript/vue-form would force consent chrome and password-rule machinery on every consumer who doesn't run auth flows. Apps that do — typically alongside @atscript/vue-wf — pull this package in on top.

License

MIT © Artem Maltsev

版本与发布记录

@atscript/vue-aooth 共发布 95 个版本,首次发布于 2026/05/26;过去 12 个月发布了 95 个版本。

版本发布日期距今
0.1.169latest2026/11/07今天
0.1.1682026/11/071 天前
0.1.1672026/11/061 天前
0.1.1662026/11/061 天前
0.1.1652026/11/061 天前
0.1.1642026/11/043 天前

关于 @atscript/vue-aooth 的常见问题

@atscript/vue-aooth 是什么?

Custom form components for the Aooth auth system, built on @atscript/vue-form

如何安装 @atscript/vue-aooth?

在项目目录运行 npm install @atscript/vue-aooth,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:vue(^3)、@atscript/vue-form(^0.1.169)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@atscript/vue-aooth 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@atscript/vue-aooth 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@atscript/vue-aooth 可以商用吗?

@atscript/vue-aooth 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@atscript/vue-aooth 的下载量有多少?

根据 npm 官方下载统计,@atscript/vue-aooth 在 2026/10/07 – 2026/11/05 这 30 天内被下载 2,286 次,日均约 76 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@atscript/vue-aooth 还在维护吗?

最新版本 0.1.169 发布于 2026/11/07(今天);至今共发布 95 个版本,其中过去 12 个月发布了 95 个;首次发布于 2026/05/26。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。