feat(directory): removed changelogs page
This commit is contained in:
110
changelogs.yaml
110
changelogs.yaml
@@ -1,110 +0,0 @@
|
|||||||
showcase:
|
|
||||||
2024/02/01:
|
|
||||||
- Added shu, lin_heavenly_mirage, and chongyue_alighting
|
|
||||||
2024/01/91:
|
|
||||||
- Added reed_the_frame_shadow_curator
|
|
||||||
2023/11/01:
|
|
||||||
- Added texas_the_omertosa_wingbreaker
|
|
||||||
- Added mwynar_w_dali
|
|
||||||
- Added virtuosa
|
|
||||||
2023/10/14:
|
|
||||||
- Updated website layout on mobile devices
|
|
||||||
2023/10/23:
|
|
||||||
- Added new operator notification
|
|
||||||
2023/09/09:
|
|
||||||
- Added ling_towering_is_cliff_of_nostalgia
|
|
||||||
2023/08/23:
|
|
||||||
- Added Google Fonts for voice line display
|
|
||||||
2023/08/12:
|
|
||||||
- Updated voice for chongyue, passager_dream_in_a_moment, rosmontis_become_anew, skadi, and skadi_sublimation
|
|
||||||
- Added eyjafjalla_the_hvit_aska, gavial_the_invincible_holiday_hd26, and goldenglow_summer_flowers_fa394
|
|
||||||
- Added a logic to handle images that does not require alpha composite
|
|
||||||
2023/06/24:
|
|
||||||
- Updated charwords
|
|
||||||
- Subtitle will not show by default
|
|
||||||
- Added option to disable Start animation
|
|
||||||
2023/05/04:
|
|
||||||
- Added Start animation for supported operator
|
|
||||||
2023/03/15:
|
|
||||||
- Added background music
|
|
||||||
2023/03/03:
|
|
||||||
- Performance optimization
|
|
||||||
2023/02/26:
|
|
||||||
- Rename w_fugue to w_wonder
|
|
||||||
2023/02/14:
|
|
||||||
- Added pozemka_snowy_plains_in_words
|
|
||||||
2023/02/11:
|
|
||||||
- Added Insights
|
|
||||||
- Added Operator Voice
|
|
||||||
2023/02/05:
|
|
||||||
- Added ability to move Operator Logo around
|
|
||||||
- Added VCs
|
|
||||||
2023/01/17:
|
|
||||||
- Added ling, chongyue
|
|
||||||
2023/01/16:
|
|
||||||
- Refactor the project to use nodeJS
|
|
||||||
2022/12/01:
|
|
||||||
- Added mizuki_summer_feast
|
|
||||||
2022/10/31:
|
|
||||||
- Added texas, relight/neral, become anew/rosmon, dream/passager
|
|
||||||
2022/10/24:
|
|
||||||
- Added lee_trust_your_eyes
|
|
||||||
2022/08/11:
|
|
||||||
- Added gavial, surtr#9
|
|
||||||
2022/05/01:
|
|
||||||
- Added w_fugue, specter, and skadi_sublimation
|
|
||||||
2022/03/29:
|
|
||||||
- Moved to Spine 3.8.99
|
|
||||||
- Added phatom
|
|
||||||
2022/01/23:
|
|
||||||
- Added dusk, ling, everything is a miracle/dusk, unfettered freedom/nian
|
|
||||||
2021/11/01:
|
|
||||||
- Added Nearl, W, and Rosmontis
|
|
||||||
2021/08/21:
|
|
||||||
- Updated skadi
|
|
||||||
- Added nian, chen
|
|
||||||
2021/05/26:
|
|
||||||
- First commit
|
|
||||||
directory:
|
|
||||||
2023/11/01:
|
|
||||||
- Added texas_the_omertosa_wingbreaker
|
|
||||||
- Added mwynar_w_dali
|
|
||||||
- Added virtuosa
|
|
||||||
2023/08/23:
|
|
||||||
- Use fixed data instead of fetching
|
|
||||||
- Added Google Fonts for proper font display
|
|
||||||
2023/06/24:
|
|
||||||
- Fixed _assets rebuilding issue
|
|
||||||
- Added fast navigation menu
|
|
||||||
- Added scroll to top button
|
|
||||||
- Added a custom scrollbar
|
|
||||||
- Added a popup for dropdown menus
|
|
||||||
- Added a search box in fast navigation
|
|
||||||
2023/05/05:
|
|
||||||
- Header title will only contain operator name, instead of full name (skin name + operator name)
|
|
||||||
2023/05/04:
|
|
||||||
- Added Start animation for supported operator
|
|
||||||
2023/05/01:
|
|
||||||
- Added new background and music
|
|
||||||
- Added Born as One / Specter the Unchained
|
|
||||||
- Added Ten Thousand Mountains / Ch'en/Chen the Holungday
|
|
||||||
- Added Remnant / Kal'tsit
|
|
||||||
- Added Muelsyse
|
|
||||||
- Added Chinese Topolect for Lee
|
|
||||||
2023/03/15:
|
|
||||||
- Added background music
|
|
||||||
2023/03/03:
|
|
||||||
- Fixed Voice and VLs issues
|
|
||||||
2023/03/02:
|
|
||||||
- Added Voice, VLs, Operator Logo
|
|
||||||
2023/03/01:
|
|
||||||
- Added Operator page
|
|
||||||
- Added Changelogs page
|
|
||||||
2023/02/28:
|
|
||||||
- Init Operator page
|
|
||||||
2023/02/26:
|
|
||||||
- Added Home page
|
|
||||||
2023/02/25:
|
|
||||||
- Added portrait images
|
|
||||||
2023/02/21:
|
|
||||||
- Init Directory
|
|
||||||
@@ -2,7 +2,6 @@ description: !match "~{split('config', 'title' ,' - ')[0]} Live 2D\n~{split('con
|
|||||||
localization:
|
localization:
|
||||||
en-us:
|
en-us:
|
||||||
ui_notice_title: <hr><h4>📝 Notes</h4><hr>
|
ui_notice_title: <hr><h4>📝 Notes</h4><hr>
|
||||||
ui_notice_changelog: <span><b>Set your own music now!</b></span>
|
|
||||||
ui_notice_set_fps: <span><b>Set FPS target in Settings</b></span>
|
ui_notice_set_fps: <span><b>Set FPS target in Settings</b></span>
|
||||||
ui_notice_github: "Github: https://gura.ch/aklive2d-gh"
|
ui_notice_github: "Github: https://gura.ch/aklive2d-gh"
|
||||||
ui_notice_other_operators: "Previews: https://gura.ch/aklive2d"
|
ui_notice_other_operators: "Previews: https://gura.ch/aklive2d"
|
||||||
@@ -42,7 +41,6 @@ localization:
|
|||||||
ui_useStartAnimation_title: Use Start Animation
|
ui_useStartAnimation_title: Use Start Animation
|
||||||
zh-chs:
|
zh-chs:
|
||||||
ui_notice_title: <hr><h4>📝 通知</h4><hr>
|
ui_notice_title: <hr><h4>📝 通知</h4><hr>
|
||||||
ui_notice_changelog: <span><b>可设定自定义音乐! </b></span>
|
|
||||||
ui_notice_set_fps: <span><b>在设置中设定FPS目标</b></span>
|
ui_notice_set_fps: <span><b>在设置中设定FPS目标</b></span>
|
||||||
ui_notice_github: "Github: https://gura.ch/aklive2d-gh"
|
ui_notice_github: "Github: https://gura.ch/aklive2d-gh"
|
||||||
ui_notice_other_operators: "预览: https://gura.ch/aklive2d"
|
ui_notice_other_operators: "预览: https://gura.ch/aklive2d"
|
||||||
@@ -84,9 +82,6 @@ properties:
|
|||||||
- key: notice_title
|
- key: notice_title
|
||||||
value:
|
value:
|
||||||
text: ui_notice_title
|
text: ui_notice_title
|
||||||
# - key: notice_changelog
|
|
||||||
# value:
|
|
||||||
# text: ui_notice_changelog
|
|
||||||
- key: notice_set_fps
|
- key: notice_set_fps
|
||||||
value:
|
value:
|
||||||
text: ui_notice_set_fps
|
text: ui_notice_set_fps
|
||||||
|
|||||||
@@ -11,10 +11,6 @@
|
|||||||
"zh-CN": "首页",
|
"zh-CN": "首页",
|
||||||
"en-US": "Home"
|
"en-US": "Home"
|
||||||
},
|
},
|
||||||
"changelogs": {
|
|
||||||
"zh-CN": "更新日志",
|
|
||||||
"en-US": "Changelogs"
|
|
||||||
},
|
|
||||||
"offical_page": {
|
"offical_page": {
|
||||||
"zh-CN": "官方页面",
|
"zh-CN": "官方页面",
|
||||||
"en-US": "Offical Page"
|
"en-US": "Offical Page"
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import Home from "@/routes/path/Home";
|
import Home from "@/routes/path/Home";
|
||||||
import Operator from "@/routes/path/Operator";
|
import Operator from "@/routes/path/Operator";
|
||||||
import Changelogs from "@/routes/path/Changelogs";
|
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
@@ -11,13 +10,6 @@ export default [
|
|||||||
element: <Home />,
|
element: <Home />,
|
||||||
inDrawer: true,
|
inDrawer: true,
|
||||||
routeable: true
|
routeable: true
|
||||||
}, {
|
|
||||||
path: "changelogs",
|
|
||||||
index: false,
|
|
||||||
name: "changelogs",
|
|
||||||
element: <Changelogs />,
|
|
||||||
inDrawer: true,
|
|
||||||
routeable: true
|
|
||||||
}, {
|
}, {
|
||||||
path: "https://gura.ch/dynamicCompile",
|
path: "https://gura.ch/dynamicCompile",
|
||||||
index: false,
|
index: false,
|
||||||
|
|||||||
@@ -1,74 +0,0 @@
|
|||||||
import React, {
|
|
||||||
useEffect,
|
|
||||||
useMemo
|
|
||||||
} from 'react'
|
|
||||||
import classes from '@/scss/changelogs/Changelogs.module.scss'
|
|
||||||
import { useHeader } from '@/state/header';
|
|
||||||
import { useAppbar } from '@/state/appbar';
|
|
||||||
import useUmami from '@/state/insights'
|
|
||||||
import Border from '@/component/border';
|
|
||||||
import CHANGELOGS from '@/_changelogs.json'
|
|
||||||
|
|
||||||
export default function Changelogs() {
|
|
||||||
// eslint-disable-next-line no-unused-vars
|
|
||||||
const _trackEvt = useUmami('/changelogs', "Changelogs")
|
|
||||||
const {
|
|
||||||
setTitle,
|
|
||||||
setTabs,
|
|
||||||
currentTab,
|
|
||||||
setHeaderIcon,
|
|
||||||
setFastNavigation,
|
|
||||||
} = useHeader()
|
|
||||||
const {
|
|
||||||
setExtraArea,
|
|
||||||
} = useAppbar()
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
setTitle('changelogs')
|
|
||||||
setExtraArea([])
|
|
||||||
setFastNavigation([])
|
|
||||||
setHeaderIcon(null)
|
|
||||||
}, [setExtraArea, setFastNavigation, setHeaderIcon, setTitle])
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
setTabs(CHANGELOGS.map((item) => {
|
|
||||||
return {
|
|
||||||
key: item[0].key
|
|
||||||
}
|
|
||||||
}))
|
|
||||||
}, [setTabs])
|
|
||||||
|
|
||||||
const content = useMemo(() => {
|
|
||||||
return (
|
|
||||||
CHANGELOGS.map((v) => {
|
|
||||||
return (
|
|
||||||
v.map((item) => {
|
|
||||||
return (
|
|
||||||
<section className={classes.wrapper} key={item.date} hidden={currentTab !== item.key}>
|
|
||||||
<section className={classes.group}>
|
|
||||||
<section className={classes.info}>
|
|
||||||
{item.content.map((entry, index) => {
|
|
||||||
return (
|
|
||||||
<section className={classes.content} key={index}>
|
|
||||||
{entry}
|
|
||||||
</section>
|
|
||||||
)
|
|
||||||
})}
|
|
||||||
</section>
|
|
||||||
<section className={classes.date}>{item.date}</section>
|
|
||||||
</section>
|
|
||||||
<Border />
|
|
||||||
</section>
|
|
||||||
)
|
|
||||||
})
|
|
||||||
)
|
|
||||||
})
|
|
||||||
)
|
|
||||||
}, [currentTab])
|
|
||||||
|
|
||||||
return (
|
|
||||||
<section>
|
|
||||||
{content}
|
|
||||||
</section>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -34,20 +34,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 changelogs = read(path.join(__projectRoot, 'changelogs.yaml'))
|
|
||||||
const changelogsArray = Object.keys(changelogs).reduce((acc, cur) => {
|
|
||||||
const array = []
|
|
||||||
Object.keys(changelogs[cur]).map((item) => {
|
|
||||||
array.push({
|
|
||||||
key: cur,
|
|
||||||
date: item,
|
|
||||||
content: [...changelogs[cur][item]]
|
|
||||||
})
|
|
||||||
})
|
|
||||||
acc.push(array)
|
|
||||||
return acc
|
|
||||||
}, [])
|
|
||||||
|
|
||||||
__config.directory.error.files.forEach((key) => {
|
__config.directory.error.files.forEach((key) => {
|
||||||
const assetsProcessor = new AssetsProcessor()
|
const assetsProcessor = new AssetsProcessor()
|
||||||
assetsProcessor.generateAssets(key.key, extractedFolder).then((content) => {
|
assetsProcessor.generateAssets(key.key, extractedFolder).then((content) => {
|
||||||
@@ -88,7 +74,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(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) => {
|
||||||
copy(path.join(sourceFolder, key, 'assets.json'), path.join(targetFolder, `${__config.operators[key].filename}.json`))
|
copy(path.join(sourceFolder, key, 'assets.json'), path.join(targetFolder, `${__config.operators[key].filename}.json`))
|
||||||
|
|||||||
Reference in New Issue
Block a user