Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@droyer/nuxtcms
Advanced tools
Nuxt.js module for managing your projects data and content.
:memo: Write content in Markdown
:card_file_box: Use YAML for data
:lock: Can set content collection items to draft
:mag: Easy access to get the content and data you need
:label: Automatic tag API creation for any collections that include them in frontmatter
_CMS
directoryContent
for Markdown collectionsData
for Yaml collections and individual filesJSON
via the $cmsApi.get()
method# INSIDE NUXT SOUCE DIRECTORY
_CMS
├── Content
│ ├── Blog
│ ├── Markdown
│ └── Pages
└── Data
├── Courses
└── Projects
├── menu.yml
└── settings.yml
Markdown files go inside subdirectories within Content
Directory name of Blog
is NOT customizable
YAML files go inside within Data
as files or inside subdirectories
Subdirectories inside Data
are considered "DataCollections
"
This means they will a slug and title will automatically be provided for each
item within the collection so they can be used for dynamic route generation
NuxtCMS provides a helper via $cmsApi
that is available on the context and instance.
Whether you want all the items within a content type or a specific item, you use the same method, $cmsApi.get()
to get both content and data. For example:
const allProjects = $cmsApi.get("projects");
const specificProject = $cmsApi.get("projects", params.slug);
Getting All Items Within a Data or Content Collection
asyncData({ $cmsApi }) {
const articles = $cmsApi.get('articles')
return { articles }
}
Get An Item Within a Data or Content Collection
asyncData({ $cmsApi, params }) {
const article = $cmsApi.get('articles', params.slug)
return { article }
}
nuxtServerInit({ commit }, { $cmsApi }) {
commit('setDataFileExample', $cmsApi.get('data-file-example'))
}
computed: {
nav() {
return this.$cmsApi.get('nav-menu')
}
}
<style src="@droyer/nuxtcms/lib/assets/blog-styles.css"></style>
<style src="prismjs/themes/prism-tomorrow.css"></style>
nuxtcms
dependency with yarn
or npm
into your projectnuxtcms
to modules
section of nuxt.config.js
{
modules: [
// Simple usage
"@droyer/nuxtcms",
// With options
[
"@droyer/nuxtcms",
{
/* module options */
}
]
];
}
The Options go here
yarn install
or npm install
npm run dev
Copyright (c) David Royer droyer01@gmail.com
FAQs
CMS for Nuxt.js
We found that @droyer/nuxtcms 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.