
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
valaxy-addon-components
Advanced tools
valaxy-addon-components is a plugin that provides general-purpose Vue components for Valaxy.
pnpm add valaxy-addon-components
You can enable common components of the plugin as follows. For a full list of common components, see Common Components.
import { defineValaxyConfig } from 'valaxy'
import { addonComponents } from 'valaxy-addon-components'
export default defineValaxyConfig({
addons: [
addonComponents(),
],
})
You can also extend unplugin-vue-components
using the plugin's ValaxyThemesResolver
to introduce third-party themes. Here is an example using the Yun theme:
import { defineValaxyConfig } from 'valaxy'
import { ValaxyThemesResolver } from 'valaxy-addon-components'
export default defineValaxyConfig({
components: {
resolvers: [ValaxyThemesResolver({ themes: ['yun'] })],
},
})
Property | Type | Default | Description |
---|---|---|---|
themes | string[] | --- | Third-party themes to import components from |
[!TIP] By default, the system will automatically recognize components under the
components
folder. To manually specify the component path relationships, theme support is required. Create acomponents.json
file in the root directory of the theme, and specify the component names and their paths relative to thecomponents
folder, as shown below:
{
"YunCollectionItem": "collection/YunCollectionItem.vue"
}
Most users may want to mount the components to the footer of the theme. You can create a new file in the components
folder, such as MyFooter.vue
, and use it as follows:
<template>
<YunFooter>
<VCLiveTime start-time="2022-01-01">
<template #live-time-before>
<span>This site has been running for</span>
</template>
<template #live-time-after>
<span>suffix</span>
</template>
</VCLiveTime>
</YunFooter>
</template>
Used to display the site's uptime.
Property | Type | Default | Description |
---|---|---|---|
startTime | string | --- | The time from which the site starts counting |
Encapsulates third-party services and follows general naming rules.
CodePen
: Codepen
FAQs
Common Components for Valaxy
We found that valaxy-addon-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.