Update MegaMenu Application Customizer: Version bump to 1.1.0, localization support added, and unnecessary files removed
- Deleted obsolete localization file for English (en-us). - Updated version number from 1.0.4 to 1.1.0 in manifests.js and manifests.json. - Added localization support for German (de-de) in a new localization file. - Removed unnecessary dependencies from manifests. - Added .gitignore to exclude build artifacts and temporary files.
This commit is contained in:
@@ -35,8 +35,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||
};
|
||||
import { sp } from '@pnp/sp';
|
||||
import { UserCustomActionScope } from './UserCustomActionScope';
|
||||
import { debugError } from '../MegaMenuDebug';
|
||||
var LOG_SOURCE = 'UserCustomActionService';
|
||||
var UserCustomActionService = (function () {
|
||||
function UserCustomActionService(context) {
|
||||
function UserCustomActionService(context, debug) {
|
||||
if (debug === void 0) { debug = false; }
|
||||
this.debug = debug;
|
||||
sp.setup({
|
||||
spfxContext: context
|
||||
});
|
||||
@@ -76,7 +80,7 @@ var UserCustomActionService = (function () {
|
||||
case 8: return [2 /*return*/, actions];
|
||||
case 9:
|
||||
error_1 = _b.sent();
|
||||
console.error('Error getting user custom actions: ', error_1);
|
||||
debugError(this.debug, LOG_SOURCE, 'Error getting user custom actions.', error_1);
|
||||
throw error_1;
|
||||
case 10: return [2 /*return*/];
|
||||
}
|
||||
@@ -102,7 +106,7 @@ var UserCustomActionService = (function () {
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
console.error('Error getting user custom action by ID: ', error);
|
||||
debugError(this.debug, LOG_SOURCE, 'Error getting user custom action by ID.', error);
|
||||
throw error;
|
||||
}
|
||||
return [2 /*return*/];
|
||||
@@ -128,7 +132,7 @@ var UserCustomActionService = (function () {
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
console.error('Error adding user custom action: ', error);
|
||||
debugError(this.debug, LOG_SOURCE, 'Error adding user custom action.', error);
|
||||
throw error;
|
||||
}
|
||||
return [2 /*return*/];
|
||||
@@ -170,7 +174,7 @@ var UserCustomActionService = (function () {
|
||||
case 8: return [2 /*return*/, result];
|
||||
case 9:
|
||||
error_2 = _b.sent();
|
||||
console.error('Error updating user custom action: ', error_2);
|
||||
debugError(this.debug, LOG_SOURCE, 'Error updating user custom action.', error_2);
|
||||
throw error_2;
|
||||
case 10: return [2 /*return*/];
|
||||
}
|
||||
@@ -196,7 +200,7 @@ var UserCustomActionService = (function () {
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
console.error('Error deleting user custom action: ', error);
|
||||
debugError(this.debug, LOG_SOURCE, 'Error deleting user custom action.', error);
|
||||
throw error;
|
||||
}
|
||||
return [2 /*return*/];
|
||||
|
||||
Reference in New Issue
Block a user