this fixes #1 and improved the code base
This commit is contained in:
@ -2,4 +2,4 @@ import os
|
||||
|
||||
|
||||
def Title(title: str):
|
||||
return str(os.path.basename(title)).split('.')[0].title()
|
||||
return str(os.path.basename(title)).split('.')[0].title().replace('_', ' ')
|
||||
|
@ -1,6 +1,13 @@
|
||||
from modules import Home, Settings
|
||||
from apps import Apps
|
||||
from apps.plugins import Ooredoo, Dhiraagu, Medianet, Mwsc, Stelco
|
||||
from modules.settings.appSettings import (
|
||||
DhiraaguSettings,
|
||||
MedianetSettings,
|
||||
StelcoSettings,
|
||||
OoredooSettings,
|
||||
MwscSettings,
|
||||
)
|
||||
|
||||
|
||||
def views_handler(page):
|
||||
@ -10,6 +17,12 @@ def views_handler(page):
|
||||
|
||||
# settings
|
||||
views['/settings'] = Settings(page)
|
||||
views['/settings/dhiraagu'] = DhiraaguSettings(page)
|
||||
views['/settings/ooredoo'] = OoredooSettings(page)
|
||||
views['/settings/mwsc'] = MwscSettings(page)
|
||||
views['/settings/medianet'] = MedianetSettings(page)
|
||||
views['/settings/stelco'] = StelcoSettings(page)
|
||||
|
||||
# apps
|
||||
views['/apps'] = Apps(page)
|
||||
views['/apps/dhiraagu'] = Dhiraagu(page)
|
||||
|
Reference in New Issue
Block a user