
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@cmsdriven/nuxt
Advanced tools
You build components in Vue or plain Html using our online editor. Create new routes on the fly and manage how your components appearing in the screen dynamically.
Note: There is an online chat support ready to help you with any question
npm i @cmsdriven/vue --save
On your parrent directory there is a file named cmsdriven.js
.
In this one add the components you want to use with the cmsdriven.
import ComponentOne from '@/components/ComponentOne';
import ComponentTwo from '@/components/ComponentTwo';
export default {
ComponentOne,
ComponentTwo,
};
Into your router.js
file include the following code
import { CmsDriven } from '@cmsdriven/vue';
const router = new Router({
mode: 'history',
routes: [
{
path: '/',
name: 'home',
component: YourCustomComponents
},
{
path: '*',
name: 'cmsdriven',
component: CmsDriven,
props: { accessToken: 'YOUR_API_TOKEN' }
}
...
]
IF you have not installed yet. Install this package
npm i vue-meta --save
And put it to your Router file
import Meta from 'vue-meta';
....
Vue.use(Router);
Vue.use(Meta); // Use it here
const router = new Router({
....
cmsdriven-prerender.json
"scripts": {
"build": "npm run cmsdriven-prerender && vue-cli-service build",
"cmsdriven-prerender": "node node_modules/cmsdriven-vue/prerender.js YOUR_ACCESS_TOKEN YOUR_ENV_NAME",
...
}
This is going to help prerender found out all the routes that comming from cmsdriven
const cmsdriven = require('./cmsdriven-prerender.json');
....
let prerenderSpaPlugin = new PrerenderSpaPlugin({
staticDir: path.resolve(__dirname, 'dist'),
routes: [
'/my-first-route/',
'/my-second-route/',
...Object.keys(cmsdriven)
],
...
FAQs
No1 Headless and Decoupled CMS for Vue.js Progressive JavaScript Framework.
We found that @cmsdriven/nuxt 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
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.