mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
Remove duplicate client information from __init__.py of modules
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
64b4d1ffc1
commit
defcb37472
@ -1,30 +0,0 @@
|
|||||||
#
|
|
||||||
# This file is part of Plinth.
|
|
||||||
#
|
|
||||||
# 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/>.
|
|
||||||
#
|
|
||||||
|
|
||||||
"""
|
|
||||||
Django models for the main application
|
|
||||||
"""
|
|
||||||
|
|
||||||
from collections import namedtuple
|
|
||||||
|
|
||||||
web_client = namedtuple('Web_Client', ['name', 'url'])
|
|
||||||
|
|
||||||
desktop_client = namedtuple('Desktop_clients', ['name', 'url'])
|
|
||||||
|
|
||||||
mobile_client = namedtuple('Mobile_clients', ['name',
|
|
||||||
'fully_qualified_name',
|
|
||||||
'fdroid_url', 'play_store_url'])
|
|
||||||
@ -25,7 +25,6 @@ from plinth import actions
|
|||||||
from plinth import action_utils
|
from plinth import action_utils
|
||||||
from plinth import frontpage
|
from plinth import frontpage
|
||||||
from plinth import service as service_module
|
from plinth import service as service_module
|
||||||
from plinth.client import web_client
|
|
||||||
from plinth.menu import main_menu
|
from plinth.menu import main_menu
|
||||||
from plinth.modules.users import add_group
|
from plinth.modules.users import add_group
|
||||||
from .manifest import clients
|
from .manifest import clients
|
||||||
@ -55,7 +54,6 @@ description = [
|
|||||||
reserved_usernames = ['debian-deluged']
|
reserved_usernames = ['debian-deluged']
|
||||||
|
|
||||||
clients = clients
|
clients = clients
|
||||||
web_clients = [web_client(name='Deluge', url='/deluge')]
|
|
||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
|
|||||||
@ -35,7 +35,6 @@ from plinth.menu import main_menu
|
|||||||
from plinth.signals import pre_hostname_change, post_hostname_change
|
from plinth.signals import pre_hostname_change, post_hostname_change
|
||||||
from plinth.signals import domainname_change
|
from plinth.signals import domainname_change
|
||||||
from .manifest import clients
|
from .manifest import clients
|
||||||
from plinth.client import web_client
|
|
||||||
|
|
||||||
|
|
||||||
version = 1
|
version = 1
|
||||||
@ -61,10 +60,6 @@ description = [
|
|||||||
box_name=_(cfg.box_name))
|
box_name=_(cfg.box_name))
|
||||||
]
|
]
|
||||||
|
|
||||||
web_clients = [web_client(name='JSXC', url='/plinth/apps/jsxc'),
|
|
||||||
web_client(name='XMPP client', url='http://xmpp.org/xmpp'
|
|
||||||
'-software/clients')]
|
|
||||||
|
|
||||||
clients = clients
|
clients = clients
|
||||||
|
|
||||||
reserved_usernames = ['ejabberd']
|
reserved_usernames = ['ejabberd']
|
||||||
|
|||||||
@ -28,7 +28,6 @@ from plinth import cfg
|
|||||||
from plinth import frontpage
|
from plinth import frontpage
|
||||||
from plinth import service as service_module
|
from plinth import service as service_module
|
||||||
from plinth.menu import main_menu
|
from plinth.menu import main_menu
|
||||||
from plinth.client import web_client
|
|
||||||
from .manifest import clients
|
from .manifest import clients
|
||||||
|
|
||||||
|
|
||||||
@ -61,7 +60,6 @@ description = [
|
|||||||
|
|
||||||
clients = clients
|
clients = clients
|
||||||
|
|
||||||
web_clients = [web_client(name='ikiwiki', url='/ikiwiki')]
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Initialize the ikiwiki module."""
|
"""Initialize the ikiwiki module."""
|
||||||
|
|||||||
@ -31,7 +31,6 @@ from plinth.menu import main_menu
|
|||||||
from plinth.utils import format_lazy
|
from plinth.utils import format_lazy
|
||||||
from plinth.views import ServiceView
|
from plinth.views import ServiceView
|
||||||
from .manifest import clients
|
from .manifest import clients
|
||||||
from plinth.client import desktop_client
|
|
||||||
|
|
||||||
|
|
||||||
version = 1
|
version = 1
|
||||||
@ -56,7 +55,6 @@ description = [
|
|||||||
box_name=_(cfg.box_name)),
|
box_name=_(cfg.box_name)),
|
||||||
]
|
]
|
||||||
|
|
||||||
desktop_clients = [desktop_client(name='Gobby', url='https://gobby.github.io/')]
|
|
||||||
|
|
||||||
clients = clients
|
clients = clients
|
||||||
|
|
||||||
|
|||||||
@ -31,7 +31,6 @@ from plinth import frontpage
|
|||||||
from plinth import service as service_module
|
from plinth import service as service_module
|
||||||
from plinth.menu import main_menu
|
from plinth.menu import main_menu
|
||||||
from plinth.utils import format_lazy
|
from plinth.utils import format_lazy
|
||||||
from plinth.client import desktop_client, mobile_client
|
|
||||||
from .manifest import clients
|
from .manifest import clients
|
||||||
|
|
||||||
|
|
||||||
@ -62,16 +61,6 @@ description = [
|
|||||||
|
|
||||||
clients = clients
|
clients = clients
|
||||||
|
|
||||||
desktop_clients = [desktop_client(name='Minetest',
|
|
||||||
url= 'https://www.minetest.net/downloads/')]
|
|
||||||
|
|
||||||
mobile_clients = [
|
|
||||||
mobile_client(name='Minetest',
|
|
||||||
fully_qualified_name='net.minetest.mintest',
|
|
||||||
fdroid_url='https://f-droid.org/packages/net.minetest.minetest/',
|
|
||||||
play_store_url='https://play.google.com/store/apps/details?'
|
|
||||||
'id=net.minetest.minetest')]
|
|
||||||
|
|
||||||
reserved_usernames = ['Debian-minetest']
|
reserved_usernames = ['Debian-minetest']
|
||||||
|
|
||||||
CONFIG_FILE = '/etc/minetest/minetest.conf'
|
CONFIG_FILE = '/etc/minetest/minetest.conf'
|
||||||
|
|||||||
@ -28,7 +28,6 @@ from plinth import frontpage
|
|||||||
from plinth import service as service_module
|
from plinth import service as service_module
|
||||||
from plinth.menu import main_menu
|
from plinth.menu import main_menu
|
||||||
from plinth.views import ServiceView
|
from plinth.views import ServiceView
|
||||||
from plinth.client import desktop_client, mobile_client
|
|
||||||
from .manifest import clients
|
from .manifest import clients
|
||||||
|
|
||||||
|
|
||||||
@ -55,18 +54,6 @@ description = [
|
|||||||
|
|
||||||
clients = clients
|
clients = clients
|
||||||
|
|
||||||
desktop_clients = [
|
|
||||||
desktop_client(name='Mumble',url= 'https://wiki.mumble.info/wiki/Main_Page')]
|
|
||||||
|
|
||||||
mobile_clients = [
|
|
||||||
mobile_client(name='Mumble',
|
|
||||||
fully_qualified_name='com.morlunk.mumbleclient',
|
|
||||||
fdroid_url='https://f-droid.org/packages/com.morlunk'
|
|
||||||
'.mumbleclient/',
|
|
||||||
play_store_url='https://play.google.com/store/apps/details'
|
|
||||||
'?id=com.morlunk.mumbleclient.free')]
|
|
||||||
|
|
||||||
|
|
||||||
reserved_usernames = ['mumble-server']
|
reserved_usernames = ['mumble-server']
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,6 @@ from plinth import service as service_module
|
|||||||
from plinth.menu import main_menu
|
from plinth.menu import main_menu
|
||||||
from plinth.utils import format_lazy
|
from plinth.utils import format_lazy
|
||||||
from plinth.views import ServiceView
|
from plinth.views import ServiceView
|
||||||
from plinth.client import mobile_client, desktop_client
|
|
||||||
from .manifest import clients
|
from .manifest import clients
|
||||||
|
|
||||||
version = 1
|
version = 1
|
||||||
@ -64,16 +63,6 @@ description = [
|
|||||||
|
|
||||||
clients = clients
|
clients = clients
|
||||||
|
|
||||||
desktop_clients = [
|
|
||||||
desktop_client(name='Quassel', url='http://quassel-irc.org/downloads')]
|
|
||||||
|
|
||||||
mobile_clients = [
|
|
||||||
mobile_client(name='QuasselDroid',
|
|
||||||
fully_qualified_name='com.iskrembilen.quasseldroid',
|
|
||||||
fdroid_url=None,
|
|
||||||
play_store_url='https://play.google.com/store/apps/details?'
|
|
||||||
'id=com.iskrembilen.quasseldroid')]
|
|
||||||
|
|
||||||
reserved_usernames = ['quasselcore']
|
reserved_usernames = ['quasselcore']
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,6 @@ from plinth import frontpage
|
|||||||
from plinth import service as service_module
|
from plinth import service as service_module
|
||||||
from plinth.menu import main_menu
|
from plinth.menu import main_menu
|
||||||
from plinth.utils import format_lazy
|
from plinth.utils import format_lazy
|
||||||
from plinth.client import desktop_client, mobile_client
|
|
||||||
from .manifest import clients
|
from .manifest import clients
|
||||||
|
|
||||||
|
|
||||||
@ -57,20 +56,6 @@ description = [
|
|||||||
|
|
||||||
clients = clients
|
clients = clients
|
||||||
|
|
||||||
desktop_clients = [desktop_client(name='GNOME Calendar',
|
|
||||||
url='https://wiki.gnome.org/Apps/Calendar'),
|
|
||||||
desktop_client(name='Contacts',
|
|
||||||
url='https://wiki.gnome.org/Apps/Contacts'),
|
|
||||||
desktop_client(name='Evolution',
|
|
||||||
url='https://wiki.gnome.org/Apps/Evolution')]
|
|
||||||
|
|
||||||
mobile_clients = [
|
|
||||||
mobile_client(name='DAVdroid',
|
|
||||||
fully_qualified_name='at.bitfire.davdroid',
|
|
||||||
fdroid_url=None,
|
|
||||||
play_store_url='https://play.google.com/store/apps/details'
|
|
||||||
'?id=at.bitfire.davdroid')]
|
|
||||||
|
|
||||||
reserved_usernames = ['radicale']
|
reserved_usernames = ['radicale']
|
||||||
|
|
||||||
CONFIG_FILE = '/etc/radicale/config'
|
CONFIG_FILE = '/etc/radicale/config'
|
||||||
|
|||||||
@ -28,7 +28,6 @@ from plinth import frontpage
|
|||||||
from plinth import service as service_module
|
from plinth import service as service_module
|
||||||
from plinth.menu import main_menu
|
from plinth.menu import main_menu
|
||||||
from plinth.views import ServiceView
|
from plinth.views import ServiceView
|
||||||
from plinth.client import desktop_client, mobile_client
|
|
||||||
from .manifest import clients
|
from .manifest import clients
|
||||||
|
|
||||||
version = 2
|
version = 2
|
||||||
@ -64,14 +63,6 @@ description = [
|
|||||||
|
|
||||||
clients = clients
|
clients = clients
|
||||||
|
|
||||||
desktop_clients = [desktop_client(name='Jitsi',url='https://jitsi.org/')]
|
|
||||||
|
|
||||||
mobile_clients = [
|
|
||||||
mobile_client(name='Csip Simple',fully_qualified_name='com.csipsimple',
|
|
||||||
fdroid_url=None,
|
|
||||||
play_store_url='https://play.google.com/store/apps/details'
|
|
||||||
'?id=com.csipsimple')]
|
|
||||||
|
|
||||||
reserved_usernames = ['repro']
|
reserved_usernames = ['repro']
|
||||||
|
|
||||||
service = None
|
service = None
|
||||||
|
|||||||
@ -25,7 +25,6 @@ from plinth import cfg
|
|||||||
from plinth import service as service_module
|
from plinth import service as service_module
|
||||||
from plinth.menu import main_menu
|
from plinth.menu import main_menu
|
||||||
from plinth.utils import format_lazy
|
from plinth.utils import format_lazy
|
||||||
from plinth.client import web_client
|
|
||||||
from .manifest import clients
|
from .manifest import clients
|
||||||
|
|
||||||
|
|
||||||
@ -54,8 +53,6 @@ description = [
|
|||||||
|
|
||||||
clients = clients
|
clients = clients
|
||||||
|
|
||||||
web_clients = [web_client(name='reStore web-interface', url='/restore')]
|
|
||||||
|
|
||||||
reserved_usernames = ['node-restore']
|
reserved_usernames = ['node-restore']
|
||||||
|
|
||||||
service = None
|
service = None
|
||||||
|
|||||||
@ -26,7 +26,6 @@ from plinth import action_utils
|
|||||||
from plinth import frontpage
|
from plinth import frontpage
|
||||||
from plinth import service as service_module
|
from plinth import service as service_module
|
||||||
from plinth.menu import main_menu
|
from plinth.menu import main_menu
|
||||||
from plinth.client import web_client
|
|
||||||
from .manifest import clients
|
from .manifest import clients
|
||||||
|
|
||||||
|
|
||||||
@ -62,8 +61,6 @@ description = [
|
|||||||
|
|
||||||
clients = clients
|
clients = clients
|
||||||
|
|
||||||
web_clients = [web_client('Roundcube', '/roundcube')]
|
|
||||||
|
|
||||||
service = None
|
service = None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -26,7 +26,6 @@ from plinth import action_utils
|
|||||||
from plinth import frontpage
|
from plinth import frontpage
|
||||||
from plinth import service as service_module
|
from plinth import service as service_module
|
||||||
from plinth.menu import main_menu
|
from plinth.menu import main_menu
|
||||||
from plinth.client import web_client
|
|
||||||
from .manifest import clients
|
from .manifest import clients
|
||||||
|
|
||||||
|
|
||||||
@ -49,8 +48,6 @@ description = [
|
|||||||
|
|
||||||
clients = clients
|
clients = clients
|
||||||
|
|
||||||
web_clients = [web_client(name='Shaarli', url='/shaarli')]
|
|
||||||
|
|
||||||
service = None
|
service = None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -28,7 +28,6 @@ from plinth import service as service_module
|
|||||||
from plinth.menu import main_menu
|
from plinth.menu import main_menu
|
||||||
from plinth.modules.names import SERVICES
|
from plinth.modules.names import SERVICES
|
||||||
from plinth.signals import domain_added, domain_removed
|
from plinth.signals import domain_added, domain_removed
|
||||||
from plinth.client import desktop_client, mobile_client
|
|
||||||
from .manifest import clients
|
from .manifest import clients
|
||||||
|
|
||||||
from . import utils
|
from . import utils
|
||||||
@ -56,17 +55,6 @@ description = [
|
|||||||
|
|
||||||
clients = clients
|
clients = clients
|
||||||
|
|
||||||
desktop_clients = [
|
|
||||||
desktop_client(name='Tor Browser',
|
|
||||||
url='https://www.torproject.org/download/download-easy'
|
|
||||||
'.html.en')]
|
|
||||||
|
|
||||||
mobile_clients = [
|
|
||||||
mobile_client(name='Orbot', fully_qualified_name='org.torproject.android',
|
|
||||||
fdroid_url='https://guardianproject.info/fdroid/',
|
|
||||||
play_store_url='https://play.google.com/store/apps/details'
|
|
||||||
'?id=org.torproject.android')]
|
|
||||||
|
|
||||||
reserved_usernames = ['debian-tor']
|
reserved_usernames = ['debian-tor']
|
||||||
|
|
||||||
socks_service = None
|
socks_service = None
|
||||||
|
|||||||
@ -23,15 +23,9 @@ import json
|
|||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from plinth import service as service_module
|
from plinth import service as service_module
|
||||||
<<<<<<< HEAD
|
|
||||||
from plinth import action_utils, actions, frontpage
|
from plinth import action_utils, actions, frontpage
|
||||||
from plinth.menu import main_menu
|
from plinth.menu import main_menu
|
||||||
from plinth.modules.users import add_group
|
from plinth.modules.users import add_group
|
||||||
=======
|
|
||||||
from plinth.client import web_client
|
|
||||||
from plinth.menu import main_menu
|
|
||||||
from .manifest import clients
|
|
||||||
>>>>>>> Add client information for Matrix Synapse and Syncthing
|
|
||||||
|
|
||||||
from .manifest import clients
|
from .manifest import clients
|
||||||
|
|
||||||
@ -54,11 +48,6 @@ description = [
|
|||||||
|
|
||||||
clients = clients
|
clients = clients
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
web_clients = [web_client(name='Transmission', url='/transmission')]
|
|
||||||
|
|
||||||
>>>>>>> Add client information for Matrix Synapse and Syncthing
|
|
||||||
reserved_usernames = ['debian-transmission']
|
reserved_usernames = ['debian-transmission']
|
||||||
|
|
||||||
service = None
|
service = None
|
||||||
|
|||||||
@ -28,7 +28,6 @@ from plinth import cfg
|
|||||||
from plinth import frontpage
|
from plinth import frontpage
|
||||||
from plinth import service as service_module
|
from plinth import service as service_module
|
||||||
from plinth.menu import main_menu
|
from plinth.menu import main_menu
|
||||||
from plinth.client import web_client, mobile_client
|
|
||||||
from .manifest import clients
|
from .manifest import clients
|
||||||
|
|
||||||
|
|
||||||
@ -61,15 +60,6 @@ description = [
|
|||||||
|
|
||||||
clients = clients
|
clients = clients
|
||||||
|
|
||||||
web_clients = [web_client(name='TT-RSS', url='/tt-rss')]
|
|
||||||
|
|
||||||
mobile_clients = [
|
|
||||||
mobile_client(name='TTRSS-Reader',
|
|
||||||
fully_qualified_name='org.ttrssreader',
|
|
||||||
play_store_url='https://play.google.com/store/apps/details'
|
|
||||||
'?id=org.ttrssreader',
|
|
||||||
fdroid_url='https://f-droid.org/packages/org.ttrssreader/')]
|
|
||||||
|
|
||||||
service = None
|
service = None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,7 @@
|
|||||||
{% for platform in client.platforms %}
|
{% for platform in client.platforms %}
|
||||||
{% if platform.type == 'web' %}
|
{% if platform.type == 'web' %}
|
||||||
<li>
|
<li>
|
||||||
<span><a href="{{ platform.relative_url }}">{{ client.name}}</a></span>
|
<span><a href="{{ platform.relative_url }}">{{ client.name}}</a></span>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user