Datepicker with dark and light theme support (#397)

* datepicker. add electron-rebuild sa dev dependency

* comments

* use <If> component for conditional renders

* invoke callback on month change

* individual inputs for date parts

* keyboard support for input

* more on keyboard support

* dynamic setting of input width based on their text value

* remove error if fromts is out of range

* format is optional

* undo electron-rebuild
This commit is contained in:
Red J Adaya
2024-03-18 21:44:11 -07:00
committed by GitHub
parent 631b9b89b9
commit a32bc10981
7 changed files with 656 additions and 12 deletions
+2 -1
View File
@@ -3825,7 +3825,8 @@ func HistoryViewAllCommand(ctx context.Context, pk *scpacket.FeCommandPacketType
if pk.Kwargs["fromts"] != "" {
fromTs, err := resolvePosInt(pk.Kwargs["fromts"], 0)
if err != nil {
return nil, fmt.Errorf("invalid fromts (must be unixtime (milliseconds): %v", err)
// no error here anymore (otherwise it jams up the frontend, just ignore and set to 0)
opts.FromTs = 0
}
if fromTs > 0 {
opts.FromTs = int64(fromTs)