diff --git a/src/components/CrEditorViewer.js b/src/components/CrEditorViewer.js index af2f20f..7f6de2a 100644 --- a/src/components/CrEditorViewer.js +++ b/src/components/CrEditorViewer.js @@ -1,7 +1,7 @@ /** * Datafund Consent generator & viewer * Licensed under the MIT license - * Created by Markus Zevnik, Tadej Fius, �rt Ahlin + * Created by Markus Zevnik, Tadej Fius, Črt Ahlin */ import React, {Component} from 'react'; @@ -374,19 +374,25 @@ class CrEditorViewer extends Component { - { + { _this.setState({schemaVisible: !_this.state.schemaVisible}) }}> JSON Schema
+

+ +

JSON Schema defines the structure of the Consent Receipt. Kantara compliant consent receipts must follow a prescribed schema.

+ +

The forms below can be used to view the currently loaded JSON Schema or edit it.

- { _this.verifyJwtHS256() }}> Verify - Signature (HS256) + Signature (HS256) - { +
+ }}> Decode JWT
{/*{!_.isEmpty(_this.state.signature, true) &&*/} {/* - { + { _this.setState({jwtTokenDecodedVisible: !_this.state.jwtTokenDecodedVisible}) }}> Decoded JWT {!_.isEmpty(_this.state.jwtTokenDecoded, true) && + +
+

Decoded JWT is shown as JSON, containing all three parts of the JWT (including Form Data as payload).

- { + { _this.setState({projectConfigurationVisible: !_this.state.projectConfigurationVisible}) }}> Project @@ -763,6 +799,10 @@ class CrEditorViewer extends Component { +
+

Project Configuration JSON file contains some general settings as well as all other JSON files nested inside it (JSON Schema, UI Schema, FormData).

+

With forms below you can view or edit the part of the Project Configuration file with general settings.

+
@@ -770,6 +810,7 @@ class CrEditorViewer extends Component { { this.setState({projectConfigurationTab: '1'}); }}> @@ -779,6 +820,7 @@ class CrEditorViewer extends Component { { this.setState({projectConfigurationTab: '2'}); }}> @@ -813,17 +855,19 @@ class CrEditorViewer extends Component {
-