Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Cubeshop 是一个基于 Web Components 的 UI 组件库。它是一个不局限于框架的组件复用(可在 Angular、React、Vue 等跨技术栈使用)。
Image from codeburst by @webrealizer
<script type="module" src="https://unpkg.com/cubeshop"></script>
// 或
<script type="module" src="https://cdn.jsdelivr.net/npm/cubeshop"></script>
敬请期待......
当作原生 dom 元素直接使用即可,如:
<template>
<div>
<cs-button type="primary">按钮</cs-button>
</div>
</template>
在 Vue 中直接使用 Web Component 可能会出现如下告警
Unknown custom element: <user-card> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
因此,请先注册需要忽略的标签:
// VUE2.x
Vue.config.ignoredElements = [/^cs-/]
// VUE3.x
// https://v3.cn.vuejs.org/guide/migration/global-api.html#config-productiontip-%E7%A7%BB%E9%99%A4
const app = createApp({})
app.config.compilerOptions.isCustomElement = tag => tag.startsWith('cs-')
cubeshop is released under the MIT License. See the bundled LICENSE file for details.
FAQs
Mobile UI Components built on Web Components.
We found that cubeshop demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.