Drop bootstrap modal.less by using <dialog> <header> and <footer>

https://snappymail.eu/demo/ updated for testing
This commit is contained in:
djmaze 2021-11-07 17:06:08 +01:00
parent 880d4a05e9
commit 6170de5aee
70 changed files with 1521 additions and 1709 deletions

View file

@ -1,8 +1,6 @@
import ko from 'ko';
import { Notification } from 'Common/Enums';
import { ClientSideKeyName } from 'Common/EnumsUser';
import { Settings, SettingsGet } from 'Common/Globals';
import { SettingsGet } from 'Common/Globals';
import { getNotification, translatorReload, convertLangName } from 'Common/Translator';
import { LanguageStore } from 'Stores/Language';
@ -12,7 +10,7 @@ import * as Local from 'Storage/Client';
import Remote from 'Remote/User/Fetch';
import { decorateKoCommands, showScreenPopup } from 'Knoin/Knoin';
import { AbstractViewCenter } from 'Knoin/AbstractViews';
import { AbstractViewLogin } from 'Knoin/AbstractViews';
import { LanguagesPopupView } from 'View/Popup/Languages';
@ -21,12 +19,10 @@ const SignMeOff = 0,
SignMeUnused = 2;
class LoginUserView extends AbstractViewCenter {
class LoginUserView extends AbstractViewLogin {
constructor() {
super('Login');
this.hideSubmitButton = Settings.app('hideSubmitButton');
this.addObservables({
loadingDesc: SettingsGet('LoadingDescription'),
@ -46,8 +42,6 @@ class LoginUserView extends AbstractViewCenter {
signMeType: SignMeUnused
});
this.formError = ko.observable(false).extend({ falseTimeout: 500 });
this.allowLanguagesOnLogin = !!SettingsGet('AllowLanguagesOnLogin');
this.language = LanguageStore.language;
@ -129,11 +123,9 @@ class LoginUserView extends AbstractViewCenter {
return valid;
}
onShow() {
rl.route.off();
}
onBuild(dom) {
super.onBuild(dom);
onBuild() {
const signMeLocal = Local.get(ClientSideKeyName.LastSignMe),
signMe = (SettingsGet('SignMe') || '').toLowerCase();
@ -161,10 +153,6 @@ class LoginUserView extends AbstractViewCenter {
}
}
submitForm() {
// return false;
}
selectLanguage() {
showScreenPopup(LanguagesPopupView, [this.language, this.languages(), LanguageStore.userLanguage()]);
}