Commit Graph

71 Commits

Author SHA1 Message Date
Thomas Brandého
d9e4d6d130
add set_clipboard method (#1230) 2023-06-23 13:01:57 -07:00
Elijah Ahianyo
3f56620870
Get Local Storage (#1234) 2023-06-23 12:56:05 -07:00
Kabir Goel
1de48ee17a
Support Tailwind out of the box (#1155) 2023-06-17 18:22:33 -07:00
Thomas Brandého
8947c26c7e
add server_side event for cookie and local storage (#1206) 2023-06-16 13:40:25 -07:00
Nikhil Rao
b37560cbeb
Fix frontend event infinite loop (#1207) 2023-06-16 13:32:35 -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
Nikhil Rao
fedecfdf44
Fix processing flag for generator events (#1157) 2023-06-09 10:50:03 -07:00
Nikhil Rao
78aac243cb
Fix upload error when no files are set (#1156) 2023-06-06 21:24:23 -07:00
Elijah Ahianyo
4c84a349e1
UI connection warning (#1111) 2023-06-05 14:00:44 -07:00
Nikhil Rao
895719cf68
Fix processing flag for generator event handlers (#1136) 2023-06-05 11:30:59 -07:00
TaiJuWu
e3914136f8
feature: support video and audio components (#1095) 2023-05-31 17:51:05 -07:00
Curtis Turner
d4b5c78406
add set_focus (#1092) 2023-05-30 13:04:09 -07:00
Nikhil Rao
bf93113b26
Fix prevent default only for submit (#1102) 2023-05-29 22:12:34 -07:00
Nikhil Rao
3d8694cc26
Fix pc.select on change handler (#1080) 2023-05-24 16:36:01 -07:00
Nikhil Rao
2fa6859035
Support rest of form components in pc.form (#1070) 2023-05-24 10:34:22 -07:00
Masen Furer
ffb39829a8
check whether event.preventDefault is undefined (#1063) 2023-05-22 13:51:25 -07:00
Elijah Ahianyo
fb69ddfd80
moved compiled constants into an env.json file (#1051) 2023-05-19 10:28:54 -07:00
Thomas Brandého
d729ba6ea6
Add Autofocus for components (#1053) 2023-05-18 12:44:49 -07:00
Elijah Ahianyo
bb1cf4322e
Foreach support for other data structures(dict, set, tuple) (#1029) 2023-05-17 16:11:41 -07:00
Nikhil Rao
0bfd988869
Fix prevent default event (#1036) 2023-05-16 12:32:07 -07:00
Nikhil Rao
98f1b30735
Fix event default call (#1031) 2023-05-15 21:10:42 -07:00
Nikhil Rao
948ec90fc4
Add pc.form component (#929) 2023-05-14 22:34:10 -07:00
Masen Furer
d0e383d23c
Fix db_url set to empty string in default pcconfig.py (#1022) 2023-05-14 19:03:36 -07:00
Elijah Ahianyo
139e4cf05b
Update upload event to use queue (#1005) 2023-05-12 16:44:16 -07:00
Alek Petuskey
b699bbdff7
Upgrade to Next 13 (#902) 2023-05-11 18:41:42 -07:00
Nikhil Rao
8c42c99ecf
Unindent jinja template code (#1001) 2023-05-10 23:26:01 -07:00
Nikhil Rao
1a254aca8e
Add pc.set_value (#835) 2023-04-29 19:01:37 -07:00
Nikhil Rao
e03e5f8033
Use Python truthiness in pc.cond (#889) 2023-04-26 17:16:38 -07:00
Nikhil Rao
7f5b172002
Remove pynecone.json from templates (#888) 2023-04-26 16:57:25 -07:00
Nikhil Rao
ddcdfbc671
Update bunlock (#873) 2023-04-25 21:51:24 -07:00
Nikhil Rao
f019e0e55a
Speed up computed var dependency tracking (#864) 2023-04-25 13:56:24 -07:00
Alek Petuskey
3e2ebd9dea
Added base templating (#824)
* Added base templating
2023-04-15 20:51:18 -07:00
Nikhil Rao
0164c44495
Update to v0.1.21 (#762) 2023-04-02 17:00:27 -07:00
Elijah Ahianyo
50d480da1f
Allow upload event handler to have arbitrary arg name (#755) 2023-04-02 15:40:05 -07:00
jonatan
e7fc4b5d7c
Fix crash when NaN, Inf or -Inf in frontend state. (#744)
* Add json5 package
* Use json5 instead of JSON when parsing state updates
2023-03-29 11:36:01 -07:00
Elijah Ahianyo
a2f86f9fbb
Feature/Multi File upload (#712)
* This PR adds a feature to upload multiple files

* modified function to support python 3.8

* change code to use types instead of  arg name
2023-03-22 23:54:08 -07:00
Nikhil Rao
2ee8c73d5a
Add error message for invalid var ops (#664) 2023-03-11 21:11:59 -08:00
Nikhil Rao
226543694b
Fix to make event chains synchronous (#654) 2023-03-09 16:31:31 -08:00
Nikhil Rao
5a373d94e4
Update README (#630) 2023-03-04 14:12:02 -08:00
Nikhil Rao
f7138bd53f
Add upload component (#622) 2023-03-03 19:38:58 -08:00
Nikhil Rao
977cc6990f
Remove sitemap from export (#581) 2023-02-20 23:33:08 -08:00
Nikhil Rao
d72256d427
Generate app sitemap (#552) 2023-02-16 14:53:18 -08:00
Alek Petuskey
b36680fefd
Anonymous Telemetry Opt Out Available (#550)
* Added anonymous telemetry with opt-out.
2023-02-16 00:11:53 -08:00
Nikhil Rao
6553be524f
Fix websockets (#527) 2023-02-12 14:53:21 -08:00
叶子
094082c35b
Fix type errors in template (#493) 2023-02-12 09:36:16 -08:00
advo-kat
8d9c75824c
Socket fixes and config options(#485) 2023-02-09 23:59:20 -08:00
Nikhil Rao
d24e12d9c4
Fix server side events (#465) 2023-02-06 14:51:08 -08:00
advo-kat
50a7c02142
Use Socket.IO for message transport (#449) 2023-02-06 10:37:52 -08:00
Dong-hyeon Shin
526e417e8f
Add copy to clipboard component (#380) 2023-01-29 11:19:20 -08:00
Nikhil Rao
d15dada09d
Fix event chain type check (#375) 2023-01-28 13:12:26 -08:00