Skip to content

Commit

Permalink
add configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
floris-thijssen-ritense committed Oct 10, 2024
1 parent 906ea61 commit c99c5c9
Show file tree
Hide file tree
Showing 11 changed files with 279 additions and 129 deletions.
2 changes: 1 addition & 1 deletion backend/app/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
kotlinVersion=1.9.23
springVersion=3.2.5
springDependencyManagementVersion=1.1.4
valtimoVersion=12.2.0.RELEASE
valtimoVersion=12.0.0.RELEASE

pluginGroupId=com.ritense.valtimo
pluginArtifactId=xential
Expand Down
2 changes: 1 addition & 1 deletion backend/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
kotlinVersion=1.9.23
springVersion=3.2.5
springDependencyManagementVersion=1.1.4
valtimoVersion=12.2.0.RELEASE
valtimoVersion=12.0.0.RELEASE

pluginGroupId=com.ritense.valtimo
pluginArtifactId=xential
Expand Down
4 changes: 2 additions & 2 deletions backend/plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ test {
useJUnitPlatform()
}

sourceCompatibility = 17
targetCompatibility = 17
sourceCompatibility = 20
targetCompatibility = 20

apply plugin: "com.avast.gradle.docker-compose"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.ritense.valtimo.xential.plugin

import com.ritense.plugin.annotation.Plugin
import com.ritense.plugin.annotation.PluginProperty

@Plugin(
key = "xential",
Expand All @@ -26,4 +27,7 @@ import com.ritense.plugin.annotation.Plugin
class XentialPlugin(
) {

@PluginProperty(key = "clientId", secret = false)
private lateinit var clientId: String

}
311 changes: 228 additions & 83 deletions frontend/package-lock.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,26 @@
-->

<v-form
(valueChange)="formValueChange($event)"
*ngIf="{
(valueChange)="formValueChange($event)"
*ngIf="{
disabled: disabled$ | async,
prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null
} as obs"
>
<v-input
name="configurationTitle"
[title]="'configurationTitle' | pluginTranslate: pluginId | async"
[margin]="true"
[defaultValue]="obs.prefill?.configurationTitle"
[disabled]="obs.disabled"
[required]="true"
>
</v-input>
<v-input
type="text"
required="true"
name="clientId"
[defaultValue]="obs.prefill?.clientId"
[title]="'clientId' | pluginTranslate: pluginId | async">
</v-input>
</v-form>
1 change: 1 addition & 0 deletions frontend/projects/valtimo/xential/src/lib/models/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import {PluginConfigurationData} from '@valtimo/plugin';

interface XentialConfig extends PluginConfigurationData {
clientId: string;
}

export {XentialConfig};
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ import {NgModule} from '@angular/core';
import {XentialConfigurationComponent} from './components/xential-configuration/xential-configuration.component';
import {CommonModule} from '@angular/common';
import {PluginTranslatePipeModule} from '@valtimo/plugin';
import {FormModule, InputModule, ParagraphModule} from '@valtimo/components';
import {FormModule, InputModule} from '@valtimo/components';

@NgModule({
declarations: [
XentialConfigurationComponent,
],
imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, ParagraphModule],
imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule],
exports: [
XentialConfigurationComponent,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,29 @@ import {XentialConfigurationComponent} from './components/xential-configuration/
import {XENTIAL_PLUGIN_LOGO_BASE64} from './assets';

const XentialPluginSpecification: PluginSpecification = {
pluginId: 'xential',
pluginConfigurationComponent: XentialConfigurationComponent,
pluginLogoBase64: XENTIAL_PLUGIN_LOGO_BASE64,
pluginTranslations: {
nl: {
title: 'Xential',
description: 'Xential plugin',
pluginId: 'xential',
pluginConfigurationComponent: XentialConfigurationComponent,
pluginLogoBase64: XENTIAL_PLUGIN_LOGO_BASE64,
pluginTranslations: {
nl: {
title: 'Xential',
description: 'Xential plugin',
configurationTitle: 'Configuratie naam',
clientId: 'Client ID',
},
en: {
title: 'Xential',
description: 'Xential plugin',
configurationTitle: 'Configuration name',
clientId: 'Client ID',
},
de: {
title: 'Xential',
description: 'Xential plugin',
configurationTitle: 'Konfigurationsname',
clientId: 'Client ID',
},
},
en: {
title: 'Xential',
description: 'Xential plugin',
},
de: {
title: 'Xential',
description: 'Xential plugin',
},
},
};

export {XentialPluginSpecification};
20 changes: 0 additions & 20 deletions frontend/src/app/app-routing.module.ts

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {BrowserModule} from '@angular/platform-browser';
import {Injector, NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {HttpBackend, HttpClientModule} from '@angular/common/http';
import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
import {LayoutModule} from '@valtimo/layout';
import {TaskModule} from '@valtimo/task';
Expand Down Expand Up @@ -84,7 +83,6 @@ export function tabsFactory() {
HttpClientModule,
CommonModule,
BrowserModule,
AppRoutingModule,
LayoutModule,
CardModule,
WidgetModule,
Expand Down

0 comments on commit c99c5c9

Please sign in to comment.