Commit Graph

24 Commits

Author SHA1 Message Date
Thomas Brandého
8947c26c7e
add server_side event for cookie and local storage (#1206) 2023-06-16 13:40:25 -07:00
Masen Furer
aa2a1df201
Add vars and components for working with color_mode (#1132)
* `pc.color_mode`: a BaseVar that accesses colorMode on the frontend
* `pc.color_mode_cond`: a `pc.cond` wrapper that conditionally renders
  components or props based on the value of `color_mode`
* `pc.color_mode_icon`: by default "sun" if light mode, "moon" if dark mode
* `pc.color_mode_switch`: a Switch component where is_checked depends on the
  color_mode and changing the value calls toggle_color_mode
* `pc.color_mode_button`: a Button component that calls toggle_color_mode on click

The default template has been updated to include a color_mode_button with
color_mode_icon for toggling light/dark mode. The inline hover style has also
been updated to use color_mode_cond to show a different highlight color based
on the color_mode.
2023-06-11 23:28:33 -07:00
Christopher Terrazas
d793e7a4dd
Feat/admin dashboard (#1098) 2023-06-06 11:53:34 -07:00
Curtis Turner
d4b5c78406
add set_focus (#1092) 2023-05-30 13:04:09 -07:00
Thomas Brandého
3df60b4ac8
add asset_path method (#1089) 2023-05-26 11:49:11 -07:00
Masen Furer
0491852a45
@pc.cached_var: explicit opt-in for ComputedVar tracking (#1000) 2023-05-11 17:47:54 -07:00
iron3oxide
32f3a387ae
Rename var module to vars (#983) 2023-05-09 23:01:25 -07:00
iron3oxide
b5bc7e5d8c
fix: Reexport modules explicitly (#979) 2023-05-09 14:59:49 -07:00
Nikhil Rao
1a254aca8e
Add pc.set_value (#835) 2023-04-29 19:01:37 -07:00
Kasun Herath
e9928d9838
Add Database configuration object (#763)
* Add DB config object (#759)

* Add DBConfig to base (#759)
2023-04-03 21:39:44 -07:00
Nikhil Rao
8eea6ac822
Add component memoization (#770) 2023-04-03 17:38:56 -07:00
Kabir Goel
de0f80dba6
Implement raw HTML elements (#627) 2023-04-03 14:24:42 -07:00
Nikhil Rao
f7138bd53f
Add upload component (#622) 2023-03-03 19:38:58 -08:00
Nikhil Rao
47eebe0ea5
Clean up cond vars (#536) 2023-02-13 15:27:03 -08:00
Thomas Brandého
c203ad57a4
Add pc.route decorator (#513) 2023-02-12 09:37:47 -08:00
advo-kat
8d9c75824c
Socket fixes and config options(#485) 2023-02-09 23:59:20 -08:00
Elijah Ahianyo
00479362df
Allow conditional props (#359) 2023-02-02 00:22:44 -08:00
advo-kat
41fffe677b
Add support for toggling color mode ('night/day mode') (#382)
Co-authored-by: g0ee <0@g0.ee>
Co-authored-by: g0ee <adbokat.b.a.s.e@gmail.com>
2023-01-30 12:39:32 -08:00
Nikhil Rao
7f0aa4f5c4
Fix custom component imports (#246) 2023-01-11 11:34:46 -08:00
Alek Petuskey
2d5cb4a561
Added victory graphs. (#214) 2023-01-05 17:38:54 -08:00
Nikhil Rao
d93e2cec00
Add decorator for custom components (#193) 2023-01-02 16:08:00 -08:00
Nikhil Rao
e636f0dd3e
Add function to insert app middleware (#22) 2022-12-01 10:55:58 -08:00
Nikhil Rao
159e7949f1
Create config class (#8) 2022-11-20 16:12:46 -08:00
Nikhil Rao
e8e8eaa010 Initial commit. 2022-11-18 12:44:06 -08:00