From 0510e42b635f1d001b97484fe6baca4e19adde39 Mon Sep 17 00:00:00 2001 From: Erick Fernando Carvalho Sanchez Date: Mon, 22 Dec 2025 18:07:49 -0300 Subject: [PATCH 1/2] public account added --- FrontEnd/index.html | 9 ++++----- FrontEnd/public/vite.svg | 1 - FrontEnd/src/components/AccountForm.jsx | 8 ++++---- README.md | 3 +++ ReactQuery_FrontEnd/index.html | 9 ++++----- ReactQuery_FrontEnd/public/vite.svg | 1 - ReactQuery_FrontEnd/src/components/AccountForm.jsx | 4 ++-- ReactQuery_FrontEnd/src/hooks/useInput.js | 4 ++-- Redux_FrontEnd/index.html | 9 ++++----- Redux_FrontEnd/public/vite.svg | 1 - Redux_FrontEnd/src/components/AccountForm.jsx | 4 ++-- Redux_FrontEnd/src/hooks/useInput.js | 4 ++-- 12 files changed, 27 insertions(+), 30 deletions(-) delete mode 100644 FrontEnd/public/vite.svg delete mode 100644 ReactQuery_FrontEnd/public/vite.svg delete mode 100644 Redux_FrontEnd/public/vite.svg diff --git a/FrontEnd/index.html b/FrontEnd/index.html index 528910c..378c236 100644 --- a/FrontEnd/index.html +++ b/FrontEnd/index.html @@ -1,15 +1,14 @@ - + - - + MiniBlogListApp -
+
- + diff --git a/FrontEnd/public/vite.svg b/FrontEnd/public/vite.svg deleted file mode 100644 index e7b8dfb..0000000 --- a/FrontEnd/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/FrontEnd/src/components/AccountForm.jsx b/FrontEnd/src/components/AccountForm.jsx index 19a2a21..15cc929 100644 --- a/FrontEnd/src/components/AccountForm.jsx +++ b/FrontEnd/src/components/AccountForm.jsx @@ -10,8 +10,8 @@ import Stack from 'react-bootstrap/Stack' const AccountForm = ({ user, setUser, setError, setMessage, },) => { - const [username, setUsername,] = useState('',) - const [password, setPassword,] = useState('',) + const [username, setUsername,] = useState('admin',) + const [password, setPassword,] = useState('password',) const loginHandler = (event,) => { event.preventDefault() @@ -47,13 +47,13 @@ const AccountForm = ({ user, setUser, setError, setMessage, },) => { Username: - { setUsername(target.value,) }} name='username' placeholder='username' type='text' /> + { setUsername(target.value,) }} name='username' placeholder='username' type='text' /> Password: - { setPassword(target.value,) }} name='password' placeholder='password' type='password' /> + { setPassword(target.value,) }} name='password' placeholder='password' type='password' /> diff --git a/README.md b/README.md index 8dee497..cfe0911 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,9 @@ This project is a mini web application built with React, Vite, and Bootstrap. It ## Lives +- The base user is: admin +- The base password is: password + - [Vanilla FrontEnd](https://minibloglistappvanilla.onrender.com "Just with states") - [ Redux FrontEnd](https://minibloglistapp.onrender.com "Using reduxjs/toolkit") - [ Query FrontEnd](https://minibloglistappquery.onrender.com "Using the react query lib and some contexts") diff --git a/ReactQuery_FrontEnd/index.html b/ReactQuery_FrontEnd/index.html index 528910c..378c236 100644 --- a/ReactQuery_FrontEnd/index.html +++ b/ReactQuery_FrontEnd/index.html @@ -1,15 +1,14 @@ - + - - + MiniBlogListApp -
+
- + diff --git a/ReactQuery_FrontEnd/public/vite.svg b/ReactQuery_FrontEnd/public/vite.svg deleted file mode 100644 index e7b8dfb..0000000 --- a/ReactQuery_FrontEnd/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ReactQuery_FrontEnd/src/components/AccountForm.jsx b/ReactQuery_FrontEnd/src/components/AccountForm.jsx index e4f7a6e..e434811 100644 --- a/ReactQuery_FrontEnd/src/components/AccountForm.jsx +++ b/ReactQuery_FrontEnd/src/components/AccountForm.jsx @@ -19,8 +19,8 @@ const AccountForm = () => { const [notification, notificationDispatch,] = useContext(notificationContext,) const [user, userDispatch,] = useContext(userContext,) const navigate = useNavigate() - const password = useInput('password',) - const username = useInput('text',) + const password = useInput('password', 'password',) + const username = useInput('text', 'admin',) const loginHandler = (event,) => { event.preventDefault() diff --git a/ReactQuery_FrontEnd/src/hooks/useInput.js b/ReactQuery_FrontEnd/src/hooks/useInput.js index b6b88c7..8263967 100644 --- a/ReactQuery_FrontEnd/src/hooks/useInput.js +++ b/ReactQuery_FrontEnd/src/hooks/useInput.js @@ -1,7 +1,7 @@ import { useState, } from 'react' -export default (type,) => { - const [value, setValue,] = useState('',) +export default (type, initialValue,) => { + const [value, setValue,] = useState(initialValue || '',) const onChange = (event,) => { setValue(event.target.value,) } diff --git a/Redux_FrontEnd/index.html b/Redux_FrontEnd/index.html index 528910c..378c236 100644 --- a/Redux_FrontEnd/index.html +++ b/Redux_FrontEnd/index.html @@ -1,15 +1,14 @@ - + - - + MiniBlogListApp -
+
- + diff --git a/Redux_FrontEnd/public/vite.svg b/Redux_FrontEnd/public/vite.svg deleted file mode 100644 index e7b8dfb..0000000 --- a/Redux_FrontEnd/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/Redux_FrontEnd/src/components/AccountForm.jsx b/Redux_FrontEnd/src/components/AccountForm.jsx index 5b88cbf..2016c76 100644 --- a/Redux_FrontEnd/src/components/AccountForm.jsx +++ b/Redux_FrontEnd/src/components/AccountForm.jsx @@ -15,9 +15,9 @@ import useInput from '../hooks/useInput' const AccountForm = () => { const dispatch = useDispatch() const navigate = useNavigate() - const password = useInput('password',) + const password = useInput('password', 'password',) const user = useSelector((state,) => state.user,) - const username = useInput('text',) + const username = useInput('text', 'admin',) const loginHandler = (event,) => { event.preventDefault() diff --git a/Redux_FrontEnd/src/hooks/useInput.js b/Redux_FrontEnd/src/hooks/useInput.js index b6b88c7..8263967 100644 --- a/Redux_FrontEnd/src/hooks/useInput.js +++ b/Redux_FrontEnd/src/hooks/useInput.js @@ -1,7 +1,7 @@ import { useState, } from 'react' -export default (type,) => { - const [value, setValue,] = useState('',) +export default (type, initialValue,) => { + const [value, setValue,] = useState(initialValue || '',) const onChange = (event,) => { setValue(event.target.value,) } From 03d18323a1933aab1bab84125667cc64578835e7 Mon Sep 17 00:00:00 2001 From: Erick Fernando Carvalho Sanchez Date: Mon, 22 Dec 2025 18:18:34 -0300 Subject: [PATCH 2/2] api key secrets updated --- .github/workflows/pipeline.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml index da06e9a..54e61a8 100644 --- a/.github/workflows/pipeline.yaml +++ b/.github/workflows/pipeline.yaml @@ -65,7 +65,7 @@ jobs: - name: Deploy to render if: ${{ github.event_name == 'push' }} - run: curl https://api.render.com/deploy/srv-${{secrets.RENDER_VANILLA_SERVICE_ID}}?key=${{secrets.RENDER_API_KEY}} + run: curl https://api.render.com/deploy/srv-${{secrets.RENDER_VANILLA_SERVICE_ID}}?key=${{secrets.RENDER_VANILLA_API_KEY}} redux_pipeline: needs: @@ -106,7 +106,7 @@ jobs: - name: Deploy to render if: ${{ github.event_name == 'push' }} - run: curl https://api.render.com/deploy/srv-${{secrets.RENDER_REDUX_SERVICE_ID}}?key=${{secrets.RENDER_API_KEY}} + run: curl https://api.render.com/deploy/srv-${{secrets.RENDER_REDUX_SERVICE_ID}}?key=${{secrets.RENDER_REDUX_API_KEY}} query_pipeline: needs: @@ -147,7 +147,7 @@ jobs: - name: Deploy to render if: ${{ github.event_name == 'push' }} - run: curl https://api.render.com/deploy/srv-${{secrets.RENDER_QUERY_SERVICE_ID}}?key=${{secrets.RENDER_API_KEY}} + run: curl https://api.render.com/deploy/srv-${{secrets.RENDER_QUERY_SERVICE_ID}}?key=${{secrets.RENDER_QUERY_API_KEY}} tag_release: needs: