Skip to content

Commit 465e5d0

Browse files
update logos
1 parent 3c56c66 commit 465e5d0

21 files changed

Lines changed: 589 additions & 43 deletions

dist/presets.yaml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
presets:
22
- id: moodle
33
name: Moodle
4-
logo: 🎓
4+
logo:
5+
icon: 🎓
6+
url: ../assets/moodle.svg
57
format: scorm1.2
68
subtitle: SCORM 1.2
79
description: >
@@ -23,7 +25,9 @@ presets:
2325

2426
- id: ilias
2527
name: ILIAS
26-
logo: 📚
28+
logo:
29+
icon: 📚
30+
url: ../assets/ilias.png
2731
format: scorm1.2
2832
subtitle: SCORM 1.2
2933
description: >
@@ -43,7 +47,9 @@ presets:
4347

4448
- id: opal
4549
name: OPAL
46-
logo: 🏛️
50+
logo:
51+
icon: 🏛️
52+
url: ../assets/opal.png
4753
format: scorm2004
4854
subtitle: SCORM 2004
4955
description: >
@@ -63,7 +69,9 @@ presets:
6369

6470
- id: generic
6571
name: Generic LMS
66-
logo: 🌐
72+
logo:
73+
icon: 🌐
74+
url: ../assets/scorm.png
6775
format: scorm2004
6876
subtitle: SCORM 2004
6977
description: >
@@ -82,7 +90,9 @@ presets:
8290

8391
- id: openolat
8492
name: OpenOlat
85-
logo: 🔓
93+
logo:
94+
icon: 🔓
95+
url: ../assets/openolat.png
8696
format: scorm1.2
8797
subtitle: SCORM 1.2
8898
description: >
@@ -102,7 +112,9 @@ presets:
102112

103113
- id: openedx
104114
name: Open edX
105-
logo: 🎯
115+
logo:
116+
icon: 🎯
117+
url: ../assets/edx.svg
106118
format: scorm2004
107119
subtitle: SCORM 2004
108120
description: >

dist/server/presets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"id": "moodle",
55
"name": "Moodle",
6-
"logo": "🎓",
6+
"logo": "../assets/moodle.svg",
77
"format": "scorm2004",
88
"subtitle": "SCORM 2004",
99
"description": "Moodle ist das weltweit am häufigsten verwendete Open-Source-Lernmanagementsystem. Diese Konfiguration verwendet SCORM 2004 für maximale Kompatibilität mit Moodle 3.x und 4.x. <a href='https://moodle.org' target='_blank'>Mehr erfahren</a>",

dist/server/presets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
presets:
22
- id: moodle
33
name: Moodle
4-
logo: 🎓
4+
logo: ../assets/moodle.svg
55
format: scorm2004
66
subtitle: SCORM 2004
77
description: >

