issue for test and deploy

This commit is contained in:
Claudio Boggian
2024-11-22 13:32:55 +01:00
parent 013b11ab87
commit 24f0943b4d
5 changed files with 300 additions and 99 deletions
+53
View File
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<!-- Office JavaScript API -->
<script type="text/javascript" src="https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js"></script>
<script type="text/javascript" src="SEA.js"></script>
</head>
<body>
<h2>Hello There!</h2>
<p>Click the button below to get the current subject of the email.</p>
<button id="get-subject" onclick="getSubject()">Get Subject</button>
<p id="subject"></p>
<p>Click the button below to get the current body of the email.</p>
<button id="get-body" onclick="getBody()">Get Body</button>
<p id="body"></p>
<p>Click the button below to get the current sender of the email.</p>
<button id="get-sender" onclick="getSender()">Get Sender</button>
<p id="sender"></p>
<p>Click the button below to get the current recipients of the email.</p>
<button id="get-recipients" onclick="getRecipients()">Get Recipients</button>
<p id="recipients"></p>
<p>Click the button below to get the current cc recipients of the email.</p>
<button id="get-cc-recipients" onclick="getCcRecipients()">Get Cc Recipients</button>
<p id="cc-recipients"></p>
<p>Click the button below to get the current bcc recipients of the email.</p>
<button id="get-bcc-recipients" onclick="getBccRecipients()">Get Bcc Recipients</button>
<p id="bcc-recipients"></p>
<p>Click the button below to get the current attachments of the email.</p>
<button id="get-attachments" onclick="getAttachments()">Get Attachments</button>
<p id="attachments"></p>
<p>Click the button below to get the current internet message id of the email.</p>
<button id="get-internet-message-id" onclick="getInternetMessageId()">Get Internet Message Id</button>
<p id="internet-message-id"></p>
<p>Click the button below to get the current conversation id of the email.</p>
<button id="get-conversation-id" onclick="getConversationId()">Get Conversation Id</button>
<p id="conversation-id"></p>
<p>Click the button below to get the current conversation topic of the email.</p>
<button id="get-conversation-topic" onclick="getConversationTopic()">Get Conversation Topic</button>
<p id="conversation-topic"></p>
<p>Click the button below to get the current internet message id of the email.</p>
<button id="get-internet-message-id" onclick="getInternetMessageId()">Get Internet Message Id</button>
<p id="internet-message-id"></p>
<p>Click the button below to get the current internet message id of the email.</p>
<button id="get-internet-message-id" onclick="getInternetMessageId()"/>
</body>
</html>
+70
View File
@@ -0,0 +1,70 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/
/* global global, Office, self, window, Word */
Office.onReady((data) => {
// If needed, Office.js is ready to be called
});
/**
* Shows a notification when the add-in command is executed.
* @param event {Office.AddinCommands.Event}
*/
function showNotification(event) {
const message = {
type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,
message: "Base command executed",
icon: "Icon.80x80",
persistent: false
};
// Show a notification message
Office.context.mailbox.item.notificationMessages.replaceAsync("action", message);
event.completed();
}
async function writeInviteIta(event) {
Office.context.mailbox.item.body.setSelectedDataAsync(
"<br/><a href=\"https://portal.pal.it/General/VisitorRegistration\">Registrati come visitatore per agevolare il tuo ingresso in PAL s.r.l.</a><br/>",
{
coercionType: "html",
},
// Callback method to check that setAsync succeeded
function (asyncResult) {
if (asyncResult.status ==
Office.AsyncResultStatus.Failed) {
write(asyncResult.error.message);
}
}
);
event.completed();
}
async function writeInviteEng(event) {
Office.context.mailbox.item.body.setSelectedDataAsync(
"<br/><a href=\"https://portal.pal.it/General/VisitorRegistration\">Register as a visitor to facilitate your entry into PAL s.r.l.</a><br/>",
{
coercionType: "html",
},
// Callback method to check that setAsync succeeded
function (asyncResult) {
if (asyncResult.status ==
Office.AsyncResultStatus.Failed) {
write(asyncResult.error.message);
}
}
);
event.completed();
}
Office.actions.associate("writeInviteIta", writeInviteIta);
Office.actions.associate("writeInviteEng", writeInviteEng);
Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

@@ -17,8 +17,8 @@
<UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress />
<IISExpressSSLPort>44339</IISExpressSSLPort>
<IISExpressAnonymousAuthentication />
<IISExpressWindowsAuthentication />
<IISExpressAnonymousAuthentication>enabled</IISExpressAnonymousAuthentication>
<IISExpressWindowsAuthentication>enabled</IISExpressWindowsAuthentication>
<IISExpressUseClassicPipelineMode />
<UseGlobalApplicationHostFile />
<NuGetPackageImportStamp>
@@ -68,7 +68,6 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Content Include="Functions\Commands.html" />
<Content Include="Content\Button.css" />
<Content Include="Content\fabric-9.6.0.scoped.css" />
<Content Include="Content\fabric-9.6.0.scoped.min.css" />
@@ -108,7 +107,11 @@
<Content Include="Content\sass\Fabric.scss" />
<Content Include="Content\sass\Fabric.Scoped.scss" />
<None Include="Scripts\jquery-3.6.0.intellisense.js" />
<Content Include="Functions\Commands.js" />
<Content Include="Functions\RegInv.html" />
<Content Include="Functions\RegInv.js" />
<Content Include="Functions\SEA.html" />
<Content Include="Functions\SEA.js" />
<Content Include="Images\App_128.png" />
<Content Include="Images\App_64.png" />
<Content Include="Images\Flag_En_16.png" />
<Content Include="Images\Flag_En_32.png" />