mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
*: Remove use of Turbolinks library
See #1841 for discussion on why Turbolinks needs to be removed. Closes: #1841. Closes: #1804. Tests performed: - There are no more references to 'turbolinks' in source code other than .po(t) files and the manual. - When loading a page, turbolinks.js is no longer loaded. - The following links don't have data-turbolinks attribute and work well when clicked.a - Gitweb repository links - Download manual links (en, es) - Ikiwiki wiki links - Sharing app web share links - TT-RSS mobile app link - 'Launch web client' button - 'Launch' button in web section of clients table - Active and regular front page shortcut - Roundcube does not have a link to /roundcube in description. - turblinks not present in /static/jslicense.html . LibreJs accepts all scripts. Reported-by: Veiko Aasa <veiko17@disroot.org> Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Tested-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
eb88c60389
commit
ac103d7132
1
debian/control
vendored
1
debian/control
vendored
@ -85,7 +85,6 @@ Depends:
|
||||
lsof,
|
||||
netcat-openbsd,
|
||||
network-manager,
|
||||
node-turbolinks,
|
||||
ppp,
|
||||
pppoe,
|
||||
python3-apt,
|
||||
|
||||
@ -70,7 +70,6 @@
|
||||
<span class="repo-label">{{ repo.name }}<span>
|
||||
{% else %}
|
||||
<a class="repo-label" href="/gitweb/{{ repo.name }}.git"
|
||||
data-turbolinks="false"
|
||||
title="{% blocktrans %}Go to repository {{ repo.name }}{% endblocktrans %}">
|
||||
{{ repo.name }}
|
||||
</a>
|
||||
|
||||
@ -1,28 +0,0 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
/**
|
||||
* @licstart The following is the entire license notice for the JavaScript
|
||||
* code in this page.
|
||||
*
|
||||
* This file is part of FreedomBox.
|
||||
*
|
||||
* 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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @licend The above is the entire license notice for the JavaScript code
|
||||
* in this page.
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
let downloadManualButton = $('a[href="/plinth/help/manual-download/"]');
|
||||
downloadManualButton.attr("data-turbolinks", "false");
|
||||
})(jQuery);
|
||||
@ -26,7 +26,3 @@
|
||||
</a>
|
||||
{{ content|safe }}
|
||||
{% endblock %}
|
||||
|
||||
{% block page_js %}
|
||||
<script type="text/javascript" src="{% static 'help/help.js' %}"></script>
|
||||
{% endblock %}
|
||||
|
||||
@ -36,7 +36,6 @@
|
||||
</a>
|
||||
|
||||
<a class="wiki-label" href="/ikiwiki/{{ site.0 }}"
|
||||
data-turbolinks="false"
|
||||
title="{% blocktrans with site=site.1 %}Go to site {{ site }}{% endblocktrans %}">
|
||||
{{ site.1 }}
|
||||
</a>
|
||||
|
||||
@ -23,8 +23,7 @@ _description = [
|
||||
'full functionality you expect from an email client, including '
|
||||
'MIME support, address book, folder manipulation, message '
|
||||
'searching and spell checking.'),
|
||||
_('You can access Roundcube from <a href="/roundcube" data-turbolinks='
|
||||
'"false">/roundcube</a>. Provide the username and password of the email '
|
||||
_('You can use it by providing the username and password of the email '
|
||||
'account you wish to access followed by the domain name of the '
|
||||
'IMAP server for your email provider, like <code>imap.example.com'
|
||||
'</code>. For IMAP over SSL (recommended), fill the server field '
|
||||
|
||||
@ -18,10 +18,8 @@ managed_packages = ['shaarli']
|
||||
|
||||
_description = [
|
||||
_('Shaarli allows you to save and share bookmarks.'),
|
||||
_('When enabled, Shaarli will be available from <a href="/shaarli" '
|
||||
'data-turbolinks="false">/shaarli</a> path on the web server. Note that '
|
||||
'Shaarli only supports a single user account, which you will need to '
|
||||
'setup on the initial visit.'),
|
||||
_('Note that Shaarli only supports a single user account, which you will '
|
||||
'need to setup on the initial visit.'),
|
||||
]
|
||||
|
||||
app = None
|
||||
|
||||
@ -48,8 +48,7 @@
|
||||
<td class="share-name">{{ share.name }}</td>
|
||||
<td class="share-path">{{ share.path }}</td>
|
||||
<td class="share-url">
|
||||
<a href="{{ share.url }}" title="{{ share.url}}"
|
||||
data-turbolinks="false">
|
||||
<a href="{{ share.url }}" title="{{ share.url}}">
|
||||
{{ share.url }}
|
||||
</a>
|
||||
</td>
|
||||
|
||||
@ -35,8 +35,7 @@ _description = [
|
||||
box_name=_(cfg.box_name), users_url=reverse_lazy('users:index')),
|
||||
format_lazy(
|
||||
_('When using a mobile or desktop application for Tiny Tiny RSS, use '
|
||||
'the URL <a href="/tt-rss-app/" data-turbolinks="false">'
|
||||
'/tt-rss-app</a> for connecting.'))
|
||||
'the URL <a href="/tt-rss-app/">/tt-rss-app</a> for connecting.'))
|
||||
]
|
||||
|
||||
app = None
|
||||
|
||||
@ -24,7 +24,6 @@
|
||||
maximum-scale = 1.0 retains dimensions instead of zooming in if page width < device width
|
||||
-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="turbolinks-cache-control" content="no-preview">
|
||||
|
||||
<!-- R2D2, you know better than to trust a strange computer! -->
|
||||
<meta name="robots" content="noindex, nofollow, noarchive" />
|
||||
@ -56,8 +55,6 @@
|
||||
<link rel="stylesheet" href="{% static '/javascript/bootstrap/css/bootstrap.min.css' %}"/>
|
||||
<link rel="stylesheet" href="{% static '/javascript/fork-awesome/css/fork-awesome.css' %}"/>
|
||||
<link rel="stylesheet" href="{% static 'theme/css/main.css' %}"/>
|
||||
<!-- Local link to system Turbolinks JS -->
|
||||
<script type="text/javascript" src="{% static '/javascript/turbolinks/turbolinks.js' %}" defer></script>
|
||||
<!-- Local link to system Modernizr (includes HTML5 Shiv) -->
|
||||
<script type="text/javascript" src="{% static '/javascript/modernizr/modernizr.min.js' %}" defer></script>
|
||||
<!-- Local link to system jQuery -->
|
||||
|
||||
@ -9,10 +9,10 @@
|
||||
{% with client_platforms=clients|clients_get_platforms %}
|
||||
{% if client_platforms.web|length == 1 %}
|
||||
<a target='_blank' rel="noopener noreferrer"
|
||||
class="btn btn-primary" role="button" data-turbolinks="false"
|
||||
class="btn btn-primary" role="button"
|
||||
{% if not enabled %} disabled="disabled"
|
||||
{% else %} href="{{ client_platforms.web.0.url }}"
|
||||
{% endif %} data-turbolinks="false">
|
||||
{% endif %}>
|
||||
{% trans "Launch web client" %}
|
||||
<span class="fa fa-external-link"></span>
|
||||
</a>
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
<td>{{ client.name }}</td>
|
||||
<td>
|
||||
<a target="_blank" rel="noopener noreferrer"
|
||||
class="btn btn-default" role="button" data-turbolinks="false"
|
||||
class="btn btn-default" role="button"
|
||||
{% if not enabled %} disabled="disabled"
|
||||
{% else %} href="{{ platform.url }}"
|
||||
{% endif %}>
|
||||
|
||||
@ -65,9 +65,9 @@
|
||||
{% if user.is_authenticated or not shortcut.login_required %}
|
||||
<div class="card thumbnail">
|
||||
{% if selected_shortcut.component_id == shortcut.component_id %}
|
||||
<a href="{{ shortcut.url }}" class="nav-link active" data-turbolinks="false">
|
||||
<a href="{{ shortcut.url }}" class="nav-link active">
|
||||
{% else %}
|
||||
<a href="{{ shortcut.url }}" class="nav-link" data-turbolinks="false">
|
||||
<a href="{{ shortcut.url }}" class="nav-link">
|
||||
{% endif %}
|
||||
<div class="card-title">
|
||||
{{ shortcut.name }}
|
||||
|
||||
@ -37,15 +37,6 @@
|
||||
<td><a href="https://salsa.debian.org/js-team/modernizr.git">
|
||||
modernizr</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/javascript/turbolinks/turbolinks.js">
|
||||
turbolinks.js</a></td>
|
||||
<td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
|
||||
<td>
|
||||
<a href="https://salsa.debian.org/js-team/node-turbolinks.git">
|
||||
node-turbolinks</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/plinth/static/jsxc/jsxc-plinth.js">jsxc-plinth.js</a></td>
|
||||
<td>
|
||||
|
||||
@ -480,11 +480,6 @@ a.menu_link_active {
|
||||
background-image: url('../img/system-background.svg');
|
||||
}
|
||||
|
||||
.turbolinks-progress-bar {
|
||||
height: 3px;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.names-table {
|
||||
table-layout: fixed;
|
||||
overflow-wrap: break-word;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user