From 52cb331b0416d024cc891a7ce092efbed7c6a881 Mon Sep 17 00:00:00 2001 From: Elijah Date: Thu, 14 Nov 2024 21:54:45 +0000 Subject: [PATCH] revert getting other templates since we'll use the submodules approach --- reflex/utils/prerequisites.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/reflex/utils/prerequisites.py b/reflex/utils/prerequisites.py index 6f55bec50..db4453d4a 100644 --- a/reflex/utils/prerequisites.py +++ b/reflex/utils/prerequisites.py @@ -1242,30 +1242,6 @@ def prompt_for_template_options(templates: list[Template]) -> str: return templates[int(template)].name -def get_other_templates() -> list[dict[str, str]]: - """Get other templates not included in the templates repo. - - Returns: - List of other templates. - """ - return [ - { - "name": "llamaindex", - "description": "A minimal chat app using LLamaIndex.", - "demo_url": "https://frontend-gold-orca.dev.reflexcorp.run/", - "code_url": "https://github.com/reflex-dev/reflex-llamaindex-template/archive/refs/heads/main.zip", - "hidden": False, - }, - { - "name": "chat", - "description": "A chat app with a dark theme.", - "demo_url": "https://chat.reflex.run", - "code_url": "https://github.com/reflex-dev/reflex-chat/archive/refs/heads/main.zip", - "hidden": False, - }, - ] - - def fetch_app_templates(version: str) -> dict[str, Template]: """Fetch a dict of templates from the templates repo using github API. @@ -1312,8 +1288,6 @@ def fetch_app_templates(version: str) -> dict[str, Template]: ), None, ) - # include other templates not in the templates repo. - templates_data.extend(get_other_templates()) filtered_templates = {} for tp in templates_data: