mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[AAE-7244] fix process services cloud eslint warnings (#7503)
* fix process services cloud eslint warnings * fix export of private consts * improve constant export * fix unit tests
This commit is contained in:
@@ -27,6 +27,7 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
|
||||
|
||||
/**
|
||||
* Gets local preferences
|
||||
*
|
||||
* @param _ Name of the target app
|
||||
* @param key Key of the target preference
|
||||
* @returns List of local preferences
|
||||
@@ -37,8 +38,8 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
|
||||
}
|
||||
return of(
|
||||
{
|
||||
'list': {
|
||||
'entries': []
|
||||
list: {
|
||||
entries: []
|
||||
}
|
||||
}
|
||||
);
|
||||
@@ -46,6 +47,7 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
|
||||
|
||||
/**
|
||||
* Gets local preference.
|
||||
*
|
||||
* @param _ Name of the target app
|
||||
* @param key Key of the target preference
|
||||
* @returns Observable of local preference
|
||||
@@ -56,6 +58,7 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
|
||||
|
||||
/**
|
||||
* Creates local preference.
|
||||
*
|
||||
* @param _ Name of the target app
|
||||
* @param key Key of the target preference
|
||||
* @param newPreference Details of new local preference
|
||||
@@ -70,6 +73,7 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
|
||||
|
||||
/**
|
||||
* Updates local preference.
|
||||
*
|
||||
* @param _ Name of the target app
|
||||
* @param key Key of the target preference
|
||||
* @param updatedPreference Details of updated preference
|
||||
@@ -84,6 +88,7 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
|
||||
|
||||
/**
|
||||
* Deletes local preference by given preference key.
|
||||
*
|
||||
* @param key Key of the target preference
|
||||
* @param preferences Details of updated preferences
|
||||
* @returns Observable of preferences without deleted preference
|
||||
@@ -97,12 +102,12 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
|
||||
|
||||
prepareLocalPreferenceResponse(key: string): any {
|
||||
return {
|
||||
'list': {
|
||||
'entries': [
|
||||
list: {
|
||||
entries: [
|
||||
{
|
||||
'entry': {
|
||||
'key': key,
|
||||
'value': this.storage.getItem(key) || '[]'
|
||||
entry: {
|
||||
key,
|
||||
value: this.storage.getItem(key) || '[]'
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user