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:
dependabot[bot]androot authored and GitHub committed 2026-04-20 17:35:46 +08:00
1 parent 831ec54d3d
commit 9856ad8001
2 files changed
+3 -9

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ jobs:
uses: actions/configure-pages@v6
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
uses: actions/upload-pages-artifact@v5
with:
path: './dist'
+2 -8
View File
@@ -10,8 +10,8 @@ import { generateUUID, getAllFormats, UUIDFormats, UUIDVersion } from './lib/uui
import './styles/App.css'
function App() {
const [currentUUID, setCurrentUUID] = useState<string>('')
const [formats, setFormats] = useState<UUIDFormats | null>(null)
const [currentUUID, setCurrentUUID] = useState<string>(() => generateUUID('v4'))
const [formats, setFormats] = useState<UUIDFormats | null>(() => getAllFormats(currentUUID))
const [isLocked, setIsLocked] = useState(false)
const [version, setVersion] = useState<UUIDVersion>('v4')
const [autoGenerate, setAutoGenerate] = useState(false)
@@ -52,12 +52,6 @@ function App() {
showToast('UUID loaded successfully', 'success')
}
// Generate initial UUID on mount
useEffect(() => {
handleGenerate()
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
// Auto-generate functionality
useEffect(() => {
if (!autoGenerate || isLocked) return