Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nancy-studio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢荣超
nancy-studio
Commits
ca7dd25c
Commit
ca7dd25c
authored
Apr 11, 2026
by
谢荣超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 更新案例图片目录名称及路径引用
将案例图片源文件目录从 public/case 重命名为 case-source,并更新相关脚本中的路径引用,以更清晰地表明该目录用途并避免与公共资源混淆。
parent
9635dd6b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
.gitignore
.gitignore
+2
-2
scripts/generate-cases.mjs
scripts/generate-cases.mjs
+1
-1
scripts/upload-to-oss.mjs
scripts/upload-to-oss.mjs
+1
-1
No files found.
.gitignore
View file @
ca7dd25c
...
@@ -24,6 +24,6 @@ dist-ssr
...
@@ -24,6 +24,6 @@ dist-ssr
*.sw?
*.sw?
.vercel
.vercel
# Case images (hosted on OSS, uploaded via npm run upload)
# Case
source
images (hosted on OSS, uploaded via npm run upload)
public/cas
e/
case-sourc
e/
dist.zip
dist.zip
scripts/generate-cases.mjs
View file @
ca7dd25c
...
@@ -3,7 +3,7 @@ import { join, basename } from 'path'
...
@@ -3,7 +3,7 @@ import { join, basename } from 'path'
import
{
fileURLToPath
}
from
'
url
'
import
{
fileURLToPath
}
from
'
url
'
const
__dirname
=
fileURLToPath
(
new
URL
(
'
.
'
,
import
.
meta
.
url
))
const
__dirname
=
fileURLToPath
(
new
URL
(
'
.
'
,
import
.
meta
.
url
))
const
CASE_DIR
=
join
(
__dirname
,
'
../
public/cas
e
'
)
const
CASE_DIR
=
join
(
__dirname
,
'
../
case-sourc
e
'
)
const
OUTPUT
=
join
(
__dirname
,
'
../src/data/cases.ts
'
)
const
OUTPUT
=
join
(
__dirname
,
'
../src/data/cases.ts
'
)
const
IMAGE_EXTENSIONS
=
[
'
.jpg
'
,
'
.jpeg
'
,
'
.png
'
,
'
.webp
'
]
const
IMAGE_EXTENSIONS
=
[
'
.jpg
'
,
'
.jpeg
'
,
'
.png
'
,
'
.webp
'
]
...
...
scripts/upload-to-oss.mjs
View file @
ca7dd25c
...
@@ -6,7 +6,7 @@ import { createHash } from 'crypto'
...
@@ -6,7 +6,7 @@ import { createHash } from 'crypto'
const
__dirname
=
fileURLToPath
(
new
URL
(
'
.
'
,
import
.
meta
.
url
))
const
__dirname
=
fileURLToPath
(
new
URL
(
'
.
'
,
import
.
meta
.
url
))
const
PROJECT_ROOT
=
join
(
__dirname
,
'
..
'
)
const
PROJECT_ROOT
=
join
(
__dirname
,
'
..
'
)
const
CASE_DIR
=
join
(
PROJECT_ROOT
,
'
public/cas
e
'
)
const
CASE_DIR
=
join
(
PROJECT_ROOT
,
'
case-sourc
e
'
)
const
OUTPUT
=
join
(
PROJECT_ROOT
,
'
src/data/cases.ts
'
)
const
OUTPUT
=
join
(
PROJECT_ROOT
,
'
src/data/cases.ts
'
)
// OSS 配置
// OSS 配置
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment