From 07994e0a408638639b929b40661bc6faa61679fd Mon Sep 17 00:00:00 2001 From: dkanada Date: Sun, 15 Dec 2019 23:53:13 +0900 Subject: [PATCH] move authentication and playback controllers to subdirectories --- src/controllers/{ => auth}/addserver.js | 0 src/controllers/{ => auth}/forgotpassword.js | 0 .../{ => auth}/forgotpasswordpin.js | 0 .../{loginpage.js => auth/login.js} | 0 src/controllers/{ => auth}/selectserver.js | 0 .../{ => playback}/nowplayingpage.js | 0 src/controllers/{ => playback}/videoosd.js | 0 .../access.js} | 0 .../{wizardfinishpage.js => wizard/finish.js} | 0 .../{wizardsettings.js => wizard/settings.js} | 0 .../{wizardstart.js => wizard/start.js} | 0 .../{wizarduserpage.js => wizard/user.js} | 0 src/scripts/routes.js | 24 +++++++++---------- 13 files changed, 12 insertions(+), 12 deletions(-) rename src/controllers/{ => auth}/addserver.js (100%) rename src/controllers/{ => auth}/forgotpassword.js (100%) rename src/controllers/{ => auth}/forgotpasswordpin.js (100%) rename src/controllers/{loginpage.js => auth/login.js} (100%) rename src/controllers/{ => auth}/selectserver.js (100%) rename src/controllers/{ => playback}/nowplayingpage.js (100%) rename src/controllers/{ => playback}/videoosd.js (100%) rename src/controllers/{wizardremoteaccess.js => wizard/access.js} (100%) rename src/controllers/{wizardfinishpage.js => wizard/finish.js} (100%) rename src/controllers/{wizardsettings.js => wizard/settings.js} (100%) rename src/controllers/{wizardstart.js => wizard/start.js} (100%) rename src/controllers/{wizarduserpage.js => wizard/user.js} (100%) diff --git a/src/controllers/addserver.js b/src/controllers/auth/addserver.js similarity index 100% rename from src/controllers/addserver.js rename to src/controllers/auth/addserver.js diff --git a/src/controllers/forgotpassword.js b/src/controllers/auth/forgotpassword.js similarity index 100% rename from src/controllers/forgotpassword.js rename to src/controllers/auth/forgotpassword.js diff --git a/src/controllers/forgotpasswordpin.js b/src/controllers/auth/forgotpasswordpin.js similarity index 100% rename from src/controllers/forgotpasswordpin.js rename to src/controllers/auth/forgotpasswordpin.js diff --git a/src/controllers/loginpage.js b/src/controllers/auth/login.js similarity index 100% rename from src/controllers/loginpage.js rename to src/controllers/auth/login.js diff --git a/src/controllers/selectserver.js b/src/controllers/auth/selectserver.js similarity index 100% rename from src/controllers/selectserver.js rename to src/controllers/auth/selectserver.js diff --git a/src/controllers/nowplayingpage.js b/src/controllers/playback/nowplayingpage.js similarity index 100% rename from src/controllers/nowplayingpage.js rename to src/controllers/playback/nowplayingpage.js diff --git a/src/controllers/videoosd.js b/src/controllers/playback/videoosd.js similarity index 100% rename from src/controllers/videoosd.js rename to src/controllers/playback/videoosd.js diff --git a/src/controllers/wizardremoteaccess.js b/src/controllers/wizard/access.js similarity index 100% rename from src/controllers/wizardremoteaccess.js rename to src/controllers/wizard/access.js diff --git a/src/controllers/wizardfinishpage.js b/src/controllers/wizard/finish.js similarity index 100% rename from src/controllers/wizardfinishpage.js rename to src/controllers/wizard/finish.js diff --git a/src/controllers/wizardsettings.js b/src/controllers/wizard/settings.js similarity index 100% rename from src/controllers/wizardsettings.js rename to src/controllers/wizard/settings.js diff --git a/src/controllers/wizardstart.js b/src/controllers/wizard/start.js similarity index 100% rename from src/controllers/wizardstart.js rename to src/controllers/wizard/start.js diff --git a/src/controllers/wizarduserpage.js b/src/controllers/wizard/user.js similarity index 100% rename from src/controllers/wizarduserpage.js rename to src/controllers/wizard/user.js diff --git a/src/scripts/routes.js b/src/scripts/routes.js index 87f55650fd..0e4544bb6f 100644 --- a/src/scripts/routes.js +++ b/src/scripts/routes.js @@ -29,40 +29,40 @@ define([ autoFocus: false, anonymous: true, startup: true, - controller: "selectserver" + controller: "auth/selectserver" }); defineRoute({ path: "/addserver.html", autoFocus: false, anonymous: true, startup: true, - controller: "addserver" + controller: "auth/addserver" }); defineRoute({ path: "/login.html", autoFocus: false, anonymous: true, startup: true, - controller: "loginpage" + controller: "auth/login" }); defineRoute({ path: "/forgotpassword.html", anonymous: true, startup: true, - controller: "forgotpassword" + controller: "auth/forgotpassword" }); defineRoute({ path: "/forgotpasswordpin.html", autoFocus: false, anonymous: true, startup: true, - controller: "forgotpasswordpin" + controller: "auth/forgotpasswordpin" }); // playback defineRoute({ path: "/nowplaying.html", - controller: "nowplayingpage", + controller: "playback/nowplaying", autoFocus: false, transition: "fade", fullscreen: true, @@ -72,7 +72,7 @@ define([ defineRoute({ path: "/videoosd.html", transition: "fade", - controller: "videoosd", + controller: "playback/videoosd", autoFocus: false, type: "video-osd", supportsThemeMedia: true, @@ -401,13 +401,13 @@ define([ path: "/wizardremoteaccess.html", autoFocus: false, anonymous: true, - controller: "wizardremoteaccess" + controller: "wizard/access" }); defineRoute({ path: "/wizardfinish.html", autoFocus: false, anonymous: true, - controller: "wizardfinishpage" + controller: "wizard/finish" }); defineRoute({ path: "/wizardlibrary.html", @@ -419,17 +419,17 @@ define([ path: "/wizardsettings.html", autoFocus: false, anonymous: true, - controller: "wizardsettings" + controller: "wizard/settings" }); defineRoute({ path: "/wizardstart.html", autoFocus: false, anonymous: true, - controller: "wizardstart" + controller: "wizard/start" }); defineRoute({ path: "/wizarduser.html", - controller: "wizarduserpage", + controller: "wizard/user", autoFocus: false, anonymous: true });