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:
Torsten Brendgen
2026-07-16 22:43:31 +02:00
parent a2b8165262
commit 97d2b6b5d2
53 changed files with 1071 additions and 1065 deletions

View File

@@ -4,7 +4,8 @@ import { UserCustomActionScope } from './UserCustomActionScope';
import { IUserCustomActionProps } from './IUserCustomActionProps';
import { ApplicationCustomizerContext } from '@microsoft/sp-application-base';
export declare class UserCustomActionService implements IUserCustomActionService {
constructor(context: ApplicationCustomizerContext);
private debug;
constructor(context: ApplicationCustomizerContext, debug?: boolean);
getUserCustomActions(scope: UserCustomActionScope, listId?: string): Promise<IUserCustomActionProps[]>;
getUserCustomActionById(scope: UserCustomActionScope, id: string, listId?: string): Promise<IUserCustomActionProps>;
addUserCustomAction(scope: UserCustomActionScope, customAction: IUserCustomActionProps, listId?: string): Promise<UserCustomActionAddResult>;

View File

@@ -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*/];

File diff suppressed because one or more lines are too long