flexibelere-search #1

Merged
elwin merged 5 commits from flexibelere-search into master 2025-06-19 15:37:52 +02:00
6 changed files with 54 additions and 23 deletions
Showing only changes of commit 2904275081 - Show all commits

View File

@@ -34,6 +34,37 @@ Start je lokale development server, bijvoorbeeld op poort 8080:
npm run start 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 ## Overzicht
De gehele sourcecode van de plugin bevindt zich op: src/taskpane 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> <DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="Order finder OVAS"/> <DisplayName DefaultValue="Order finder OVAS"/>
<Description DefaultValue="Vind bestellingen die eventueel bij de e-mail horen"/> <Description DefaultValue="Vind bestellingen die eventueel bij de e-mail horen"/>
<IconUrl DefaultValue="https://localhost:3000/assets/icon-64.png"/> <IconUrl DefaultValue="https://www.contoso.com/assets/icon-64.png"/>
<HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/icon-128.png"/> <HighResolutionIconUrl DefaultValue="https://www.contoso.com/assets/icon-128.png"/>
<SupportUrl DefaultValue="https://ovas.nl"/> <SupportUrl DefaultValue="https://ovas.nl"/>
<AppDomains> <AppDomains>
<AppDomain>https://localhost:3000</AppDomain> <AppDomain>https://localhost:3000</AppDomain>
@@ -23,7 +23,7 @@
<FormSettings> <FormSettings>
<Form xsi:type="ItemRead"> <Form xsi:type="ItemRead">
<DesktopSettings> <DesktopSettings>
<SourceLocation DefaultValue="https://localhost:3000/taskpane.html"/> <SourceLocation DefaultValue="https://www.contoso.com/taskpane.html"/>
<RequestedHeight>250</RequestedHeight> <RequestedHeight>250</RequestedHeight>
</DesktopSettings> </DesktopSettings>
</Form> </Form>
@@ -70,13 +70,13 @@
</Hosts> </Hosts>
<Resources> <Resources>
<bt:Images> <bt:Images>
<bt:Image id="Icon.16x16" DefaultValue="https://localhost:3000/assets/icon-16.png"/> <bt:Image id="Icon.16x16" DefaultValue="https://www.contoso.com/assets/icon-16.png"/>
<bt:Image id="Icon.32x32" DefaultValue="https://localhost:3000/assets/icon-32.png"/> <bt:Image id="Icon.32x32" DefaultValue="https://www.contoso.com/assets/icon-32.png"/>
<bt:Image id="Icon.80x80" DefaultValue="https://localhost:3000/assets/icon-80.png"/> <bt:Image id="Icon.80x80" DefaultValue="https://www.contoso.com/assets/icon-80.png"/>
</bt:Images> </bt:Images>
<bt:Urls> <bt:Urls>
<bt:Url id="Commands.Url" DefaultValue="https://localhost:3000/commands.html"/> <bt:Url id="Commands.Url" DefaultValue="https://www.contoso.com/commands.html"/>
<bt:Url id="Taskpane.Url" DefaultValue="https://localhost:3000/taskpane.html"/> <bt:Url id="Taskpane.Url" DefaultValue="https://www.contoso.com/taskpane.html"/>
</bt:Urls> </bt:Urls>
<bt:ShortStrings> <bt:ShortStrings>
<bt:String id="GroupLabel" DefaultValue="OVAS (Zoek bestellingen)"/> <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> <DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="Order finder OVAS"/> <DisplayName DefaultValue="Order finder OVAS"/>
<Description DefaultValue="Vind bestellingen die eventueel bij de e-mail horen"/> <Description DefaultValue="Vind bestellingen die eventueel bij de e-mail horen"/>
<IconUrl DefaultValue="https://localhost:3000/assets/icon-64.png"/> <IconUrl DefaultValue="https://outlookplugin.ovas.nl/assets/icon-64.png"/>
<HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/icon-128.png"/> <HighResolutionIconUrl DefaultValue="https://outlookplugin.ovas.nl/assets/icon-128.png"/>
<SupportUrl DefaultValue="https://ovas.nl"/> <SupportUrl DefaultValue="https://ovas.nl"/>
<AppDomains> <AppDomains>
<AppDomain>https://localhost:3000</AppDomain> <AppDomain>https://outlookplugin.ovas.nl</AppDomain>
</AppDomains> </AppDomains>
<Hosts> <Hosts>
<Host Name="Mailbox"/> <Host Name="Mailbox"/>
@@ -23,7 +23,7 @@
<FormSettings> <FormSettings>
<Form xsi:type="ItemRead"> <Form xsi:type="ItemRead">
<DesktopSettings> <DesktopSettings>
<SourceLocation DefaultValue="https://localhost:3000/taskpane.html"/> <SourceLocation DefaultValue="https://outlookplugin.ovas.nl/taskpane.html"/>
<RequestedHeight>250</RequestedHeight> <RequestedHeight>250</RequestedHeight>
</DesktopSettings> </DesktopSettings>
</Form> </Form>
@@ -70,13 +70,13 @@
</Hosts> </Hosts>
<Resources> <Resources>
<bt:Images> <bt:Images>
<bt:Image id="Icon.16x16" DefaultValue="https://localhost:3000/assets/icon-16.png"/> <bt:Image id="Icon.16x16" DefaultValue="https://outlookplugin.ovas.nl/assets/icon-16.png"/>
<bt:Image id="Icon.32x32" DefaultValue="https://localhost:3000/assets/icon-32.png"/> <bt:Image id="Icon.32x32" DefaultValue="https://outlookplugin.ovas.nl/assets/icon-32.png"/>
<bt:Image id="Icon.80x80" DefaultValue="https://localhost:3000/assets/icon-80.png"/> <bt:Image id="Icon.80x80" DefaultValue="https://outlookplugin.ovas.nl/assets/icon-80.png"/>
</bt:Images> </bt:Images>
<bt:Urls> <bt:Urls>
<bt:Url id="Commands.Url" DefaultValue="https://localhost:3000/commands.html"/> <bt:Url id="Commands.Url" DefaultValue="https://outlookplugin.ovas.nl/commands.html"/>
<bt:Url id="Taskpane.Url" DefaultValue="https://localhost:3000/taskpane.html"/> <bt:Url id="Taskpane.Url" DefaultValue="https://outlookplugin.ovas.nl/taskpane.html"/>
</bt:Urls> </bt:Urls>
<bt:ShortStrings> <bt:ShortStrings>
<bt:String id="GroupLabel" DefaultValue="OVAS (Zoek bestellingen)"/> <bt:String id="GroupLabel" DefaultValue="OVAS (Zoek bestellingen)"/>

View File

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