Commit Graph

391 Commits

Author SHA1 Message Date
Milo Chen
372ee9e943
Update default .gitignore (#718) 2023-05-28 13:28:48 -07:00
Christopher Terrazas
1de615c4b6
Add email component (#1093) 2023-05-27 23:11:01 -07:00
TaiJuWu
0531d611dc
feature: support custom attribute for components (#1085) 2023-05-26 11:49:57 -07:00
Thomas Brandého
3df60b4ac8
add asset_path method (#1089) 2023-05-26 11:49:11 -07:00
TaiJuWu
2903d7a7ad
feature: support Hightlight component (#1079) 2023-05-26 11:40:42 -07:00
Nikhil Rao
9485127c1c
Handle multi-select (#1082) 2023-05-26 10:50:16 -07:00
Elijah Ahianyo
73bf8543bd
Backend host Param (#1078) 2023-05-25 12:17:38 -07:00
Thomas Brandého
e9ca1fd03b
add missing comment form (#1081) 2023-05-25 09:52:57 -07:00
Nikhil Rao
3d8694cc26
Fix pc.select on change handler (#1080) 2023-05-24 16:36:01 -07:00
iron3oxide
706abbc756
Replace Select component with a better one (#1043) 2023-05-24 13:19:07 -07:00
TaiJuWu
17852ed7e7
chore: Update transition.py (#1073) 2023-05-24 13:14:50 -07:00
Elijah Ahianyo
368b79f160
pc table validation (#1075) 2023-05-24 13:14:27 -07:00
Nikhil Rao
0afea72eaf
Fast refresh dev mode message (#1068) 2023-05-24 10:34:44 -07:00
Nikhil Rao
2fa6859035
Support rest of form components in pc.form (#1070) 2023-05-24 10:34:22 -07:00
TaiJuWu
f4d5a08faf
feature: Add Chakra Transitions (#1058) 2023-05-22 14:00:38 -07:00
Unknown Sentinel
b420c49cd6
Add Chakra Tag Component (#1052) 2023-05-22 13:54:55 -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
Alek Petuskey
d1703f41b6
CLI Update + Threading (#1046) 2023-05-18 12:34:37 -07:00
iron3oxide
6dc2778a15
Add Chakra Card component (#1030) 2023-05-18 11:09:58 -07:00
Elijah Ahianyo
bb1cf4322e
Foreach support for other data structures(dict, set, tuple) (#1029) 2023-05-17 16:11:41 -07:00
Elijah Ahianyo
0c33ad19f6
bugfix for upload event (#1042) 2023-05-17 10:08:11 -07:00
Milo Chen
aa68446ea4
Set the min node version 16.8.0 (#1041) 2023-05-17 10:07:08 -07:00
Alek Petuskey
4a580b54ff
Visual CLI improvements (#1032) 2023-05-16 20:42:53 -07:00
Nikhil Rao
6209916795
Update max bun version (#1038) 2023-05-16 17:07:18 -07:00
Nikhil Rao
0bfd988869
Fix prevent default event (#1036) 2023-05-16 12:32:07 -07:00
Nikhil Rao
e6a679d3a3
Update pc.form on_submit args (#1033) 2023-05-16 12:09:15 -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
Sheldon
928501662e
move add ref to component level render (#1019) 2023-05-14 19:01:23 -07:00
Sheldon
b056b79479
Patch server_side event with function signature (#1010) 2023-05-12 17:04:53 -07:00
Elijah Ahianyo
139e4cf05b
Update upload event to use queue (#1005) 2023-05-12 16:44:16 -07:00
Elijah Ahianyo
7e8a4930ba
Bun version validation (#1002) 2023-05-12 16:43:11 -07:00
Nikhil Rao
5b3d0a51e8
Disable NextJS telemetry prod mode (#1013) 2023-05-12 13:58:46 -07:00
Sheldon
c1235d4fd1
fix element render issue (#1011) 2023-05-12 13:47:42 -07:00
Nikhil Rao
92b1e241ac
Update dependency versions (#1007) 2023-05-12 00:09:58 -07:00
Alek Petuskey
1aa8501473
Added some more props to components (#953) 2023-05-11 18:55:36 -07:00
Alek Petuskey
b699bbdff7
Upgrade to Next 13 (#902) 2023-05-11 18:41:42 -07:00
Masen Furer
0491852a45
@pc.cached_var: explicit opt-in for ComputedVar tracking (#1000) 2023-05-11 17:47:54 -07:00
Unknown6334
6c60295ba1
Add color_scheme prop to pc.switch (#990) 2023-05-11 17:12:50 -07:00
Nikhil Rao
8c42c99ecf
Unindent jinja template code (#1001) 2023-05-10 23:26:01 -07:00
Nikhil Rao
6af7db42fb
Fix unit tests (#993) 2023-05-10 10:50:32 -07:00
Masen Furer
e887dd143b
Trigger on_load when router completes navigation (#984) 2023-05-10 01:11:54 -07:00
iron3oxide
32f3a387ae
Rename var module to vars (#983) 2023-05-09 23:01:25 -07:00
Masen Furer
fabaa7be1c
track substate ComputedVar that depends on parent Var (#852) 2023-05-09 16:12:24 -07:00
iron3oxide
b5bc7e5d8c
fix: Reexport modules explicitly (#979) 2023-05-09 14:59:49 -07:00
Masen Furer
557097e2ca
ComputedVar dependency tracking: require caller to pass objclass (#963)
Avoid issue where a ComputedVar is added to to a class dynamically, but does
not have a reference to the class its attached to, but requiring callers of the
`deps()` method to provide the objclass for looking up recursive method calls.

This allows for safer and more simplified determination of dependencies, even
in highly dynamic environments.
2023-05-09 14:36:45 -07:00
PeterYusuke
3b88e7c329
[Fix 477] Use jinja2 for templating (#915) 2023-05-09 14:34:47 -07:00
Nikhil Rao
dc2dff9323
Temp remove computed var dependency checks (#972) 2023-05-08 18:00:03 -07:00
Nikhil Rao
3d3c974768
Fix pc.code syntax highlight (#970) 2023-05-08 17:11:34 -07:00
Nikhil Rao
8e3daf9f5b
Clean up on_load events (#965) 2023-05-08 12:13:51 -07:00
Masen Furer
4515561e61
Per-instance backend variables (#959)
* test_state: check that _backend_vars are not shared between instances

Each instance of State should get its own backend vars

* per-instance backend vars

Attempt to fix #958
2023-05-07 16:23:31 -07:00
Sheldon
960e4ec171
Fix state variable not working as event arg (#960)
Co-authored-by: Xxxx <you@example.com>
2023-05-07 16:08:34 -07:00
Alek Petuskey
272dfc2d7e
Added default val radio group (#961) 2023-05-06 23:07:57 -07:00
Thomas Brandého
893c0b132e
Make argument optional for event handlers (#950) 2023-05-06 13:10:35 -07:00
Masen Furer
b4e534cc97
Cache ComputedVar fixup for dynamic route vars (#952) 2023-05-06 12:44:50 -07:00
Elijah Ahianyo
9ea1a64d22
Throw error for unannotated computed vars (#941) 2023-05-06 12:26:49 -07:00
Milo Chen
d32996c91f
Update min node version to 16.6.0 (#957) 2023-05-06 12:11:07 -07:00
Thomas Brandého
a24d382eb6
use version.parse in check_node_version() (#951) 2023-05-05 15:57:29 -07:00
Elijah Ahianyo
0d51f58c9f
pc datatable fix for python <=3.8 (#949) 2023-05-05 15:01:00 -07:00
Elijah Ahianyo
18c715670a
Revamp Imports (#926) 2023-05-04 22:11:01 -07:00
Thomas Brandého
4f182b3170
reinforce check for bun install process in "pc init" (#938) 2023-05-04 10:01:14 -07:00
Masen Furer
c344a5c0d7
Cache ComputedVar (#917) 2023-05-04 00:11:39 -07:00
Nikhil Rao
bad2363506
Update socketio timeout (#935) 2023-05-03 19:50:04 -07:00
Nikhil Rao
ba7225e37c
Set event handler module name (#930) 2023-05-01 21:38:12 -07:00
Nikhil Rao
34d77db541
Fix event handler string args (#928) 2023-05-01 17:06:42 -07:00
Masen Furer
d5977ffce4
Use typing.get_type_hints instead of __annotations__ (#919) 2023-05-01 16:47:33 -07:00
Nikhil Rao
1a254aca8e
Add pc.set_value (#835) 2023-04-29 19:01:37 -07:00
Nikhil Rao
a9ee9f6d44
Fix event handler calls to handlers (#899) 2023-04-27 19:30:52 -07:00
Nikhil Rao
60323a3aec
Revert fstrings change (#895) 2023-04-27 14:36:20 -07:00
Nikhil Rao
5674d9a7a0
Fix pynecone json (#894) 2023-04-27 11:43:50 -07:00
Nikhil Rao
23a23d437c
Fix f-strings in props (#891) 2023-04-26 21:20:40 -07:00
Nikhil Rao
f0346506d7
Allow fstrings as component children (#890) 2023-04-26 19:32:51 -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
a165d745f2
Install dependencies in prod mode (#887) 2023-04-26 14:49:11 -07:00
Milo Chen
b9e5ef8e76
Fix pynecone.json version issue when web init (#885) 2023-04-26 14:42:39 -07:00
Elijah Ahianyo
5ad3882898
Handle upload bugfix (#886) 2023-04-26 12:56:34 -07:00
Nikhil Rao
24c08d6ee0
Fix bun issue on Windows (#881)
* Fix bun issue on Windows

* Fix check
2023-04-26 08:26:02 -07:00
Nikhil Rao
15485f0716
Handle dataframe base vars (#878) 2023-04-25 23:50:43 -07:00
Alek Petuskey
1a8e0b8058
Added better check for bun version. (#877) 2023-04-25 23:35:50 -07:00
Nikhil Rao
ddcdfbc671
Update bunlock (#873) 2023-04-25 21:51:24 -07:00
Nikhil Rao
f504d6b4b1
Disable computed var deps (#872) 2023-04-25 21:24:40 -07:00
Alek Petuskey
c5b2b28721
Temporarily disable full control (#871) 2023-04-25 21:16:31 -07:00
Nikhil Rao
f019e0e55a
Speed up computed var dependency tracking (#864) 2023-04-25 13:56:24 -07:00
Nikhil Rao
2d7c2bcc5e
Fix dynamic setters (#866) 2023-04-25 09:51:37 -07:00
Ben Guidarelli
65dc2fe80e
Initialize an EventHandler for dynamic vars (#808) 2023-04-25 00:52:52 -07:00
Kasun Herath
fc9b03ebd7
Custom configuration support (#792) 2023-04-24 21:40:07 -07:00
Masen Furer
3c4fb256a2
Always emit a full dict() when hydrating (#843) 2023-04-24 21:28:30 -07:00
Kasun Herath
6631080a23
Drop default primary key is another is defined (#812) (#851) 2023-04-24 18:49:43 -07:00
Nikhil Rao
1029d3483a
Fix substate event handler conversions (#861) 2023-04-24 17:54:16 -07:00
Robert Neumann
fd80617472
Update bun version to fix Container Build Error (#860)
* Rename dalle to DALL·E and add link to bun

* Fix DALL-E to DALL·E in Readme

* Update bun version to 0.5.9
2023-04-24 13:43:54 -07:00
Alan Mond
73cfd2fdba
Modify some methods in state.py to prevent being overwritten (#856) 2023-04-24 10:45:35 -07:00
Masen Furer
b4755b8123
Only update ComputedVar when dependent vars change (#840) 2023-04-23 18:48:44 -06:00
Elijah Ahianyo
3be43bdab1
update checkbox docstring (#850)
added more description to color-scheme docs
2023-04-21 15:04:12 -06:00
Elijah Ahianyo
59d693bff1
update datatable docstring (#854)
added more description to data and columns props docs
2023-04-21 15:03:25 -06:00
Seonghwan Choi
5db622c7d4
Apply convert_handlers_to_fns for substates (#846) 2023-04-19 11:45:23 -07:00
Elijah Ahianyo
945ac53dd0
Update upload docstring (#848) 2023-04-19 11:08:31 -07:00