added sandbox application and basic loadtests
This commit is contained in:
parent
923467008e
commit
8e5fd6e150
7
integration/loadtesting/.gitignore
vendored
7
integration/loadtesting/.gitignore
vendored
@ -1,2 +1,5 @@
|
|||||||
./env
|
*.db
|
||||||
.web
|
*.py[cod]
|
||||||
|
.web
|
||||||
|
__pycache__/
|
||||||
|
env/
|
@ -1,5 +1,5 @@
|
|||||||
import reflex as rx
|
import reflex as rx
|
||||||
|
|
||||||
config = rx.Config(
|
config = rx.Config(
|
||||||
app_name="examples",
|
app_name="sandbox",
|
||||||
)
|
)
|
@ -1,6 +1,6 @@
|
|||||||
import reflex as rx
|
import reflex as rx
|
||||||
|
|
||||||
from examples.states.queries import QueryAPI
|
from sandbox.states.queries import QueryAPI
|
||||||
|
|
||||||
|
|
||||||
def render_data(data: tuple[str, str]):
|
def render_data(data: tuple[str, str]):
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import reflex as rx
|
import reflex as rx
|
||||||
|
|
||||||
from examples.states.base import BaseState
|
from sandbox.states.base import BaseState
|
||||||
from examples.styles import text
|
from sandbox.styles import text
|
||||||
|
|
||||||
navbar: dict[str, str] = {
|
navbar: dict[str, str] = {
|
||||||
"width": "100%",
|
"width": "100%",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import reflex as rx
|
import reflex as rx
|
||||||
|
|
||||||
from examples.states.queries import QueryAPI
|
from sandbox.states.queries import QueryAPI
|
||||||
from examples.components.drawer import render_drawer
|
from sandbox.components.drawer import render_drawer
|
||||||
|
|
||||||
|
|
||||||
def create_table_header(title: str):
|
def create_table_header(title: str):
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import reflex as rx
|
import reflex as rx
|
||||||
|
|
||||||
from examples.states.base import BaseState
|
from sandbox.states.base import BaseState
|
||||||
from examples.states.queries import QueryState, QueryAPI
|
from sandbox.states.queries import QueryState, QueryAPI
|
||||||
from examples.styles import text
|
from sandbox.styles import text
|
||||||
|
|
||||||
|
|
||||||
def item_title(title: str):
|
def item_title(title: str):
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
import reflex as rx
|
import reflex as rx
|
||||||
|
|
||||||
from examples.components.navbar import render_navbar
|
from sandbox.components.navbar import render_navbar
|
||||||
from examples.components.query import render_query_component
|
from sandbox.components.query import render_query_component
|
||||||
from examples.components.output import render_output
|
from sandbox.components.output import render_output
|
||||||
from examples.states.queries import QueryAPI
|
from sandbox.states.queries import QueryAPI
|
||||||
|
|
||||||
|
|
||||||
@rx.page("/", on_load=QueryAPI.run_get_request)
|
@rx.page("/", on_load=QueryAPI.run_get_request)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import reflex as rx
|
import reflex as rx
|
||||||
from examples.pages import *
|
from sandbox.pages import *
|
||||||
|
|
||||||
|
|
||||||
class State(rx.State):
|
class State(rx.State):
|
@ -1,6 +1,6 @@
|
|||||||
import uuid
|
import uuid
|
||||||
import httpx
|
import httpx
|
||||||
from examples.states.base import BaseState
|
from sandbox.states.base import BaseState
|
||||||
|
|
||||||
|
|
||||||
# test URL: str = https://jsonplaceholder.typicode.com/posts
|
# test URL: str = https://jsonplaceholder.typicode.com/posts
|
||||||
|
Loading…
Reference in New Issue
Block a user