@danhachuel/thunderbolt 0.3.2 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/main.py +5 -7
- package/package.json +1 -1
package/app/main.py
CHANGED
|
@@ -4208,7 +4208,7 @@ def main():
|
|
|
4208
4208
|
channel_profile_items = [
|
|
4209
4209
|
("Canais YouTube", ":material/ondemand_video:", "Canais YouTube"),
|
|
4210
4210
|
("Contas TikTok", ":material/account_circle:", "Contas TikTok"),
|
|
4211
|
-
("Facebook Pages", ":material/
|
|
4211
|
+
("Facebook Pages", ":material/public:", "Facebook Pages"),
|
|
4212
4212
|
]
|
|
4213
4213
|
music_items = [
|
|
4214
4214
|
("Criação de Músicas", ":material/music_note:", "Criação de Músicas"),
|
|
@@ -4240,9 +4240,7 @@ def main():
|
|
|
4240
4240
|
]
|
|
4241
4241
|
niche_finder_items = [
|
|
4242
4242
|
("Niche Finder Kaggle", ":material/search:", "Niche Finder Kaggle"),
|
|
4243
|
-
("Tutorial Kaggle", ":material/menu_book:", "Tutorial Kaggle"),
|
|
4244
4243
|
("Niche Finder Apify", ":material/api:", "Niche Finder Apify"),
|
|
4245
|
-
("Tutorial Apify", ":material/menu_book:", "Tutorial Apify"),
|
|
4246
4244
|
]
|
|
4247
4245
|
automation_items = [
|
|
4248
4246
|
("Automação Youtube", ":material/schedule:", "Automação Youtube"),
|
|
@@ -4308,9 +4306,9 @@ def main():
|
|
|
4308
4306
|
st.session_state["page"] = target
|
|
4309
4307
|
st.rerun()
|
|
4310
4308
|
|
|
4311
|
-
def render_nav_button(target: str, icon: str, label: str):
|
|
4309
|
+
def render_nav_button(target: str, icon: str, label: str, scope: str):
|
|
4312
4310
|
display_label = ui_text(label, ui_language)
|
|
4313
|
-
if st.button(display_label, key=f"nav_{target}", icon=icon, use_container_width=True, type="primary" if current_page == target else "secondary"):
|
|
4311
|
+
if st.button(display_label, key=f"nav_{scope}_{target}", icon=icon, use_container_width=True, type="primary" if current_page == target else "secondary"):
|
|
4314
4312
|
navigate(target)
|
|
4315
4313
|
|
|
4316
4314
|
with st.sidebar:
|
|
@@ -4319,12 +4317,12 @@ def main():
|
|
|
4319
4317
|
for target, icon, label in top_pages:
|
|
4320
4318
|
children = groups.get(target)
|
|
4321
4319
|
if children is None:
|
|
4322
|
-
render_nav_button(target, icon, label)
|
|
4320
|
+
render_nav_button(target, icon, label, "top")
|
|
4323
4321
|
continue
|
|
4324
4322
|
child_targets = {item[0] for item in children}
|
|
4325
4323
|
with st.expander(ui_text(label, ui_language), expanded=current_page in child_targets, icon=icon):
|
|
4326
4324
|
for child_target, child_icon, child_label in children:
|
|
4327
|
-
render_nav_button(child_target, child_icon, child_label)
|
|
4325
|
+
render_nav_button(child_target, child_icon, child_label, target)
|
|
4328
4326
|
|
|
4329
4327
|
renderers = {
|
|
4330
4328
|
"Início": render_dashboard,
|
package/package.json
CHANGED