Skip to content

Commit 06fca8b

Browse files
authored
add two new templates to templates.json (#58)
* add two new templates to templates.json * update check export * oops
1 parent 6ac16ea commit 06fca8b

File tree

2 files changed

+29
-19
lines changed

2 files changed

+29
-19
lines changed

.github/workflows/check_export.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: check-export
22
env:
3-
REFLEX_DEP: 'reflex'
3+
REFLEX_DEP: "reflex"
44
TELEMETRY_ENABLED: false
55
on:
66
push:
@@ -10,12 +10,12 @@ on:
1010
workflow_dispatch:
1111
inputs:
1212
reflex_dep:
13-
description: 'Reflex dep (raw pip spec)'
13+
description: "Reflex dep (raw pip spec)"
1414

1515
jobs:
1616
list-templates:
1717
uses: ./.github/workflows/list-templates.yml
18-
18+
1919
check-export:
2020
needs: [list-templates]
2121
strategy:
@@ -29,7 +29,7 @@ jobs:
2929
submodules: recursive
3030
- uses: actions/setup-python@v5
3131
with:
32-
python-version: 3.9
32+
python-version: 3.10.16
3333
- id: export-check
3434
run: |
3535
f=${{ matrix.folder }}
@@ -70,12 +70,12 @@ jobs:
7070
7171
- name: Check for DeprecationWarning in logs
7272
run: |
73-
cd ${{ matrix.folder }}
74-
dep_lines=$(grep -i "DeprecationWarning:" export_logs.txt || true)
75-
if [ -n "$dep_lines" ]; then
76-
echo "Found Deprecation warning:"
77-
echo "$dep_lines"
78-
exit 1
79-
else
80-
echo "No deprecated code, all good."
81-
fi
73+
cd ${{ matrix.folder }}
74+
dep_lines=$(grep -i "DeprecationWarning:" export_logs.txt || true)
75+
if [ -n "$dep_lines" ]; then
76+
echo "Found Deprecation warning:"
77+
echo "$dep_lines"
78+
exit 1
79+
else
80+
echo "No deprecated code, all good."
81+
fi

templates.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,37 @@
22
"templates": [
33
{
44
"name": "blank",
5-
"description": "A minimal template",
5+
"description": "A minimal template.",
66
"demo_url": "https://blank-template.reflex.run",
77
"hidden": false
88
},
99
{
1010
"name": "dashboard",
11-
"description": "A dashboard with tables and graphs",
11+
"description": "A dashboard with tables and graphs.",
1212
"demo_url": "https://dashboard-new.reflex.run/",
1313
"hidden": false
1414
},
1515
{
1616
"name": "sidebar",
17-
"description": "A template with a sidebar to navigate pages",
17+
"description": "A template with a sidebar to navigate pages.",
1818
"demo_url": "https://sidebar-template.reflex.run",
1919
"hidden": true
2020
},
2121
{
2222
"name": "sales",
23-
"description": "An app to manage sales and customers",
23+
"description": "An app to manage sales and customers.",
2424
"demo_url": "https://sales-new.reflex.run/",
2525
"hidden": false
2626
},
2727
{
2828
"name": "ai_image_gen",
29-
"description": "An app to generate images using AI",
29+
"description": "An app to generate images using AI.",
3030
"demo_url": "https://ai-image-gen.reflex.run/",
3131
"hidden": false
3232
},
3333
{
3434
"name": "ci_template",
35-
"description": "A template for continuous integration",
35+
"description": "A template for continuous integration.",
3636
"demo_url": "https://cijob.reflex.run/",
3737
"hidden": false
3838
},
@@ -53,6 +53,16 @@
5353
"description": "An app to manage customer data.",
5454
"demo_url": "https://customer-data-app.reflex.run/",
5555
"hidden": false
56+
},
57+
{
58+
"name": "reflex-chat",
59+
"description": "A chat app built with Reflex.",
60+
"hidden": false
61+
},
62+
{
63+
"name": "reflex-llamaindex-template",
64+
"description": "A template for LlamaIndex.",
65+
"hidden": false
5666
}
5767
]
5868
}

0 commit comments

Comments
 (0)