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
@@ -13,14 +13,14 @@
<Id>7badd9f2-c760-4498-acbf-059720660dd9</Id> <Id>7badd9f2-c760-4498-acbf-059720660dd9</Id>
<!--Versione. Gli aggiornamenti dallo Store vengono attivati solo in caso di modifica della versione. --> <!--Versione. Gli aggiornamenti dallo Store vengono attivati solo in caso di modifica della versione. -->
<Version>1.0.0.20</Version> <Version>1.0.0.22</Version>
<ProviderName>PAL s.r.l.</ProviderName> <ProviderName>PAL s.r.l.</ProviderName>
<DefaultLocale>it-IT</DefaultLocale> <DefaultLocale>it-IT</DefaultLocale>
<!-- Nome visualizzato del componente aggiuntivo. Viene usato nello Store e in altri punti dell'interfaccia utente di Office, come la finestra di dialogo dei componenti aggiuntivi. --> <!-- Nome visualizzato del componente aggiuntivo. Viene usato nello Store e in altri punti dell'interfaccia utente di Office, come la finestra di dialogo dei componenti aggiuntivi. -->
<DisplayName DefaultValue="PAL" /> <DisplayName DefaultValue="PAL" />
<Description DefaultValue="Strumento PAL per gestire custom proprietarie"/> <Description DefaultValue="Strumento PAL per gestire custom proprietarie"/>
<IconUrl DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/App_64.png"/> <IconUrl DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/App_64.png"/>
<HighResolutionIconUrl DefaultValue="https://paltestapp.azurewebsites.net/res/OutlookAddin/Images/App_128.png"/>
<SupportUrl DefaultValue="https://www.imalpal.com/" /> <SupportUrl DefaultValue="https://www.imalpal.com/" />
<Hosts> <Hosts>
@@ -28,7 +28,7 @@
</Hosts> </Hosts>
<Requirements> <Requirements>
<Sets> <Sets>
<Set Name="Mailbox" MinVersion="1.1"/> <Set Name="Mailbox" MinVersion="1.5"/>
</Sets> </Sets>
</Requirements> </Requirements>
<FormSettings> <FormSettings>
@@ -46,99 +46,174 @@
</Rule> </Rule>
<DisableEntityHighlighting>false</DisableEntityHighlighting> <DisableEntityHighlighting>false</DisableEntityHighlighting>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0"> <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
<Requirements> <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
<bt:Sets DefaultMinVersion="1.3"> <Requirements>
<bt:Set Name="Mailbox"/> <bt:Sets DefaultMinVersion="1.3">
</bt:Sets> <bt:Set Name="Mailbox"/>
</Requirements> </bt:Sets>
<Hosts> </Requirements>
<Host xsi:type="MailHost"> <Hosts>
<DesktopFormFactor> <Host xsi:type="MailHost">
<FunctionFile resid="Commands.Url"/> <DesktopFormFactor>
<ExtensionPoint xsi:type="MessageComposeCommandSurface"> <FunctionFile resid="Commands.Url"/>
<OfficeTab id="TabHome"> <ExtensionPoint xsi:type="MessageComposeCommandSurface">
<Group id="PAL.Group1"> <OfficeTab id="TabHome">
<Label resid="PAL.Group1Label" /> <Group id="PAL.Group1">
<Control xsi:type="Menu" id="PAL.Menu"> <Label resid="PAL.Group1Label" />
<Label resid="PAL.Menu.Label" /> <Control xsi:type="Menu" id="PAL.Menu">
<Supertip> <Label resid="PAL.Menu.Label" />
<Title resid="PAL.Menu.Label" /> <Supertip>
<Description resid="PAL.Menu.Tooltip" /> <Title resid="PAL.Menu.Label" />
</Supertip> <Description resid="PAL.Menu.Tooltip" />
<Icon> </Supertip>
<bt:Image size="16" resid="PAL.tpicon_16x16" /> <Icon>
<bt:Image size="32" resid="PAL.tpicon_32x32" /> <bt:Image size="16" resid="PAL.tpicon_16x16" />
<bt:Image size="80" resid="PAL.tpicon_80x80" /> <bt:Image size="32" resid="PAL.tpicon_32x32" />
</Icon> <bt:Image size="80" resid="PAL.tpicon_80x80" />
<Items> </Icon>
<Item id="itemExecuteFunctionItalian"> <Items>
<Label resid="PAL.Item2.LabelIta"/> <Item id="itemExecuteFunctionItalian">
<Supertip> <Label resid="PAL.Item2.LabelIta"/>
<Title resid="PAL.Item2.LabelIta" /> <Supertip>
<Description resid="PAL.Item2.TooltipIta" /> <Title resid="PAL.Item2.LabelIta" />
</Supertip> <Description resid="PAL.Item2.TooltipIta" />
<Icon> </Supertip>
<bt:Image size="16" resid="PAL.flag_it_16x16" /> <Icon>
<bt:Image size="32" resid="PAL.flag_it_32x32" /> <bt:Image size="16" resid="PAL.flag_it_16x16" />
<bt:Image size="80" resid="PAL.flag_it_80x80" /> <bt:Image size="32" resid="PAL.flag_it_32x32" />
</Icon> <bt:Image size="80" resid="PAL.flag_it_80x80" />
<Action xsi:type="ExecuteFunction"> </Icon>
<FunctionName>writeInviteIta</FunctionName> <Action xsi:type="ExecuteFunction">
</Action> <FunctionName>writeInviteIta</FunctionName>
</Item> </Action>
<Item id="itemExecuteFunctionEnglish"> </Item>
<Label resid="PAL.Item2.LabelEng"/> <Item id="itemExecuteFunctionEnglish">
<Supertip> <Label resid="PAL.Item2.LabelEng"/>
<Title resid="PAL.Item2.LabelEng" /> <Supertip>
<Description resid="PAL.Item2.TooltipEng" /> <Title resid="PAL.Item2.LabelEng" />
</Supertip> <Description resid="PAL.Item2.TooltipEng" />
<Icon> </Supertip>
<bt:Image size="16" resid="PAL.flag_en_16x16" /> <Icon>
<bt:Image size="32" resid="PAL.flag_en_32x32" /> <bt:Image size="16" resid="PAL.flag_en_16x16" />
<bt:Image size="80" resid="PAL.flag_en_80x80" /> <bt:Image size="32" resid="PAL.flag_en_32x32" />
</Icon> <bt:Image size="80" resid="PAL.flag_en_80x80" />
<Action xsi:type="ExecuteFunction"> </Icon>
<FunctionName>writeInviteEng</FunctionName> <Action xsi:type="ExecuteFunction">
</Action> <FunctionName>writeInviteEng</FunctionName>
</Item> </Action>
</Items> </Item>
</Control> </Items>
</Group> </Control>
</OfficeTab> <Control xsi:type="Menu" id="PAL.Menu2">
</ExtensionPoint> <Label resid="PAL.Menu2.Label" />
</DesktopFormFactor> <Supertip>
</Host> <Title resid="PAL.Menu2.Label" />
</Hosts> <Description resid="PAL.Menu2.Tooltip" />
<Resources> </Supertip>
<bt:Images> <Icon>
<bt:Image id="PAL.tpicon_16x16" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/RegInv_16.png" /> <bt:Image size="16" resid="PAL.tpicon_16x16" />
<bt:Image id="PAL.tpicon_32x32" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/RegInv_32.png" /> <bt:Image size="32" resid="PAL.tpicon_32x32" />
<bt:Image id="PAL.tpicon_80x80" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/RegInv_80.png" /> <bt:Image size="80" resid="PAL.tpicon_80x80" />
</Icon>
<Items>
<Item id="itemExecuteFunctionItalian2">
<Label resid="PAL.Item2.LabelIta"/>
<Supertip>
<Title resid="PAL.Item2.LabelIta" />
<Description resid="PAL.Item2.TooltipIta" />
</Supertip>
<Icon>
<bt:Image size="16" resid="PAL.flag_it_16x16" />
<bt:Image size="32" resid="PAL.flag_it_32x32" />
<bt:Image size="80" resid="PAL.flag_it_80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="TaskpaneSEA.Url"/>
</Action>
</Item>
</Items>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
<bt:Image id="PAL.flag_it_16x16" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_It_16.png" /> <ExtensionPoint xsi:type="MessageReadCommandSurface">
<bt:Image id="PAL.flag_it_32x32" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_It_32.png" /> <OfficeTab id="TabHome">
<bt:Image id="PAL.flag_it_80x80" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_It_80.png" /> <Group id="PAL.Group2">
<Label resid="PAL.Group1Label" />
<Control xsi:type="Menu" id="PAL.Menu3">
<Label resid="PAL.Menu2.Label" />
<Supertip>
<Title resid="PAL.Menu2.Label" />
<Description resid="PAL.Menu2.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="PAL.tpicon_16x16" />
<bt:Image size="32" resid="PAL.tpicon_32x32" />
<bt:Image size="80" resid="PAL.tpicon_80x80" />
</Icon>
<Items>
<Item id="itemExecuteFunctionItalian2">
<Label resid="PAL.Item2.LabelIta"/>
<Supertip>
<Title resid="PAL.Item2.LabelIta" />
<Description resid="PAL.Item2.TooltipIta" />
</Supertip>
<Icon>
<bt:Image size="16" resid="PAL.flag_it_16x16" />
<bt:Image size="32" resid="PAL.flag_it_32x32" />
<bt:Image size="80" resid="PAL.flag_it_80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="TaskpaneSEA.Url"/>
</Action>
</Item>
</Items>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="PAL.tpicon_16x16" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/RegInv_16.png" />
<bt:Image id="PAL.tpicon_32x32" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/RegInv_32.png" />
<bt:Image id="PAL.tpicon_80x80" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/RegInv_80.png" />
<bt:Image id="PAL.flag_en_16x16" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_En_16.png" /> <bt:Image id="PAL.flag_it_16x16" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_It_16.png" />
<bt:Image id="PAL.flag_en_32x32" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_En_32.png" /> <bt:Image id="PAL.flag_it_32x32" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_It_32.png" />
<bt:Image id="PAL.flag_en_80x80" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_En_80.png" /> <bt:Image id="PAL.flag_it_80x80" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_It_80.png" />
</bt:Images>
<bt:Urls> <bt:Image id="PAL.flag_en_16x16" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_En_16.png" />
<bt:Url id="Commands.Url" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Functions/reginv.html" /> <bt:Image id="PAL.flag_en_32x32" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_En_32.png" />
</bt:Urls> <bt:Image id="PAL.flag_en_80x80" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_En_80.png" />
<!-- ShortStrings max characters==125. -->
<bt:ShortStrings> <!--<bt:Image id="PAL.sharepoint_16x16" DefaultValue="~remoteAppUrl/Images/sharepoint_16.png" />
<bt:String id="PAL.Item2.LabelIta" DefaultValue="Italiano" /> <bt:Image id="PAL.sharepoint_32x32" DefaultValue="~remoteAppUrl/Images/sharepoint_32.png" />
<bt:String id="PAL.Item2.LabelEng" DefaultValue="Inglese" /> <bt:Image id="PAL.sharepoint_80x80" DefaultValue="~remoteAppUrl/Images/sharepoint_80.png" />-->
<bt:String id="PAL.Menu.Label" DefaultValue="Invito registrazione" /> </bt:Images>
<bt:String id="PAL.Group1Label" DefaultValue="Strumenti PAL" /> <bt:Urls>
</bt:ShortStrings> <bt:Url id="Commands.Url" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Functions/reginv.html" />
<!-- LongStrings max characters==250. --> <bt:Url id="TaskpaneSEA.Url" DefaultValue="https://paltestapp.azurewebsites.net/res/OutlookAddin/Functions/SEA.html" />
<bt:LongStrings> </bt:Urls>
<bt:String id="PAL.Item2.TooltipIta" DefaultValue="Inserisci l'invito in italiano" /> <!-- ShortStrings max characters==125. -->
<bt:String id="PAL.Item2.TooltipEng" DefaultValue="Inserisci l'invito in inglese" /> <bt:ShortStrings>
<bt:String id="PAL.Menu.Tooltip" DefaultValue="Inserisci l'invito alla registrazione al portale visitatori." /> <bt:String id="PAL.Item2.LabelIta" DefaultValue="Italiano" />
</bt:LongStrings> <bt:String id="PAL.Item2.LabelEng" DefaultValue="Inglese" />
</Resources> <bt:String id="PAL.Menu.Label" DefaultValue="Invito registrazione" />
<bt:String id="PAL.Menu2.Label" DefaultValue="Sharepoint Mail Dragger" />
<bt:String id="PAL.Group1Label" DefaultValue="Strumenti PAL" />
</bt:ShortStrings>
<!-- LongStrings max characters==250. -->
<bt:LongStrings>
<bt:String id="PAL.Item2.TooltipIta" DefaultValue="Inserisci l'invito in italiano" />
<bt:String id="PAL.Item2.TooltipEng" DefaultValue="Inserisci l'invito in inglese" />
<bt:String id="PAL.Menu.Tooltip" DefaultValue="Inserisci l'invito alla registrazione al portale visitatori." />
<bt:String id="PAL.Menu2.Tooltip" DefaultValue="Archivia le mail in sharepoint." />
</bt:LongStrings>
</Resources>
</VersionOverrides>
</VersionOverrides> </VersionOverrides>
</OfficeApp> </OfficeApp>
+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> <UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress /> <Use64BitIISExpress />
<IISExpressSSLPort>44339</IISExpressSSLPort> <IISExpressSSLPort>44339</IISExpressSSLPort>
<IISExpressAnonymousAuthentication /> <IISExpressAnonymousAuthentication>enabled</IISExpressAnonymousAuthentication>
<IISExpressWindowsAuthentication /> <IISExpressWindowsAuthentication>enabled</IISExpressWindowsAuthentication>
<IISExpressUseClassicPipelineMode /> <IISExpressUseClassicPipelineMode />
<UseGlobalApplicationHostFile /> <UseGlobalApplicationHostFile />
<NuGetPackageImportStamp> <NuGetPackageImportStamp>
@@ -68,7 +68,6 @@
</Reference> </Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="Functions\Commands.html" />
<Content Include="Content\Button.css" /> <Content Include="Content\Button.css" />
<Content Include="Content\fabric-9.6.0.scoped.css" /> <Content Include="Content\fabric-9.6.0.scoped.css" />
<Content Include="Content\fabric-9.6.0.scoped.min.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.scss" />
<Content Include="Content\sass\Fabric.Scoped.scss" /> <Content Include="Content\sass\Fabric.Scoped.scss" />
<None Include="Scripts\jquery-3.6.0.intellisense.js" /> <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\App_64.png" />
<Content Include="Images\Flag_En_16.png" /> <Content Include="Images\Flag_En_16.png" />
<Content Include="Images\Flag_En_32.png" /> <Content Include="Images\Flag_En_32.png" />