chore(deps): bump actions/upload-pages-artifact from 4 to 5 (#24)
* chore(deps): bump actions/upload-pages-artifact from 4 to 5 Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 4 to 5. - [Release notes](https://github.com/actions/upload-pages-artifact/releases) - [Commits](https://github.com/actions/upload-pages-artifact/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/upload-pages-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix: avoid effect-based UUID initialization * chore: normalize App.tsx line endings --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: root <root@Windows.localdomain>
This commit is contained in:
1 parent
831ec54d3d
commit
9856ad8001
2 files changed
+3
-9
No files matched your search
@@ -41,7 +41,7 @@ jobs:
|
|||||||
uses: actions/configure-pages@v6
|
uses: actions/configure-pages@v6
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v4
|
uses: actions/upload-pages-artifact@v5
|
||||||
with:
|
with:
|
||||||
path: './dist'
|
path: './dist'
|
||||||
|
|
||||||
|
|||||||
+2
-8
@@ -10,8 +10,8 @@ import { generateUUID, getAllFormats, UUIDFormats, UUIDVersion } from './lib/uui
|
|||||||
import './styles/App.css'
|
import './styles/App.css'
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const [currentUUID, setCurrentUUID] = useState<string>('')
|
const [currentUUID, setCurrentUUID] = useState<string>(() => generateUUID('v4'))
|
||||||
const [formats, setFormats] = useState<UUIDFormats | null>(null)
|
const [formats, setFormats] = useState<UUIDFormats | null>(() => getAllFormats(currentUUID))
|
||||||
const [isLocked, setIsLocked] = useState(false)
|
const [isLocked, setIsLocked] = useState(false)
|
||||||
const [version, setVersion] = useState<UUIDVersion>('v4')
|
const [version, setVersion] = useState<UUIDVersion>('v4')
|
||||||
const [autoGenerate, setAutoGenerate] = useState(false)
|
const [autoGenerate, setAutoGenerate] = useState(false)
|
||||||
@@ -52,12 +52,6 @@ function App() {
|
|||||||
showToast('UUID loaded successfully', 'success')
|
showToast('UUID loaded successfully', 'success')
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate initial UUID on mount
|
|
||||||
useEffect(() => {
|
|
||||||
handleGenerate()
|
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
||||||
}, [])
|
|
||||||
|
|
||||||
// Auto-generate functionality
|
// Auto-generate functionality
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!autoGenerate || isLocked) return
|
if (!autoGenerate || isLocked) return
|
||||||
|
|||||||
Reference in new issue
Block a user