dist/server/public/app.js

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,25 @@ function renderPresets() {
117117
const content = document.createElement('div')
118118
content.className = 'preset-content'
119119

120+
<<<<<<< HEAD
120121
const logo = document.createElement('div')
121122
logo.style.fontSize = '2rem'
122123
logo.style.marginBottom = '0.5rem'
123124
logo.textContent = preset.logo
125+
=======
126+
let logo
127+
if (preset.logo.url) {
128+
logo = document.createElement('img')
129+
logo.src = preset.logo.url
130+
logo.alt = preset.name + ' logo'
131+
logo.style.height = '48px'
132+
} else {
133+
logo = document.createElement('div')
134+
logo.style.fontSize = '2rem'
135+
logo.style.marginBottom = '0.5rem'
136+
logo.textContent = preset.logo.icon
137+
}
138+
>>>>>>> 71ca210 (update logos)
124139

125140
const title = document.createElement('h3')
126141
title.textContent = preset.name
@@ -229,7 +244,15 @@ function initializeUpload() {
229244
}
230245
} catch (error) {
231246
console.error('Error opening file dialog:', error)
247+
<<<<<<< HEAD
232248
alert(window.i18n ? window.i18n.t('submit.errorFileDialog') : 'Error opening file dialog')
249+
=======
250+
alert(
251+
window.i18n
252+
? window.i18n.t('submit.errorFileDialog')
253+
: 'Error opening file dialog',
254+
)
255+
>>>>>>> 71ca210 (update logos)
233256
}
234257
} else {
235258
// Fallback: create temporary file input for browser mode
@@ -484,21 +507,43 @@ function initializeForm() {
484507

485508
// Validation
486509
if (currentSourceType === 'upload' && selectedFiles.length === 0) {
510+
<<<<<<< HEAD
487511
alert(window.i18n ? window.i18n.t('submit.errorNoFile') : 'Please upload at least one file.')
512+
=======
513+
alert(
514+
window.i18n
515+
? window.i18n.t('submit.errorNoFile')
516+
: 'Please upload at least one file.',
517+
)
518+
>>>>>>> 71ca210 (update logos)
488519
return
489520
}
490521

491522
if (currentSourceType === 'git') {
492523
const gitUrl = document.getElementById('gitUrl').value.trim()
493524
if (!gitUrl) {
525+
<<<<<<< HEAD
494526
alert(window.i18n ? window.i18n.t('submit.errorNoGitUrl') : 'Please enter a Git repository URL.')
527+
=======
528+
alert(
529+
window.i18n
530+
? window.i18n.t('submit.errorNoGitUrl')
531+
: 'Please enter a Git repository URL.',
532+
)
533+
>>>>>>> 71ca210 (update logos)
495534
return
496535
}
497536
}
498537

499538
// Disable submit button
500539
submitBtn.disabled = true
540+
<<<<<<< HEAD
501541
submitBtn.textContent = window.i18n ? window.i18n.t('submit.starting') : 'Starting export...'
542+
=======
543+
submitBtn.textContent = window.i18n
544+
? window.i18n.t('submit.starting')
545+
: 'Starting export...'
546+
>>>>>>> 71ca210 (update logos)
502547

503548
try {
504549
const formData = new FormData()
@@ -530,7 +575,15 @@ function initializeForm() {
530575
} else if (selectedFormat) {
531576
formData.append('format', selectedFormat.value)
532577
} else {
578+
<<<<<<< HEAD
533579
alert(window.i18n ? window.i18n.t('submit.errorNoTarget') : 'Please select an export target.')
580+
=======
581+
alert(
582+
window.i18n
583+
? window.i18n.t('submit.errorNoTarget')
584+
: 'Please select an export target.',
585+
)
586+
>>>>>>> 71ca210 (update logos)
534587
return
535588
}
536589

@@ -557,7 +610,16 @@ function initializeForm() {
557610

558611
if (!response.ok) {
559612
const error = await response.json()
613+
<<<<<<< HEAD
560614
throw new Error(error.error || (window.i18n ? window.i18n.t('submit.errorFailed') : 'Export failed'))
615+
=======
616+
throw new Error(
617+
error.error ||
618+
(window.i18n
619+
? window.i18n.t('submit.errorFailed')
620+
: 'Export failed'),
621+
)
622+
>>>>>>> 71ca210 (update logos)
561623
}
562624

563625
const result = await response.json()
@@ -568,7 +630,15 @@ function initializeForm() {
568630
selectedFiles = []
569631
updateFileList()
570632
} catch (error) {
633+
<<<<<<< HEAD
571634
alert((window.i18n ? window.i18n.t('submit.errorCreating') : 'Error creating export: ') + error.message)
635+
=======
636+
alert(
637+
(window.i18n
638+
? window.i18n.t('submit.errorCreating')
639+
: 'Error creating export: ') + error.message,
640+
)
641+
>>>>>>> 71ca210 (update logos)
572642
} finally {
573643
submitBtn.disabled = false
574644
submitBtn.innerHTML = `

dist/server/public/index.html

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,11 @@ <h2 data-i18n="sections.exportTarget">2. Export Target</h2>
196196
data-description="E-learning standard for learning management systems. Widely used, but older. Suitable for legacy LMS platforms. <a href='https://en.wikipedia.org/wiki/Sharable_Content_Object_Reference_Model' target='_blank'>Learn more</a>"
197197
/>
198198
<div class="preset-content">
199-
<div class="format-icon">📚</div>
199+
<img
200+
style="height: 48px"
201+
src="../assets/scorm.png"
202+
alt="SCORM"
203+
/>
200204
<h3 data-i18n="formats.scorm12.title">SCORM 1.2</h3>
201205
<p data-i18n="formats.scorm12.subtitle">Legacy Standard</p>
202206
</div>
@@ -211,7 +215,11 @@ <h3 data-i18n="formats.scorm12.title">SCORM 1.2</h3>
211215
data-description="Modern version of the SCORM standard with advanced features for learning paths and assessments. Recommended for current LMS systems. <a href='https://en.wikipedia.org/wiki/Sharable_Content_Object_Reference_Model' target='_blank'>Learn more</a>"
212216
/>
213217
<div class="preset-content">
214-
<div class="format-icon">📦</div>
218+
<img
219+
style="height: 48px"
220+
src="../assets/scorm.png"
221+
alt="SCORM"
222+
/>
215223
<h3 data-i18n="formats.scorm2004.title">SCORM 2004</h3>
216224
<p data-i18n="formats.scorm2004.subtitle">
217225
Modern Standard
@@ -243,7 +251,11 @@ <h3 data-i18n="formats.ims.title">IMS</h3>
243251
data-description="Standalone HTML website for hosting on any web server. Works offline and online. Perfect for self-hosting."
244252
/>
245253
<div class="preset-content">
246-
<div class="format-icon">🌐</div>
254+
<img
255+
style="height: 48px"
256+
src="../assets/web.png"
257+
alt="Web"
258+
/>
247259
<h3 data-i18n="formats.web.title">Web</h3>
248260
<p data-i18n="formats.web.subtitle">Standalone</p>
249261
</div>
@@ -258,7 +270,11 @@ <h3 data-i18n="formats.web.title">Web</h3>
258270
data-description="Portable Document Format for printing and archiving. Ideal for static content and offline reading. <a href='https://en.wikipedia.org/wiki/PDF' target='_blank'>Learn more</a>"
259271
/>
260272
<div class="preset-content">
261-
<div class="format-icon">📄</div>
273+
<img
274+
style="height: 48px"
275+
src="../assets/pdf.svg"
276+
alt="PDF"
277+
/>
262278
<h3 data-i18n="formats.pdf.title">PDF</h3>
263279
<p data-i18n="formats.pdf.subtitle">Document</p>
264280
</div>
@@ -273,7 +289,11 @@ <h3 data-i18n="formats.pdf.title">PDF</h3>
273289
data-description="Android app package (APK) for installation on Android devices. Enables offline access and native app experience."
274290
/>
275291
<div class="preset-content">
276-
<div class="format-icon">🤖</div>
292+
<img
293+
style="height: 48px"
294+
src="../assets/android.svg"
295+
alt="Android"
296+
/>
277297
<h3 data-i18n="formats.android.title">Android</h3>
278298
<p data-i18n="formats.android.subtitle">App Package</p>
279299
</div>
@@ -288,7 +308,11 @@ <h3 data-i18n="formats.android.title">Android</h3>
288308
data-description="Structured data format for programmatic processing and API integration. Perfect for developers and automated workflows. <a href='https://en.wikipedia.org/wiki/JSON' target='_blank'>Learn more</a>"
289309
/>
290310
<div class="preset-content">
291-
<div class="format-icon">{ }</div>
311+
<img
312+
style="height: 48px"
313+
src="../assets/json.svg"
314+
alt="JSON"
315+
/>
292316
<h3 data-i18n="formats.json.title">JSON</h3>
293317
<p data-i18n="formats.json.subtitle">Data Export</p>
294318
</div>
@@ -303,7 +327,11 @@ <h3 data-i18n="formats.json.title">JSON</h3>
303327
data-description="Open e-book format for e-readers and mobile devices. Supports reflowable layouts and is compatible with most e-readers. <a href='https://en.wikipedia.org/wiki/EPUB' target='_blank'>Learn more</a>"
304328
/>
305329
<div class="preset-content">
306-
<div class="format-icon">📖</div>
330+
<img
331+
style="height: 48px"
332+
src="../assets/epub.svg"
333+
alt="EPUB"
334+
/>
307335
<h3 data-i18n="formats.epub.title">EPUB</h3>
308336
<p data-i18n="formats.epub.subtitle">E-Book</p>
309337
</div>
@@ -333,7 +361,11 @@ <h3 data-i18n="formats.docx.title">DOCX</h3>
333361
data-description="Resource Description Framework for structured metadata and Linked Data. For semantic web applications and metadata export. <a href='https://en.wikipedia.org/wiki/Resource_Description_Framework' target='_blank'>Learn more</a>"
334362
/>
335363
<div class="preset-content">
336-
<div class="format-icon">🔗</div>
364+
<img
365+
style="height: 48px"
366+
src="../assets/rdf.svg"
367+
alt="RDF"
368+
/>
337369
<h3 data-i18n="formats.rdf.title">RDF</h3>
338370
<p data-i18n="formats.rdf.subtitle">Metadata</p>
339371
</div>
@@ -348,7 +380,7 @@ <h3 data-i18n="formats.rdf.title">RDF</h3>
348380
data-description="Experience API (xAPI) for Learning Analytics and detailed tracking of learning activities. Enables advanced analytics through a Learning Record Store (LRS). <a href='https://en.wikipedia.org/wiki/Experience_API' target='_blank'>Learn more</a>"
349381
/>
350382
<div class="preset-content">
351-
<div class="format-icon">📊</div>
383+
<div class="format-icon">{xAPI}</div>
352384
<h3 data-i18n="formats.xapi.title">xAPI</h3>
353385
<p data-i18n="formats.xapi.subtitle">Learning Analytics</p>
354386
</div>

src/presets.yaml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
presets:
22
- id: moodle
33
name: Moodle
4-
logo: 🎓
4+
logo:
5+
icon: 🎓
6+
url: ../assets/moodle.svg
57
format: scorm1.2
68
subtitle: SCORM 1.2
79
description: >
@@ -23,7 +25,9 @@ presets:
2325

2426
- id: ilias
2527
name: ILIAS
26-
logo: 📚
28+
logo:
29+
icon: 📚
30+
url: ../assets/ilias.png
2731
format: scorm1.2
2832
subtitle: SCORM 1.2
2933
description: >
@@ -43,7 +47,9 @@ presets:
4347

4448
- id: opal
4549
name: OPAL
46-
logo: 🏛️
50+
logo:
51+
icon: 🏛️
52+
url: ../assets/opal.png
4753
format: scorm2004
4854
subtitle: SCORM 2004
4955
description: >
@@ -63,7 +69,9 @@ presets:
6369

6470
- id: generic
6571
name: Generic LMS
66-
logo: 🌐
72+
logo:
73+
icon: 🌐
74+
url: ../assets/scorm.png
6775
format: scorm2004
6876
subtitle: SCORM 2004
6977
description: >
@@ -82,7 +90,9 @@ presets:
8290

8391
- id: openolat
8492
name: OpenOlat
85-
logo: 🔓
93+
logo:
94+
icon: 🔓
95+
url: ../assets/openolat.png
8696
format: scorm1.2
8797
subtitle: SCORM 1.2
8898
description: >
@@ -102,7 +112,9 @@ presets:
102112

103113
- id: openedx
104114
name: Open edX
105-
logo: 🎯
115+
logo:
116+
icon: 🎯
117+
url: ../assets/edx.svg
106118
format: scorm2004
107119
subtitle: SCORM 2004
108120
description: >

0 commit comments

Comments
 (0)