
Security News
PyPI Expands Trusted Publishing to GitLab Self-Managed as Adoption Passes 25 Percent
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads
@x-edu/channel
Advanced tools
获取频道数据
await getChannelData({
channelId, // 必填 频道 ID
userRole, // 选填 用户角色,用于过滤频道板块
loginStatus, // 选填 登陆状态 用于过滤频道板块
platform, // 选填 平台 WEB | AAP,默认 WEB
env, // 选填 环境 ‘preprodcution’ | ‘ncet-xedu’ 默认 ‘ncet-xedu’
libraryServiceName, // 选填 库服务名 默认 zxx
appid, // 必填
isPreset, // 选填 默认 false
filter, // 选填 (section) => boolean 板块过滤函数
})
/**
* 1. 内部根据配置进行过滤,配置项为 是否需要登陆 角色权限
* 2. platform 只有在管理台选中 APP 时才需要特殊处理,主要用于 web 和 app 展示不同数据的情况
* 3. 自定义板块的数据格式和移动端保持一致
**/
图片轮播板块数据转换
convertBannerSection(section) // section 为 getChannelData 返回的数组中的一项
橱窗推荐板块数据转换
await convertWindowRecommend(section) // section 为 getChannelData 返回的数组中的一项
专题多组推荐板块数据转换
await convertMutipleGroupRecommend(section) // section 为 getChannelData 返回的数组中的一项
自定义板块数据转换
await convertProvider(section) // section 为 getChannelData 返回的数组中的一项
专题推荐板块数据转换
await convertSpecialRecommend(section) // section 为 getChannelData 返回的数组中的一项
平台枚举
export enum Platform {
WEB = 'WEB',
APP = 'APP',
}
环境枚举
库服务名枚举
登陆状态
FAQs
## API
The npm package @x-edu/channel receives a total of 1 weekly downloads. As such, @x-edu/channel popularity was classified as not popular.
We found that @x-edu/channel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 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.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.