Update myTemplateGenerator to version 0.0.2. Added logo and additional images for the user interface. Enhanced README with new features and visual configurator instructions. Updated package.json with new version and icon path.

This commit is contained in:
S.Gromov
2025-07-13 20:40:45 +03:00
parent b87b04d407
commit c77dd99175
8 changed files with 52 additions and 7 deletions

View File

@@ -6,17 +6,25 @@
# English
## myTemplateGenerator — Template-based structure generation for VSCode
## My Template Generator — Template-based structure generation for VSCode
![Logo](https://raw.githubusercontent.com/gormov1122/MyTemplateGenerator/main/src/images/1.png)
**Features:**
- Syntax highlighting and autocomplete for template variables in templates
- Generate files and folders from templates with variable substitution
- Flexible configuration via `mytemplategenerator.json` or visual configurator
- Full localization (English/Russian) for all UI, messages, and menus
- Choose variable input mode: Webview (form) or inputBox (one by one)
- Overwrite control: allow or forbid overwriting existing files/folders
- Smart conflict handling: clear notifications if structure already exists
- **No Handlebars dependency**: variable substitution is handled by the extension itself
Context menu "Create from template..." is available by right-clicking any folder.
![Logo](https://raw.githubusercontent.com/gormov1122/MyTemplateGenerator/main/src/images/2.png)
Convenient UI for creation: just select a template and specify values for the variables used in the template. (The list of variables updates automatically)
![Logo](https://raw.githubusercontent.com/gormov1122/MyTemplateGenerator/main/src/images/3.png)
User-friendly settings UI.
![Logo](https://raw.githubusercontent.com/gormov1122/MyTemplateGenerator/main/src/images/4.png)
### Quick Start
1. Create a `templates` folder in your project root.
@@ -68,6 +76,8 @@ const name = '{{name}}';
```
### Configuration
**To open the visual configurator, press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>, type `Configure myTemplateGenerator...` and select the command.**
Use `mytemplategenerator.json` in your project root or the visual configurator (**Configure myTemplateGenerator...**):
```json
{
@@ -99,17 +109,26 @@ Use `mytemplategenerator.json` in your project root or the visual configurator (
# Русский
## myTemplateGenerator — Генерация структуры из шаблонов для VSCode
## My Template Generator — Генерация структуры из шаблонов для VSCode
![Логотип](https://raw.githubusercontent.com/gormov1122/MyTemplateGenerator/main/src/images/1.png)
**Возможности:**
- Подсветка синтаксиса и автокомплит переменных в шаблонах
- Генерация файлов и папок по шаблонам с подстановкой переменных
- Гибкая настройка через `mytemplategenerator.json` или визуальный конфигуратор
- Полная локализация (русский/английский) для всего интерфейса, сообщений и меню
- Выбор способа ввода переменных: Webview (форма) или inputBox (по одной)
- Контроль перезаписи: можно запретить или разрешить перезапись существующих файлов/папок
- Умная обработка конфликтов: понятные уведомления, если структура уже существует
- **Без зависимости от Handlebars**: подстановка переменных реализована внутри расширения
Контекстное меню "Создать из шаблона.." доступно правым кликом по любой папке.
![Логотип](https://raw.githubusercontent.com/gormov1122/MyTemplateGenerator/main/src/images/2.png)
Удобный UI создания, нужно только выбрать шаблок и указать значения переменных используемых в шаблоне. (Список переменных обновляется автоматически)
![Логотип](https://raw.githubusercontent.com/gormov1122/MyTemplateGenerator/main/src/images/3.png)
Удобный UI интерфейс настроек.
![Логотип](https://raw.githubusercontent.com/gormov1122/MyTemplateGenerator/main/src/images/4.png)
### Быстрый старт
1. В корне проекта создайте папку `templates`.
@@ -161,7 +180,10 @@ const name = '{{name}}';
```
### Конфигурация
**Чтобы открыть визуальный конфигуратор, нажмите <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>, введите `Настроить myTemplateGenerator...` и выберите команду.**
Для гибкой настройки используйте файл `mytemplategenerator.json` в корне проекта или визуальный конфигуратор (команда **Настроить myTemplateGenerator...**):
```json
{
"templatesPath": "templates",

Binary file not shown.

View File

@@ -2,9 +2,10 @@
"name": "mytemplategenerator",
"displayName": "myTemplateGenerator",
"description": "Generate files and folders from customizable templates with variable substitution in VSCode.",
"version": "0.0.1",
"version": "0.0.2",
"publisher": "MyTemplateGenerator",
"author": "Sergey Gromov",
"icon": "src/images/logo.svg",
"url": "https://github.com/gormov1122/MyTemplateGenerator",
"engines": {
"vscode": "^1.60.0"

BIN
src/images/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
src/images/2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
src/images/3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
src/images/4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

22
src/images/logo.svg Normal file
View File

@@ -0,0 +1,22 @@
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0.00 0.00 512.00 512.00" width="512.00" height="512.00">
<g stroke-width="2.00" fill="none" stroke-linecap="butt">
<path stroke="#90543f" vector-effect="non-scaling-stroke" d="&#xA; M 339.42 321.54&#xA; Q 327.15 315.26 315.12 309.59&#xA; C 309.44 306.91 306.35 306.29 300.69 308.17&#xA; Q 287.73 312.47 283.17 313.91&#xA; Q 279.78 314.98 279.74 319.05&#xA; A 1.90 1.82 32.4 0 0 279.97 319.98&#xA; Q 281.45 322.71 284.04 323.98&#xA; Q 301.94 332.76 317.19 341.44"/>
<path stroke="#893452" vector-effect="non-scaling-stroke" d="&#xA; M 195.42 340.47&#xA; Q 195.71 340.00 195.89 339.91&#xA; Q 208.59 333.39 228.15 323.68&#xA; Q 230.33 322.60 231.92 320.51&#xA; A 1.87 1.78 -25.2 0 0 232.30 319.53&#xA; Q 232.67 315.09 228.58 313.62&#xA; Q 223.11 311.64 208.25 307.49&#xA; Q 203.50 306.16 198.62 308.63&#xA; Q 185.24 315.41 171.83 322.36"/>
<path stroke="#893452" vector-effect="non-scaling-stroke" d="&#xA; M 231.57 291.90&#xA; L 232.92 296.30&#xA; A 1.19 1.16 6.2 0 0 233.48 296.98&#xA; Q 237.87 299.39 243.34 301.92&#xA; C 251.25 305.58 255.95 307.97 263.39 304.65&#xA; C 278.04 298.11 291.50 290.68 307.51 282.79&#xA; Q 311.21 280.96 314.24 276.85&#xA; C 316.91 273.20 316.51 267.39 316.56 261.48&#xA; C 316.58 259.04 316.75 254.36 315.71 251.82&#xA; Q 313.73 246.98 307.76 246.86&#xA; Q 305.20 246.81 299.61 249.64"/>
<path stroke="#91783d" vector-effect="non-scaling-stroke" d="&#xA; M 299.61 249.64&#xA; Q 299.35 233.65 300.08 218.75&#xA; C 300.45 211.18 290.99 218.18 288.99 219.82&#xA; A 0.73 0.72 56.9 0 1 287.88 219.58&#xA; C 285.07 213.86 277.08 195.35 269.17 208.91&#xA; Q 265.98 214.40 260.15 223.22"/>
<path stroke="#893452" vector-effect="non-scaling-stroke" d="&#xA; M 260.15 223.22&#xA; L 255.16 215.64"/>
<path stroke="#90543f" vector-effect="non-scaling-stroke" d="&#xA; M 255.16 215.64&#xA; Q 252.00 208.13 246.15 202.10&#xA; C 243.54 199.41 239.87 199.07 237.25 202.30&#xA; C 233.52 206.91 230.74 212.03 227.87 217.45&#xA; A 1.40 1.39 26.5 0 1 226.04 218.06&#xA; C 222.80 216.53 217.01 211.64 213.96 215.80&#xA; Q 213.29 216.70 213.34 218.04&#xA; Q 213.88 232.82 215.40 247.48&#xA; C 217.09 263.78 221.93 278.66 231.57 291.90"/>
<path stroke="#f55c50" vector-effect="non-scaling-stroke" d="&#xA; M 255.16 215.64&#xA; Q 255.13 221.38 253.64 226.72&#xA; Q 252.48 230.91 252.05 233.20&#xA; Q 251.46 236.44 250.61 239.71&#xA; Q 250.37 240.62 251.07 241.06&#xA; Q 251.21 241.15 251.61 240.91"/>
<path stroke="#fda03b" vector-effect="non-scaling-stroke" d="&#xA; M 251.61 240.91&#xA; Q 251.03 245.25 248.77 248.61&#xA; A 2.98 2.85 2.3 0 1 247.66 249.59&#xA; Q 242.28 252.29 237.01 256.03&#xA; C 232.25 259.40 232.05 263.62 232.43 269.12&#xA; Q 232.88 275.71 233.13 282.41&#xA; C 233.22 284.92 233.89 288.96 233.45 292.25&#xA; Q 233.34 293.02 233.94 292.96"/>
<path stroke="#f55c50" vector-effect="non-scaling-stroke" d="&#xA; M 233.94 292.96&#xA; Q 233.68 293.81 233.03 293.64&#xA; A 0.45 0.40 -8.3 0 1 232.82 293.50&#xA; L 231.57 291.90"/>
<path stroke="#f67f4e" vector-effect="non-scaling-stroke" d="&#xA; M 299.61 249.64&#xA; Q 274.37 259.94 256.72 270.96&#xA; Q 243.65 279.12 235.22 291.97&#xA; Q 234.78 292.63 233.94 292.96"/>
<path stroke="#f67f4e" vector-effect="non-scaling-stroke" d="&#xA; M 251.61 240.91&#xA; Q 252.93 235.49 255.74 230.52&#xA; Q 257.98 226.55 260.15 223.22"/>
</g>
<path fill="#242c41" d="&#xA; M 339.42 321.54&#xA; Q 327.15 315.26 315.12 309.59&#xA; C 309.44 306.91 306.35 306.29 300.69 308.17&#xA; Q 287.73 312.47 283.17 313.91&#xA; Q 279.78 314.98 279.74 319.05&#xA; A 1.90 1.82 32.4 0 0 279.97 319.98&#xA; Q 281.45 322.71 284.04 323.98&#xA; Q 301.94 332.76 317.19 341.44&#xA; C 301.30 348.75 284.88 354.19 267.75 355.96&#xA; C 243.73 358.44 218.33 352.39 196.86 340.87&#xA; A 2.13 2.05 64.5 0 0 196.38 340.69&#xA; L 195.42 340.47&#xA; Q 195.71 340.00 195.89 339.91&#xA; Q 208.59 333.39 228.15 323.68&#xA; Q 230.33 322.60 231.92 320.51&#xA; A 1.87 1.78 -25.2 0 0 232.30 319.53&#xA; Q 232.67 315.09 228.58 313.62&#xA; Q 223.11 311.64 208.25 307.49&#xA; Q 203.50 306.16 198.62 308.63&#xA; Q 185.24 315.41 171.83 322.36&#xA; Q 171.87 274.40 171.80 226.58&#xA; Q 171.77 207.58 172.57 204.02&#xA; Q 175.55 190.83 186.60 181.89&#xA; Q 189.89 179.23 197.57 175.62&#xA; Q 202.57 173.26 219.44 165.90&#xA; Q 235.89 158.73 241.70 157.24&#xA; Q 260.84 152.32 280.05 160.32&#xA; Q 298.40 167.96 311.71 174.08&#xA; C 317.74 176.85 322.75 179.43 327.40 183.60&#xA; Q 339.46 194.39 339.22 212.73&#xA; C 339.04 226.14 339.62 246.66 339.47 263.41&#xA; Q 339.20 292.27 339.42 321.54&#xA; Z&#xA; M 231.57 291.90&#xA; L 232.92 296.30&#xA; A 1.19 1.16 6.2 0 0 233.48 296.98&#xA; Q 237.87 299.39 243.34 301.92&#xA; C 251.25 305.58 255.95 307.97 263.39 304.65&#xA; C 278.04 298.11 291.50 290.68 307.51 282.79&#xA; Q 311.21 280.96 314.24 276.85&#xA; C 316.91 273.20 316.51 267.39 316.56 261.48&#xA; C 316.58 259.04 316.75 254.36 315.71 251.82&#xA; Q 313.73 246.98 307.76 246.86&#xA; Q 305.20 246.81 299.61 249.64&#xA; Q 299.35 233.65 300.08 218.75&#xA; C 300.45 211.18 290.99 218.18 288.99 219.82&#xA; A 0.73 0.72 56.9 0 1 287.88 219.58&#xA; C 285.07 213.86 277.08 195.35 269.17 208.91&#xA; Q 265.98 214.40 260.15 223.22&#xA; L 255.16 215.64&#xA; Q 252.00 208.13 246.15 202.10&#xA; C 243.54 199.41 239.87 199.07 237.25 202.30&#xA; C 233.52 206.91 230.74 212.03 227.87 217.45&#xA; A 1.40 1.39 26.5 0 1 226.04 218.06&#xA; C 222.80 216.53 217.01 211.64 213.96 215.80&#xA; Q 213.29 216.70 213.34 218.04&#xA; Q 213.88 232.82 215.40 247.48&#xA; C 217.09 263.78 221.93 278.66 231.57 291.90&#xA; Z"/>
<path fill="#fc7c3d" d="&#xA; M 255.16 215.64&#xA; Q 255.13 221.38 253.64 226.72&#xA; Q 252.48 230.91 252.05 233.20&#xA; Q 251.46 236.44 250.61 239.71&#xA; Q 250.37 240.62 251.07 241.06&#xA; Q 251.21 241.15 251.61 240.91&#xA; Q 251.03 245.25 248.77 248.61&#xA; A 2.98 2.85 2.3 0 1 247.66 249.59&#xA; Q 242.28 252.29 237.01 256.03&#xA; C 232.25 259.40 232.05 263.62 232.43 269.12&#xA; Q 232.88 275.71 233.13 282.41&#xA; C 233.22 284.92 233.89 288.96 233.45 292.25&#xA; Q 233.34 293.02 233.94 292.96&#xA; Q 233.68 293.81 233.03 293.64&#xA; A 0.45 0.40 -8.3 0 1 232.82 293.50&#xA; L 231.57 291.90&#xA; C 221.93 278.66 217.09 263.78 215.40 247.48&#xA; Q 213.88 232.82 213.34 218.04&#xA; Q 213.29 216.70 213.96 215.80&#xA; C 217.01 211.64 222.80 216.53 226.04 218.06&#xA; A 1.40 1.39 26.5 0 0 227.87 217.45&#xA; C 230.74 212.03 233.52 206.91 237.25 202.30&#xA; C 239.87 199.07 243.54 199.41 246.15 202.10&#xA; Q 252.00 208.13 255.16 215.64&#xA; Z"/>
<path fill="#fec339" d="&#xA; M 299.61 249.64&#xA; Q 274.37 259.94 256.72 270.96&#xA; Q 243.65 279.12 235.22 291.97&#xA; Q 234.78 292.63 233.94 292.96&#xA; Q 233.34 293.02 233.45 292.25&#xA; C 233.89 288.96 233.22 284.92 233.13 282.41&#xA; Q 232.88 275.71 232.43 269.12&#xA; C 232.05 263.62 232.25 259.40 237.01 256.03&#xA; Q 242.28 252.29 247.66 249.59&#xA; A 2.98 2.85 2.3 0 0 248.77 248.61&#xA; Q 251.03 245.25 251.61 240.91&#xA; Q 252.93 235.49 255.74 230.52&#xA; Q 257.98 226.55 260.15 223.22&#xA; Q 265.98 214.40 269.17 208.91&#xA; C 277.08 195.35 285.07 213.86 287.88 219.58&#xA; A 0.73 0.72 56.9 0 0 288.99 219.82&#xA; C 290.99 218.18 300.45 211.18 300.08 218.75&#xA; Q 299.35 233.65 299.61 249.64&#xA; Z"/>
<path fill="#ee3b63" d="&#xA; M 255.16 215.64&#xA; L 260.15 223.22&#xA; Q 257.98 226.55 255.74 230.52&#xA; Q 252.93 235.49 251.61 240.91&#xA; Q 251.21 241.15 251.07 241.06&#xA; Q 250.37 240.62 250.61 239.71&#xA; Q 251.46 236.44 252.05 233.20&#xA; Q 252.48 230.91 253.64 226.72&#xA; Q 255.13 221.38 255.16 215.64&#xA; Z"/>
<path fill="#ee3b63" d="&#xA; M 231.57 291.90&#xA; L 232.82 293.50&#xA; A 0.45 0.40 -8.3 0 0 233.03 293.64&#xA; Q 233.68 293.81 233.94 292.96&#xA; Q 234.78 292.63 235.22 291.97&#xA; Q 243.65 279.12 256.72 270.96&#xA; Q 274.37 259.94 299.61 249.64&#xA; Q 305.20 246.81 307.76 246.86&#xA; Q 313.73 246.98 315.71 251.82&#xA; C 316.75 254.36 316.58 259.04 316.56 261.48&#xA; C 316.51 267.39 316.91 273.20 314.24 276.85&#xA; Q 311.21 280.96 307.51 282.79&#xA; C 291.50 290.68 278.04 298.11 263.39 304.65&#xA; C 255.95 307.97 251.25 305.58 243.34 301.92&#xA; Q 237.87 299.39 233.48 296.98&#xA; A 1.19 1.16 6.2 0 1 232.92 296.30&#xA; L 231.57 291.90&#xA; Z"/>
<path fill="#ee3b63" d="&#xA; M 195.42 340.47&#xA; C 193.18 341.73 190.76 343.36 188.43 343.89&#xA; C 183.70 344.97 178.91 343.49 175.86 339.54&#xA; C 172.01 334.55 171.38 328.58 171.83 322.36&#xA; Q 185.24 315.41 198.62 308.63&#xA; Q 203.50 306.16 208.25 307.49&#xA; Q 223.11 311.64 228.58 313.62&#xA; Q 232.67 315.09 232.30 319.53&#xA; A 1.87 1.78 -25.2 0 1 231.92 320.51&#xA; Q 230.33 322.60 228.15 323.68&#xA; Q 208.59 333.39 195.89 339.91&#xA; Q 195.71 340.00 195.42 340.47&#xA; Z"/>
<path fill="#fc7c3d" d="&#xA; M 339.42 321.54&#xA; Q 339.14 324.05 339.06 327.27&#xA; Q 338.96 331.73 336.99 335.57&#xA; Q 334.88 339.70 331.36 341.98&#xA; Q 325.03 346.09 317.19 341.44&#xA; Q 301.94 332.76 284.04 323.98&#xA; Q 281.45 322.71 279.97 319.98&#xA; A 1.90 1.82 32.4 0 1 279.74 319.05&#xA; Q 279.78 314.98 283.17 313.91&#xA; Q 287.73 312.47 300.69 308.17&#xA; C 306.35 306.29 309.44 306.91 315.12 309.59&#xA; Q 327.15 315.26 339.42 321.54&#xA; Z"/>
</svg>

After

Width:  |  Height:  |  Size: 9.2 KiB