Skip to content
Snippets Groups Projects
Commit 76fdd5ce authored by Otto Zaiser's avatar Otto Zaiser
Browse files

Cambios TSA2. Borrar timer

parent 02a5b84e
No related branches found
No related tags found
No related merge requests found
tsa2_api: 'https://tsaapi.bfa.ar/api/tsa/'
tsa2_timer: 5
mainBody: '<p>El servicio de Sello de Tiempo de BFA permite demostrar que el contenido de cualquier documento digital existió en un momento y que desde entonces, no ha cambiado. Al sellar un archivo, cualquiera podrá verificar el día y la hora en que su hash fue almacenado en Blockchain Federal Argentina. Tené en cuenta que el documento seleccionado nunca se sube a la red, garantizando su privacidad.</p><p class="font_small"><a href="https://bfa.ar/sello">Si tenés un archivo con Recibo Digital (.rd) verificalo aquí</a></p>'
errorJS: 'Lo sentimos pero el sello de tiempo no funciona sin JavaScript. Por favor, habilitalo para continuar.'
lb00: ' El archivo '
......
......@@ -5,9 +5,6 @@ tsa2.settings:
tsa2_api:
type: string
label: 'URLs de APIs'
tsa2_timer:
type: integer
label: 'Tiempo para verificar'
mainBody:
type: text
label: 'Text Principal'
......
source diff could not be displayed: it is too large. Options to address this: view the blob.
source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -21,7 +21,6 @@ class tsa2Controller extends ControllerBase {
// Default settings.
$config = \Drupal::config('tsa2.settings');
$tsa2_api = $config->get('tsa2_api');
$tsa2_timer = $config->get('tsa2_timer');
$lb00 = $config->get('lb00');
$lb01 = $config->get('lb01');
$lb02 = $config->get('lb02');
......@@ -38,7 +37,6 @@ class tsa2Controller extends ControllerBase {
$lb13 = $config->get('lb13');
$lb14 = $config->get('lb14');
$element['#tsa2_api'] = Html::escape($tsa2_api);
$element['#tsa2_timer'] = Html::escape($tsa2_timer);
$element['#lb00'] = Html::escape($lb00);
$element['#lb01'] = Html::escape($lb01);
$element['#lb02'] = Html::escape($lb02);
......
......@@ -31,12 +31,6 @@ class tsa2Form extends ConfigFormBase {
'#default_value' => $config->get('tsa2_api'),
);
$form['tsa2_timer'] = array(
'#type' => 'textfield',
'#title' => $this->t('Tiempo para verificar'),
'#description' => $this->t('Expresado en segundos'),
'#default_value' => $config->get('tsa2_timer'),
);
$form['mainBody'] = array(
'#type' => 'textarea',
......@@ -136,7 +130,6 @@ class tsa2Form extends ConfigFormBase {
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this->config('tsa2.settings');
$config->set('tsa2_api', $form_state->getValue('tsa2_api'));
$config->set('tsa2_timer', $form_state->getValue('tsa2_timer'));
$config->set('mainBody', $form_state->getValue('mainBody'));
$config->set('errorJS', $form_state->getValue('errorJS'));
$config->set('lb00', $form_state->getValue('lb00'));
......
......@@ -4,7 +4,6 @@
<div>{{ mainBody }}</div>
<div id="app"
apiurl="{{tsa2_api}}"
timer="{{tsa2_timer}}"
lb_00="{{lb00}}"
lb_01="{{lb01}}"
lb_02="{{lb02}}"
......
......@@ -15,7 +15,6 @@ function tsa2_theme($existing, $type, $theme, $path) {
'tsa2_theme' => array(
'variables' => array(
'tsa2_api' => NULL,
'tsa2_timer' => NULL,
'mainBody' => NULL,
'errorJS' => NULL,
'lb00' => NULL,
......@@ -47,7 +46,6 @@ function tsa2_preprocess_html(&$variables) {
$config = \Drupal::config('tsa2.settings');
$tsa2_api = $config->get('tsa2_api');
$tsa2_timer = $config->get('tsa2_timer');
$lb00 = $config->get('lb00');
$lb01 = $config->get('lb01');
$lb02 = $config->get('lb02');
......@@ -64,7 +62,6 @@ function tsa2_preprocess_html(&$variables) {
$lb13 = $config->get('lb13');
$lb14 = $config->get('lb14');
$variables['#attached']['drupalSettings']['tsa2']['tsa2_api'] = $tsa2_api;
$variables['#attached']['drupalSettings']['tsa2']['tsa2_timer'] = $tsa2_timer;
$variables['#attached']['drupalSettings']['tsa2']['lb00'] = $lb00;
$variables['#attached']['drupalSettings']['tsa2']['lb01'] = $lb01;
$variables['#attached']['drupalSettings']['tsa2']['lb02'] = $lb02;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment