feat(directory): remove version display

This commit is contained in:
Haoyu Xu
2023-08-23 21:05:31 +08:00
parent c4ffb5de39
commit b4795ff138
3 changed files with 1 additions and 6 deletions

View File

@@ -29,7 +29,6 @@ import ReturnButton from '@/component/return_button';
import Border from '@/component/border'; import Border from '@/component/border';
import CharIcon from '@/component/char_icon'; import CharIcon from '@/component/char_icon';
import ToTopButton from '@/component/totop_button'; import ToTopButton from '@/component/totop_button';
import VERSION from '@/_version'
const currentYear = new Date().getFullYear() const currentYear = new Date().getFullYear()
@@ -166,8 +165,6 @@ function FooterElement() {
<span>Spine Runtimes © 2013 - 2019 Esoteric Software LLC</span> <span>Spine Runtimes © 2013 - 2019 Esoteric Software LLC</span>
<span>Assets © 2017 - {currentYear} Arknights/Hypergryph Co., Ltd</span> <span>Assets © 2017 - {currentYear} Arknights/Hypergryph Co., Ltd</span>
<span>Source Code © 2021 - {currentYear} Halyul</span> <span>Source Code © 2021 - {currentYear} Halyul</span>
<span>Directory @ {VERSION.directory}</span>
<span>Showcase @ {VERSION.showcase}</span>
</section> </section>
</footer> </footer>
) )

View File

@@ -33,7 +33,6 @@ export default function ({ backgrounds, musicMapping }) {
}, {})) }, {}))
.sort((a, b) => Date.parse(b[0].date) - Date.parse(a[0].date)), .sort((a, b) => Date.parse(b[0].date) - Date.parse(a[0].date)),
} }
const versionJson = __config.version
const changelogs = read(path.join(__projectRoot, 'changelogs.yaml')) const changelogs = read(path.join(__projectRoot, 'changelogs.yaml'))
const changelogsArray = Object.keys(changelogs).reduce((acc, cur) => { const changelogsArray = Object.keys(changelogs).reduce((acc, cur) => {
@@ -89,7 +88,6 @@ export default function ({ backgrounds, musicMapping }) {
]), path.join(__projectRoot, 'directory', '.env')) ]), path.join(__projectRoot, 'directory', '.env'))
writeSync(JSON.stringify(directoryJson, null), path.join(directoryAssetFolder, "_directory.json")) writeSync(JSON.stringify(directoryJson, null), path.join(directoryAssetFolder, "_directory.json"))
writeSync(JSON.stringify(versionJson, null), path.join(directoryAssetFolder, "_version.json"))
writeSync(JSON.stringify(changelogsArray, null), path.join(directoryAssetFolder, "_changelogs.json")) writeSync(JSON.stringify(changelogsArray, null), path.join(directoryAssetFolder, "_changelogs.json"))
writeSync(JSON.stringify(backgrounds, null), path.join(directoryAssetFolder, "_backgrounds.json")) writeSync(JSON.stringify(backgrounds, null), path.join(directoryAssetFolder, "_backgrounds.json"))
filesToCopy.forEach((key) => { filesToCopy.forEach((key) => {

View File

@@ -152,7 +152,7 @@ class ViteRunner {
} }
const directoryDir = path.resolve(__projectRoot, 'directory') const directoryDir = path.resolve(__projectRoot, 'directory')
this.#mode = process.argv[3] this.#mode = process.argv[3]
const publicDir = path.resolve(__projectRoot, this.#globalConfig.folder.release) // const publicDir = path.resolve(__projectRoot, this.#globalConfig.folder.release)
const assetsDir = '_directory' const assetsDir = '_directory'
return { return {
...this.#baseViteConfig, ...this.#baseViteConfig,