feat: add empty ImageImporter skeleton wired into index.html
This commit is contained in:
parent
1b515c7d54
commit
e58a2488bb
2 changed files with 27 additions and 0 deletions
26
image-import.js
Normal file
26
image-import.js
Normal 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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue