mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Initial code to get providers from Spectre.
This commit is contained in:
@@ -3,6 +3,12 @@ declare(strict_types=1);
|
||||
|
||||
|
||||
return [
|
||||
'bunq_prerequisites_title' => 'Prerequisites for an import from bunq',
|
||||
'bunq_prerequisites_text' => 'In order to import from bunq, you need to obtain an API key. You can do this through the app.',
|
||||
'bunq_prerequisites_title' => 'Prerequisites for an import from bunq',
|
||||
'bunq_prerequisites_text' => 'In order to import from bunq, you need to obtain an API key. You can do this through the app.',
|
||||
|
||||
// Spectre:
|
||||
'spectre_title' => 'Import using Spectre',
|
||||
'spectre_prerequisites_title' => 'Prerequisites for an import using Spectre',
|
||||
'spectre_prerequisites_text' => 'In order to import data using the Spectre API, you need to prove some secrets. They can be found on the <a href="https://www.saltedge.com/clients/profile/secrets">secrets page</a>.',
|
||||
'spectre_enter_pub_key' => 'The import will only work when you enter this public key on your <a href="https://www.saltedge.com/clients/security/edit">security page</a>.',
|
||||
];
|
||||
|
@@ -186,6 +186,10 @@ return [
|
||||
'csv_delimiter' => 'CSV field delimiter',
|
||||
'csv_import_account' => 'Default import account',
|
||||
'csv_config' => 'CSV import configuration',
|
||||
'client_id' => 'Client ID',
|
||||
'service_secret' => 'Service secret',
|
||||
'app_secret' => 'App secret',
|
||||
'public_key' => 'Public key',
|
||||
|
||||
|
||||
'due_date' => 'Due date',
|
||||
|
@@ -20,21 +20,34 @@
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
<p>
|
||||
<div class="col-lg-1 text-center">
|
||||
{# file import #}
|
||||
<a href="{{ route('import.file.index') }}" class="btn btn-app">
|
||||
<i class="fa fa-file-text-o"></i>
|
||||
<a href="{{ route('import.file.index') }}">
|
||||
<img src="images/logos/csv.png" alt="bunq"/><br />
|
||||
{{ 'import_general_index_csv_file'|_ }}
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-lg-1 text-center">
|
||||
{# bunq import #}
|
||||
{#
|
||||
<a href="{{ route('import.bank.prerequisites', ['bunq']) }}" class="btn btn-app">
|
||||
<a href="{{ route('import.bank.prerequisites', ['bunq']) }}">
|
||||
<img src="images/logos/bunq.png" alt="bunq"/><br />
|
||||
Import from bunq
|
||||
</a>
|
||||
#}
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-lg-1 text-center">
|
||||
{# import from Spectre #}
|
||||
<a href="{{ route('import.bank.prerequisites', ['spectre']) }}">
|
||||
<img src="images/logos/spectre.png" alt="Spectre"/><br />
|
||||
Import using Spectre
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-lg-1 text-center">
|
||||
{# import from Plaid #}
|
||||
<a href="{{ route('import.bank.prerequisites', ['plaid']) }}">
|
||||
<img src="images/logos/plaid.png" alt="Plaid"/><br />
|
||||
Import using Plaid
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
58
resources/views/import/spectre/prerequisites.twig
Normal file
58
resources/views/import/spectre/prerequisites.twig
Normal file
@@ -0,0 +1,58 @@
|
||||
{% extends "./layout/default" %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
{{ Breadcrumbs.renderIfExists }}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<form class="form-horizontal" action="{{ route('import.bank.prerequisites.post',['spectre']) }}" method="post">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{ trans('bank.spectre_prerequisites_title') }}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
<p>
|
||||
{{ trans('bank.spectre_prerequisites_text')|raw }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
{{ ExpandedForm.text('client_id') }}
|
||||
{{ ExpandedForm.text('service_secret') }}
|
||||
{{ ExpandedForm.text('app_secret') }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
<p>{{ trans('bank.spectre_enter_pub_key')|raw }}</p>
|
||||
<div class="form-group" id="pub_key_holder">
|
||||
<label for="ffInput_pub_key_holder" class="col-sm-4 control-label">{{ trans('form.public_key') }}</label>
|
||||
|
||||
<div class="col-sm-8">
|
||||
<textarea class="form-control"
|
||||
rows="10"
|
||||
id="ffInput_pub_key_holder" name="pub_key_holder" contenteditable="false">{{ publicKey }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<button type="submit" class="btn pull-right btn-success">
|
||||
{{ ('submit')|_ }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user