manifest.xml teruggezet naar prod URL

This commit is contained in:
2025-06-02 09:24:10 +02:00
parent 3c464bb401
commit 2904275081
6 changed files with 54 additions and 23 deletions

View File

@@ -34,6 +34,37 @@ Start je lokale development server, bijvoorbeeld op poort 8080:
npm run start
````
### 4. Aanpassingen in Soco-Backoffice project
a. Verander in ```Api.class.php:108```
```php
$_SERVER['HTTP_ORIGIN'] === 'https://outlookplugin.ovas.nl'
```
naar
```php
$_SERVER['HTTP_ORIGIN'] === 'https://localhost:3000'
```
b. Verander in ``api_credentials.class.php:31``
```php
$response = [
'key' => 'Uvk3eiHf2NB8ahRC1ijXp0N1YrrhZ1eakIG9gTA0'
];
````
naar
```php
$response = [
'key' => 'kstlkkRb85jWbS424SXs6bw0rMmJDAcLrUJD05sL'
];
````
Deze key kan je vinden in ```settings_dev.php:252```
## Overzicht
De gehele sourcecode van de plugin bevindt zich op: src/taskpane

16
dist/manifest.xml vendored
View File

@@ -6,8 +6,8 @@
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="Order finder OVAS"/>
<Description DefaultValue="Vind bestellingen die eventueel bij de e-mail horen"/>
<IconUrl DefaultValue="https://localhost:3000/assets/icon-64.png"/>
<HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/icon-128.png"/>
<IconUrl DefaultValue="https://www.contoso.com/assets/icon-64.png"/>
<HighResolutionIconUrl DefaultValue="https://www.contoso.com/assets/icon-128.png"/>
<SupportUrl DefaultValue="https://ovas.nl"/>
<AppDomains>
<AppDomain>https://localhost:3000</AppDomain>
@@ -23,7 +23,7 @@
<FormSettings>
<Form xsi:type="ItemRead">
<DesktopSettings>
<SourceLocation DefaultValue="https://localhost:3000/taskpane.html"/>
<SourceLocation DefaultValue="https://www.contoso.com/taskpane.html"/>
<RequestedHeight>250</RequestedHeight>
</DesktopSettings>
</Form>
@@ -70,13 +70,13 @@
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="Icon.16x16" DefaultValue="https://localhost:3000/assets/icon-16.png"/>
<bt:Image id="Icon.32x32" DefaultValue="https://localhost:3000/assets/icon-32.png"/>
<bt:Image id="Icon.80x80" DefaultValue="https://localhost:3000/assets/icon-80.png"/>
<bt:Image id="Icon.16x16" DefaultValue="https://www.contoso.com/assets/icon-16.png"/>
<bt:Image id="Icon.32x32" DefaultValue="https://www.contoso.com/assets/icon-32.png"/>
<bt:Image id="Icon.80x80" DefaultValue="https://www.contoso.com/assets/icon-80.png"/>
</bt:Images>
<bt:Urls>
<bt:Url id="Commands.Url" DefaultValue="https://localhost:3000/commands.html"/>
<bt:Url id="Taskpane.Url" DefaultValue="https://localhost:3000/taskpane.html"/>
<bt:Url id="Commands.Url" DefaultValue="https://www.contoso.com/commands.html"/>
<bt:Url id="Taskpane.Url" DefaultValue="https://www.contoso.com/taskpane.html"/>
</bt:Urls>
<bt:ShortStrings>
<bt:String id="GroupLabel" DefaultValue="OVAS (Zoek bestellingen)"/>

2
dist/taskpane.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -6,11 +6,11 @@
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="Order finder OVAS"/>
<Description DefaultValue="Vind bestellingen die eventueel bij de e-mail horen"/>
<IconUrl DefaultValue="https://localhost:3000/assets/icon-64.png"/>
<HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/icon-128.png"/>
<IconUrl DefaultValue="https://outlookplugin.ovas.nl/assets/icon-64.png"/>
<HighResolutionIconUrl DefaultValue="https://outlookplugin.ovas.nl/assets/icon-128.png"/>
<SupportUrl DefaultValue="https://ovas.nl"/>
<AppDomains>
<AppDomain>https://localhost:3000</AppDomain>
<AppDomain>https://outlookplugin.ovas.nl</AppDomain>
</AppDomains>
<Hosts>
<Host Name="Mailbox"/>
@@ -23,7 +23,7 @@
<FormSettings>
<Form xsi:type="ItemRead">
<DesktopSettings>
<SourceLocation DefaultValue="https://localhost:3000/taskpane.html"/>
<SourceLocation DefaultValue="https://outlookplugin.ovas.nl/taskpane.html"/>
<RequestedHeight>250</RequestedHeight>
</DesktopSettings>
</Form>
@@ -70,13 +70,13 @@
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="Icon.16x16" DefaultValue="https://localhost:3000/assets/icon-16.png"/>
<bt:Image id="Icon.32x32" DefaultValue="https://localhost:3000/assets/icon-32.png"/>
<bt:Image id="Icon.80x80" DefaultValue="https://localhost:3000/assets/icon-80.png"/>
<bt:Image id="Icon.16x16" DefaultValue="https://outlookplugin.ovas.nl/assets/icon-16.png"/>
<bt:Image id="Icon.32x32" DefaultValue="https://outlookplugin.ovas.nl/assets/icon-32.png"/>
<bt:Image id="Icon.80x80" DefaultValue="https://outlookplugin.ovas.nl/assets/icon-80.png"/>
</bt:Images>
<bt:Urls>
<bt:Url id="Commands.Url" DefaultValue="https://localhost:3000/commands.html"/>
<bt:Url id="Taskpane.Url" DefaultValue="https://localhost:3000/taskpane.html"/>
<bt:Url id="Commands.Url" DefaultValue="https://outlookplugin.ovas.nl/commands.html"/>
<bt:Url id="Taskpane.Url" DefaultValue="https://outlookplugin.ovas.nl/taskpane.html"/>
</bt:Urls>
<bt:ShortStrings>
<bt:String id="GroupLabel" DefaultValue="OVAS (Zoek bestellingen)"/>

View File

@@ -9,10 +9,10 @@ import axios from "axios";
// axios conf
axios.defaults.headers.common["api-language"] = "nl";
const localApiUrl = "https://ewn51fphu7.sharedwithexpose.com/api/zoek_bestelling";
const orderUrlEdit = "https://ewn51fphu7.sharedwithexpose.com/bestellingen/edit/";
const orderUrlIndex = "https://ewn51fphu7.sharedwithexpose.com/bestellingen";
const apiCredentialUrl = "https://ewn51fphu7.sharedwithexpose.com/api/api_credentials";
const localApiUrl = "https://bykhztyhjw.sharedwithexpose.com/api/zoek_bestelling";
const orderUrlEdit = "https://bykhztyhjw.sharedwithexpose.com/bestellingen/edit/";
const orderUrlIndex = "https://bykhztyhjw.sharedwithexpose.com/bestellingen";
const apiCredentialUrl = "https://bykhztyhjw.sharedwithexpose.com/api/api_credentials";
Office.onReady((info) => {
if (info.host === Office.HostType.Outlook) {