mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Found more JSON properties to change into JavaScript camelCase
This commit is contained in:
parent
b9ef8ae2c9
commit
974350ebee
45 changed files with 361 additions and 412 deletions
|
|
@ -59,10 +59,10 @@ export class AdminSettingsAbout /*extends AbstractViewSettings*/ {
|
|||
this.coreChecking(false);
|
||||
if (!iError && data?.Result) {
|
||||
this.coreReal(true);
|
||||
this.coreUpdatable(!!data.Result.Updatable);
|
||||
this.coreWarning(!!data.Result.Warning);
|
||||
this.coreVersion(data.Result.Version || '');
|
||||
this.coreVersionCompare(data.Result.VersionCompare);
|
||||
this.coreUpdatable(!!data.Result.updatable);
|
||||
this.coreWarning(!!data.Result.warning);
|
||||
this.coreVersion(data.Result.version || '');
|
||||
this.coreVersionCompare(data.Result.versionCompare);
|
||||
} else {
|
||||
this.coreReal(false);
|
||||
this.coreWarning(false);
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ export class AdminSettingsDomains /*extends AbstractViewSettings*/ {
|
|||
}
|
||||
},
|
||||
{
|
||||
username: this.username()
|
||||
username: this.username
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
@ -41,15 +41,15 @@ export class AdminSettingsDomains /*extends AbstractViewSettings*/ {
|
|||
deleteDomain(domain) {
|
||||
DomainAdminStore.remove(domain);
|
||||
Remote.request('AdminDomainDelete', DomainAdminStore.fetch, {
|
||||
Name: domain.name
|
||||
name: domain.name
|
||||
});
|
||||
}
|
||||
|
||||
disableDomain(domain) {
|
||||
domain.disabled(!domain.disabled());
|
||||
Remote.request('AdminDomainDisable', DomainAdminStore.fetch, {
|
||||
Name: domain.name,
|
||||
Disabled: domain.disabled() ? 1 : 0
|
||||
name: domain.name,
|
||||
disabled: domain.disabled() ? 1 : 0
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -59,7 +59,7 @@ export class AdminSettingsDomains /*extends AbstractViewSettings*/ {
|
|||
el && ko.dataFor(el) && Remote.request('AdminDomainLoad',
|
||||
(iError, oData) => iError || showScreenPopup(DomainPopupView, [oData.Result]),
|
||||
{
|
||||
Name: ko.dataFor(el).name
|
||||
name: ko.dataFor(el).name
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ export class AdminSettingsPackages extends AbstractViewSettings {
|
|||
data && Remote.request('AdminPluginLoad',
|
||||
(iError, data) => iError || showScreenPopup(PluginPopupView, [data.Result]),
|
||||
{
|
||||
Id: data.id
|
||||
id: data.id
|
||||
}
|
||||
);
|
||||
// disablePlugin
|
||||
|
|
@ -84,7 +84,7 @@ export class AdminSettingsPackages extends AbstractViewSettings {
|
|||
Remote.request('AdminPackageDelete',
|
||||
this.requestHelper(packageToDelete, false),
|
||||
{
|
||||
Id: packageToDelete.id
|
||||
id: packageToDelete.id
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
@ -96,9 +96,9 @@ export class AdminSettingsPackages extends AbstractViewSettings {
|
|||
Remote.request('AdminPackageInstall',
|
||||
this.requestHelper(packageToInstall, true),
|
||||
{
|
||||
Id: packageToInstall.id,
|
||||
Type: packageToInstall.type,
|
||||
File: packageToInstall.file
|
||||
id: packageToInstall.id,
|
||||
type: packageToInstall.type,
|
||||
file: packageToInstall.file
|
||||
},
|
||||
60000
|
||||
);
|
||||
|
|
@ -120,8 +120,8 @@ export class AdminSettingsPackages extends AbstractViewSettings {
|
|||
}
|
||||
// PackageAdminStore.fetch();
|
||||
}, {
|
||||
Id: plugin.id,
|
||||
Disabled: disable ? 1 : 0
|
||||
id: plugin.id,
|
||||
disabled: disable ? 1 : 0
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,10 +102,10 @@ export class AdminSettingsSecurity extends AbstractViewSettings {
|
|||
this.weakPassword(!!data.Result.Weak);
|
||||
}
|
||||
}, {
|
||||
'Login': this.adminLogin(),
|
||||
'Password': this.adminPassword(),
|
||||
'NewPassword': this.adminPasswordNew(),
|
||||
'TOTP': this.adminTOTP()
|
||||
Login: this.adminLogin(),
|
||||
Password: this.adminPassword(),
|
||||
newPassword: this.adminPasswordNew(),
|
||||
TOTP: this.adminTOTP()
|
||||
});
|
||||
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ export class UserSettingsAccounts /*extends AbstractViewSettings*/ {
|
|||
rl.app.accountsAndIdentities();
|
||||
}
|
||||
}, {
|
||||
EmailToDelete: accountToRemove.email
|
||||
emailToDelete: accountToRemove.email
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -81,7 +81,7 @@ export class UserSettingsAccounts /*extends AbstractViewSettings*/ {
|
|||
this.identityForDeletion(null);
|
||||
IdentityUserStore.remove(oIdentity => identityToRemove === oIdentity);
|
||||
Remote.request('IdentityDelete', () => rl.app.accountsAndIdentities(), {
|
||||
IdToDelete: identityToRemove.id()
|
||||
idToDelete: identityToRemove.id()
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -160,8 +160,8 @@ export class UserSettingsFolders /*extends AbstractViewSettings*/ {
|
|||
// TODO: append '.default' ?
|
||||
Remote.request('FolderSetMetadata', null, {
|
||||
folder: folder.fullName,
|
||||
Key: FolderMetadataKeys.KolabFolderType,
|
||||
Value: type
|
||||
key: FolderMetadataKeys.KolabFolderType,
|
||||
value: type
|
||||
});
|
||||
folder.kolabType(type);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue