forked from MapComplete/MapComplete
Themes: allow to easily import tagrenderings and add a prefix key to all tags
This commit is contained in:
parent
4d9bdaf877
commit
01680f236c
9 changed files with 201 additions and 31 deletions
|
@ -14,7 +14,7 @@ import NearbyImagesCollapsed from "../Image/NearbyImagesCollapsed.svelte"
|
|||
|
||||
class NearbyImageVis implements SpecialVisualizationSvelte {
|
||||
// Class must be in SpecialVisualisations due to weird cyclical import that breaks the tests
|
||||
args: { name: string; defaultValue?: string; doc: string; required?: boolean }[] = [
|
||||
args: [
|
||||
{
|
||||
name: "mode",
|
||||
defaultValue: "closed",
|
||||
|
@ -65,6 +65,7 @@ export class ImageVisualisations {
|
|||
args: [
|
||||
{
|
||||
name: "image_key",
|
||||
type: "key",
|
||||
defaultValue: AllImageProviders.defaultKeys.join(";"),
|
||||
doc: "The keys given to the images, e.g. if <span class='literal-code'>image</span> is given, the first picture URL will be added as <span class='literal-code'>image</span>, the second as <span class='literal-code'>image:0</span>, the third as <span class='literal-code'>image:1</span>, etc... Multiple values are allowed if ';'-separated ",
|
||||
},
|
||||
|
@ -95,6 +96,7 @@ export class ImageVisualisations {
|
|||
needsUrls: [Imgur.apiUrl, ...Imgur.supportingUrls],
|
||||
args: [
|
||||
{
|
||||
type: "key",
|
||||
name: "image_key",
|
||||
doc: "Image tag to add the URL to (or image-tag:0, image-tag:1 when multiple images are added)",
|
||||
defaultValue: "panoramax",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue