commit d02d5291eefd4fd94ae705f2b3e0c98806c34d53 Author: Max Hoekstra Date: Fri Oct 4 10:18:51 2024 +0200 Initial commit voor Outlook plugin diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..e406c09 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,8 @@ +{ + "plugins": [ + "office-addins" + ], + "extends": [ + "plugin:office-addins/recommended" + ] +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..55371e5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +.vscode \ No newline at end of file diff --git a/assets/icon-128.png b/assets/icon-128.png new file mode 100644 index 0000000..37dfcd7 Binary files /dev/null and b/assets/icon-128.png differ diff --git a/assets/icon-16.png b/assets/icon-16.png new file mode 100644 index 0000000..b650979 Binary files /dev/null and b/assets/icon-16.png differ diff --git a/assets/icon-32.png b/assets/icon-32.png new file mode 100644 index 0000000..dcf56db Binary files /dev/null and b/assets/icon-32.png differ diff --git a/assets/icon-64.png b/assets/icon-64.png new file mode 100644 index 0000000..41051fc Binary files /dev/null and b/assets/icon-64.png differ diff --git a/assets/icon-80.png b/assets/icon-80.png new file mode 100644 index 0000000..5e63769 Binary files /dev/null and b/assets/icon-80.png differ diff --git a/assets/logo-filled.png b/assets/logo-filled.png new file mode 100644 index 0000000..5bf09cc Binary files /dev/null and b/assets/logo-filled.png differ diff --git a/babel.config.json b/babel.config.json new file mode 100644 index 0000000..8aa924d --- /dev/null +++ b/babel.config.json @@ -0,0 +1,3 @@ +{ + "presets": ["@babel/preset-env"] +} \ No newline at end of file diff --git a/dist/assets/icon-128.png b/dist/assets/icon-128.png new file mode 100644 index 0000000..37dfcd7 Binary files /dev/null and b/dist/assets/icon-128.png differ diff --git a/dist/assets/icon-16.png b/dist/assets/icon-16.png new file mode 100644 index 0000000..b650979 Binary files /dev/null and b/dist/assets/icon-16.png differ diff --git a/dist/assets/icon-32.png b/dist/assets/icon-32.png new file mode 100644 index 0000000..dcf56db Binary files /dev/null and b/dist/assets/icon-32.png differ diff --git a/dist/assets/icon-64.png b/dist/assets/icon-64.png new file mode 100644 index 0000000..41051fc Binary files /dev/null and b/dist/assets/icon-64.png differ diff --git a/dist/assets/icon-80.png b/dist/assets/icon-80.png new file mode 100644 index 0000000..5e63769 Binary files /dev/null and b/dist/assets/icon-80.png differ diff --git a/dist/assets/logo-filled.png b/dist/assets/logo-filled.png new file mode 100644 index 0000000..5bf09cc Binary files /dev/null and b/dist/assets/logo-filled.png differ diff --git a/dist/commands.html b/dist/commands.html new file mode 100644 index 0000000..6f3a200 --- /dev/null +++ b/dist/commands.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/commands.js b/dist/commands.js new file mode 100644 index 0000000..39a7d0b --- /dev/null +++ b/dist/commands.js @@ -0,0 +1,2 @@ +Office.onReady((function(){})),Office.actions.associate("action",(function(e){var i={type:Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,message:"Performed action.",icon:"Icon.80x80",persistent:!0};Office.context.mailbox.item.notificationMessages.replaceAsync("action",i),e.completed()})); +//# sourceMappingURL=commands.js.map \ No newline at end of file diff --git a/dist/commands.js.map b/dist/commands.js.map new file mode 100644 index 0000000..48609c1 --- /dev/null +++ b/dist/commands.js.map @@ -0,0 +1 @@ +{"version":3,"file":"commands.js","mappings":"AAOAA,OAAOC,SAAQ,WACb,IAuBFD,OAAOE,QAAQC,UAAU,UAhBzB,SAAgBC,GACd,IAAMC,EAAU,CACdC,KAAMN,OAAOO,aAAaC,4BAA4BC,qBACtDJ,QAAS,oBACTK,KAAM,aACNC,YAAY,GAIdX,OAAOY,QAAQC,QAAQC,KAAKC,qBAAqBC,aAAa,SAAUX,GAGxED,EAAMa,WACR","sources":["webpack://office-addin-taskpane-js/./src/commands/commands.js"],"sourcesContent":["/*\n * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n * See LICENSE in the project root for license information.\n */\n\n/* global Office */\n\nOffice.onReady(() => {\n // If needed, Office.js is ready to be called.\n});\n\n/**\n * Shows a notification when the add-in command is executed.\n * @param event {Office.AddinCommands.Event}\n */\nfunction action(event) {\n const message = {\n type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,\n message: \"Performed action.\",\n icon: \"Icon.80x80\",\n persistent: true,\n };\n\n // Show a notification message.\n Office.context.mailbox.item.notificationMessages.replaceAsync(\"action\", message);\n\n // Be sure to indicate when the add-in command function is complete.\n event.completed();\n}\n\n// Register the function with Office.\nOffice.actions.associate(\"action\", action);\n"],"names":["Office","onReady","actions","associate","event","message","type","MailboxEnums","ItemNotificationMessageType","InformationalMessage","icon","persistent","context","mailbox","item","notificationMessages","replaceAsync","completed"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/fc95fa02fd204a05f6f4.css b/dist/fc95fa02fd204a05f6f4.css new file mode 100644 index 0000000..b26b1ec --- /dev/null +++ b/dist/fc95fa02fd204a05f6f4.css @@ -0,0 +1,224 @@ +* + * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. + * See LICENSE in the project root for license information. + */ + + html, body { + width: 100%; + height: 100%; + margin: 0; + padding: 0; + } + + ul { + margin: 0; + padding: 0; } + + .ms-welcome__header { + padding: 20px; + padding-bottom: 20px; + padding-top: 20px; + display: -webkit-flex; + display: flex; + -webkit-flex-direction: column; + flex-direction: column; + align-items: center; + } + + .ms-welcome__main { + display: -webkit-flex; + display: flex; + -webkit-flex-direction: column; + flex-direction: column; + -webkit-flex-wrap: nowrap; + flex-wrap: nowrap; + -webkit-align-items: center; + align-items: center; + -webkit-flex: 1 0 0; + flex: 1 0 0; + padding: 10px 20px; + } + + .ms-welcome__main > h2 { + width: 100%; + text-align: center; + } + + .ms-welcome__features { + list-style-type: none; + margin-top: 20px; + } + + .ms-welcome__features.ms-List .ms-ListItem { + padding-bottom: 20px; + display: -webkit-flex; + display: flex; + } + + .ms-welcome__features.ms-List .ms-ListItem > .ms-Icon { + margin-right: 10px; + } + + .ms-welcome__action.ms-Button--hero { + margin-top: 30px; + } + +.ms-Button.ms-Button--hero .ms-Button-label { + color: #0078d7; +} + +.ms-Button.ms-Button--hero:hover .ms-Button-label, +.ms-Button.ms-Button--hero:focus .ms-Button-label{ + color: #005a9e; + cursor: pointer; +} + +b { + font-weight: bold; +} + +/* CSS */ +.run-button { + appearance: button; + backface-visibility: hidden; + background-color: #405cf5; + border-radius: 6px; + border-width: 0; + box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset,rgba(50, 50, 93, .1) 0 2px 5px 0,rgba(0, 0, 0, .07) 0 1px 1px 0; + box-sizing: border-box; + color: #fff; + cursor: pointer; + font-family: -apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Ubuntu,sans-serif; + font-size: 100%; + height: 44px; + line-height: 1.15; + margin: 12px 0 0; + outline: none; + overflow: hidden; + padding: 0 25px; + position: relative; + text-align: center; + text-transform: none; + transform: translateZ(0); + transition: all .2s,box-shadow .08s ease-in; + user-select: none; + -webkit-user-select: none; + touch-action: manipulation; + width: 100%; +} + +.run-button { + cursor: pointer; +} + +.run-button:hover { + transform: scale(1.1); +} + +.run-button { + box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset, rgba(50, 50, 93, .2) 0 6px 15px 0, rgba(0, 0, 0, .1) 0 2px 2px 0, rgba(50, 151, 211, .3) 0 0 0 4px; +} + +/* Loading CSS for button */ +.loader { + display: none; + border: 4px solid rgba(255, 255, 255, 0.3); + border-top: 4px solid blue; + border-radius: 50%; + width: 25px; + height: 25px; + animation: spin 1s linear infinite; + margin-left: 10px; +} + +@keyframes spin { + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +} + +.loading { + background-color: #ccc; + pointer-events: none; +} + +/* CSS */ +.result-button { + appearance: button; + backface-visibility: hidden; + background-color: #47bf67; + border-radius: 6px; + border-width: 0; + box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset,rgba(50, 50, 93, .1) 0 2px 5px 0,rgba(0, 0, 0, .07) 0 1px 1px 0; + box-sizing: border-box; + color: #fff; + cursor: pointer; + font-family: -apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Ubuntu,sans-serif; + font-size: 100%; + height: 44px; + line-height: 1.15; + margin: 12px 0 0; + outline: none; + overflow: hidden; + padding: 0 25px; + position: relative; + text-align: center; + text-transform: none; + transform: translateZ(0); + transition: all .2s,box-shadow .08s ease-in; + user-select: none; + -webkit-user-select: none; + touch-action: manipulation; + width: 100%; + } + + .result-button { + cursor: pointer; + } + + .result-button:hover { + transform: scale(1.1); + } + + .result-button { + box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset, rgba(50, 50, 93, .2) 0 6px 15px 0, rgba(0, 0, 0, .1) 0 2px 2px 0, rgba(50, 151, 211, .3) 0 0 0 4px; + } + + /* CSS */ +.no-result-button { + appearance: button; + backface-visibility: hidden; + background-color: #bf4747; + border-radius: 6px; + border-width: 0; + box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset,rgba(50, 50, 93, .1) 0 2px 5px 0,rgba(0, 0, 0, .07) 0 1px 1px 0; + box-sizing: border-box; + color: #fff; + cursor: pointer; + font-family: -apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Ubuntu,sans-serif; + font-size: 100%; + height: 44px; + line-height: 1.15; + margin: 12px 0 0; + outline: none; + overflow: hidden; + padding: 0 25px; + position: relative; + text-align: center; + text-transform: none; + transform: translateZ(0); + transition: all .2s,box-shadow .08s ease-in; + user-select: none; + -webkit-user-select: none; + touch-action: manipulation; + width: 100%; + } + + .no-result-button { + cursor: pointer; + } + diff --git a/dist/manifest.xml b/dist/manifest.xml new file mode 100644 index 0000000..e020dac --- /dev/null +++ b/dist/manifest.xml @@ -0,0 +1,107 @@ + + + 6aefdc1b-c9c2-4f92-95c7-af96bd9ced13 + 1.0.0.0 + Contoso + en-US + + + + + + + https://www.contoso.com + + + + + + + + + + +
+ + + 250 + +
+
+ ReadWriteItem + + + + false + + + + + + + + + + + + + +