-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from blackary/native-mpa
Convert st-pages into a thin wrapper around new st.navigation
- Loading branch information
Showing
26 changed files
with
1,183 additions
and
1,706 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,4 @@ exclude = | |
.env | ||
.direnv | ||
streamlit_patches.py | ||
per-file-ignores = | ||
per-file-ignores = |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.3.3 | ||
hooks: | ||
- id: ruff | ||
args: | ||
- --fix | ||
- id: ruff-format | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.9.0 | ||
hooks: | ||
- id: mypy | ||
args: | ||
- --ignore-missing-imports | ||
- --follow-imports=silent | ||
additional_dependencies: | ||
- types-all | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 # Use the ref you want to point at | ||
hooks: | ||
- id: trailing-whitespace | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: "v0.4.9" | ||
hooks: | ||
- id: ruff | ||
args: | ||
- --fix | ||
- id: ruff-format | ||
args: | ||
- --config=pyproject.toml | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.10.0 | ||
hooks: | ||
- id: mypy | ||
language_version: python3.9 | ||
additional_dependencies: | ||
- types-all | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: end-of-file-fixer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,23 @@ | ||
[[pages]] | ||
path = "example_app/streamlit_app.py" | ||
name = "Home" | ||
icon = ":house:" | ||
path = "example_one.py" | ||
name = "st-pages" | ||
icon = "📄" | ||
|
||
[[pages]] | ||
path = "example_app/example_one.py" | ||
name = "Example One" | ||
icon = ":books:" | ||
path = "example_two.py" | ||
name = "Example Two" | ||
icon = ":material/history:" | ||
|
||
[[pages]] | ||
path = "example_app/example_four.py" | ||
name = "Example Four" | ||
path = "example_four.py" | ||
name = "Try hiding pages" | ||
icon = "📖" | ||
|
||
[[pages]] | ||
path = "example_app/example_two.py" | ||
name = "Example Two" | ||
icon = "✏️" | ||
|
||
[[pages]] | ||
path = "example_app/example_three.py" | ||
path = "example_three.py" | ||
|
||
[[pages]] | ||
path = "example_app/example_five.py" | ||
path = "example_five.py" | ||
name = "Example Five" | ||
icon = "🧰" | ||
icon = "🧰" | ||
url_path = "a_very_long_page_title" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,33 @@ | ||
[[pages]] | ||
path = "example_app/streamlit_app_sections.py" | ||
name = "Home" | ||
icon = ":house:" | ||
|
||
[[pages]] | ||
path = "example_app/example_one.py" | ||
name = "Example One" | ||
icon = ":books:" | ||
path = "example_one.py" | ||
name = "st-pages" | ||
icon = "📄" | ||
|
||
[[pages]] | ||
name = "Cool apps" | ||
icon = ":pig:" | ||
is_section = true | ||
|
||
[[pages]] | ||
path = "example_app/example_four.py" | ||
name = "Example Four" | ||
icon = "📖" | ||
path = "example_two.py" | ||
name = "Example Two" | ||
icon = ":material/history:" | ||
|
||
[[pages]] | ||
path = "example_app/example_two.py" | ||
name = "Example Two" | ||
icon = "✏️" | ||
path = "example_four.py" | ||
name = "Try hiding pages" | ||
icon = "📖" | ||
|
||
[[pages]] | ||
name = "Other apps" | ||
icon = ":horse:" | ||
is_section = true | ||
|
||
[[pages]] | ||
path = "example_app/example_three.py" | ||
path = "example_three.py" | ||
|
||
[[pages]] | ||
path = "example_app/example_five.py" | ||
path = "example_five.py" | ||
name = "Example Five" | ||
icon = "🧰" | ||
in_section = false | ||
url_path = "a_very_long_page_title" |
Oops, something went wrong.