mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-16 13:23:52 +02:00
refactor: vr.js
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import './ipc';
|
||||
import './dayjs';
|
||||
import './components';
|
||||
import './noty';
|
||||
|
||||
export { t, i18n } from './i18n';
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user