Skip to content

Commit 48731e4

Browse files
committed
move environment into its own file (#5403)
1 parent 53c61fc commit 48731e4

29 files changed

+666
-641
lines changed

pyi_hashes.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
"reflex/components/base/strict_mode.pyi": "13d91eb9ac0a097c20f95cd3aaa2e703",
1515
"reflex/components/core/__init__.pyi": "44bcee7bc4e27e2f4f4707b843acf291",
1616
"reflex/components/core/auto_scroll.pyi": "6f8a2089b8810e08ff1609c616b9e1b1",
17-
"reflex/components/core/banner.pyi": "be040b74446dbeee79849cdd4abfb472",
17+
"reflex/components/core/banner.pyi": "1608a30ac68b749c13ba38d8088b3d1b",
1818
"reflex/components/core/client_side_routing.pyi": "dd0bfc63117ef5f214e3c66dfc4ff1a2",
1919
"reflex/components/core/clipboard.pyi": "8ef2e904caeceb9ce386f9938ab00269",
2020
"reflex/components/core/debounce.pyi": "a6416b52e2857994861f6f90e2f29391",
2121
"reflex/components/core/html.pyi": "d49588c2f04191cbbf1b4ac1c0bf855d",
2222
"reflex/components/core/sticky.pyi": "6c7d85617f8e85f2aacc6aef90b553a5",
23-
"reflex/components/core/upload.pyi": "794d5e242e8506b68934b1dc2bf02c64",
23+
"reflex/components/core/upload.pyi": "aae4f9a95ad5b6f8c596508145839473",
2424
"reflex/components/datadisplay/__init__.pyi": "cf087efa8b3960decc6b231cc986cfa9",
2525
"reflex/components/datadisplay/code.pyi": "651fc3d417b998eb1c3d072328f505d0",
2626
"reflex/components/datadisplay/dataeditor.pyi": "601c59f3ced6ab94fcf5527b90472a4f",

reflex/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@
6868
from reflex.components.core.upload import Upload, get_upload_dir
6969
from reflex.components.radix import themes
7070
from reflex.components.sonner.toast import toast
71-
from reflex.config import ExecutorType, environment, get_config
71+
from reflex.config import get_config
72+
from reflex.environment import ExecutorType, environment
7273
from reflex.event import (
7374
_EVENT_FIELDS,
7475
Event,

reflex/assets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from pathlib import Path
55

66
from reflex import constants
7-
from reflex.config import EnvironmentVariables
7+
from reflex.environment import EnvironmentVariables
88

99

1010
def asset(

reflex/compiler/compiler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
CustomComponent,
2020
StatefulComponent,
2121
)
22-
from reflex.config import environment, get_config
22+
from reflex.config import get_config
2323
from reflex.constants.compiler import PageNames
24+
from reflex.environment import environment
2425
from reflex.state import BaseState
2526
from reflex.style import SYSTEM_COLOR_MODE
2627
from reflex.utils import console, path_ops

reflex/components/base/bare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from reflex.components.component import BaseComponent, Component, ComponentStyle
99
from reflex.components.tags import Tag
1010
from reflex.components.tags.tagless import Tagless
11-
from reflex.config import PerformanceMode, environment
11+
from reflex.environment import PerformanceMode, environment
1212
from reflex.utils import console
1313
from reflex.utils.decorator import once
1414
from reflex.utils.imports import ParsedImportDict

reflex/components/core/banner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
from reflex.components.radix.themes.layout.flex import Flex
1717
from reflex.components.radix.themes.typography.text import Text
1818
from reflex.components.sonner.toast import ToastProps, toast_ref
19-
from reflex.config import environment
2019
from reflex.constants import Dirs, Hooks, Imports
2120
from reflex.constants.compiler import CompileVars
21+
from reflex.environment import environment
2222
from reflex.utils.imports import ImportVar
2323
from reflex.vars import VarData
2424
from reflex.vars.base import LiteralVar, Var

reflex/components/core/upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
from reflex.components.core.cond import cond
1717
from reflex.components.el.elements.forms import Input
1818
from reflex.components.radix.themes.layout.box import Box
19-
from reflex.config import environment
2019
from reflex.constants import Dirs
2120
from reflex.constants.compiler import Hooks, Imports
21+
from reflex.environment import environment
2222
from reflex.event import (
2323
CallableEventSpec,
2424
EventChain,

0 commit comments

Comments
 (0)