This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error": { | |
"code": "ArchivedEntityCanNotBeUpdated", | |
"message": "Archived entity can't be modified.", | |
"innerError": { | |
"date": "2024-10-22T13:33:52", | |
"request-id": "f6cbf471-eead-49e8-944c-c3d9f9b00147", | |
"client-request-id": "f6cbf471-eead-49e8-944c-c3d9f9b00147" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class thing { | |
render = () => { | |
const html = /*html*/`<button id="btn1">Test</button>`; | |
document.body.innerHTML = html; | |
const msg = "something here"; | |
document.getElementById("btn1").addEventListener("click", () => { | |
this.#getData(msg); | |
}); | |
} | |
#getData = (msg) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.setTimeout(async() => { | |
const o = new thing(); | |
await o.render(); | |
}, 1); | |
class thing { | |
render = async () => { | |
const html = /*html*/`<button id="btn1">Test</button>`; | |
document.body.innerHTML = html; | |
const msg = "something here"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const emailBody = new Promise((resolve, reject) => { | |
try { | |
Office.context.mailbox.item.body.getAsync(type, (result) => { | |
if (result.status === Office.AsyncResultStatus.Succeeded) { | |
resolve(result.value); | |
} else { | |
reject(result.error); | |
} | |
}); | |
} catch { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class OutlookEmailBodyParser { | |
/** @type {String} */ | |
#body = null; | |
/** | |
* Creates an instance of the Outlook Email Body Parser | |
* Next you call: | |
* - getLatestResponse() to get the most recent message | |
* @param {String} body | |
*/ | |
constructor(body) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const updatedTag = eTag.replace('W/"', '"').replace('\\"', ""); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ref = { | |
/** @type {PlannerReference} */ | |
[this.#encodePlannerExternalReferenceUrl(driveItem.webUrl)]: { | |
"@odata.type": "#microsoft.graph.plannerExternalReference", | |
alias: name, | |
type: "Other", | |
}, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Encodes the URL ins the special planner format that is for oif but not quite | |
* following the encodeURIComponent() specification... | |
* @param {String} url | |
* @returns {String} | |
*/ | |
#encodePlannerExternalReferenceUrl = (url) => { | |
// Encode specific characters: : . _ | |
const encodedUrl = url.replace(/:/g, "%3A").replace(/\./g, "%2E").replace(/ /g, "%20"); | |
return encodedUrl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="trello.d.js" /> | |
/** @type {TrelloPowerUp} */ | |
const tpu = window.TrelloPowerUp; | |
tpu.initialize({ | |
'board-buttons': | |
/** | |
* Returns the board button | |
* @param {TrelloObject} t | |
* @returns {TrelloBoardButtonOption[]} | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CopyWebpackPlugin = require("copy-webpack-plugin"); | |
const HtmlWebpackPlugin = require("html-webpack-plugin"); | |
const fs = require("fs"); | |
module.exports = async (env, options) => { | |
const isProduction = options.mode === 'production'; | |
const config = { | |
devtool: isProduction ? false : 'source-map', | |
mode: isProduction ? "production" : "development", | |
entry: { | |
details: "./js/details.js", |
NewerOlder