Skip to content

Commit

Permalink
update version and add base path for ghpages
Browse files Browse the repository at this point in the history
  • Loading branch information
aeltorio committed Nov 5, 2024
1 parent d31f955 commit 7c3270b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://developer.microsoft.com/json-schemas/teams/v1.17/MicrosoftTeams.schema.json",
"id": "d6104121-055c-41c5-b563-6e3badd90b4e",
"manifestVersion": "1.17",
"version": "1.0.1",
"version": "1.0.2",
"name": {
"short": "AI emailer",
"full": "SCTG Outlook AI Add-in"
Expand Down
2 changes: 1 addition & 1 deletion manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0"
xsi:type="MailApp">
<Id>d6104121-055c-41c5-b563-6e3badd90b4e</Id>
<Version>1.0.1</Version>
<Version>1.0.2</Version>
<ProviderName>Ronan LE MEILLAT</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="AI emailer" />
Expand Down
24 changes: 15 additions & 9 deletions src/aipane/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,22 @@ const root = rootElement ? createRoot(rootElement) : undefined;
// restore the original history functions
window.history.pushState = globalThis.backupHistoryFunctions.pushState;
window.history.replaceState = globalThis.backupHistoryFunctions.replaceState;
const router = createBrowserRouter([
const BASE_PATH = process.env.website === "GITHUB_PAGES" ? "/ai-outlook" : "/";
const router = createBrowserRouter(
[
{
path: "/",
element: <AIPane title={title} />,
},
{
path: "clean",
element: <Clean />,
},
],
{
path: "/",
element: <AIPane title={title} />,
},
{
path: "clean",
element: <Clean />,
},
]);
basename: BASE_PATH,
}
);

/* Render application after Office initializes */
Office.onReady(() => {
Expand Down
4 changes: 2 additions & 2 deletions src/version.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const versionInfo = {
commit: "f1729b3e418f5439fdf0bebbe70f041ca134f526",
date: "2024-11-05 12:50:39 +0100",
commit: "d31f955dce6498f4ca61cd353ffd50b2c984b5c4",
date: "2024-11-05 18:58:45 +0100",
};

0 comments on commit 7c3270b

Please sign in to comment.