Skip to content

Commit 77e0135

Browse files
rolo20Robert Molenkampsharevb
authored
Updated list converter tool (#302)
* Add "Output as column" feature to list converter tool - Implemented functionality to convert list input into column output format. - Enhanced the FormatTransformer component to support line numbers and autosizing for multiline inputs. - Added tests to validate the new column output feature in both end-to-end and model tests. - Modified the list converter's conversion logic to handle item and list wrappers when outputting as a column. * fix: correct string formatting in list converter test * fix: correct string formatting in list converter test * fix: update test input and expected output for column conversion --------- Co-authored-by: Robert Molenkamp <robert@molenkamp.be> Co-authored-by: sharevb <sharevb@gmail.com>
1 parent 22e15c8 commit 77e0135

27 files changed

Lines changed: 510 additions & 37 deletions

components.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,12 @@ declare module '@vue/runtime-core' {
239239
IcoConverter: typeof import('./src/tools/ico-converter/ico-converter.vue')['default']
240240
'IconMdi:brushVariant': typeof import('~icons/mdi/brush-variant')['default']
241241
'IconMdi:kettleSteamOutline': typeof import('~icons/mdi/kettle-steam-outline')['default']
242+
IconMdiCheck: typeof import('~icons/mdi/check')['default']
242243
IconMdiChevronDown: typeof import('~icons/mdi/chevron-down')['default']
243244
IconMdiChevronRight: typeof import('~icons/mdi/chevron-right')['default']
244245
IconMdiClose: typeof import('~icons/mdi/close')['default']
245246
IconMdiContentCopy: typeof import('~icons/mdi/content-copy')['default']
247+
IconMdiDownload: typeof import('~icons/mdi/download')['default']
246248
IconMdiEye: typeof import('~icons/mdi/eye')['default']
247249
IconMdiEyeOff: typeof import('~icons/mdi/eye-off')['default']
248250
IconMdiHeart: typeof import('~icons/mdi/heart')['default']
@@ -374,31 +376,48 @@ declare module '@vue/runtime-core' {
374376
NavbarButtons: typeof import('./src/components/NavbarButtons.vue')['default']
375377
NButton: typeof import('naive-ui')['NButton']
376378
NCard: typeof import('naive-ui')['NCard']
379+
NCheckbox: typeof import('naive-ui')['NCheckbox']
380+
NCheckboxGroup: typeof import('naive-ui')['NCheckboxGroup']
377381
NCode: typeof import('naive-ui')['NCode']
382+
NColorPicker: typeof import('naive-ui')['NColorPicker']
378383
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
384+
NDataTable: typeof import('naive-ui')['NDataTable']
385+
NDatePicker: typeof import('naive-ui')['NDatePicker']
379386
NDivider: typeof import('naive-ui')['NDivider']
387+
NDynamicInput: typeof import('naive-ui')['NDynamicInput']
380388
NEllipsis: typeof import('naive-ui')['NEllipsis']
389+
NForm: typeof import('naive-ui')['NForm']
381390
NFormItem: typeof import('naive-ui')['NFormItem']
391+
NGi: typeof import('naive-ui')['NGi']
382392
NginxFormatter: typeof import('./src/tools/nginx-formatter/nginx-formatter.vue')['default']
383393
NginxMemo: typeof import('./src/tools/nginx-memo/nginx-memo.vue')['default']
384394
'NginxMemo.content': typeof import('./src/tools/nginx-memo/nginx-memo.content.md')['default']
395+
NGrid: typeof import('naive-ui')['NGrid']
385396
NH1: typeof import('naive-ui')['NH1']
386397
NH3: typeof import('naive-ui')['NH3']
387398
NicewareBytesToPassphrase: typeof import('./src/tools/niceware-bytes-to-passphrase/niceware-bytes-to-passphrase.vue')['default']
388399
NIcon: typeof import('naive-ui')['NIcon']
400+
NImage: typeof import('naive-ui')['NImage']
401+
NInput: typeof import('naive-ui')['NInput']
389402
NInputNumber: typeof import('naive-ui')['NInputNumber']
390403
NInputNumberI18n: typeof import('./src/ui/n-input-number-i18n/n-input-number-i18n.vue')['default']
391404
'NInputNumberI18n.demo': typeof import('./src/ui/n-input-number-i18n/n-input-number-i18n.demo.vue')['default']
392405
NLayout: typeof import('naive-ui')['NLayout']
393406
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
394407
NMenu: typeof import('naive-ui')['NMenu']
395408
NP: typeof import('naive-ui')['NP']
409+
NRadio: typeof import('naive-ui')['NRadio']
410+
NRadioGroup: typeof import('naive-ui')['NRadioGroup']
396411
NScrollbar: typeof import('naive-ui')['NScrollbar']
397412
NSelect: typeof import('naive-ui')['NSelect']
413+
NSlider: typeof import('naive-ui')['NSlider']
398414
NSpace: typeof import('naive-ui')['NSpace']
415+
NSpin: typeof import('naive-ui')['NSpin']
399416
NStatistic: typeof import('naive-ui')['NStatistic']
400417
NSwitch: typeof import('naive-ui')['NSwitch']
401418
NTable: typeof import('naive-ui')['NTable']
419+
NTabPane: typeof import('naive-ui')['NTabPane']
420+
NTabs: typeof import('naive-ui')['NTabs']
402421
NText: typeof import('naive-ui')['NText']
403422
NTooltip: typeof import('naive-ui')['NTooltip']
404423
NumberInput: typeof import('./src/tools/pomodoro-timer/app/components/NumberInput.vue')['default']

locales/ar.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,7 @@ tools:
730730
label-remove-duplicates: إزالة التكرارات
731731
label-convert-to-lowercase: تحويل إلى أحرف صغيرة
732732
label-keep-line-breaks: الحفاظ على فواصل الأسطر
733+
label-output-as-column: Output as column
733734
label-sort-list: قائمة الفرز
734735
placeholder-sort-alphabetically: فرز أبجديًا
735736
label-items-separator: فاصل العناصر

locales/da.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,7 @@ tools:
725725
label-remove-duplicates: Fjern dubletter
726726
label-convert-to-lowercase: Konvertér til små bogstaver
727727
label-keep-line-breaks: Behold linjeskift
728+
label-output-as-column: Output as column
728729
label-sort-list: Sortér liste
729730
placeholder-sort-alphabetically: Sortér alfabetisk
730731
label-items-separator: Elementseparator

locales/de.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,7 @@ tools:
818818
label-remove-duplicates: Duplikate entfernen
819819
label-convert-to-lowercase: In Kleinbuchstaben umwandeln
820820
label-keep-line-breaks: Zeilenumbrüche beibehalten
821+
label-output-as-column: Output as column
821822
label-sort-list: Liste sortieren
822823
placeholder-sort-alphabetically: Alphabetisch sortieren
823824
label-items-separator: Elementtrennzeichen

locales/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ tools:
479479
label-remove-duplicates: Remove duplicates
480480
label-convert-to-lowercase: Convert to lowercase
481481
label-keep-line-breaks: Keep line breaks
482+
label-output-as-column: Output as column
482483
label-sort-list: Sort list
483484
placeholder-sort-alphabetically: Sort alphabetically
484485
label-items-separator: Items Separator

locales/es.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ tools:
501501
label-remove-duplicates: Eliminar duplicados
502502
label-convert-to-lowercase: Convertir a minúsculas
503503
label-keep-line-breaks: Mantener saltos de línea
504+
label-output-as-column: Output as column
504505
label-sort-list: Ordenar lista
505506
placeholder-sort-alphabetically: Ordenar alfabéticamente
506507
label-items-separator: Separador de artículos

locales/fr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3856,6 +3856,7 @@ tools:
38563856
label-convert-to-lowercase: Convertir en minuscules
38573857
label-items-separator: Séparateur d'articles
38583858
label-keep-line-breaks: Gardez les pauses de ligne
3859+
label-output-as-column: Output as column
38593860
label-no-sort: Pas de tri
38603861
label-remove-duplicates: Supprimer les doublons
38613862
label-sort-asc-binary: Trier ASC (binaire)

locales/ga.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,7 @@ tools:
822822
label-remove-duplicates: Bain dúblaigh
823823
label-convert-to-lowercase: Tiontaigh go litreacha beaga
824824
label-keep-line-breaks: Coinnigh briseadh líne
825+
label-output-as-column: Output as column
825826
label-sort-list: Liosta sórtála
826827
placeholder-sort-alphabetically: Sórtáil in ord aibítre
827828
label-items-separator: Deighilteoir Míreanna

locales/it.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,7 @@ tools:
746746
label-remove-duplicates: Rimuovi i duplicati
747747
label-convert-to-lowercase: Converti in minuscolo
748748
label-keep-line-breaks: Mantieni le interruzioni di riga
749+
label-output-as-column: Output as column
749750
label-sort-list: Ordina elenco
750751
placeholder-sort-alphabetically: Ordina alfabeticamente
751752
label-items-separator: Separatore di elementi

locales/ko.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ tools:
615615
label-remove-duplicates: 중복 제거
616616
label-convert-to-lowercase: 소문자로 변환
617617
label-keep-line-breaks: 줄 바꿈을 유지하세요
618+
label-output-as-column: Output as column
618619
label-sort-list: 목록 정렬
619620
placeholder-sort-alphabetically: 알파벳순으로 정렬
620621
label-items-separator: 항목 구분 기호

0 commit comments

Comments
 (0)