@@ -117,12 +117,6 @@ function renderPresets() {
117117 const content = document . createElement ( 'div' )
118118 content . className = 'preset-content'
119119
120- << < << << HEAD
121- const logo = document . createElement ( 'div' )
122- logo . style . fontSize = '2rem'
123- logo . style . marginBottom = '0.5rem'
124- logo . textContent = preset . logo
125- === = ===
126120 let logo
127121 if ( preset . logo . url ) {
128122 logo = document . createElement ( 'img' )
@@ -135,7 +129,6 @@ function renderPresets() {
135129 logo . style . marginBottom = '0.5rem'
136130 logo . textContent = preset . logo . icon
137131 }
138- > >>> >>> 71 ca210 ( update logos )
139132
140133 const title = document . createElement ( 'h3' )
141134 title . textContent = preset . name
@@ -244,15 +237,11 @@ function initializeUpload() {
244237 }
245238 } catch ( error ) {
246239 console . error ( 'Error opening file dialog:' , error )
247- << < << << HEAD
248- alert ( window . i18n ? window . i18n . t ( 'submit.errorFileDialog' ) : 'Error opening file dialog' )
249- === = ===
250240 alert (
251241 window . i18n
252242 ? window . i18n . t ( 'submit.errorFileDialog' )
253243 : 'Error opening file dialog' ,
254244 )
255- >>> > >>> 71 ca210 ( update logos )
256245 }
257246 } else {
258247 // Fallback: create temporary file input for browser mode
@@ -507,43 +496,31 @@ function initializeForm() {
507496
508497 // Validation
509498 if ( currentSourceType === 'upload' && selectedFiles . length === 0 ) {
510- < << << << HEAD
511- alert ( window . i18n ? window . i18n . t ( 'submit.errorNoFile' ) : 'Please upload at least one file.' )
512- === = ===
513499 alert (
514500 window . i18n
515501 ? window . i18n . t ( 'submit.errorNoFile' )
516502 : 'Please upload at least one file.' ,
517503 )
518- >>> > >>> 71 ca210 ( update logos )
519504 return
520505 }
521506
522507 if ( currentSourceType === 'git' ) {
523508 const gitUrl = document . getElementById ( 'gitUrl' ) . value . trim ( )
524509 if ( ! gitUrl ) {
525- < << << << HEAD
526- alert ( window . i18n ? window . i18n . t ( 'submit.errorNoGitUrl' ) : 'Please enter a Git repository URL.' )
527- === = ===
528510 alert (
529511 window . i18n
530512 ? window . i18n . t ( 'submit.errorNoGitUrl' )
531513 : 'Please enter a Git repository URL.' ,
532514 )
533- >>> > >>> 71 ca210 ( update logos )
534515 return
535516 }
536517 }
537518
538519 // Disable submit button
539520 submitBtn . disabled = true
540- << < << << HEAD
541- submitBtn . textContent = window . i18n ? window . i18n . t ( 'submit.starting' ) : 'Starting export...'
542- === = ===
543521 submitBtn . textContent = window . i18n
544522 ? window . i18n . t ( 'submit.starting' )
545523 : 'Starting export...'
546- >>> > >>> 71 ca210 ( update logos )
547524
548525 try {
549526 const formData = new FormData ( )
@@ -575,15 +552,11 @@ function initializeForm() {
575552 } else if ( selectedFormat ) {
576553 formData . append ( 'format' , selectedFormat . value )
577554 } else {
578- < << << << HEAD
579- alert ( window . i18n ? window . i18n . t ( 'submit.errorNoTarget' ) : 'Please select an export target.' )
580- === = ===
581555 alert (
582556 window . i18n
583557 ? window . i18n . t ( 'submit.errorNoTarget' )
584558 : 'Please select an export target.' ,
585559 )
586- >>> > >>> 71 ca210 ( update logos )
587560 return
588561 }
589562
@@ -610,16 +583,12 @@ function initializeForm() {
610583
611584 if ( ! response . ok ) {
612585 const error = await response . json ( )
613- << < << << HEAD
614- throw new Error ( error . error || ( window . i18n ? window . i18n . t ( 'submit.errorFailed' ) : 'Export failed' ) )
615- === = ===
616586 throw new Error (
617587 error . error ||
618588 ( window . i18n
619589 ? window . i18n . t ( 'submit.errorFailed' )
620590 : 'Export failed' ) ,
621591 )
622- >>> > >>> 71 ca210 ( update logos )
623592 }
624593
625594 const result = await response . json ( )
@@ -630,15 +599,11 @@ function initializeForm() {
630599 selectedFiles = [ ]
631600 updateFileList ( )
632601 } catch ( error ) {
633- < << << << HEAD
634- alert ( ( window . i18n ? window . i18n . t ( 'submit.errorCreating' ) : 'Error creating export: ' ) + error . message )
635- === = ===
636602 alert (
637603 ( window . i18n
638604 ? window . i18n . t ( 'submit.errorCreating' )
639605 : 'Error creating export: ' ) + error . message ,
640606 )
641- >>> > >>> 71 ca210 ( update logos )
642607 } finally {
643608 submitBtn . disabled = false
644609 submitBtn . innerHTML = `
0 commit comments