Skip to content

Commit

Permalink
Add refreshSiteUrl widget
Browse files Browse the repository at this point in the history
  • Loading branch information
ydogandjiev committed Nov 19, 2024
1 parent a55c5d8 commit 726626b
Show file tree
Hide file tree
Showing 9 changed files with 2,502 additions and 6 deletions.
2,474 changes: 2,474 additions & 0 deletions public/app.f0411a3a96f05f5b534b.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/app.f0411a3a96f05f5b534b.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/auth_end.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html><html><head><script defer="defer" src="app.de18566822abc533ecef.js"></script></head><body><script>const params = new URLSearchParams(window.location.search);
<!doctype html><html><head><script defer="defer" src="app.f0411a3a96f05f5b534b.js"></script></head><body><script>const params = new URLSearchParams(window.location.search);
const result = params.get('code');
const { authId, method, redirectUrl } = JSON.parse(params.get('state'));
const hostRedirectUrl = redirectUrl || `msteams://teams.microsoft.com/l/auth-callback?authId=${encodeURIComponent(authId)}&result={result}`;
Expand Down
2 changes: 1 addition & 1 deletion public/auth_start.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html><html><head><script defer="defer" src="app.de18566822abc533ecef.js"></script></head><body><script>const params = new URLSearchParams(window.location.search);
<!doctype html><html><head><script defer="defer" src="app.f0411a3a96f05f5b534b.js"></script></head><body><script>const params = new URLSearchParams(window.location.search);
const mockOAuth = params.get('mockOAuth');
const authId = params.get('authId');
const method = params.get('oauthRedirectMethod');
Expand Down
2 changes: 1 addition & 1 deletion public/frame.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html><head><title>Test Tab</title><meta property="og:description" content="App for testing Teams SDK"/><link href="./app.css" rel="stylesheet"/><script defer="defer" src="app.de18566822abc533ecef.js"></script></head><body><div id="myModal" class="modal"><div class="modal-content"><span class="close">&times;</span><div id="errorMessage" class="error-message">Error</div></div></div><div class="searchContainer"><input placeholder="Filter..." name="search" id="searchInput"></div><div class="moduleContainer"><div><div class="sectionTitle">Download</div><a href="./placeholder_largeimage.png" download="appIcon">Download Icon</a><br/><a id="downloadLink" download="DownloadViaLink.csv">In-Memory Download Link</a><br/><button id="downloadButton">In-Memory Download Button</button></div><div uploadfilesection><div class="sectionTitle">Upload</div><label for="image_uploads">Choose images to upload (PNG, JPG)</label> <input type="file" id="image_uploads" name="image_uploads" accept=".jpg, .jpeg, .png" multiple="multiple"><div class="fileUploadPreview"><p>No files currently selected for upload</p></div></div><div><div class="sectionTitle">Implicit Teams Deep Link</div><button onclick="enableImplicitExecuteDeepLink()">enable Implicit ExecuteDeepLink</button><div><a href="https://teams.microsoft.com/l/app/f46ad259-0fe5-4f12-872d-c737b174bcb4">https://teams.microsoft.com/_#/l/app/f46ad259-0fe5-4f12-872d-c737b174bcb4</a></div><div><a href="https://teams.microsoft.com/l/entity/com.microsoft.teamspace.tab.planner/All" target="_blank">https://teams.microsoft.com/l/entity/com.microsoft.teamspace.tab.planner/All</a></div><div><a href="https://microsoft.com/" target="_blank">https://microsoft.com/ (non teams deep link)</a></div></div><div><div class="sectionTitle">Print</div><button onclick="enablePrintCapability()">enablePrintCapability</button> <button onclick="printHandler()">Print this page</button></div><div><div class="sectionTitle">URIs</div><div><a href="tel:1234567890">Telephone URI</a></div><div><a href="tel:1234567890" target="_blank">Telephone URI (New Window)</a></div><div><a href="sip:[email protected]">Yuri Dogandjiev SIP URI</a></div><div><a href="sip:[email protected]" target="_blank">Yuri Dogandjiev SIP URI (New Window)</a></div><div><a href="search-ms:query=Microsoft_Teams_Update.exe">Search protocol link</a></div><div><a href="search-ms:query=Microsoft_Teams_Update.exe" target="_blank">Search protocol link (New Window)</a></div><div><a href="msteams://teams.microsoft.com/l/entity/0d820ecd-def2-4297-adad-78056cde7c78/MyNotebook">OneNote app via msteams protocol</a></div><div><a href="msteams://teams.microsoft.com/l/entity/0d820ecd-def2-4297-adad-78056cde7c78/MyNotebook" target="_blank">OneNote app via msteams protocol (New Window)</a></div><div><a href="ms-teams://teams.microsoft.com/l/entity/0d820ecd-def2-4297-adad-78056cde7c78/MyNotebook">OneNote app via ms-teams protocol</a></div><div><a href="ms-teams://teams.microsoft.com/l/entity/0d820ecd-def2-4297-adad-78056cde7c78/MyNotebook" target="_blank">OneNote app via ms-teams protocol (New Window)</a></div></div><div><div class="sectionTitle">Re-navigation</div><div><a href="/page1.html">Page 1</a></div><div><a href="/page2.html">Page 2</a></div><div><a href="/scroll.html">Scroll</a></div><div><a href="/download.html">Download</a></div></div><div><div class="sectionTitle">External links</div><div><a href="https://www.bing.com" target="_blank">Bing via anchor tag</a></div><button onclick="window.open('https://www.bing.com')">Bing via window.open</button></div></div></body></html>
<!doctype html><html><head><title>Test Tab</title><meta property="og:description" content="App for testing Teams SDK"/><link href="./app.css" rel="stylesheet"/><script defer="defer" src="app.f0411a3a96f05f5b534b.js"></script></head><body><div id="myModal" class="modal"><div class="modal-content"><span class="close">&times;</span><div id="errorMessage" class="error-message">Error</div></div></div><div class="searchContainer"><input placeholder="Filter..." name="search" id="searchInput"></div><div class="moduleContainer"><div><div class="sectionTitle">Download</div><a href="./placeholder_largeimage.png" download="appIcon">Download Icon</a><br/><a id="downloadLink" download="DownloadViaLink.csv">In-Memory Download Link</a><br/><button id="downloadButton">In-Memory Download Button</button></div><div uploadfilesection><div class="sectionTitle">Upload</div><label for="image_uploads">Choose images to upload (PNG, JPG)</label> <input type="file" id="image_uploads" name="image_uploads" accept=".jpg, .jpeg, .png" multiple="multiple"><div class="fileUploadPreview"><p>No files currently selected for upload</p></div></div><div><div class="sectionTitle">Implicit Teams Deep Link</div><button onclick="enableImplicitExecuteDeepLink()">enable Implicit ExecuteDeepLink</button><div><a href="https://teams.microsoft.com/l/app/f46ad259-0fe5-4f12-872d-c737b174bcb4">https://teams.microsoft.com/_#/l/app/f46ad259-0fe5-4f12-872d-c737b174bcb4</a></div><div><a href="https://teams.microsoft.com/l/entity/com.microsoft.teamspace.tab.planner/All" target="_blank">https://teams.microsoft.com/l/entity/com.microsoft.teamspace.tab.planner/All</a></div><div><a href="https://microsoft.com/" target="_blank">https://microsoft.com/ (non teams deep link)</a></div></div><div><div class="sectionTitle">Print</div><button onclick="enablePrintCapability()">enablePrintCapability</button> <button onclick="printHandler()">Print this page</button></div><div><div class="sectionTitle">URIs</div><div><a href="tel:1234567890">Telephone URI</a></div><div><a href="tel:1234567890" target="_blank">Telephone URI (New Window)</a></div><div><a href="sip:[email protected]">Yuri Dogandjiev SIP URI</a></div><div><a href="sip:[email protected]" target="_blank">Yuri Dogandjiev SIP URI (New Window)</a></div><div><a href="search-ms:query=Microsoft_Teams_Update.exe">Search protocol link</a></div><div><a href="search-ms:query=Microsoft_Teams_Update.exe" target="_blank">Search protocol link (New Window)</a></div><div><a href="msteams://teams.microsoft.com/l/entity/0d820ecd-def2-4297-adad-78056cde7c78/MyNotebook">OneNote app via msteams protocol</a></div><div><a href="msteams://teams.microsoft.com/l/entity/0d820ecd-def2-4297-adad-78056cde7c78/MyNotebook" target="_blank">OneNote app via msteams protocol (New Window)</a></div><div><a href="ms-teams://teams.microsoft.com/l/entity/0d820ecd-def2-4297-adad-78056cde7c78/MyNotebook">OneNote app via ms-teams protocol</a></div><div><a href="ms-teams://teams.microsoft.com/l/entity/0d820ecd-def2-4297-adad-78056cde7c78/MyNotebook" target="_blank">OneNote app via ms-teams protocol (New Window)</a></div></div><div><div class="sectionTitle">Re-navigation</div><div><a href="/page1.html">Page 1</a></div><div><a href="/page2.html">Page 2</a></div><div><a href="/scroll.html">Scroll</a></div><div><a href="/download.html">Download</a></div></div><div><div class="sectionTitle">External links</div><div><a href="https://www.bing.com" target="_blank">Bing via anchor tag</a></div><button onclick="window.open('https://www.bing.com')">Bing via window.open</button></div></div></body></html>
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html><head><title>Test Tab</title><meta property="og:description" content="App for testing Teams SDK"/><link href="./app.css" rel="stylesheet"/><meta name="viewport" content="width=device-width,initial-scale=1"><script defer="defer" src="app.de18566822abc533ecef.js"></script></head><body><div id="myModal" class="modal"><div class="modal-content"><span class="close">&times;</span><div id="errorMessage" class="error-message">Error</div><div id="jsonViewer" class="json-viewer"></div></div></div><div class="searchContainer"><input placeholder="Filter..." name="search" id="searchInput"></div><div class="moduleContainer"><div><div class="sectionTitle">Download</div><a href="./placeholder_largeimage.png" download="appIcon">Download Icon</a><br/><a id="downloadLink" download="DownloadViaLink.csv">In-Memory Download Link</a><br/><button id="downloadButton">In-Memory Download Button</button></div><div uploadfilesection><div class="sectionTitle">Upload</div><label for="image_uploads">Choose images to upload (PNG, JPG)</label> <input type="file" id="image_uploads" name="image_uploads" accept=".jpg, .jpeg, .png" multiple="multiple"><div class="fileUploadPreview"><p>No files currently selected for upload</p></div></div><div><div class="sectionTitle">Implicit Teams Deep Link</div><button onclick="enableImplicitExecuteDeepLink()">enable Implicit ExecuteDeepLink</button><div><a href="https://teams.microsoft.com/l/app/f46ad259-0fe5-4f12-872d-c737b174bcb4">https://teams.microsoft.com/_#/l/app/f46ad259-0fe5-4f12-872d-c737b174bcb4</a></div><div><a href="https://teams.microsoft.com/l/entity/com.microsoft.teamspace.tab.planner/All" target="_blank">https://teams.microsoft.com/l/entity/com.microsoft.teamspace.tab.planner/All</a></div><div><a href="https://microsoft.com/" target="_blank">https://microsoft.com/ (non teams deep link)</a></div></div><div><div class="sectionTitle">Print</div><button onclick="enablePrintCapability()">enablePrintCapability</button> <button onclick="printHandler()">Print this page</button></div><div><div class="sectionTitle">URIs</div><div><a href="tel:1234567890">Telephone URI</a></div><div><a href="tel:1234567890" target="_blank">Telephone URI (New Window)</a></div><div><a href="sip:[email protected]">Yuri Dogandjiev SIP URI</a></div><div><a href="sip:[email protected]" target="_blank">Yuri Dogandjiev SIP URI (New Window)</a></div><div><a href="search-ms:query=Microsoft_Teams_Update.exe">Search protocol link</a></div><div><a href="search-ms:query=Microsoft_Teams_Update.exe" target="_blank">Search protocol link (New Window)</a></div><div><a href="msteams://teams.microsoft.com/l/entity/0d820ecd-def2-4297-adad-78056cde7c78/MyNotebook">OneNote app via msteams protocol</a></div><div><a href="msteams://teams.microsoft.com/l/entity/0d820ecd-def2-4297-adad-78056cde7c78/MyNotebook" target="_blank">OneNote app via msteams protocol (New Window)</a></div><div><a href="ms-teams://teams.microsoft.com/l/entity/0d820ecd-def2-4297-adad-78056cde7c78/MyNotebook">OneNote app via ms-teams protocol</a></div><div><a href="ms-teams://teams.microsoft.com/l/entity/0d820ecd-def2-4297-adad-78056cde7c78/MyNotebook" target="_blank">OneNote app via ms-teams protocol (New Window)</a></div><div><a href="ms-edu-secureassessment:https://example.com/" target="_blank">Take a test link (New Window)</a></div></div><div><div class="sectionTitle">Re-navigation</div><div><a href="/page1.html">Page 1</a></div><div><a href="/page2.html">Page 2</a></div><div><a href="/scroll.html">Scroll</a></div><div><a href="/download.html">Download</a></div><div><a href="/index.html?simulateTimeout=true">Page w/ timeout</a></div><div><a href="/index.html?simulateFailure=true">Page w/ failure</a></div></div><div><div class="sectionTitle">External links</div><div><a href="https://www.bing.com" target="_blank">Bing via anchor tag</a></div><button onclick="window.open('https://www.bing.com')">Bing via window.open</button></div><div><div class="sectionTitle">Nested app</div><div><button onclick="document.getElementById('nestedAppFrame').src = '/frame.html'">Simulate nested app load</button></div><div><button onclick="document.getElementById('nestedAppFrame').src = '/frame.html?simulateTimeout=true'">Simulate nested app timeout</button></div><div><button onclick="document.getElementById('nestedAppFrame').src = '/frame.html?simulateFailure=true'">Simulate nested app failure</button></div><iframe id="nestedAppFrame"></iframe></div><div><div class="sectionTitle">Most recent app load context (cached load Only)</div><label for="textarea-recentAppContext" id="outputHeader-recentAppContext" class="area-label">Output:</label> <textarea id="textarea-recentAppContext" aria-label="recent app context"></textarea></div><div><div class="sectionTitle">Caching Strategy</div><button id="cache-mode-toggle"></button></div></div></body></html>
<!doctype html><html><head><title>Test Tab</title><meta property="og:description" content="App for testing Teams SDK"/><link href="./app.css" rel="stylesheet"/><meta name="viewport" content="width=device-width,initial-scale=1"><script defer="defer" src="app.f0411a3a96f05f5b534b.js"></script></head><body><div id="myModal" class="modal"><div class="modal-content"><span class="close">&times;</span><div id="errorMessage" class="error-message">Error</div><div id="jsonViewer" class="json-viewer"></div></div></div><div class="searchContainer"><input placeholder="Filter..." name="search" id="searchInput"></div><div class="moduleContainer"><div><div class="sectionTitle">Download</div><a href="./placeholder_largeimage.png" download="appIcon">Download Icon</a><br/><a id="downloadLink" download="DownloadViaLink.csv">In-Memory Download Link</a><br/><button id="downloadButton">In-Memory Download Button</button></div><div uploadfilesection><div class="sectionTitle">Upload</div><label for="image_uploads">Choose images to upload (PNG, JPG)</label> <input type="file" id="image_uploads" name="image_uploads" accept=".jpg, .jpeg, .png" multiple="multiple"><div class="fileUploadPreview"><p>No files currently selected for upload</p></div></div><div><div class="sectionTitle">Implicit Teams Deep Link</div><button onclick="enableImplicitExecuteDeepLink()">enable Implicit ExecuteDeepLink</button><div><a href="https://teams.microsoft.com/l/app/f46ad259-0fe5-4f12-872d-c737b174bcb4">https://teams.microsoft.com/_#/l/app/f46ad259-0fe5-4f12-872d-c737b174bcb4</a></div><div><a href="https://teams.microsoft.com/l/entity/com.microsoft.teamspace.tab.planner/All" target="_blank">https://teams.microsoft.com/l/entity/com.microsoft.teamspace.tab.planner/All</a></div><div><a href="https://microsoft.com/" target="_blank">https://microsoft.com/ (non teams deep link)</a></div></div><div><div class="sectionTitle">Print</div><button onclick="enablePrintCapability()">enablePrintCapability</button> <button onclick="printHandler()">Print this page</button></div><div><div class="sectionTitle">URIs</div><div><a href="tel:1234567890">Telephone URI</a></div><div><a href="tel:1234567890" target="_blank">Telephone URI (New Window)</a></div><div><a href="sip:[email protected]">Yuri Dogandjiev SIP URI</a></div><div><a href="sip:[email protected]" target="_blank">Yuri Dogandjiev SIP URI (New Window)</a></div><div><a href="search-ms:query=Microsoft_Teams_Update.exe">Search protocol link</a></div><div><a href="search-ms:query=Microsoft_Teams_Update.exe" target="_blank">Search protocol link (New Window)</a></div><div><a href="msteams://teams.microsoft.com/l/entity/0d820ecd-def2-4297-adad-78056cde7c78/MyNotebook">OneNote app via msteams protocol</a></div><div><a href="msteams://teams.microsoft.com/l/entity/0d820ecd-def2-4297-adad-78056cde7c78/MyNotebook" target="_blank">OneNote app via msteams protocol (New Window)</a></div><div><a href="ms-teams://teams.microsoft.com/l/entity/0d820ecd-def2-4297-adad-78056cde7c78/MyNotebook">OneNote app via ms-teams protocol</a></div><div><a href="ms-teams://teams.microsoft.com/l/entity/0d820ecd-def2-4297-adad-78056cde7c78/MyNotebook" target="_blank">OneNote app via ms-teams protocol (New Window)</a></div><div><a href="ms-edu-secureassessment:https://example.com/" target="_blank">Take a test link (New Window)</a></div></div><div><div class="sectionTitle">Re-navigation</div><div><a href="/page1.html">Page 1</a></div><div><a href="/page2.html">Page 2</a></div><div><a href="/scroll.html">Scroll</a></div><div><a href="/download.html">Download</a></div><div><a href="/index.html?simulateTimeout=true">Page w/ timeout</a></div><div><a href="/index.html?simulateFailure=true">Page w/ failure</a></div></div><div><div class="sectionTitle">External links</div><div><a href="https://www.bing.com" target="_blank">Bing via anchor tag</a></div><button onclick="window.open('https://www.bing.com')">Bing via window.open</button></div><div><div class="sectionTitle">Nested app</div><div><button onclick="document.getElementById('nestedAppFrame').src = '/frame.html'">Simulate nested app load</button></div><div><button onclick="document.getElementById('nestedAppFrame').src = '/frame.html?simulateTimeout=true'">Simulate nested app timeout</button></div><div><button onclick="document.getElementById('nestedAppFrame').src = '/frame.html?simulateFailure=true'">Simulate nested app failure</button></div><iframe id="nestedAppFrame"></iframe></div><div><div class="sectionTitle">Most recent app load context (cached load Only)</div><label for="textarea-recentAppContext" id="outputHeader-recentAppContext" class="area-label">Output:</label> <textarea id="textarea-recentAppContext" aria-label="recent app context"></textarea></div><div><div class="sectionTitle">Caching Strategy</div><button id="cache-mode-toggle"></button></div></div></body></html>
Loading

0 comments on commit 726626b

Please sign in to comment.