issue for test and deploy
This commit is contained in:
@@ -13,14 +13,14 @@
|
||||
<Id>7badd9f2-c760-4498-acbf-059720660dd9</Id>
|
||||
|
||||
<!--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>
|
||||
<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. -->
|
||||
<DisplayName DefaultValue="PAL" />
|
||||
<Description DefaultValue="Strumento PAL per gestire custom proprietarie"/>
|
||||
<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/" />
|
||||
|
||||
<Hosts>
|
||||
@@ -28,7 +28,7 @@
|
||||
</Hosts>
|
||||
<Requirements>
|
||||
<Sets>
|
||||
<Set Name="Mailbox" MinVersion="1.1"/>
|
||||
<Set Name="Mailbox" MinVersion="1.5"/>
|
||||
</Sets>
|
||||
</Requirements>
|
||||
<FormSettings>
|
||||
@@ -46,6 +46,7 @@
|
||||
</Rule>
|
||||
<DisableEntityHighlighting>false</DisableEntityHighlighting>
|
||||
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
|
||||
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
|
||||
<Requirements>
|
||||
<bt:Sets DefaultMinVersion="1.3">
|
||||
<bt:Set Name="Mailbox"/>
|
||||
@@ -103,6 +104,72 @@
|
||||
</Item>
|
||||
</Items>
|
||||
</Control>
|
||||
<Control xsi:type="Menu" id="PAL.Menu2">
|
||||
<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>
|
||||
|
||||
<ExtensionPoint xsi:type="MessageReadCommandSurface">
|
||||
<OfficeTab id="TabHome">
|
||||
<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>
|
||||
@@ -122,15 +189,21 @@
|
||||
<bt:Image id="PAL.flag_en_16x16" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_En_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_en_80x80" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_En_80.png" />
|
||||
|
||||
<!--<bt:Image id="PAL.sharepoint_16x16" DefaultValue="~remoteAppUrl/Images/sharepoint_16.png" />
|
||||
<bt:Image id="PAL.sharepoint_32x32" DefaultValue="~remoteAppUrl/Images/sharepoint_32.png" />
|
||||
<bt:Image id="PAL.sharepoint_80x80" DefaultValue="~remoteAppUrl/Images/sharepoint_80.png" />-->
|
||||
</bt:Images>
|
||||
<bt:Urls>
|
||||
<bt:Url id="Commands.Url" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Functions/reginv.html" />
|
||||
<bt:Url id="TaskpaneSEA.Url" DefaultValue="https://paltestapp.azurewebsites.net/res/OutlookAddin/Functions/SEA.html" />
|
||||
</bt:Urls>
|
||||
<!-- ShortStrings max characters==125. -->
|
||||
<bt:ShortStrings>
|
||||
<bt:String id="PAL.Item2.LabelIta" DefaultValue="Italiano" />
|
||||
<bt:String id="PAL.Item2.LabelEng" DefaultValue="Inglese" />
|
||||
<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. -->
|
||||
@@ -138,7 +211,9 @@
|
||||
<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>
|
||||
</OfficeApp>
|
||||
@@ -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>
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user