refactor: vr.js

This commit is contained in:
pa
2025-07-19 22:26:22 +09:00
committed by Natsumi
parent eaeadb9cc3
commit 98765ccffc
8 changed files with 825 additions and 782 deletions

View File

@@ -1,6 +1,5 @@
import './ipc';
import './dayjs';
import './components';
import './noty';
export { t, i18n } from './i18n';

View File

@@ -1,11 +1,27 @@
import Noty from 'noty';
Noty.overrideDefaults({
animation: {
open: 'animate__animated animate__bounceInLeft',
close: 'animate__animated animate__bounceOutLeft'
},
layout: 'bottomLeft',
theme: 'mint',
timeout: 6000
});
function initNoty(isVrOverlay) {
if (isVrOverlay) {
Noty.overrideDefaults({
animation: {
open: 'animate__animated animate__fadeIn',
close: 'animate__animated animate__zoomOut'
},
layout: 'topCenter',
theme: 'relax',
timeout: 3000
});
} else {
Noty.overrideDefaults({
animation: {
open: 'animate__animated animate__bounceInLeft',
close: 'animate__animated animate__bounceOutLeft'
},
layout: 'bottomLeft',
theme: 'mint',
timeout: 6000
});
}
}
export { initNoty };