From 93578d810d7b69f4dd2e8ad048beba007cbd6b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 24 Mar 2024 00:42:55 +0100 Subject: [PATCH] resources: deprecate attachments shortcode in frontmatter CMS config #22 --- vscode-frontmatter/snippets.de.json | 134 ++++++++++++++-------------- vscode-frontmatter/snippets.en.json | 134 ++++++++++++++-------------- 2 files changed, 134 insertions(+), 134 deletions(-) diff --git a/vscode-frontmatter/snippets.de.json b/vscode-frontmatter/snippets.de.json index 9c28ef260b..566ce9eae9 100644 --- a/vscode-frontmatter/snippets.de.json +++ b/vscode-frontmatter/snippets.de.json @@ -1,72 +1,5 @@ { "frontMatter.content.snippets": { - "Attachments": { - "body": [ - "{{% attachments title=\"[[&title]]\" pattern=\"[[&pattern]]\" sort=\"[[&sort]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" /%}}" - ], - "description": "Zeigt eine Liste der Dateianhänge der Seite an", - "fields": [ - { - "default": "", - "name": "title", - "title": "Titel", - "type": "string" - }, - { - "default": "", - "name": "pattern", - "title": "Regex zum Filtern der Dateinamen", - "type": "string" - }, - { - "choices": [ - "", - "asc", - "desc" - ], - "default": "", - "name": "sort", - "title": "Ausgabereihenfolge", - "type": "choice" - }, - { - "choices": [ - "", - "info", - "note", - "tip", - "warning", - "primary", - "secondary", - "accent", - "blue", - "green", - "gray", - "orange", - "red", - "default", - "transparent", - "code" - ], - "default": "", - "name": "style", - "title": "Stil-Schema", - "type": "choice" - }, - { - "default": "", - "name": "color", - "title": "CSS-Farbwert", - "type": "string" - }, - { - "default": "", - "name": "icon", - "title": "Font Awesome Icon", - "type": "string" - } - ] - }, "Badge": { "body": [ "{{% badge title=\"[[&title]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" %}}[[&content]]{{% /badge %}}" @@ -532,6 +465,73 @@ } ] }, + "Resources": { + "body": [ + "{{% resources title=\"[[&title]]\" pattern=\"[[&pattern]]\" sort=\"[[&sort]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" /%}}" + ], + "description": "Zeigt eine Liste von Resourcen eines Page Bundles an", + "fields": [ + { + "default": "", + "name": "title", + "title": "Titel", + "type": "string" + }, + { + "default": "", + "name": "pattern", + "title": "Regex zum Filtern der Dateinamen", + "type": "string" + }, + { + "choices": [ + "", + "asc", + "desc" + ], + "default": "", + "name": "sort", + "title": "Ausgabereihenfolge", + "type": "choice" + }, + { + "choices": [ + "", + "info", + "note", + "tip", + "warning", + "primary", + "secondary", + "accent", + "blue", + "green", + "gray", + "orange", + "red", + "default", + "transparent", + "code" + ], + "default": "", + "name": "style", + "title": "Stil-Schema", + "type": "choice" + }, + { + "default": "", + "name": "color", + "title": "CSS-Farbwert", + "type": "string" + }, + { + "default": "", + "name": "icon", + "title": "Font Awesome Icon", + "type": "string" + } + ] + }, "Site Param": { "body": [ "{{% siteparam name=\"[[&name]]\" %}}" diff --git a/vscode-frontmatter/snippets.en.json b/vscode-frontmatter/snippets.en.json index 32c1a2c94f..4424a1a0b1 100644 --- a/vscode-frontmatter/snippets.en.json +++ b/vscode-frontmatter/snippets.en.json @@ -1,72 +1,5 @@ { "frontMatter.content.snippets": { - "Attachments": { - "body": [ - "{{% attachments title=\"[[&title]]\" pattern=\"[[&pattern]]\" sort=\"[[&sort]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" /%}}" - ], - "description": "Displays a list of files attached to the page", - "fields": [ - { - "default": "", - "name": "title", - "title": "Title", - "type": "string" - }, - { - "default": "", - "name": "pattern", - "title": "Regex for filtering file names", - "type": "string" - }, - { - "choices": [ - "", - "asc", - "desc" - ], - "default": "", - "name": "sort", - "title": "Sorting order", - "type": "choice" - }, - { - "choices": [ - "", - "info", - "note", - "tip", - "warning", - "primary", - "secondary", - "accent", - "blue", - "green", - "gray", - "orange", - "red", - "default", - "transparent", - "code" - ], - "default": "", - "name": "style", - "title": "Style scheme", - "type": "choice" - }, - { - "default": "", - "name": "color", - "title": "CSS color value", - "type": "string" - }, - { - "default": "", - "name": "icon", - "title": "Font Awesome icon", - "type": "string" - } - ] - }, "Badge": { "body": [ "{{% badge title=\"[[&title]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" %}}[[&content]]{{% /badge %}}" @@ -532,6 +465,73 @@ } ] }, + "Resources": { + "body": [ + "{{% resources title=\"[[&title]]\" pattern=\"[[&pattern]]\" sort=\"[[&sort]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" /%}}" + ], + "description": "Displays a list of resources contained in a page bundle", + "fields": [ + { + "default": "", + "name": "title", + "title": "Title", + "type": "string" + }, + { + "default": "", + "name": "pattern", + "title": "Regex for filtering file names", + "type": "string" + }, + { + "choices": [ + "", + "asc", + "desc" + ], + "default": "", + "name": "sort", + "title": "Sorting order", + "type": "choice" + }, + { + "choices": [ + "", + "info", + "note", + "tip", + "warning", + "primary", + "secondary", + "accent", + "blue", + "green", + "gray", + "orange", + "red", + "default", + "transparent", + "code" + ], + "default": "", + "name": "style", + "title": "Style scheme", + "type": "choice" + }, + { + "default": "", + "name": "color", + "title": "CSS color value", + "type": "string" + }, + { + "default": "", + "name": "icon", + "title": "Font Awesome icon", + "type": "string" + } + ] + }, "Site Param": { "body": [ "{{% siteparam name=\"[[&name]]\" %}}"