Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Akegarasu committed Nov 22, 2024
1 parent a011f10 commit d56823b
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 14 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "GPL-v3",
"scripts": {
"dev": "vite",
"build": "vite build",
"build": "cross-env VITE_COMMIT_HASH=$(git rev-parse --short HEAD) vite build",
"preview": "vite preview"
},
"dependencies": {
Expand All @@ -27,6 +27,7 @@
"@types/file-saver": "^2.0.5",
"@types/mime-types": "^2.1.1",
"@vitejs/plugin-vue": "^3.0.0",
"cross-env": "^7.0.3",
"unocss": "^0.44.7",
"vite": "^3.1.0",
"vite-plugin-pwa": "^0.13.3"
Expand Down
42 changes: 29 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/components/Root.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@
<a class="text-gray-500" href="https://space.bilibili.com/12566101">秋葉aaaki</a>
<a> | </a>
<a class="text-gray-500" href="https://novelai.dev">NovelAI.Dev</a>
<a> | </a>
<a class="text-gray-500">Build: {{ commitHash }}</a>
</span>
</div>
</div>
Expand Down Expand Up @@ -122,6 +124,8 @@ import useClipboard from "vue-clipboard3";
import { asyncFileReaderAsDataURL, getStealthExif, getSafetensorsMeta, getSafetensorsMetaKohya } from "../utils";
const commitHash = import.meta.env.VITE_COMMIT_HASH || "unknown"
const imgFileRef = ref(null);
const imageRef = ref(null);
const exifRef = ref(null);
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"module": "ES2022",
"esModuleInterop": true,
"resolveJsonModule": true,
"moduleResolution": "node",
Expand Down

0 comments on commit d56823b

Please sign in to comment.