Commit Graph

243 Commits

Author SHA1 Message Date
Martin Xu
3406be3ff8
supply default for sqlmodel PK for both DB and python to work (#1788) 2023-09-08 14:51:57 -07:00
Elijah Ahianyo
891e6a4736
Allow underscores in routes (#1713) 2023-09-08 12:18:33 -07:00
Thomas Brandého
043648da07
improve pyi files generation (#1765) 2023-09-07 00:23:17 -07:00
Masen Furer
2e014422f5
App: only render default overlay_component when DefaultState is not used (#1744) 2023-09-05 16:22:25 -07:00
Masen Furer
38c5503f94
Client-side Routing (404 redirect) (#1695) 2023-09-05 16:22:00 -07:00
Masen Furer
71811a600c
Var: __bool__ and __iter__ always raise a TypeError (#1750) 2023-09-05 13:44:22 -07:00
wassaf shahzad
e99d6723bc
added changes for datetime (#1745)
* added changes for datetime

* fixed formatting

* fixed darglint issue

* test_state: check for other datetime module classes

* utils/types.py: use issubclass check

fix docstring copy/paste issue

* utils/format.py: reuse types.is_datetime check

---------

Co-authored-by: Masen Furer <m_github@0x26.net>
2023-09-04 22:29:02 -07:00
Masen Furer
b44c2176e0
Track var dependencies in comprehensions and nested functions (#1728) 2023-09-04 14:31:17 -07:00
Nev Delap
41e97bbc46
Issues 1633 Add frontend_path to config to support running multiple reflex apps off the same domain, and 1583 Show the correct info on where the site is being served. (#1724)
* Support setting Next.js basePath in Reflex config. (#1633)

- Tests.
- And sorted config in next.config.js template.

* Display the correct running at url with basePath if it is set. (#1583)

* Formatting, fixed by black.

* Fix indenting in test data.

* Fixed that conflict resolution shouldnt have included console.debug line.

* Rmove use of :=. Add http:// to url. Use urljoin to build url.
2023-09-02 06:38:22 -07:00
Elijah Ahianyo
829a7751b5
Refactor: Move format_prop Static Method for Improved Reusability (#1714) 2023-09-01 13:01:11 -07:00
Masen Furer
ca4724cec8
AppHarness: disable telemetry for test apps (#1733) 2023-08-31 14:57:28 -07:00
Masen Furer
cc89f2b6e7
Proper serialization for chained Event payloads (#1725) 2023-08-31 09:50:15 -07:00
Masen Furer
2392c52928
Implement on_mount and on_unmount for all components. (#1636) 2023-08-30 09:50:39 -07:00
Thomas Brandého
bb44fcdaa1
renamed reserved endpoints of Reflex (#1542) 2023-08-30 09:33:54 -07:00
Elijah Ahianyo
689f078aa3
Fix Node Installation on ARM-based Macs with FNM (#1701) 2023-08-29 14:59:56 -07:00
Martin Xu
2e1aea9713
Add contains, reverse operations for Var (#1679) 2023-08-28 14:59:50 -07:00
Masen Furer
12e516da64
state: _init_event_handlers recursively (#1640) 2023-08-25 13:28:58 -07:00
Elijah Ahianyo
dbaa6a1e56
Fnm and node for POSIX (#1606) 2023-08-25 13:04:10 -07:00
Martin Xu
82dc237f44
Revert "Use DebounceInput wrapper for fully controlled Editable" (#1670) 2023-08-23 17:16:03 -07:00
Elijah Ahianyo
217a5806ee
Validate component children (#1647) 2023-08-23 15:56:27 -07:00
Martin Xu
d884b7ba96
Use DebounceInput wrapper for fully controlled Editable (#1650) 2023-08-21 14:25:56 -07:00
Nikhil Rao
0beb7a409f
Clean up config parameters (#1591) 2023-08-18 14:22:20 -07:00
Masen Furer
042710ca91
Handle file uploads with component-local state (#1616) 2023-08-18 13:12:17 -07:00
Thomas Brandého
f771894077
add system infos to output when in loglevel debug (#1567) 2023-08-18 13:00:49 -07:00
Martin Xu
510b71e644
Check the yield/return from user defined event handlers are valid (#1614) 2023-08-18 01:36:30 -07:00
Elijah Ahianyo
98fae89319
Automatic Install FNM and Node for Windows: (#1566) 2023-08-17 11:23:09 -07:00
Masen Furer
26e45c1f18
format_dict: only unescape quotes when removing outer quotes (#1609) 2023-08-17 09:45:25 -07:00
Elijah Ahianyo
ed4de0d7ba
Reinstate bun path (#1552) 2023-08-15 17:39:43 -07:00
Nikhil Rao
6d15326abf
Support f-strings in component children and non-style props (#1575) 2023-08-14 11:33:16 -07:00
mat-mil
ebf6c7e35c
performance: change platform check fixture scope to session (#1569) 2023-08-11 13:55:12 -07:00
mat-mil
fa1642fd6b
chore: ignore all files with .db extensions in .gitignore (#1568)
* chore: ignore all files with .db extensions in .gitignore

* Fix unit tests for .gitignore
2023-08-11 13:29:58 -07:00
Elijah Ahianyo
2fa087a0fa
Event Handlers should not shadow base state methods (#1543) 2023-08-10 12:47:35 -07:00
Smit Parmar
ef78465f16
Added support for RelexSet wrapper (#1535) 2023-08-10 09:59:03 -07:00
Masen Furer
4a658ef9be
Wrap Input and TextArea with DebounceInput for full control (#1484) 2023-08-07 14:27:42 -07:00
Elijah Ahianyo
a9b7394e0e
Remove Home folder for windows (#1502) 2023-08-03 14:27:38 -07:00
Thomas Brandého
9222bbbdf2
fix state reset() (#1501) 2023-08-02 11:02:05 -07:00
Nikhil Rao
91c0de4b5f
Use concurrent.futures for threading (#1483) 2023-07-31 17:45:40 -07:00
Nikhil Rao
f01eff5b29
Show status bar on reflex init (#1467)
* Show status bar on reflex init

* Fix tests

* Fix version

* Fix test
2023-07-30 20:45:34 -07:00
Nikhil Rao
068bcd906e
Add unified logging (#1462) 2023-07-30 19:58:48 -07:00
Nikhil Rao
e1cb09e9d4
Remove curl and parallelize node/bun install (#1458) 2023-07-28 17:53:24 -07:00
jackie-pc
e6f4bcdb95
Github action to run unit tests on windows (#1444) 2023-07-28 11:12:01 -07:00
Nikhil Rao
e26bba80a6
Create ~/.reflex directory and update integration tests (#1419) 2023-07-27 16:39:53 -07:00
Elijah Ahianyo
3fa33bd644
List and Dict mutation on setattr (#1428) 2023-07-27 12:45:57 -07:00
Elijah Ahianyo
d4abf5ff2b
Update tests for Foreach (#1394) 2023-07-21 11:49:55 -07:00
Elijah Ahianyo
549ab4e708
rx.App state arg should not be required (#1361) 2023-07-21 11:47:38 -07:00
Elijah Ahianyo
4505279d5d
Synchronize Event Namespace (#1370) 2023-07-19 18:05:42 -07:00
Masen Furer
bfec196d84
Expose Script component from next/script (#1355) 2023-07-18 18:57:50 -07:00
Elijah Ahianyo
ca11b82432
Yield with uploads (#1339) 2023-07-18 14:06:57 -07:00
Masen Furer
4a661a5395
reflex db migrate CLI and associated config (#1336) 2023-07-17 18:06:50 -07:00
Elijah Ahianyo
40953d05ac
Strict type checking for indexing with vars (#1333) 2023-07-13 15:46:15 -07:00
Masen Furer
2c97c1e7ca
reflex.testing.AppHarness: tools for testing reflex apps (#1326) 2023-07-13 15:45:57 -07:00
Masen Furer
5505d10989
rx.Model: automigrate using alembic (#1321) 2023-07-12 15:47:19 -07:00
Elijah Ahianyo
7f0fc86816
Computed vars tuple and str indexing support (#1322) 2023-07-12 15:26:34 -07:00
Masen Furer
20e2a25c9a
vars: unbox EventHandler and functools.partial for dep analysis (#1305)
When calculating the variable dependencies of a cached_var, reach into objects
with .func or .fn attributes and perform analysis on those.

Fix #1303
2023-07-05 16:05:49 -07:00
Masen Furer
cd63297fe4
state: Leading underscore functions are not backend vars (#1268) 2023-06-28 15:32:49 -07:00
Elijah Ahianyo
3b3fc4f965
Local storage clear and remove (#1222) 2023-06-28 11:59:27 -07:00
Elijah Ahianyo
be48e13c71
Remove cookies (#1223) 2023-06-27 18:04:29 -07:00
Siddhant Goel
c6c4410db5
Allow view overrides for registering models with admin (#1249) 2023-06-27 14:08:09 -07:00
Nikhil Rao
139ce38df1
Rename pynecone to reflex (#1236) 2023-06-25 16:56:55 -07:00
Elijah Ahianyo
3f56620870
Get Local Storage (#1234) 2023-06-23 12:56:05 -07:00
Elijah Ahianyo
91d872fb4c
Bugfix: Gitignore file empty newlines (#1232) 2023-06-22 14:36:06 -07:00
Elijah Ahianyo
b6ae225455
Get Cookies (#1221) 2023-06-20 14:57:33 -07:00
Elijah Ahianyo
e180f4d43a
Bun Version update (#1216) 2023-06-19 14:49:36 -07:00
Thomas Brandého
8947c26c7e
add server_side event for cookie and local storage (#1206) 2023-06-16 13:40:25 -07:00
Sergei Ozeranskii
8500a8444a
Allow gunicorn timeout be set in pcconfig.py (#1193) 2023-06-15 15:24:44 -07:00
Elijah Ahianyo
fe89d53dcf
Bugfix: default gitignore (#1189) 2023-06-13 11:14:57 -07:00
Nikhil Rao
fedecfdf44
Fix processing flag for generator events (#1157) 2023-06-09 10:50:03 -07:00
Elijah Ahianyo
278222db8f
async tests to test yield functionality (#1163) 2023-06-07 11:50:27 -07:00
Christopher Terrazas
d793e7a4dd
Feat/admin dashboard (#1098) 2023-06-06 11:53:34 -07:00
Nikhil Rao
895719cf68
Fix processing flag for generator event handlers (#1136) 2023-06-05 11:30:59 -07:00
Nikhil Rao
a18c6880b5
Add async events (#1107) 2023-06-01 21:47:55 -07:00
Elijah Ahianyo
d4d25c17d8
add support for .env configuration (#1104) 2023-05-31 17:26:03 -07:00
Curtis Turner
d4b5c78406
add set_focus (#1092) 2023-05-30 13:04:09 -07:00
TaiJuWu
0531d611dc
feature: support custom attribute for components (#1085) 2023-05-26 11:49:57 -07:00
Nikhil Rao
9485127c1c
Handle multi-select (#1082) 2023-05-26 10:50:16 -07:00
Elijah Ahianyo
368b79f160
pc table validation (#1075) 2023-05-24 13:14:27 -07:00
Elijah Ahianyo
fb69ddfd80
moved compiled constants into an env.json file (#1051) 2023-05-19 10:28:54 -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
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
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
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
Nikhil Rao
92b1e241ac
Update dependency versions (#1007) 2023-05-12 00:09:58 -07:00
Masen Furer
0491852a45
@pc.cached_var: explicit opt-in for ComputedVar tracking (#1000) 2023-05-11 17:47:54 -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
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
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
Thomas Brandého
893c0b132e
Make argument optional for event handlers (#950) 2023-05-06 13:10:35 -07:00