{
  "backend": {
    "name": "github",
    "repo": "cardopoli/tools",
    "branch": "main",
    "base_url": "https://sveltia-cms-auth.cardopoli.workers.dev"
  },
  "site_url": "https://cardopoli.github.io/tools",
  "display_url": "https://cardopoli.github.io/tools",
  "media_folder": "uploads",
  "public_folder": "/tools/uploads",
  "collections": [
    {
      "name": "tools",
      "label": "Tools",
      "description": "Edit your existing HTML tools and InDesign script. Upload new tools through the Asset Library in the tools folder. Source editing preserves the file format.",
      "media_folder": "",
      "public_folder": "/tools",
      "editor": {
        "preview": false
      },
      "files": [
        {
          "name": "InDesign-Relinker",
          "label": "InDesign relinker",
          "file": "InDesign_Relinker.jsx",
          "format": "raw",
          "fields": [
            {
              "name": "body",
              "label": "File contents",
              "widget": "text",
              "hint": "The complete source file. Saving replaces its contents. Use the public link below to run HTML tools."
            }
          ]
        },
        {
          "name": "deepgram-transcripts",
          "label": "Deepgram transcripts",
          "file": "deepgram_transcripts.html",
          "format": "raw",
          "fields": [
            {
              "name": "body",
              "label": "File contents",
              "widget": "text",
              "hint": "The complete source file. Saving replaces its contents. Use the public link below to run HTML tools."
            }
          ],
          "preview_path": "/tools/deepgram_transcripts.html"
        },
        {
          "name": "mvmnt",
          "label": "MVMNT routine",
          "file": "mvmnt.html",
          "format": "raw",
          "fields": [
            {
              "name": "body",
              "label": "File contents",
              "widget": "text",
              "hint": "The complete source file. Saving replaces its contents. Use the public link below to run HTML tools."
            }
          ],
          "preview_path": "/tools/mvmnt.html"
        },
        {
          "name": "positive-film",
          "label": "Positive Film",
          "file": "positive-film/index.html",
          "format": "raw",
          "fields": [
            {
              "name": "body",
              "label": "File contents",
              "widget": "text",
              "hint": "The complete source file. Saving replaces its contents. Use the public link below to run HTML tools."
            }
          ],
          "preview_path": "/tools/positive-film/"
        },
        {
          "name": "tender-tool",
          "label": "Tender tracker",
          "file": "tender_tool.html",
          "format": "raw",
          "fields": [
            {
              "name": "body",
              "label": "File contents",
              "widget": "text",
              "hint": "The complete source file. Saving replaces its contents. Use the public link below to run HTML tools."
            }
          ],
          "preview_path": "/tools/tender_tool.html"
        },
        {
          "name": "writing-tool",
          "label": "Writing desk",
          "file": "writing-tool.html",
          "format": "raw",
          "fields": [
            {
              "name": "body",
              "label": "File contents",
              "widget": "text",
              "hint": "The complete source file. Saving replaces its contents. Use the public link below to run HTML tools."
            }
          ],
          "preview_path": "/tools/writing-tool.html"
        },
        {
          "name": "writingtool",
          "label": "Earlier writing tool",
          "file": "archive/writingtool.html",
          "format": "raw",
          "fields": [
            {
              "name": "body",
              "label": "File contents",
              "widget": "text",
              "hint": "The complete source file. Saving replaces its contents. Use the public link below to run HTML tools."
            }
          ],
          "preview_path": "/tools/archive/writingtool.html"
        },
        {
          "name": "property-toolkit",
          "label": "Property toolkit",
          "file": "property-toolkit.html",
          "format": "raw",
          "fields": [
            {
              "name": "body",
              "label": "File contents",
              "widget": "text",
              "hint": "The complete source file. Saving replaces its contents. Use the public link below to run HTML tools."
            }
          ],
          "preview_path": "/tools/property-toolkit.html"
        }
      ]
    },
    {
      "name": "site",
      "label": "Homepage",
      "description": "Edit the existing homepage HTML.",
      "editor": {
        "preview": false
      },
      "files": [
        {
          "name": "homepage",
          "label": "Homepage",
          "file": "index.html",
          "format": "raw",
          "fields": [
            {
              "name": "body",
              "label": "HTML",
              "widget": "text"
            }
          ],
          "preview_path": "/tools/"
        }
      ]
    },
    {
      "name": "documents",
      "label": "Document links",
      "media_folder": "documents",
      "public_folder": "/tools/documents",
      "files": [
        {
          "name": "documents",
          "label": "Documents and downloads",
          "file": "data/documents.json",
          "fields": [
            {
              "name": "documents",
              "label": "Documents",
              "widget": "list",
              "fields": [
                {
                  "name": "title",
                  "label": "Title",
                  "widget": "string"
                },
                {
                  "name": "file",
                  "label": "File",
                  "widget": "file"
                },
                {
                  "name": "notes",
                  "label": "Notes",
                  "widget": "text",
                  "required": false
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "property_reference",
      "label": "Property guidance",
      "description": "Update country guidance and verified source links here. These fields update the Property Toolkit guidance panel automatically after publication. Calculator rules are maintained separately in code.",
      "editor": {
        "preview": false
      },
      "files": [
        {
          "name": "property-guidance",
          "label": "Property buying guidance (Italy & Slovenia)",
          "file": "data/property-guidance.json",
          "format": "json",
          "fields": [
            {
              "name": "last_reviewed",
              "label": "Overall review date",
              "widget": "datetime",
              "date_format": "YYYY-MM-DD",
              "time_format": false,
              "format": "YYYY-MM-DD"
            },
            {
              "name": "italy",
              "label": "Italy",
              "widget": "object",
              "fields": [
                {
                  "name": "last_reviewed",
                  "label": "Last reviewed",
                  "widget": "datetime",
                  "date_format": "YYYY-MM-DD",
                  "time_format": false,
                  "format": "YYYY-MM-DD",
                  "required": true
                },
                {
                  "name": "summary",
                  "label": "Cheapest legal route",
                  "widget": "text",
                  "required": false
                },
                {
                  "name": "savings",
                  "label": "Ways to save",
                  "widget": "text",
                  "required": false
                },
                {
                  "name": "warning",
                  "label": "Restrictions and warnings",
                  "widget": "text",
                  "required": false
                },
                {
                  "name": "resources",
                  "label": "Reference links",
                  "widget": "list",
                  "required": false,
                  "fields": [
                    {
                      "name": "title",
                      "label": "Link label",
                      "widget": "string"
                    },
                    {
                      "name": "url",
                      "label": "Source URL",
                      "widget": "string",
                      "pattern": [
                        "^https://.+",
                        "Use an https URL"
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name": "slovenia",
              "label": "Slovenia",
              "widget": "object",
              "fields": [
                {
                  "name": "last_reviewed",
                  "label": "Last reviewed",
                  "widget": "datetime",
                  "date_format": "YYYY-MM-DD",
                  "time_format": false,
                  "format": "YYYY-MM-DD",
                  "required": true
                },
                {
                  "name": "summary",
                  "label": "Cheapest legal route",
                  "widget": "text",
                  "required": false
                },
                {
                  "name": "savings",
                  "label": "Ways to save",
                  "widget": "text",
                  "required": false
                },
                {
                  "name": "warning",
                  "label": "Restrictions and warnings",
                  "widget": "text",
                  "required": false
                },
                {
                  "name": "resources",
                  "label": "Reference links",
                  "widget": "list",
                  "required": false,
                  "fields": [
                    {
                      "name": "title",
                      "label": "Link label",
                      "widget": "string"
                    },
                    {
                      "name": "url",
                      "label": "Source URL",
                      "widget": "string",
                      "pattern": [
                        "^https://.+",
                        "Use an https URL"
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "lingo",
      "label": "Lingo modules",
      "description": "Words and phrases for the Lingo tool (lingo.html). Add a module, or add items to one. Use | between equally correct answers: the first one is the one shown.",
      "files": [
        {
          "name": "modules",
          "label": "Modules",
          "file": "data/lingo/modules.json",
          "format": "json",
          "preview_path": "/tools/lingo.html",
          "fields": [
            {
              "name": "modules",
              "label": "Modules",
              "widget": "list",
              "summary": "{{fields.title_en}} / {{fields.title_it}}",
              "fields": [
                {
                  "name": "id",
                  "label": "Short id",
                  "widget": "string",
                  "pattern": [
                    "^[a-z0-9-]+$",
                    "Lowercase letters, numbers and hyphens only, e.g. at-the-market"
                  ],
                  "hint": "Never change it once people have practised: progress is tied to it."
                },
                {
                  "name": "title_en",
                  "label": "Title in English",
                  "widget": "string"
                },
                {
                  "name": "title_it",
                  "label": "Title in Italian",
                  "widget": "string"
                },
                {
                  "name": "hidden",
                  "label": "Hide this module",
                  "widget": "boolean",
                  "default": false,
                  "required": false
                },
                {
                  "name": "items",
                  "label": "Words and phrases",
                  "widget": "list",
                  "summary": "{{fields.en}} = {{fields.it}}",
                  "fields": [
                    {
                      "name": "en",
                      "label": "English",
                      "widget": "string",
                      "hint": "e.g. how much is it?|how much does it cost?"
                    },
                    {
                      "name": "it",
                      "label": "Italian",
                      "widget": "string",
                      "hint": "e.g. quanto costa?"
                    },
                    {
                      "name": "note",
                      "label": "Note (optional)",
                      "widget": "string",
                      "required": false,
                      "hint": "Shown when the word is first introduced"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
