reflex/reflex
Masen Furer 6ca5f48ae7
[REF-2587] Ignore top-level theme appearance (#3119)
* pyi_generator: ignore `app.py` and single files

When running pyi_generator in pre-commit, it passes individual changed files on
the command line as targets, and these were not being properly excluded
according to the EXCLUDED_FILES list.

Add app.py to the EXCLUDED_FILES list so it does not get regenerated
automatically.

* [REF-2587] Ignore top-level theme appearance

From the Radix docs, it is not recommended to actually set `appearance`, but
instead use next-themes to set and switch the appearance dynamically.

Because Reflex already compiles the top-level theme into the next-themes
ThemeProvider, we can blank out the appearance prop after compiling contexts.js
to avoid a mismatch between the selected app appearance and the appearance in
the rx.theme when displaying overlay components.

Fix #2992
2024-04-19 14:43:45 -07:00
..
.templates Fix For When user selects Empty files using File Upload (#3051) 2024-04-11 15:35:15 -07:00
compiler Force pydantic v1 for sqlmodel compatibility (#3026) 2024-04-11 13:42:30 -07:00
components Experimental layout components (#3066) 2024-04-18 10:54:19 -07:00
constants [REF-1586] Use bun as a package manager on windows (#2359) 2024-04-11 16:43:01 -07:00
custom_components Get project name from pyproject (#3048) 2024-04-08 18:49:24 -07:00
experimental Experimental layout components (#3066) 2024-04-18 10:54:19 -07:00
middleware feat: Synchronizing localStorage between tabs using browser events (#2533) 2024-02-20 15:14:55 -08:00
utils [REF-2587] Ignore top-level theme appearance (#3119) 2024-04-19 14:43:45 -07:00
__init__.py adding a reflex logo component (#2994) 2024-04-04 11:26:25 -07:00
__init__.pyi adding a reflex logo component (#2994) 2024-04-04 11:26:25 -07:00
__main__.py add __main__ entry point to allow python -m reflex (#1516) 2023-08-03 14:26:50 -07:00
admin.py Allow view overrides for registering models with admin (#1249) 2023-06-27 14:08:09 -07:00
app_module_for_backend.py [REF-2172] Add DECORATED_PAGES before compiling in thread (#2841) 2024-03-12 10:28:37 -07:00
app.py [REF-2587] Ignore top-level theme appearance (#3119) 2024-04-19 14:43:45 -07:00
app.pyi Lendemor/improve coverage (#2988) 2024-04-04 14:31:43 +02:00
base.py [REF-2127] Loosen requirements (#2796) 2024-03-29 09:26:53 -07:00
config.py Lendemor/improve coverage (#2988) 2024-04-04 14:31:43 +02:00
config.pyi Lendemor/improve coverage (#2988) 2024-04-04 14:31:43 +02:00
event.py Fix annotated EventHandler (#3076) 2024-04-11 15:34:00 -07:00
model.py Force pydantic v1 for sqlmodel compatibility (#3026) 2024-04-11 13:42:30 -07:00
page.py Fix typo under page.py (#3001) 2024-04-04 09:26:45 -07:00
reflex.py [REF-2392] Expose next.config.js transpilePackages key (#3006) 2024-04-11 13:50:42 -07:00
route.py [REF-1741] Disallow routes with /api prefix (#2711) 2024-02-26 19:34:51 -08:00
state.py [REF-2219] Avoid refetching states that are already cached (#2953) 2024-03-29 09:42:25 -07:00
style.py use dict instead of set to store hooks (#2995) 2024-04-03 17:13:42 -07:00
testing.py app_source can be partial (#3100) 2024-04-18 14:00:42 -07:00
vars.py allow set in var.contains (#3113) 2024-04-18 20:00:18 -07:00
vars.pyi use dict instead of set to store hooks (#2995) 2024-04-03 17:13:42 -07:00