This commit is contained in:
Elio Struyf
2023-04-14 15:54:03 +02:00
parent 32da568025
commit 5f1279eeb8
2 changed files with 156 additions and 125 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "vscode-front-matter-beta", "name": "vscode-front-matter-beta",
"version": "8.4.0", "version": "8.5.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "vscode-front-matter-beta", "name": "vscode-front-matter-beta",
"version": "8.4.0", "version": "8.5.0",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@actions/core": "^1.8.2", "@actions/core": "^1.8.2",
+154 -123
View File
@@ -3,14 +3,15 @@
"displayName": "Front Matter CMS", "displayName": "Front Matter CMS",
"description": "Front Matter is a CMS that runs within Visual Studio Code. It gives you the power and control of a full-blown CMS while also providing you the flexibility and speed of the static site generator of your choice like: Hugo, Jekyll, Docusaurus, NextJs, Gatsby, and many more...", "description": "Front Matter is a CMS that runs within Visual Studio Code. It gives you the power and control of a full-blown CMS while also providing you the flexibility and speed of the static site generator of your choice like: Hugo, Jekyll, Docusaurus, NextJs, Gatsby, and many more...",
"icon": "assets/frontmatter-teal-128x128.png", "icon": "assets/frontmatter-teal-128x128.png",
"version": "8.4.0", "version": "8.5.0",
"preview": false, "preview": false,
"publisher": "eliostruyf", "publisher": "eliostruyf",
"galleryBanner": { "galleryBanner": {
"color": "#0e131f", "color": "#0e131f",
"theme": "dark" "theme": "dark"
}, },
"badges": [{ "badges": [
{
"description": "version", "description": "version",
"url": "https://img.shields.io/github/package-json/v/estruyf/vscode-front-matter?color=green&label=vscode-front-matter&style=flat-square", "url": "https://img.shields.io/github/package-json/v/estruyf/vscode-front-matter?color=green&label=vscode-front-matter&style=flat-square",
"href": "https://github.com/estruyf/vscode-front-matter" "href": "https://github.com/estruyf/vscode-front-matter"
@@ -60,7 +61,8 @@
"**/.frontmatter/config/*.json": "jsonc" "**/.frontmatter/config/*.json": "jsonc"
} }
}, },
"keybindings": [{ "keybindings": [
{
"command": "frontMatter.dashboard", "command": "frontMatter.dashboard",
"key": "alt+d" "key": "alt+d"
}, },
@@ -78,20 +80,24 @@
} }
], ],
"viewsContainers": { "viewsContainers": {
"activitybar": [{ "activitybar": [
"id": "frontmatter-explorer", {
"title": "Front Matter", "id": "frontmatter-explorer",
"icon": "assets/frontmatter-short-min.svg" "title": "Front Matter",
}] "icon": "assets/frontmatter-short-min.svg"
}
]
}, },
"views": { "views": {
"frontmatter-explorer": [{ "frontmatter-explorer": [
"id": "frontMatter.explorer", {
"name": "Front Matter", "id": "frontMatter.explorer",
"icon": "assets/frontmatter-short-min.svg", "name": "Front Matter",
"contextualTitle": "Front Matter", "icon": "assets/frontmatter-short-min.svg",
"type": "webview" "contextualTitle": "Front Matter",
}] "type": "webview"
}
]
}, },
"configuration": { "configuration": {
"$id": "#gobalconfiguration", "$id": "#gobalconfiguration",
@@ -155,7 +161,8 @@
"frontMatter.content.defaultFileType": { "frontMatter.content.defaultFileType": {
"type": "string", "type": "string",
"default": "md", "default": "md",
"oneOf": [{ "oneOf": [
{
"enum": [ "enum": [
"md", "md",
"mdx" "mdx"
@@ -171,7 +178,8 @@
"frontMatter.content.defaultSorting": { "frontMatter.content.defaultSorting": {
"type": "string", "type": "string",
"default": "", "default": "",
"oneOf": [{ "oneOf": [
{
"enum": [ "enum": [
"LastModifiedAsc", "LastModifiedAsc",
"LastModifiedDesc", "LastModifiedDesc",
@@ -498,7 +506,8 @@
"command": { "command": {
"$id": "#scriptCommand", "$id": "#scriptCommand",
"type": "string", "type": "string",
"anyOf": [{ "anyOf": [
{
"enum": [ "enum": [
"node", "node",
"bash", "bash",
@@ -672,7 +681,8 @@
"title", "title",
"file" "file"
], ],
"anyOf": [{ "anyOf": [
{
"required": [ "required": [
"schema" "schema"
] ]
@@ -726,7 +736,8 @@
"id", "id",
"path" "path"
], ],
"anyOf": [{ "anyOf": [
{
"required": [ "required": [
"schema" "schema"
] ]
@@ -1092,7 +1103,8 @@
"default": "", "default": "",
"description": "The ID of your taxonomy field. It cannot contain the \"tags\" or \"categories\" value.", "description": "The ID of your taxonomy field. It cannot contain the \"tags\" or \"categories\" value.",
"not": { "not": {
"anyOf": [{ "anyOf": [
{
"const": "" "const": ""
}, },
{ {
@@ -1257,7 +1269,8 @@
"type", "type",
"name" "name"
], ],
"allOf": [{ "allOf": [
{
"if": { "if": {
"properties": { "properties": {
"type": { "type": {
@@ -1415,48 +1428,51 @@
"fields" "fields"
] ]
}, },
"default": [{ "default": [
"name": "default", {
"pageBundle": false, "name": "default",
"fields": [{ "pageBundle": false,
"title": "Title", "fields": [
"name": "title", {
"type": "string" "title": "Title",
}, "name": "title",
{ "type": "string"
"title": "Description", },
"name": "description", {
"type": "string" "title": "Description",
}, "name": "description",
{ "type": "string"
"title": "Publishing date", },
"name": "date", {
"type": "datetime", "title": "Publishing date",
"default": "{{now}}", "name": "date",
"isPublishDate": true "type": "datetime",
}, "default": "{{now}}",
{ "isPublishDate": true
"title": "Content preview", },
"name": "preview", {
"type": "image" "title": "Content preview",
}, "name": "preview",
{ "type": "image"
"title": "Is in draft", },
"name": "draft", {
"type": "boolean" "title": "Is in draft",
}, "name": "draft",
{ "type": "boolean"
"title": "Tags", },
"name": "tags", {
"type": "tags" "title": "Tags",
}, "name": "tags",
{ "type": "tags"
"title": "Categories", },
"name": "categories", {
"type": "categories" "title": "Categories",
} "name": "categories",
] "type": "categories"
}], }
]
}
],
"scope": "Taxonomy" "scope": "Taxonomy"
}, },
"frontMatter.taxonomy.customTaxonomy": { "frontMatter.taxonomy.customTaxonomy": {
@@ -1469,7 +1485,8 @@
"type": "string", "type": "string",
"description": "ID for your taxonomy field. It cannot contain the \"tags\" or \"categories\" value.", "description": "ID for your taxonomy field. It cannot contain the \"tags\" or \"categories\" value.",
"not": { "not": {
"anyOf": [{ "anyOf": [
{
"const": "" "const": ""
}, },
{ {
@@ -1651,7 +1668,8 @@
} }
} }
}, },
"commands": [{ "commands": [
{
"command": "frontMatter.project.switch", "command": "frontMatter.project.switch",
"title": "Switch project", "title": "Switch project",
"category": "Front Matter", "category": "Front Matter",
@@ -1980,12 +1998,15 @@
"category": "Front Matter" "category": "Front Matter"
} }
], ],
"submenus": [{ "submenus": [
"id": "frontmatter.submenu", {
"label": "Front Matter" "id": "frontmatter.submenu",
}], "label": "Front Matter"
}
],
"menus": { "menus": {
"editor/title": [{ "editor/title": [
{
"command": "frontMatter.markup.heading", "command": "frontMatter.markup.heading",
"group": "navigation@-133", "group": "navigation@-133",
"when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg" "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg"
@@ -2066,11 +2087,14 @@
"when": "resourceFilename == 'frontmatter.json'" "when": "resourceFilename == 'frontmatter.json'"
} }
], ],
"explorer/context": [{ "explorer/context": [
"submenu": "frontmatter.submenu", {
"group": "frontmatter@1" "submenu": "frontmatter.submenu",
}], "group": "frontmatter@1"
"frontmatter.submenu": [{ }
],
"frontmatter.submenu": [
{
"command": "frontMatter.createFromTemplate", "command": "frontMatter.createFromTemplate",
"when": "explorerResourceIsFolder", "when": "explorerResourceIsFolder",
"group": "frontmatter@1" "group": "frontmatter@1"
@@ -2086,7 +2110,8 @@
"group": "frontmatter@3" "group": "frontmatter@3"
} }
], ],
"commandPalette": [{ "commandPalette": [
{
"command": "frontMatter.init", "command": "frontMatter.init",
"when": "frontMatterCanInit" "when": "frontMatterCanInit"
}, },
@@ -2231,7 +2256,8 @@
"when": "frontMatter:file:isValid == true" "when": "frontMatter:file:isValid == true"
} }
], ],
"view/title": [{ "view/title": [
{
"command": "frontMatter.chatbot", "command": "frontMatter.chatbot",
"group": "navigation@0", "group": "navigation@0",
"when": "view == frontMatter.explorer" "when": "view == frontMatter.explorer"
@@ -2258,52 +2284,57 @@
} }
] ]
}, },
"grammars": [{ "grammars": [
"path": "./syntaxes/hugo.tmLanguage.json", {
"scopeName": "frontmatter.markdown.hugo", "path": "./syntaxes/hugo.tmLanguage.json",
"injectTo": [ "scopeName": "frontmatter.markdown.hugo",
"text.html.markdown" "injectTo": [
] "text.html.markdown"
}], ]
"walkthroughs": [{ }
"id": "frontmatter.welcome", ],
"title": "Get started with Front Matter", "walkthroughs": [
"description": "Discover the features of Front Matter and learn how to use the CMS for your SSG or static site.", {
"steps": [{ "id": "frontmatter.welcome",
"id": "frontmatter.welcome.init", "title": "Get started with Front Matter",
"title": "Get started", "description": "Discover the features of Front Matter and learn how to use the CMS for your SSG or static site.",
"description": "Initial steps to get started.\n[Open dashboard](command:frontMatter.dashboard)", "steps": [
"media": { {
"markdown": "assets/walkthrough/get-started.md" "id": "frontmatter.welcome.init",
"title": "Get started",
"description": "Initial steps to get started.\n[Open dashboard](command:frontMatter.dashboard)",
"media": {
"markdown": "assets/walkthrough/get-started.md"
},
"completionEvents": [
"onContext:frontMatterInitialized"
]
}, },
"completionEvents": [ {
"onContext:frontMatterInitialized" "id": "frontmatter.welcome.documentation",
] "title": "Documentation",
}, "description": "Check out the documentation for Front Matter.\n[View our documentation](https://frontmatter.codes/docs)",
{ "media": {
"id": "frontmatter.welcome.documentation", "markdown": "assets/walkthrough/documentation.md"
"title": "Documentation", },
"description": "Check out the documentation for Front Matter.\n[View our documentation](https://frontmatter.codes/docs)", "completionEvents": [
"media": { "onLink:https://frontmatter.codes/docs"
"markdown": "assets/walkthrough/documentation.md" ]
}, },
"completionEvents": [ {
"onLink:https://frontmatter.codes/docs" "id": "frontmatter.welcome.supporter",
] "title": "Support the project",
}, "description": "Become a supporter.\n[Support the project](https://github.com/sponsors/estruyf)",
{ "media": {
"id": "frontmatter.welcome.supporter", "markdown": "assets/walkthrough/support-the-project.md"
"title": "Support the project", },
"description": "Become a supporter.\n[Support the project](https://github.com/sponsors/estruyf)", "completionEvents": [
"media": { "onLink:https://github.com/sponsors/estruyf"
"markdown": "assets/walkthrough/support-the-project.md" ]
}, }
"completionEvents": [ ]
"onLink:https://github.com/sponsors/estruyf" }
] ]
}
]
}]
}, },
"scripts": { "scripts": {
"dev:ext": "npm run clean && npm-run-all --parallel watch:*", "dev:ext": "npm run clean && npm-run-all --parallel watch:*",
@@ -2431,4 +2462,4 @@
"vsce": { "vsce": {
"dependencies": false "dependencies": false
} }
} }