Delete accounts.

This commit is contained in:
James Cole 2021-04-05 12:49:02 +02:00
parent fa0397e431
commit 7ab81e493a
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
12 changed files with 65 additions and 8 deletions
frontend/src/pages/accounts
public/v2
resources/views/v2/accounts

40
frontend/src/pages/accounts/delete.js vendored Normal file
View File

@ -0,0 +1,40 @@
/*
* index.js
* Copyright (c) 2020 james@firefly-iii.org
*
* This file is part of Firefly III (https://github.com/firefly-iii).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
require('../../bootstrap');
import Delete from "../../components/accounts/Delete";
// i18n
let i18n = require('../../i18n');
// get page name?
let props = {
};
new Vue({
i18n,
render(createElement) {
return createElement(Delete, {props: props});
}
}).$mount('#accounts_delete');

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
public/v2/js/accounts/delete.js vendored Executable file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,14 @@
{% extends './v2/layout/default' %}
{% block breadcrumbs %}
{{ Breadcrumbs.render }}
{% endblock %}
{% block content %}
<div id="accounts_delete"></div>
{% endblock %}
{% block scripts %}
<script type="text/javascript">
// this is a terrible hack.
var previousURL = '{{ Session.get('accounts.delete.uri') }}';
</script>
<script src="v2/js/accounts/delete.js" nonce="{{ JS_NONCE }}"></script>
{% endblock %}