Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Commit

Permalink
Update to reflexify root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
LineIndent committed Sep 22, 2023
1 parent 72dda38 commit dd4047b
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 61 deletions.
2 changes: 1 addition & 1 deletion app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"site_name": "Reflexify",
"repo_name": "LineIndent/reflexify",
"repo_url": "https://github.com/LineIndent/reflexify",
"copy_right": "Copyright © 2022 - 2023 S. Ahmad P. Hakimi ",
"copy_right": "Copyright © 2022 - 2023 S. Ahmad P. Hakimi",
"attribute": "Made with Reflex & Reflexify",
"drawer": True,
"theme": {
Expand Down
5 changes: 3 additions & 2 deletions app/core/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def get_repository_data(self):
"Counter",
]

id_elements = ["name", "stars", "forks"]

with httpx.Client() as client:
response = client.get(Config.__repo_url__())
data = response.content
Expand All @@ -60,11 +62,10 @@ def get_repository_data(self):

if span_element is not None:
txt = span_element.text.strip()

temp_repo_data.children.append(
rx.hstack(
rx.html(icon_list[i]),
rx.text(txt, color="white", font_size=11),
rx.text(txt, color="white", font_size=11, id=id_elements[i]),
spacing="0.35rem",
)
)
Expand Down
4 changes: 2 additions & 2 deletions app/helpers/app_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def __drawer__() -> bool:

@staticmethod
def __theme_primary__() -> str:
value = Config.data["theme"].get("primary", "orange")
return value if value else "orange"
value = Config.data["theme"].get("primary", "black")
return value if value else "black"

@staticmethod
def __theme_secondary__() -> str:
Expand Down
2 changes: 1 addition & 1 deletion app/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ def add_routes_to_app_pages(app: rx.App, routes: dict):


def set_application_routes(app: rx.App):
get_application_routes_from_pages_dir(app)
get_application_routes_from_pages_dir(app=app)
1 change: 1 addition & 0 deletions app/states/mainState.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


class MainState(rx.State):

"""The app state."""

pass
2 changes: 0 additions & 2 deletions app/styles/_admonition.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# tags: info, not_allowed, warning, warning_two, calendar, question, check?,

admonition_css: dict = {
"info": {
"body": {
Expand Down
6 changes: 2 additions & 4 deletions app/styles/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@

# main base css stylesheet for preconfigured web application
base_css: dict = {
"app": {
"font_family": Config.__theme_font__(),
},
"app": {"font_family": Config.__theme_font__(), "_dark": {"bg": "#1f2028"}},
"base": {
"width": "100%",
"min_height": "100vh",
Expand Down Expand Up @@ -54,9 +52,9 @@
"height": "50px",
"position": "sticky",
"bg": Config.__theme_primary__(),
"box_shadow": "0 3px 6px 0 rgba(0, 0, 0, 0.5)",
"transition": "height 350ms ease",
"top": "0",
"box_shadow": "0 3px 6px 0 rgba(0, 0, 0, 0.5)",
"z_index": "2",
},
"icon": {
Expand Down
49 changes: 0 additions & 49 deletions app/utilities/rx_repo.js

This file was deleted.

0 comments on commit dd4047b

Please sign in to comment.