
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@teamix/icon
Advanced tools
@teamix/icon
独立的 teamix 图标组件
参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 |
---|---|---|---|---|---|
type | 图标类型 | 是 | string | ||
symbolPrefix | iconfont.cn 项目前缀,可从项目信息中查看 | 否 | string | 'hybridcloud-' | 优先级高于 Provider、setConfig 设置的 symbolPrefix |
size | 图标尺寸 | 否 | 'xxs' | 'xs' | 'small' | 'medium' | 'large' | 'xl' | 'xxl' | 'xxxl' |'inherit' | 'medium' | |
style | 设置组件样式 | 否 | React.CSSProperties | ||
className | 设置组件类名 | 否 | string |
注:
入参为一个对象
interface IOption {
symbolPrefix?: string;
scriptUrl: string | string [];
}
默认内置 TeamixIcon.YUNXIAO
, TeamixIcon.HYBRIDCLOUD
,即
// 云效
TeamixIcon.setConfig(TeamixIcon.YUNXIAO);
// 混合云
TeamixIcon.setConfig(TeamixIcon.HYBRIDCLOUD);
以组件形式通过 react context 进行全局设置:
<TeamixIcon.Provider config={TeamixIcon.HYBRIDCLOUD}>
<TeamixIcon type="xxx" />
</TeamixIcon.Provider>
config
格式同上, 为:
interface IOption {
symbolPrefix?: string;
scriptUrl: string | string [];
}
参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 |
---|---|---|---|---|---|
scriptUrl | iconfont.cn 项目在线生成的 symbol js 地址,为数组时需保证 symbolPrefix 一致 | 是 | string | string[] | ||
symbolPrefix | iconfont.cn 项目前缀,可从项目信息中查看 | 否 | string | 'hybridcloud-' |
注:
TeamixIcon.setConfig
或者 TeamixIcon.Provider
指定图标源信息TeamixIcon.Provider
优先级高于 TeamixIcon.setConfig
TeamixIcon.setConfig
每次调用会增加图标源(重复的不会添加),symbolPrefix
后设置会覆盖前设置的值。如果不想被覆盖,可通过 symbolPrefix
组件属性进行设置TeamixIcon.Provider
遵循就近原则,在组件树中最接近TeamixIcon
的嵌套优先级最高FAQs
独立的 teamix 图标组件
We found that @teamix/icon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 21 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.