Restructure ORA editor into modular blueprints with browse dialog
- Split app.py into route blueprints (files, layers, images, polygon, mask, krita) - Create services layer (polygon_storage, comfyui, file_browser) - Extract config constants to config.py - Split templates into Jinja partials (base, components, modals) - Add browse dialog for visual file navigation - Add /api/browse endpoint for directory listing
This commit is contained in:
23
tools/ora_editor/templates/modals/settings.html
Normal file
23
tools/ora_editor/templates/modals/settings.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<!-- Settings modal for ORA Editor -->
|
||||
|
||||
<div x-show="showSettings" @keydown.escape.window="showSettings = false"
|
||||
class="fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-75">
|
||||
<div class="bg-gray-800 rounded-lg p-6 max-w-md w-full mx-4 border border-gray-600">
|
||||
<h2 class="text-xl font-bold mb-4">Settings</h2>
|
||||
|
||||
<div class="mb-4">
|
||||
<label class="block text-sm text-gray-300 mb-2">ComfyUI Server URL</label>
|
||||
<input
|
||||
type="text"
|
||||
x-model="comfyUrl"
|
||||
placeholder="127.0.0.1:8188"
|
||||
class="w-full bg-gray-700 border border-gray-600 rounded px-3 py-2 text-white focus:outline-none focus:border-blue-500"
|
||||
>
|
||||
</div>
|
||||
|
||||
<div class="flex gap-4 justify-end mt-4">
|
||||
<button @click="showSettings = false" class="bg-gray-600 hover:bg-gray-500 px-4 py-2 rounded transition">Cancel</button>
|
||||
<button @click="saveSettings()" class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded transition">Save</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user