Remove unused files

This commit is contained in:
Claudio Boggian
2024-06-26 08:18:15 +02:00
parent 51c9bca9a8
commit 1ef68699e4
13 changed files with 22 additions and 569 deletions
@@ -0,0 +1,18 @@
<!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="commands.js"></script>
</head>
<body>
</body>
</html>
@@ -0,0 +1,52 @@
/*
* 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
});
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);
@@ -1,14 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<title></title>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js" type="text/javascript"></script>
<script src="FunctionFile.js" type="text/javascript"></script>
</head>
<body>
<!-- NOTA: il corpo è intenzionalmente vuoto. Dal momento che viene richiamato tramite un pulsante, non esiste interfaccia utente di cui eseguire il rendering. -->
</body>
</html>
@@ -1,64 +0,0 @@
/*
* 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(() => {
// If needed, Office.js is ready to be called
});
/**
* Writes the event source id to the document when ExecuteFunction runs.
* @param event {Office.AddinCommands.Event}
*/
async function writeValue(event) {
Word.run(async (context) => {
// insert a paragraph at the end of the document.
const paragraph = context.document.body.insertParagraph(
"ExecuteFunction works. Button ID=" + event.source.id,
Word.InsertLocation.end
);
// change the paragraph color to blue.
paragraph.font.color = "blue";
await context.sync();
});
// Calling event.completed is required. event.completed lets the platform know that processing has completed.
event.completed();
}
function getGlobal() {
return typeof self !== "undefined"
? self
: typeof window !== "undefined"
? window
: typeof global !== "undefined"
? global
: undefined;
}
const g = getGlobal();
Office.actions.associate("writeValue", writeValue);
//Office.initialize = function () {
//}
//// Funzione helper per aggiungere un messaggio di stato alla barra informazioni.
//function statusUpdate(icon, text) {
// Office.context.mailbox.item.notificationMessages.replaceAsync("status", {
// type: "informationalMessage",
// icon: icon,
// message: text,
// persistent: false
// });
//}
//function defaultStatus(event) {
// statusUpdate("icon16" , "Hello World!");
//}