
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@cloak-app/visual
Advanced tools
Adpaters for vue-visual using @nuxt/image.
yarn add @cloak-app/visualnuxt.config with buildModules: ['@cloak-app/visual']Also, you'll likely want to add a provider to @nuxt/image as well. Here is an example configuration using imgix with a source images uploaded to a different domain (like if we were using DigitalOcean Spaces for image storage).
// nuxt.config.js
export default {
image: {
provider: 'imgix',
domains: ['your-source.domain.com'],
imgix: {
baseURL: 'https://your-subdomain.imgix.net',
}
}
}
At the moment, there is no support for Craft image transforms. I'm not entirely sure I even want to support them because it puts a heavy load on the CMS server. Thus, when working with Craft, use 3rd party image CDN, like Imgix, or the static provider.
.max-w* styles (included in Cloak via whitespace.styl)Set these properties within cloak: { visual: { ... } } in the nuxt.config.js:
placeholderColor - Sets the vue-visual placeholder-color. Defaults to rgba(0,0,0,.2).srcsetSizes - An array of viewport widths that will be used to make srcset values from. Defaults to [1920, 1440, 1024, 768, 425, 210].blockMaxWidth - A string that should match a global CSS class that adds horizontal padding and a max-width to the block component. Defaults to max-w.<cloak-visual />
Renders a vue-visual instance using Cloak defaults.
provider - Use a specific @nuxt/image provider rather than the defaultpreset - Use a specific @nuxt/image presetnatural - Set width and height to natural sizeno-upscale - Use image's width as a max-widthno-placeholder - Clear placeholder color, like for logos. The placeholder is automatically isabledvue-visual props<cloak-visual-responsive />
Conditionally render landscape or portrait Visual instances.
landscape-image - Image shown on landscape orientation viewportsportrait-image - Image shown on landscape orientation viewportscloak-visual props<cloak-visual-block />
The block component simply renders a 100% width Visual within the max-width gutters using the default @nuxt/image provider.
maxWidth - A max-w-* class to apply to the blockcloak-visual-responsive props<cloak-visual-craft-block />
Renders a cloak-visual-responsive at 100vw but with max-width gutters. It's expecting data from a GQL fragment like this:
#import "@cloak-app/craft/queries/fragments/responsive-image.gql"
#import "@cloak-app/craft/queries/fragments/responsive-video.gql"
fragment mediaAssetBlock on blocks_mediaAsset_BlockType {
image: responsiveImage { ... responsiveImage }
video: responsiveVideo { ... responsiveVideo }
maxWidth
}
<responsive-craft-visual />
Renders a cloak-visual-responsive instance using Craft Super Table objects that contain landscape and portrait assets.
image - Expecting an object from queries/fragments/responsive-image.gqlvideo - Expecting an object from queries/fragments/responsive-video.gqlcloak-visual-responsive props<craft-visual />
Renders a cloak-visual instance using Craft asset objects.
image - Expecting an object from queries/fragments/image.gqlvideo - Expecting an object from queries/fragments/video.gqlcloak-visual propsRun yarn dev to open a Nuxt dev build of the demo directory.
FAQs
Adpaters for vue-visual using @nuxt/image.
We found that @cloak-app/visual 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.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.