feat: add empty ImageImporter skeleton wired into index.html

This commit is contained in:
Kenearos 2026-05-12 00:12:28 +02:00
parent 1b515c7d54
commit e58a2488bb
2 changed files with 27 additions and 0 deletions

26
image-import.js Normal file
View file

@ -0,0 +1,26 @@
/**
* Image Importer
* Owns the Bild Dienste import workflow via OpenRouter Vision-LLM.
* Loaded AFTER app.js so window.app is available.
*/
class ImageImporter {
constructor(app) {
this.app = app || null;
this.storage = app ? app.storage : null;
this.holidayProvider = app ? app.holidayProvider : null;
this.session = null;
this.abortController = null;
}
}
// Make available globally
window.ImageImporter = ImageImporter;
// Auto-instantiate when DOM + app are ready
if (typeof document !== 'undefined') {
document.addEventListener('DOMContentLoaded', () => {
if (window.app) {
window.imageImporter = new ImageImporter(window.app);
}
});
}

View file

@ -214,5 +214,6 @@
<script src="calculator.js"></script>
<script src="storage.js"></script>
<script src="app.js"></script>
<script src="image-import.js"></script>
</body>
</html>