This commit is contained in:
2020-11-05 18:07:47 +00:00
parent 3542038055
commit 21b7e4b1e0
2 changed files with 93 additions and 68 deletions

View File

@@ -33,4 +33,51 @@ todo: consider feature to set server to always use a pre-set browser locale sett
Scenario is user in another country but needs to login and work with central server?
server - wide
User specific
YAGNI / TTM?
YAGNI / TTM?
todo: REPORTING bits and pieces
- page breaks properly EXAMPLE NEEDED
this is the current CSS property, not the one jsreport was using: https://developer.mozilla.org/en-US/docs/Web/CSS/break-before
There are many options including ones for columns and some to prevent page breaks splitting up blocks.
<div style="break-before: page;">
<h2>{{ Name }}</h2>
<div>Notes: <span class='example'>{{ Notes }}</span></div>
</div>
old jsreport ref: https://playground.jsreport.net/w/admin/dI2_fUqZ (for example this sample report shows <div style="page-break-before: always;"></div> which is interesting)
- print properties in css ref: https://www.tutorialspoint.com/css/css_print_references.htm
@page https://developer.mozilla.org/en-US/docs/Web/CSS/@page
- custom extra javascript functions EXAMPLE NEEDED
actually there's nothing really to this, just define function outside of the prepare block and it's there to use
- Mailing labels
if a hassle can skip, it's an unusual thing probably today and users could export to open office then print or whathaveyou
- Alternate paper sizes A4, Letter etc
https://developer.mozilla.org/en-US/docs/Web/CSS/@page/size
Also note that can pass on pdf render options to the puppeteer pdf rendering code which include
http://www.puppeteersharp.com/api/PuppeteerSharp.PdfOptions.html
- Helper for datalist filter human readable
also useful for the UI of the datalist as well
- readable errors:
https://stackoverflow.com/questions/56959242/how-do-i-get-readable-browser-page-errors-out-of-puppeteer-sharp
todo: ON HOLD TIL LATER Lagging typing in name field on customize form for data grid filter
Giving up on this for now, but noticed the following:
No exceptions or errors just regular processing
On a lighter grid with less columns it's much faster so the column count contributes majorly
If I remove the v-model binding from the name control it types fast so it's the recalc going on from the model change
TO TRY LATER:
More computed property usage (if any now) and less methods because functions run on every change wherease computed are not if not necessary
methods are going to be slower than computed properties theoretically
Pick through and replace function calls in UI with computed properties bit by bit and see what happens
Several collections bound to array in data object, is that array changing on typing text? Triggering something?
Should it be bound to a computed getter instead of directly to the data object?