Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@nuxt-alt/antdv
Advanced tools
Ant Design Vue module for Nuxt
A somewhat comprehensive module for Ant Design Vue
@nuxt-alt/antdv
and less
dependency to your projectyarn add @nuxt-alt/antdv less
@nuxt-alt/antdv
to the modules
section of nuxt.config.ts
export default defineNuxtConfig({
modules: [
'@nuxt-alt/antdv'
],
antdv: {
/* module options */
}
});
styles
String
less
Whether to use less
or css
for procesing. Do note that all themes
options will not work with css
as it is a pre-generated file.
Style | Description |
---|---|
less | Renders the stylesheet in less |
css | Renders the stylesheet in css |
icons
Boolean
true
Whether to enable resolving icons for ant-design-vue.
themes.suffix
String
-theme
The suffix for when using the custom
mode.
themes.mode
String
default
The theme mode to choose for ant-design-vue, choosing default
will disable the option to use custom themes as they rely on being enclosed in a class.
Mode | Description |
---|---|
default | Renders the default theme of ant-design-vue, which is the light theme but without being enclosed into a theme class |
custom | disables the default theme in favor of using the light and/or dark theme |
themes.dark
Object | boolean
false
Modify the properties of the default dark theme.
Properties | Type | Description |
---|---|---|
compact | Boolean | Whether to use compact variables |
theme | String | The theme's name |
themePrefix | String | Prefix of the theme to use ofr enclosing |
modifyVars | Object | The variables to edit for the theme |
themes.light
Object | boolean
false
Modify the properties of the default light theme.
Properties | Type | Description |
---|---|---|
compact | Boolean | Whether to use compact variables |
theme | String | The theme's name |
themePrefix | String | Prefix of the theme to use ofr enclosing |
modifyVars | Object | The variables to edit for the theme |
themes.prefixClass
String
ant
Set the Class prefix for all the themes. For example instead of ant-button
, if you were to set it as app
it would then be app-button
. You also need to change this in your ConfigProvider
for ant-design-vue`
themeConfig
Array
Object
[]
You may register any other themes you wish to include in the preprocessing options.
Example (Example of a dark theme):
// nuxt.config.ts
export default defineNuxtConfig({
antdv: {
themeConfig: [{
theme: 'dark',
themePrefix: 'dark',
dark: true,
compact: false,
modifyVars: {
'text-color': 'fade(@white, 65%)',
'gray-8': '@text-color',
'background-color-base': '#555',
'skeleton-color': 'rgba(0,0,0,0.8)',
'root-entry-name': 'dark'
},
}]
}
});
Setting the dark
property will use the dark variables, setting the compact
proprty will use compact variables.
FAQs
A nuxt module to handle the use of ant-design-vue
The npm package @nuxt-alt/antdv receives a total of 0 weekly downloads. As such, @nuxt-alt/antdv popularity was classified as not popular.
We found that @nuxt-alt/antdv 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.