From d288ac81977a261e281d4840b47a5b6df6eb0353 Mon Sep 17 00:00:00 2001 From: Tammo ter Hark Date: Mon, 30 Nov 2026 12:27:00 +0100 Subject: [PATCH] chore(files): sync files/preview.svg publicly (row 237) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The export now excludes only the WIP files/logos.svg, not preview.svg: preview.svg is the editable source of files/preview.png and is committed and shipped in the public zip like any other theme file (row 235 already removed it from .gitignore). LimeSurvey's image validator still rejects SVG for option images, so the preview shown inside LimeSurvey remains the exported PNG. Verified: export_public.sh exit 0 (leak + external-host checks green — the URL scan does not cover .svg and www.w3.org is allowlisted anyway), the new dist zip contains files/preview.svg + files/preview.png and no logos.svg, logos.svg stays gitignored. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- .gitignore | 10 +- files/preview.svg | 250 ++++++++++++++++++++++++++++++++++++++ variants/export_public.sh | 2 +- 3 files changed, 256 insertions(+), 6 deletions(-) create mode 100644 files/preview.svg diff --git a/.gitignore b/.gitignore index ecaf2b3..25cb1ad 100644 --- a/.gitignore +++ b/.gitignore @@ -36,11 +36,11 @@ /files/logos.svg # NOTE: files/preview.svg is deliberately NOT ignored (standing rule, row 235): -# it is the editable source of files/preview.png and is meant to be committed — -# in a variant (private variants repo) build.php adds it only once, at first -# creation, and never overwrites it afterwards. The public export still excludes -# all files/*.svg (see variants/export_public.sh): LimeSurvey's image validator -# rejects SVG for theme images, so only the exported PNG ships. +# it is the editable source of files/preview.png and is committed AND synced +# publicly (row 237: the export excludes only files/logos.svg, not preview.svg). +# In a variant (private variants repo) build.php adds it only once, at first +# creation, and never overwrites it afterwards. LimeSurvey's image validator +# rejects SVG for option images, so the theme preview itself is still the PNG. # Session prompt log (prompts used + results). Internal working notes — never # commit, never publish. diff --git a/files/preview.svg b/files/preview.svg new file mode 100644 index 0000000..dc7c60b --- /dev/null +++ b/files/preview.svg @@ -0,0 +1,250 @@ + + + +Custom templateVanilla RespondageA clean and very versatile template, based on the Core template Vanilla, with many added options. + +Designed for LimeSurvey 7 for use on both wide screens as well as small screens (mobile phones). Uses own fonts. + +Can be used as a basis for further development.Built with pride by: www.respondage.nl diff --git a/variants/export_public.sh b/variants/export_public.sh index cfea4bd..b0ce9b3 100644 --- a/variants/export_public.sh +++ b/variants/export_public.sh @@ -105,7 +105,7 @@ mkdir -p "$STAGE" "$OUT_DIR" # in .gitignore (the public repo tracks the remaining files; the generic # variants/ tooling build.php + export_public.sh IS included, the client # definitions *.json, leak-patterns.txt and tests/ are NOT) -(cd "$THEME_DIR" && tar --exclude='./.git' --exclude='./dist' --exclude='./variants/*.json' --exclude='./variants/leak-patterns.txt' --exclude='./variants/tests' --exclude='./sass' --exclude='./css/*.map' --exclude='./files/*.svg' --exclude='./FEATURE_REQUEST*.md' --exclude='./BUG_REPORT*.md' --exclude='./SECURITY_REVIEW*.md' --exclude='./OPEN_PROMPTS.md' --exclude='./AGENTS.md' --exclude='./prompts.md' --exclude='./limesurvey.md' --exclude='./.vibe' --exclude='./node_modules' --exclude='./package.json' --exclude='./package-lock.json' --exclude='./tmp' -cf - .) | (cd "$STAGE" && tar -xf -) +(cd "$THEME_DIR" && tar --exclude='./.git' --exclude='./dist' --exclude='./variants/*.json' --exclude='./variants/leak-patterns.txt' --exclude='./variants/tests' --exclude='./sass' --exclude='./css/*.map' --exclude='./files/logos.svg' --exclude='./FEATURE_REQUEST*.md' --exclude='./BUG_REPORT*.md' --exclude='./SECURITY_REVIEW*.md' --exclude='./OPEN_PROMPTS.md' --exclude='./AGENTS.md' --exclude='./prompts.md' --exclude='./limesurvey.md' --exclude='./.vibe' --exclude='./node_modules' --exclude='./package.json' --exclude='./package-lock.json' --exclude='./tmp' -cf - .) | (cd "$STAGE" && tar -xf -) # 2. leak check: no client-identifying strings may remain (text files only). # Client names are NOT hardcoded in this public file. Patterns are derived: