Commit Graph

391 Commits

Author SHA1 Message Date
Nikhil Rao
35ed2839fd
Fix responsive component import errors (#629) 2023-03-04 14:12:47 -08:00
Nikhil Rao
5a373d94e4
Update README (#630) 2023-03-04 14:12:02 -08:00
cadon
e132821a24
Fix non-english component str props (#626) 2023-03-04 12:42:21 -08:00
Nikhil Rao
f7138bd53f
Add upload component (#622) 2023-03-03 19:38:58 -08:00
Nikhil Rao
8ba22ed92d
Factor out responsive helpers (#624) 2023-03-03 13:29:17 -08:00
Xiaojing Chen
2e7fb4d082
[Fix] Component table support State Vars (#571) 2023-03-02 18:33:53 -08:00
Nikhil Rao
46cdda4125
Fix issubclass check (#618) 2023-02-28 20:10:00 -08:00
Alek Petuskey
dac52da780
Fixed Pycharm highlighting issue. (#617) 2023-02-28 16:56:27 -08:00
Lucas
f06de5289e
Added inherited backend vars (#616) 2023-02-28 13:29:16 -08:00
Xiaojing Chen
8f9b066794
pcconfig.py supports a separate backend_port from api_url (#593) 2023-02-27 18:19:43 -08:00
Lucas
387bacff73
Add multiple load events for a page (#596) 2023-02-25 10:13:02 -08:00
PeterYusuke
9a9a731766
loglevel setting on prod command (#594) 2023-02-24 22:44:33 -08:00
Nikhil Rao
6c8ce67b8b
Call special events from event triggers (#601) 2023-02-24 15:17:03 -08:00
PeterYusuke
f76acb2d9c
[Fix issue 563] Add meta arg to page_add method (#589)
* Add meta arg to page_add method

* Remove TypeError of "|". Set default param value.
2023-02-22 21:33:04 -08:00
Thomas Brandého
fc29202b71
fix needed following the PR that changed Icon usage (#591) 2023-02-22 16:27:54 -08:00
Xiaojing Chen
37edaa2f6b
[Fix: issue 582] Icon tag should work despite case sensitivity. (#588) 2023-02-21 17:32:34 -08:00
PeterYusuke
1204aa8a26
solve restart error on windows (#583) 2023-02-21 17:21:55 -08:00
PeterYusuke
f7a5c99969
Windows production mode command (#570) 2023-02-21 10:42:10 -08:00
Nikhil Rao
977cc6990f
Remove sitemap from export (#581) 2023-02-20 23:33:08 -08:00
Nikhil Rao
e9888337c4
Fix version check (#580) 2023-02-20 22:00:03 -08:00
Alek Petuskey
313dd7dc3b
Added Re-Init (#577) 2023-02-20 19:55:46 -08:00
Lunarmagpie
7dfa0c848a
Add py.typed (#565) 2023-02-17 21:55:19 -08:00
Nikhil Rao
f88d4ce4b4
Add tests for pc.icon (#562) 2023-02-17 12:01:30 -08:00
Elyanah Aco
12faa76279
Convert pc.icon tag to title case (#553) 2023-02-16 17:49:03 -08:00
Nikhil Rao
d72256d427
Generate app sitemap (#552) 2023-02-16 14:53:18 -08:00
PeterYusuke
7fa1a85d91
Add class name property to component (#545) 2023-02-16 11:34:49 -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
Thomas Brandého
d0b47e1c23
Fix raw list not working in foreach (#547) 2023-02-15 22:21:53 -08:00
Thomas Brandého
b4fb0df9ea
Update list high-level API (#543) 2023-02-15 22:07:43 -08:00
Ronaldo Zefi
6c81a5bf94
Solved export backend.zip error on windows (#538) 2023-02-14 12:09:00 -08:00
Nikhil Rao
47eebe0ea5
Clean up cond vars (#536) 2023-02-13 15:27:03 -08:00
Alek Petuskey
adf5b7fb1b
Added Type Annotation Error Message Indexing/Foreach (#530) 2023-02-12 21:47:21 -08:00
Nikhil Rao
6553be524f
Fix websockets (#527) 2023-02-12 14:53:21 -08:00
Nikhil Rao
f37540286c
Fix cors origin (#525) 2023-02-12 13:48:05 -08:00
Nikhil Rao
fb9b8a8c83
Add cors to backend server (#524) 2023-02-12 13:38:30 -08:00
Nikhil Rao
0bd8f6acfc
Add keypress event handlers (#523) 2023-02-12 13:12:57 -08:00
Elijah Ahianyo
8de2163d84
Create PCDict (#503) 2023-02-12 12:52:45 -08:00
Nikhil Rao
8c8b2396fc
Add password component (#519) 2023-02-12 09:57:42 -08:00
Thomas Brandého
c203ad57a4
Add pc.route decorator (#513) 2023-02-12 09:37:47 -08:00
叶子
094082c35b
Fix type errors in template (#493) 2023-02-12 09:36:16 -08:00
Cheesy-Brik
cdf93ed004
Add color prop to CircularProgress (#520) 2023-02-12 09:27:55 -08:00
Thomas Brandého
d57d9c78cf
Fix interactions between foreach and cond (#521) 2023-02-12 09:24:55 -08:00
Jeremy
d3c3174ba4
Update models on pc run --no-frontend (#516) 2023-02-11 17:58:17 -08:00
Thomas Brandého
1479411c4f
Fix args format in dynamic route (#502) 2023-02-11 17:06:40 -08:00
叶子
104130df6b
Fix pc export use backend url (#504) 2023-02-11 17:06:07 -08:00
Nikhil Rao
29d46facb1
Fix custom component render (#517) 2023-02-11 16:49:06 -08:00
Robert Neumann
5e0d5b9e2e
Add export parameters for Backend/Frontend (#499) 2023-02-10 15:21:22 -08:00
Thomas Brandého
315987c701
Small fixes in component API (#501) 2023-02-10 15:11:12 -08:00
Robert Neumann
8265a85434
Code cleanups (#498) 2023-02-10 12:44:13 -08:00
Elijah Ahianyo
69a9c95d73
Make PCList pickleable (#500) 2023-02-10 12:25:58 -08:00
advo-kat
8d9c75824c
Socket fixes and config options(#485) 2023-02-09 23:59:20 -08:00
Nikhil Rao
64b0d47897
Hardcode bun version (#494) 2023-02-09 21:46:18 -08:00
叶子
1529a23c1b
Switch linter to ruff (#450) 2023-02-09 11:33:18 -08:00
Cheesy-Brik
da588e9b89
Fix powershell command (#484) 2023-02-08 18:32:43 -08:00
Nikhil Rao
eb723b6ebe
Add compile error for invalid event handlers (#482) 2023-02-08 16:27:13 -08:00
Robert Neumann
fdf0e9ea6b
Add --no-zip pc CLI Parameter (#479) 2023-02-08 14:39:38 -08:00
PeterYusuke
60949e24e6
Add id for components to support anchors (#469) 2023-02-08 14:09:03 -08:00
Thomas Brandého
f2d0fbbd8d
Fix onload events for substates (#473) 2023-02-07 21:55:12 -08:00
Thomas Brandého
4ef2ba779c
Add router_data in substates (#474) 2023-02-07 21:53:04 -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
Nikhil Rao
8958f14778
Allow pc.cond without else case (#453) 2023-02-05 17:50:34 -08:00
Thomas Brandého
0b2f1369a6
Provide high-level API for most components (#451) 2023-02-05 16:02:21 -08:00
Nikhil Rao
d709ab9e03
Add import aliases (#452) 2023-02-05 15:01:21 -08:00
lawrence-axb
d1ff7d481f
Allow plotly figures as state vars (#440) 2023-02-04 16:13:18 -08:00
Robert Neumann
dab7e5d2a1
Remove extra flags from pc run (#434) 2023-02-04 10:51:01 -08:00
LumiaGG
6af374e024
Fix event chain bugs (#413) 2023-02-04 10:46:31 -08:00
Elijah Ahianyo
00479362df
Allow conditional props (#359) 2023-02-02 00:22:44 -08:00
Francesco Ambrosini
ea28f336da
Allow the user to change ports (#417)
* Allow the user to change the app port at runtime

* Allow the user to change the app port (backend and frontend) at runtime
2023-01-31 21:21:44 -08:00
Wazarr
6c2f4deb70
Make db_url optional (#402) 2023-01-30 20:38:48 -08:00
Nikhil Rao
e578956b0c
Comment out pclist (#407) 2023-01-30 19:25:02 -08:00
Nikhil Rao
0e48ceda21
Update README for pip install pynecone (#404) 2023-01-30 18:28:58 -08:00
Nikhil Rao
6b97de71a0
Fix format route and code cleanup (#399) 2023-01-30 14:35:06 -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
Francesco Ambrosini
4c7d923b7d
Check if curl and unzip are installed (#386) 2023-01-30 12:13:54 -08:00
Alek Petuskey
ca637801a6
Switch order of df logic. (#396) 2023-01-30 10:28:38 -08:00
Nikhil Rao
a5bd23d792
Fix event encoding (#393) 2023-01-29 21:43:26 -08:00
Nikhil Rao
3f5ff53c88
Support state vars in pc.markdown (#392) 2023-01-29 20:57:10 -08:00
Alek Petuskey
450576bbee
Finalized port closing and error warning. (#391) 2023-01-29 20:33:32 -08:00
Thomas Brandého
4971f6d814
Support backend-only state vars (#390) 2023-01-29 18:55:34 -08:00
Nikhil Rao
2b7e2ecf30
Fix custom routes on Windows (#389) 2023-01-29 16:39:19 -08:00
Thomas Brandého
39732d12f5
Catch a JS Error + code cleanup (#384) 2023-01-29 16:00:02 -08:00
Alek Petuskey
1ab8620852
Close unclosed ports (#388) 2023-01-29 15:50:11 -08:00
Thomas Brandého
b06f612a7d
Dynamically add vars to a State (#381) 2023-01-29 11:20:06 -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
Tommy Dew
d5a76f103a
Add pc.list for mutation detection (#339) 2023-01-28 10:50:52 -08:00
Dong-hyeon Shin
5aae6a122d
Fix typos (#368) 2023-01-28 09:26:25 -08:00
advo-kat
0056d94d57
Reconnect websocket on window focus (#366) 2023-01-28 09:24:16 -08:00
Dong-hyeon Shin
5427dd0f5b
Support multiple styles for components (#370) 2023-01-28 09:21:36 -08:00
Dong-hyeon Shin
f22c67e48c
Type check event handler signature (#363) 2023-01-27 17:18:54 -08:00
Dong-hyeon Shin
1c20f4357c
Fix validate event (#338) 2023-01-26 20:29:07 -08:00
advo-kat
a4ac2979c8
Use ReconnectingWebSocket instead of vanilla WebSocket (#348) 2023-01-26 02:27:41 -08:00
Alek Petuskey
cb61579f53
Added anonymous telemetry helpers. (#340) 2023-01-25 14:57:29 -08:00
LumiaGG
bfe9ad807e
Fix Stream did not contain valid UTF-8 (#282) (#332)
This fix is for some characters that were wrongly formatted because of lacking UTF-8
2023-01-24 22:27:04 -08:00
Thomas Brandého
52aaf365c9
Add onload event handler (#337) 2023-01-24 17:41:42 -08:00
Nikhil Rao
6f3d763f82
Rename path to route everywhere (#329) 2023-01-23 21:53:42 -08:00
Tommy Dew
f7e35771e9
Relax type requirement on pc.cond (#323) 2023-01-23 20:20:19 -08:00
Nikhil Rao
d376d2972b
Support dataframes as state vars (#324) 2023-01-23 18:47:21 -08:00
Thomas Brandého
554e6d919b
Add event token to router_data (#316) 2023-01-22 17:40:19 -08:00
Atharva Shah
2ccbfff223
General code cleanup (#312) 2023-01-22 10:58:07 -08:00
Francesco Ambrosini
8068d5f176
Add --port flag to pc run (#313) 2023-01-22 10:57:20 -08:00
Dong-hyeon Shin
2a5ed7d40b
Fix comment in datatable (#309) 2023-01-22 09:48:00 -08:00
Christian Clauss
eca91beab2
Fix typos with codespell (#305) 2023-01-22 09:45:11 -08:00
Nikhil Rao
58a0d8c805
Fix running in backend-only mode (#311) 2023-01-22 09:30:58 -08:00
Nikhil Rao
42e3a8b728
Add windows support (#290) 2023-01-18 21:15:13 -08:00
Nikhil Rao
8be411b81b
Implement var slicing (#289) 2023-01-18 17:53:04 -08:00
andy-verstraeten
b93c7a8cbf
Empty pages directory on recompile (#269) 2023-01-18 12:11:31 -08:00
WONJUN PARK
40801186ad
Update app import path (#275) 2023-01-16 22:59:04 -08:00
Alek Petuskey
acb2a16d5a
Got rid of nextjs telemetry. (#274) 2023-01-16 17:31:34 -08:00
Alek Petuskey
06aa58c517
Added pc export. (#272) 2023-01-16 16:24:26 -08:00
Thomas Brandého
8858754d40
Add 404 custom page handling (#265) 2023-01-15 12:22:48 -08:00
Thomas Brandého
2e41303b25
Add optional catch all handling (#260) 2023-01-14 18:46:52 -08:00
Nikhil Rao
1e64e62842
Fix websocket race condition (#261) 2023-01-14 16:49:45 -08:00
Elijah Ahianyo
c8936355f2
Remove assets dir symlink 2023-01-13 10:35:20 -08:00
Thomas Brandého
9d59936737
Handle dynamic routes (#250) 2023-01-12 14:38:29 -08:00
Nikhil Rao
98e9edd98a
Import event constructor in custom components (#249) 2023-01-11 17:46:57 -08:00
Nikhil Rao
7f0aa4f5c4
Fix custom component imports (#246) 2023-01-11 11:34:46 -08:00
Elijah Ahianyo
897ef161bf
Fix windows symlink bug (#248) 2023-01-11 11:32:01 -08:00
Nikhil Rao
b40eafdbb0
Add var length operation (#245) 2023-01-10 18:13:22 -08:00
Thomas Brandého
51a635fe75
Add get_query_params method (#244) 2023-01-10 14:09:46 -08:00
Thomas Brandého
f370642205
Check if router is ready on page load (#241) 2023-01-10 12:22:05 -08:00
Alek Petuskey
876cf13344
Updated Victory Group/Stack (#231) 2023-01-08 23:36:51 -08:00
Thomas Brandého
1124067c12
Add router data to state (#228) 2023-01-08 13:48:09 -08:00
Nikhil Rao
f583c4f942
Support nested foreach (#223) 2023-01-07 20:02:01 -08:00
Nikhil Rao
92fe881479
Apply global styles to body (#222) 2023-01-07 20:00:05 -08:00
Alek Petuskey
2d5cb4a561
Added victory graphs. (#214) 2023-01-05 17:38:54 -08:00
Nikhil Rao
2543e48a30
Access parent state vars from substate (#207) 2023-01-04 15:41:05 -08:00
Nikhil Rao
3f27ce3442
Fix component decorator bugs (#203) 2023-01-04 15:20:33 -08:00
Nikhil Rao
858008d3b1
Decent markdown source (#205) 2023-01-04 15:06:33 -08:00
Nikhil Rao
d7cd792b57
Add default gitignore on pc init (#206) 2023-01-04 15:05:07 -08:00
Nikhil Rao
d93e2cec00
Add decorator for custom components (#193) 2023-01-02 16:08:00 -08:00
pysqz
22deb9eb1b
Add option to specify port (#192) 2022-12-31 09:41:48 -08:00
Nikhil Rao
2be20745f1
Improve cli help messages (#185) 2022-12-27 00:01:20 -08:00
Nikhil Rao
a93b1425c7
Catch websocket disconnect (#184) 2022-12-26 23:14:35 -08:00
Alek Petuskey
af9733996a
Add log level args for pc run (#182) 2022-12-26 23:02:57 -08:00
Murilo Cunha
9d16582c23
Small changes in Markdown component (#179) 2022-12-26 10:20:50 -08:00
Alek Petuskey
3e8f6ffbb3
Socket CORS (#173) 2022-12-23 11:19:30 -08:00
Nikhil Rao
e32ffb6aed
Fix event handler formatting (#174) 2022-12-23 11:18:19 -08:00
Nikhil Rao
43bd4784dc
Fix substate event handlers (#171) 2022-12-22 16:10:15 -08:00
Nikhil Rao
63ec55bdde
Fix generic alias checks (#172) 2022-12-22 16:06:11 -08:00
Nikhil Rao
0bc09dc961
Add template version check (#164) 2022-12-21 20:05:02 -08:00
Nikhil Rao
974d2b4cbb
Improve event processing performance (#163) 2022-12-21 20:04:13 -08:00
Alek Petuskey
429b21260d
Add Node Version Error Handling (#159) 2022-12-21 18:22:31 -08:00
Nikhil Rao
57e278ae1c
Improve event processing performance (#153) 2022-12-21 15:18:04 -08:00
Nikhil Rao
0b496fc0e0
Use websockets for events (#150) 2022-12-20 15:22:04 -08:00
Kabir Goel
84ca907aac
Add React fragment support (#148) 2022-12-20 10:43:32 -08:00
Kabir Goel
76e6a690ce
Fix missing curly brace in _app.js styles (#145) 2022-12-20 11:37:24 +05:30
Kabir Goel
9c3b81ff82
Add size to Input (#143) 2022-12-19 20:33:46 -08:00
Nikhil Rao
2496c3fb9f
Fix pc run backend only (#118) 2022-12-15 23:07:54 -08:00
Nikhil Rao
ba2ae70ee4
Use npm on windows (#117) 2022-12-15 22:13:36 -08:00
Nikhil Rao
e127149bc1
Factor out code for dynamic routes (#109) 2022-12-15 11:37:39 -08:00
Nikhil Rao
933c3678d4
Fix model json conversion (#108)
* Add all fields when converting model to json
* Fix switched image/description in page meta
2022-12-15 01:43:24 -08:00
Nikhil Rao
622a8ef3c2
Support vars for select and radio (#107) 2022-12-15 00:22:13 -08:00
Nikhil Rao
a9afe819db
Fix event handler lambda args (#106) 2022-12-14 23:43:30 -08:00
Nikhil Rao
2c3ef6e23f
Support prod run on windows (#99) 2022-12-14 17:18:20 -08:00
Alek Petuskey
cf33e86edb
Added html component (#98) 2022-12-14 16:13:01 -08:00
Nikhil Rao
209f490bfc
Add windows support (#96) 2022-12-14 16:07:46 -08:00
Alek Petuskey
40542cb0eb
Updated datable api (#92) 2022-12-13 21:47:35 -08:00
Nikhil Rao
30b482666c
Add frontend packages to pcconfig (#91)
* Fix pc init print

* Specify frontend packages to pcconfig
2022-12-13 21:32:24 -08:00
叶子
20286062d6
Switch to httpx (#74) 2022-12-13 15:04:19 -08:00
Nikhil Rao
9ecadcc646
Improve prop error messages (#84)
* Add better error messages for component props
2022-12-13 11:31:57 -08:00
Nikhil Rao
d39bcc7d38
Enable pc prod without redis (#85)
* Make app callable

* Enable pc prod without redis

* Add missing code
2022-12-13 10:05:37 -08:00
Nikhil Rao
b13adbbbc5
Don't show stack trace in window alert (#71) 2022-12-11 12:14:39 -08:00
Nikhil Rao
b9d2e2f05c
Accordion allow toggle by default (#69) 2022-12-11 11:43:59 -08:00
Nikhil Rao
1d22571829
Add props for wrap component (#41) 2022-12-08 17:02:16 -08:00
Nikhil Rao
ccf987b185
Fix code block custom styles. (#36)
* Update Pynecone to v0.1.7
2022-12-07 20:28:22 -08:00
Nikhil Rao
7ec4b3f8fe
Improve component docs (#35)
* Update component docstrings
* Remove transitions libs
* Add span component
* Add lock files
2022-12-07 15:04:49 -08:00
Nikhil Rao
4f387d342e
Fix code block styling (#34) 2022-12-06 17:54:12 -08:00
Nikhil Rao
dd26dd044b
Add style for code blocks. (#32)
* Rename github actions file
* Update custom code
* Add theme for code blocks
2022-12-06 01:22:57 -08:00
Alek Petuskey
46ce9a6652
Added Visually Hidden + Box Video/Iframe (#30)
* Added Visually Hidden + Box Video/frame

Co-authored-by: Alek Petuskey <alekpetuskey@Aleks-MacBook-Pro.local>
2022-12-05 14:22:58 -08:00
Alek Petuskey
91bb3f0b26
Added Meta for Pages (#29)
* Added meta changes.


Co-authored-by: Alek Petuskey <alekpetuskey@Aleks-MacBook-Pro.local>
2022-12-05 00:40:35 -08:00
Nikhil Rao
e636f0dd3e
Add function to insert app middleware (#22) 2022-12-01 10:55:58 -08:00
Nikhil Rao
f0355e7f39
Add better error messages (#18) 2022-11-29 19:22:48 -08:00
Nikhil Rao
f710fc1a82
Support Python 3.11 (#17) 2022-11-29 17:01:14 -08:00
Nikhil Rao
5f9bbac11e
Fix state indexing (#16) 2022-11-28 20:12:08 -08:00
Nikhil Rao
30f1bb17e1
Add cache for GitHub actions (#13) 2022-11-24 17:35:39 -08:00
Nikhil Rao
c4b1f2c669
Create Github Action for pytest (#12) 2022-11-21 18:50:59 -08:00
Nikhil Rao
1f817c637f
Fix redis setup (#11) 2022-11-21 15:32:51 -08:00
Nikhil Rao
b49cc9fbb6
Remove blue box around focused items (#10) 2022-11-21 12:17:08 -08:00
Nikhil Rao
fd464be3a5
Fix event chain bug (#9) 2022-11-20 16:50:09 -08:00
Nikhil Rao
159e7949f1
Create config class (#8) 2022-11-20 16:12:46 -08:00
Nikhil Rao
29e37350e5
Add basic unit tests (#7)
* Unit tests for components, state, and utils
2022-11-20 14:34:25 -08:00
Alek Petuskey
7d91a9db68
Template Update (#6)
* Updated base template.
2022-11-19 19:32:19 -08:00
Nikhil Rao
f5c25fbd5f Fix pc init bug 2022-11-19 02:22:04 -08:00
Nikhil Rao
67058b66a4 Clean up tag rendering 2022-11-18 22:08:50 -08:00
Nikhil Rao
3c2a34a2b4 Update state template 2022-11-18 20:00:10 -08:00
Nikhil Rao
705557b484 Add state name into compiler 2022-11-18 17:48:51 -08:00
Nikhil Rao
03d0aca366 Add is_dataframe check. 2022-11-18 17:48:51 -08:00
Nikhil Rao
2008417bd7 Clean up tags. 2022-11-18 17:48:51 -08:00
Nikhil Rao
e8e8eaa010 Initial commit. 2022-11-18 12:44:06 -08:00