Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
__pycache__/
venv/
*/.DS_Store
.idea
.idea
.DS_Store
Binary file added admin_panel/preview.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ai_image_gen/preview.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions api_admin_panel/api_admin_panel/components/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import reflex as rx
import reflex_chakra as rc

from api_admin_panel.components.drawer import render_drawer
from api_admin_panel.states.queries import QueryAPI
Expand Down Expand Up @@ -38,12 +37,11 @@ def create_pagination():
width="100px",
weight="bold",
),
rc.button_group(
rx.hstack(
rx.icon(
tag="chevron-left", on_click=QueryAPI.previous, cursor="pointer"
),
rx.icon(tag="chevron-right", on_click=QueryAPI.next, cursor="pointer"),
is_attached=True,
),
align_items="center",
spacing="1",
Expand Down
28 changes: 13 additions & 15 deletions api_admin_panel/api_admin_panel/components/query.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import reflex as rx
import reflex_chakra as rc

from api_admin_panel.states.base import BaseState
from api_admin_panel.states.queries import QueryAPI, QueryState
Expand All @@ -9,7 +8,6 @@
def item_title(title: str):
return rx.hstack(
rx.text(title, font_size="var(--chakra-fontSizes-sm)", **text),
rc.accordion_icon(),
width="100%",
justify_content="space-between",
)
Expand Down Expand Up @@ -60,16 +58,16 @@ def create_entry(title: str, function: callable):
def form_item(
title: str, state: list[dict[str, str]], func: callable, event_trigger: callable
):
return rc.accordion(
rc.accordion_item(
rc.accordion_button(item_title(title)),
rc.accordion_panel(
return rx.accordion.root(
rx.accordion.item(
rx.accordion.header(rx.accordion.trigger(item_title(title))),
rx.accordion.content(
item_add_event(event_trigger),
width="100%",
display="flex",
justify_content="end",
),
rc.accordion_panel(
rx.accordion.content(
rx.vstack(rx.foreach(state, func), width="100%", spacing="1")
),
),
Expand All @@ -82,10 +80,10 @@ def form_item(
def form_body_param_item(
state: list[dict[str, str]], func: callable, event_trigger: callable
):
return rc.accordion(
rc.accordion_item(
rc.accordion_button(item_title("Body")),
rc.accordion_panel(
return rx.accordion.root(
rx.accordion.item(
rx.accordion.header(rx.accordion.trigger(item_title("Body"))),
rx.accordion.content(
rx.match(
QueryState.current_req,
(
Expand Down Expand Up @@ -125,10 +123,10 @@ def form_body_param_item(


def form_request_item():
return rc.accordion(
rc.accordion_item(
rc.accordion_button(item_title("Requests")),
rc.accordion_panel(
return rx.accordion.root(
rx.accordion.item(
rx.accordion.header(rx.accordion.trigger(item_title("Requests"))),
rx.accordion.content(
rx.hstack(
rx.select(
QueryState.req_methods,
Expand Down
Binary file added api_admin_panel/preview.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added ci_template/preview.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added customer_data_app/preview.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added futuristic_dashboard/preview.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes