* import var perf improvements
* use tuples over iterator
* the only thing that matters
* maybe tuple map is faster than tuple list comprehension
* do it in one list comprehension
* standarize filename from upload
* all my friends hate fast api upload file
* make deprecated filename private
* lstrip the "/"
Co-authored-by: Masen Furer <m_github@0x26.net>
---------
Co-authored-by: Masen Furer <m_github@0x26.net>
* adjust setter to include type annotation
* apparently this discovered some bugs
* remove some pyright ignores
* add str to int/float conversion
* dang it darglint
* handle port better
* setting port via envvar is possible again
* change default deploy_url and api_url
* fix for review
* update docstring
* type new envvar as optional
* [ENG-4647] Fix env_file handling
* Import dotenv.load_dotenv early to avoid ImportError while loading
rxconfig.py
* Read ENV_FILE from the environment explicitly.
fix#4803
* Config.Config: use_enum_values = False
Save enum fields as the enum object rather than the value.
* raise error when passing a str(var)
* make it faster
* fix typo
* fix tests
* mocker consistency
Co-authored-by: Thomas Brandého <thomas.brandeho@gmail.com>
* ditto
Co-authored-by: Thomas Brandého <thomas.brandeho@gmail.com>
---------
Co-authored-by: Thomas Brandého <thomas.brandeho@gmail.com>
* move overlays to _app.js
* fix unit tests
* fix dynamic imports app
* fix unit cases once again
* clear custom compoent cache between app harness tests
* Sticky tweaks: only show in prod mode
Only display the sticky badge in prod mode.
Display the mini-badge for mobile and tablet; full badge only displayed at
desktop width.
* Remove localhost checking
* fix bun path handling and add a test
* fix flags
* fix tests
* fix unit tests and mock object
* fix units test again
* revert some changes for now
* remove unused test
* allow gunicorn worker to be disabled
* allow gunicorn worker to be disabled
* rewrite the command
---------
Co-authored-by: Khaleel Al-Adhami <khaleel.aladhami@gmail.com>
* Add path_ops.update_directory_tree:
Copy missing and newer files from src to dest
* add console.timing context
Log debug messages with timing for different processes.
* Update assets tree as app._compile step.
If the assets change between hot reload, then update them before reloading (in
case a CSS file was added or something).
* Add timing for other app._compile events
* Only copy assets if assets exist
* Fix docstring for update_directory_tree
* increase nested type checking for component var types
* handle mapping as dict in type hint
* fix weird cases of using _isinstance instead of isinstance
* test out nested=0
* move union below
* don't use _instance for simple unions
* add a config variable to add extra overlay components
* add integration test
* Apply suggestions from code review
---------
Co-authored-by: Masen Furer <m_github@0x26.net>
* move benchmarks and add some more
* change key and paths
* parametrize tests
* more specific ignore
* rename fixture
* remove previous file
* add tests for _compile_stateful_components
* remove base_state from event types
* pyi that guy
* unpack is new
* woops
* use type alias type to remove ambiguity of where types go
* use same thing with LAMBDA_OR_STATE
* do it for event type