
Security News
PHP Foundation Says Chainguard Broke Security Embargo Ahead of Emergency Patches
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.
@apform-ui/plugins
Advanced tools
@schema-ui 插件扩展,提供国际化、埋点、权限等 Vue 插件。
npm install @apform-ui/plugins vue
| 插件 | 说明 |
|---|---|
createI18nPlugin | 轻量国际化 |
createAnalyticsPlugin | 轻量埋点 |
createPermissionPlugin | 权限指令 |
import { createI18nPlugin, useI18n } from '@apform-ui/plugins'
const i18n = createI18nPlugin({
locale: 'zh-CN',
messages: {
'zh-CN': { hello: '你好', greeting: '你好,{name}' },
'en': { hello: 'Hello', greeting: 'Hello, {name}' },
},
})
app.use(i18n)
<script setup>
import { useI18n } from '@apform-ui/plugins'
const { t, setLocale } = useI18n()
</script>
<template>
<p>{{ t('hello') }}</p>
<p>{{ t('greeting', { name: '张三' }) }}</p>
</template>
import { createAnalyticsPlugin, track } from '@apform-ui/plugins'
app.use(createAnalyticsPlugin({
onTrack: (event) => {
// 上报到你的分析平台
console.log('track:', event)
},
}))
track('button_click', { button: 'save' })
import { createPermissionPlugin, usePermission } from '@apform-ui/plugins'
const perm = createPermissionPlugin({
getPermissions: async () => {
const res = await fetch('/api/permissions')
return res.json()
},
})
app.use(perm)
await perm.loadPermissions()
<template>
<!-- 有权限才渲染 -->
<button v-permission="'user:delete'">删除</button>
<button v-permission="['user:edit', 'user:delete']">编辑</button>
</template>
FAQs
@schema-ui 插件扩展 — 国际化/埋点/权限指令
The npm package @apform-ui/plugins receives a total of 0 weekly downloads. As such, @apform-ui/plugins popularity was classified as not popular.
We found that @apform-ui/plugins demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.

Security News
PHP releases emergency patches for two critical RCE vulnerabilities as agencies urge organizations to take unpatched sites offline.

Threat Research
/Security News
A supply chain attack compromised LiteLLM 1.107.0 on PyPI and Docker, spreading malware that steals cloud credentials, developer secrets, and AI provider keys.