reflex/reflex
Thomas Brandého ef93161840
Add a sticky Built with Reflex badge (#4584)
* add the watermark class

* remove shortcut exposing badge publicly for now

* Rename as "sticky" because "watermark" has a negative connotation

* Add config `show_built_with_reflex`

This config option is available for authenticated users on various plan tiers

* py3.11 compatible f-string

* sticky badge inherit from A instead of using on_click/redirect

* fix integration test

* Move export checking logic to reflex CLI

* rx.logo: make it accessible to screen readers

Add role="img" aria_label="Reflex" and title="Reflex".

* Hide the built with reflex badge for localhost

* Revert "fix integration test"

This reverts commit a978684d70.

* experimental: do not show warning for internal imports

Only show experimental feature warnings when accessing the names through the
rx._x namespace.

If reflex internally imports the names via deep imports, then this bypasses the
warning to avoid showing it to users that have no control over how the
framework uses experimental features.

* add help link for show_built_with_reflex option

* pre-commit fixes

---------

Co-authored-by: Masen Furer <m_github@0x26.net>
2025-02-03 11:50:31 -08:00
..
.templates disable react strict mode for event loop (#4720) 2025-01-31 18:36:35 -08:00
app_mixins add more type annotations through the code (#4401) 2025-01-29 01:12:47 +01:00
compiler include dynamic imports for custom components (#4725) 2025-01-31 16:42:55 -08:00
components Add a sticky Built with Reflex badge (#4584) 2025-02-03 11:50:31 -08:00
constants make all triggers disable recurisve memoization (#4719) 2025-01-31 11:15:42 -08:00
custom_components bump ruff version to 0.9.3 (#4705) 2025-01-31 17:20:51 -08:00
experimental Add a sticky Built with Reflex badge (#4584) 2025-02-03 11:50:31 -08:00
istate add more type annotations through the code (#4401) 2025-01-29 01:12:47 +01:00
middleware [ENG-4326] Async ComputedVar (#4711) 2025-01-31 16:33:30 -08:00
utils Add a sticky Built with Reflex badge (#4584) 2025-02-03 11:50:31 -08:00
vars fix: allow replacing of _var_type in ComputedVar (worked in previous reflex versions) (#4730) 2025-02-03 10:16:01 -08:00
__init__.py add more type annotations through the code (#4401) 2025-01-29 01:12:47 +01:00
__init__.pyi enable PGH, bump pyright and fix all #type: ignore (#4699) 2025-01-28 13:11:05 -08:00
__main__.py add __main__ entry point to allow python -m reflex (#1516) 2023-08-03 14:26:50 -07:00
admin.py upgrade to latest ruff (#3497) 2024-06-19 12:32:13 +02:00
app_module_for_backend.py Do not track compile in posthog metrics (#4669) 2025-01-22 15:23:34 -08:00
app.py Add a sticky Built with Reflex badge (#4584) 2025-02-03 11:50:31 -08:00
assets.py fix: migrate is_backend_only (deprecated) to EnvironmentVariables (#4495) 2024-12-11 19:22:44 +01:00
base.py add more type annotations through the code (#4401) 2025-01-29 01:12:47 +01:00
config.py Add a sticky Built with Reflex badge (#4584) 2025-02-03 11:50:31 -08:00
event.py bump ruff version to 0.9.3 (#4705) 2025-01-31 17:20:51 -08:00
model.py add more type annotations through the code (#4401) 2025-01-29 01:12:47 +01:00
page.py add more type annotations through the code (#4401) 2025-01-29 01:12:47 +01:00
reflex.py Add a sticky Built with Reflex badge (#4584) 2025-02-03 11:50:31 -08:00
route.py add more type annotations through the code (#4401) 2025-01-29 01:12:47 +01:00
state.py [ENG-4326] Async ComputedVar (#4711) 2025-01-31 16:33:30 -08:00
style.py followup for merge style PR (#4721) 2025-01-31 11:17:46 -08:00
testing.py add more type annotations through the code (#4401) 2025-01-29 01:12:47 +01:00