StoreGenerator / scripts.js

Commit History

formatted css, removed iframe print function, replaced with print.window(), add @media css to storeUI.html that print's only brewRenderer
8ac1fbd

drakosfire commited on

Iframe does work on huggingface. Trying to better target print button in iframe moved it into button after frame loads..
836be9a

drakosfire commited on

Iframe test, inside modal, it's weird but seems to work. Modified storeUI.css to change modal.
26c0802

drakosfire commited on

Almost to functional print maybe. Opening modal is working, reset has been refactored and works with print modal close. storeUI.html button ids updated for Event Delegation
cf6d81c

drakosfire commited on

Trying displying brewRendererContent in a modal, then printing the modal
0a3d2d2

drakosfire commited on

moving window.open to earlier in printPDF() to try to associate with user click
a702223

drakosfire commited on

messy mass commit, actual changes are to print function, attempting a differnt path using prebuilt proxy.html, also removed dependencies folder to static
40db3b8

drakosfire commited on

change dependencies to static and put storeUI.css there, trying to create and serve html file to handle print
bbbe8ba

drakosfire commited on

added offset to adjustTextareaHeight for title block and description-textarea, made sure description-textarea height is adjusted correctly
63d2b0d

drakosfire commited on

replaced block-content class with block-page to make clearer this is a block on the page,updated css to match, rewrote system prompt in store_helper.py to generate more targeted image prompts, adjuste template_update.html wit h newer prompting
7e1291d

drakosfire commited on

Added autofill function, event listener, and button
2d15a52

drakosfire commited on

Fixed reset, blockContainerPage needed to be reinitialized, renamed image textareas ids to sdprompt- in template
2c14dbc

drakosfire commited on

added addPage and removePage function, eventlistener and buttons, remove checks for blocks on page and gives an error popup
9028290

drakosfire commited on

added button to toggle visibility of image text and generate button while on page-container
3fbe35b

drakosfire commited on

moved initializeTextareaResizing into the extracBlocks function to ensure it fires after the extract at page load
426ac10

drakosfire commited on

created event listener for button that connects button to call to open window, might work? Works locally.
44d0968

drakosfire commited on

Trying to simplify and open to tab
5db29c7

drakosfire commited on

adding a delay for window to popup on print
7faae3d

drakosfire commited on

checking if the printWindow check is triggering before the window has a chance to open
c51e028

drakosfire commited on

Updated script.js with error logging for print.window null issue when deployed
6dd139d

drakosfire commited on

commented out add page and remove page Event Listeners
63e9fef

drakosfire commited on

prepping for merge to main. Added storeUI.css with @media and some cleanup in store_helper
cd77173

drakosfire commited on

updated fetch function generateImage to fetch a relative URL, could fix the CORS issue.
4805bda

drakosfire commited on

Got up to docker build ready again, was importing things in block-builder like torch and utilities that weren't needed
a3dba5f

drakosfire commited on

Fixed print function having weird blank pages. @media print added to pop up print window
4ba412e

drakosfire commited on

print now function is a popup to prevent disruption of main page
3bf0a70

drakosfire commited on

simplified handleColumnOverflow to only detect and act during second column overflow, trusting page css to handle two column balancing, works pretty good
26d1f1c

drakosfire commited on

refactored, call unlockTextareas one time at end of handleDragEnd
b5f325d

drakosfire commited on

added unlock textareas to handleTrashDrop
234b455

drakosfire commited on

fixed bug where descriptionTextarea in unlock textareas wasn't trageting globablly. Function targets entire document now
cf0d79c

drakosfire commited on

Pretty sure that all textareas lock during drag events, no more dropping html into textareas or content editable areas
b1fa4de

drakosfire commited on

added update_template.html which is same architecture as storeUI.html page-container, so testing will be more accurate. Updated extractBlocks function to target block-items
9efcf1c

drakosfire commited on

Removed some white spaces, added functions to lock textares during drop events, and unlock at end of drop events, added check for 'description-textarea' while handling drop
f434b03

drakosfire commited on

Resolved blocks not sorting correctly after trash event by always reordering by block-id which is static
d4b9975

drakosfire commited on

merging with script and storeUI.css
454d813

drakosfire commited on