Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update requirements.txt for dependabot warnings #950

Merged
merged 2 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
alabaster==0.7.12
Babel==2.12.1
certifi==2022.12.7
certifi==2023.7.22
chardet==4.0.0
colorama==0.4.4
doc8==0.8.1
Expand All @@ -12,10 +12,10 @@ livereload==2.6.3
MarkupSafe==1.1.1
packaging==20.9
pbr==5.6.0
Pygments==2.9.0
Pygments==2.15.0
pyparsing==2.4.7
pytz==2021.1
requests==2.25.1
requests==2.31.0
restructuredtext-lint==1.3.2
six==1.16.0
snowballstemmer==2.1.0
Expand All @@ -32,8 +32,8 @@ sphinxcontrib-serializinghtml==1.1.5
Sphinx-Substitution-Extensions==2020.9.30.0
sphinx-reredirects==0.0.1
stevedore==3.3.0
tornado==6.1
urllib3==1.26.5
tornado==6.3.3
urllib3==1.26.18
sphinx-copybutton==0.5.0
sphinx-toolbox==2.18.0
sphinx-tabs
Expand Down
5 changes: 3 additions & 2 deletions source/mainnet/net/guides/gallery/gallery-frontend.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ When the page is initially opened, it displays the items of the gallery but with
To do that the names of the items must be fetched from the backend. To fetch the items from the backend the `api/names` endpoint of the backend is used. Below is a snippet that shows how the `Gallery` component does that when it loads, given that ``getNames`` is a function that fetches the names from the backend.

.. code-block:: typescript
:force:

interface ItemData {
name: string;
Expand All @@ -19,15 +20,15 @@ To do that the names of the items must be fetched from the backend. To fetch the

export default function Gallery() {
const [items, setItems] = useState<ItemData[]>([]);
...
// ...
useEffect(() => {
getNames(VERIFIER_URL).then((names) =>
setItems(names.map((name) => (
{ name, location: `${VERIFIER_URL}/image/${name}`}
)))
);
}, []);
...
// ...
}

Then there is a component to show the items. In addition to taking the ``itemData`` as input, it also takes the ``authToken`` needed to access the images as an optional parameter, and when it is present, the component fetches the image at the location with the token:
Expand Down
Loading