Remove .html from routes

This commit is contained in:
Bill Thornton
2025-03-17 15:39:21 -04:00
parent ccc9f52aec
commit d6353f27b8
44 changed files with 178 additions and 178 deletions
+1 -1
View File
@@ -1995,7 +1995,7 @@ export default function (view, params) {
function onCancelSeriesTimerClick() {
import('../../components/recordingcreator/recordinghelper').then(({ default: recordingHelper }) => {
recordingHelper.cancelSeriesTimerWithConfirmation(currentItem.Id, currentItem.ServerId).then(function () {
Dashboard.navigate('livetv.html');
Dashboard.navigate('livetv');
});
});
}
+6 -6
View File
@@ -3,7 +3,7 @@
<div class="pageTabContent" id="suggestionsTab" data-index="0">
<div id="activePrograms" class="verticalSection">
<div class="sectionTitleContainer sectionTitleContainer-cards padded-left">
<a href="#/list.html?type=Programs&IsAiring=true" is="emby-linkbutton" class="button-flat button-flat-mini sectionTitleTextButton sectionTitleTextButton-programs">
<a href="#/list?type=Programs&IsAiring=true" is="emby-linkbutton" class="button-flat button-flat-mini sectionTitleTextButton sectionTitleTextButton-programs">
<h2 class="sectionTitle sectionTitle-cards" style="display: inline-block; vertical-align: middle;">${HeaderOnNow}</h2>
<span class="material-icons chevron_right" aria-hidden="true"></span>
</a>
@@ -12,7 +12,7 @@
</div>
<div id="upcomingEpisodes" class="verticalSection">
<div class="sectionTitleContainer sectionTitleContainer-cards padded-left">
<a href="#/list.html?type=Programs&IsSeries=true&IsMovie=false&IsNews=false" is="emby-linkbutton" class="button-flat button-flat-mini sectionTitleTextButton sectionTitleTextButton-programs">
<a href="#/list?type=Programs&IsSeries=true&IsMovie=false&IsNews=false" is="emby-linkbutton" class="button-flat button-flat-mini sectionTitleTextButton sectionTitleTextButton-programs">
<h2 class="sectionTitle sectionTitle-cards" style="display: inline-block; vertical-align: middle;">${Shows}</h2>
<span class="material-icons chevron_right" aria-hidden="true"></span>
</a>
@@ -21,7 +21,7 @@
</div>
<div id="upcomingTvMovies" class="verticalSection">
<div class="sectionTitleContainer sectionTitleContainer-cards padded-left">
<a href="#/list.html?type=Programs&IsMovie=true" is="emby-linkbutton" class="button-flat button-flat-mini sectionTitleTextButton sectionTitleTextButton-programs">
<a href="#/list?type=Programs&IsMovie=true" is="emby-linkbutton" class="button-flat button-flat-mini sectionTitleTextButton sectionTitleTextButton-programs">
<h2 class="sectionTitle sectionTitle-cards" style="display: inline-block; vertical-align: middle;">${Movies}</h2>
<span class="material-icons chevron_right" aria-hidden="true"></span>
</a>
@@ -30,7 +30,7 @@
</div>
<div id="upcomingSports" class="verticalSection">
<div class="sectionTitleContainer sectionTitleContainer-cards padded-left">
<a href="#/list.html?type=Programs&IsSports=true" is="emby-linkbutton" class="button-flat button-flat-mini sectionTitleTextButton sectionTitleTextButton-programs">
<a href="#/list?type=Programs&IsSports=true" is="emby-linkbutton" class="button-flat button-flat-mini sectionTitleTextButton sectionTitleTextButton-programs">
<h2 class="sectionTitle sectionTitle-cards" style="display: inline-block; vertical-align: middle;">${Sports}</h2>
<span class="material-icons chevron_right" aria-hidden="true"></span>
</a>
@@ -39,7 +39,7 @@
</div>
<div id="upcomingKids" class="verticalSection">
<div class="sectionTitleContainer sectionTitleContainer-cards padded-left">
<a href="#/list.html?type=Programs&IsKids=true" is="emby-linkbutton" class="button-flat button-flat-mini sectionTitleTextButton sectionTitleTextButton-programs">
<a href="#/list?type=Programs&IsKids=true" is="emby-linkbutton" class="button-flat button-flat-mini sectionTitleTextButton sectionTitleTextButton-programs">
<h2 class="sectionTitle sectionTitle-cards" style="display: inline-block; vertical-align: middle;">${HeaderForKids}</h2>
<span class="material-icons chevron_right" aria-hidden="true"></span>
</a>
@@ -48,7 +48,7 @@
</div>
<div id="upcomingNews" class="verticalSection">
<div class="sectionTitleContainer sectionTitleContainer-cards padded-left">
<a href="#/list.html?type=Programs&IsNews=true" is="emby-linkbutton" class="button-flat button-flat-mini sectionTitleTextButton sectionTitleTextButton-programs">
<a href="#/list?type=Programs&IsNews=true" is="emby-linkbutton" class="button-flat button-flat-mini sectionTitleTextButton sectionTitleTextButton-programs">
<h2 class="sectionTitle sectionTitle-cards" style="display: inline-block; vertical-align: middle;">${News}</h2>
<span class="material-icons chevron_right" aria-hidden="true"></span>
</a>
+1 -1
View File
@@ -70,7 +70,7 @@ function onMoreClick() {
const type = this.getAttribute('data-type');
if (type === 'latest') {
Dashboard.navigate('list.html?type=Recordings&serverId=' + ApiClient.serverId());
Dashboard.navigate('list?type=Recordings&serverId=' + ApiClient.serverId());
}
}
+1 -1
View File
@@ -323,7 +323,7 @@ export default function (view, params) {
function onInputCommand(evt) {
if (evt.detail.command === 'search') {
evt.preventDefault();
Dashboard.navigate('search.html?collectionType=livetv');
Dashboard.navigate('search?collectionType=livetv');
}
}
+1 -1
View File
@@ -370,7 +370,7 @@ export default function (view, params) {
function onInputCommand(e) {
if (e.detail.command === 'search') {
e.preventDefault();
Dashboard.navigate('search.html?collectionType=movies&parentId=' + params.topParentId);
Dashboard.navigate('search?collectionType=movies&parentId=' + params.topParentId);
}
}
+1 -1
View File
@@ -348,7 +348,7 @@ export default function (view, params) {
function onInputCommand(e) {
if (e.detail.command === 'search') {
e.preventDefault();
Dashboard.navigate('search.html?collectionType=music&parentId=' + params.topParentId);
Dashboard.navigate('search?collectionType=music&parentId=' + params.topParentId);
}
}
+3 -3
View File
@@ -12,14 +12,14 @@ function handleConnectionResult(page, result) {
case ConnectionState.SignedIn: {
const apiClient = result.ApiClient;
Dashboard.onServerChanged(apiClient.getCurrentUserId(), apiClient.accessToken(), apiClient);
Dashboard.navigate('home.html');
Dashboard.navigate('home');
break;
}
case ConnectionState.ServerSignIn:
Dashboard.navigate('login.html?serverid=' + result.Servers[0].Id, false, 'none');
Dashboard.navigate('login?serverid=' + result.Servers[0].Id, false, 'none');
break;
case ConnectionState.ServerSelection:
Dashboard.navigate('selectserver.html', false, 'none');
Dashboard.navigate('selectserver', false, 'none');
break;
case ConnectionState.ServerUpdateNeeded:
Dashboard.alert({
@@ -30,7 +30,7 @@ function processForgotPasswordResult(result) {
message: msg,
title: globalize.translate('ButtonForgotPassword'),
callback: function () {
Dashboard.navigate('forgotpasswordpin.html');
Dashboard.navigate('forgotpasswordpin');
}
});
}
+3 -3
View File
@@ -110,7 +110,7 @@ function authenticateQuickConnect(apiClient, targetUrl) {
function onLoginSuccessful(id, accessToken, apiClient, url) {
Dashboard.onServerChanged(id, accessToken, apiClient);
Dashboard.navigate(url || 'home.html');
Dashboard.navigate(url || 'home');
}
function showManualForm(context, showCancel, focusPassword) {
@@ -201,7 +201,7 @@ export default function (view, params) {
}
}
return '/home.html';
return '/home';
}
function showVisualForm() {
@@ -243,7 +243,7 @@ export default function (view, params) {
return false;
});
view.querySelector('.btnForgotPassword').addEventListener('click', function () {
Dashboard.navigate('forgotpassword.html');
Dashboard.navigate('forgotpassword');
});
view.querySelector('.btnCancel').addEventListener('click', showVisualForm);
view.querySelector('.btnQuick').addEventListener('click', function () {
@@ -9,7 +9,7 @@
</div>
</div>
<div class="padded-top padded-left padded-right flex flex-shrink-zero justify-content-center verticalSection flex-wrap-wrap margin-auto-x">
<a is="emby-linkbutton" href="#/addserver.html" class="raised cancel btnAddServer flex-shrink-zero" style="margin: .25em;">
<a is="emby-linkbutton" href="#/addserver" class="raised cancel btnAddServer flex-shrink-zero" style="margin: .25em;">
<span>${ButtonAddServer}</span>
</a>
</div>
@@ -115,12 +115,12 @@ export default function (view, params) {
switch (result.State) {
case ConnectionState.SignedIn:
Dashboard.onServerChanged(apiClient.getCurrentUserId(), apiClient.accessToken(), apiClient);
Dashboard.navigate('home.html');
Dashboard.navigate('home');
break;
case ConnectionState.ServerSignIn:
Dashboard.onServerChanged(null, null, apiClient);
Dashboard.navigate('login.html?serverid=' + result.Servers[0].Id);
Dashboard.navigate('login?serverid=' + result.Servers[0].Id);
break;
case ConnectionState.ServerUpdateNeeded:
+1 -1
View File
@@ -333,7 +333,7 @@ export default function (view, params) {
function onInputCommand(e) {
if (e.detail.command === 'search') {
e.preventDefault();
Dashboard.navigate(`search.html?collectionType=${CollectionType.Tvshows}&parentId=${params.topParentId}`);
Dashboard.navigate(`search?collectionType=${CollectionType.Tvshows}&parentId=${params.topParentId}`);
}
}
+6 -6
View File
@@ -26,13 +26,13 @@ export default function (view, params) {
const userId = params.userId || Dashboard.getCurrentUserId();
const page = this;
page.querySelector('.lnkUserProfile').setAttribute('href', '#/userprofile.html?userId=' + userId);
page.querySelector('.lnkDisplayPreferences').setAttribute('href', '#/mypreferencesdisplay.html?userId=' + userId);
page.querySelector('.lnkHomePreferences').setAttribute('href', '#/mypreferenceshome.html?userId=' + userId);
page.querySelector('.lnkPlaybackPreferences').setAttribute('href', '#/mypreferencesplayback.html?userId=' + userId);
page.querySelector('.lnkSubtitlePreferences').setAttribute('href', '#/mypreferencessubtitles.html?userId=' + userId);
page.querySelector('.lnkUserProfile').setAttribute('href', '#/userprofile?userId=' + userId);
page.querySelector('.lnkDisplayPreferences').setAttribute('href', '#/mypreferencesdisplay?userId=' + userId);
page.querySelector('.lnkHomePreferences').setAttribute('href', '#/mypreferenceshome?userId=' + userId);
page.querySelector('.lnkPlaybackPreferences').setAttribute('href', '#/mypreferencesplayback?userId=' + userId);
page.querySelector('.lnkSubtitlePreferences').setAttribute('href', '#/mypreferencessubtitles?userId=' + userId);
page.querySelector('.lnkQuickConnectPreferences').setAttribute('href', '#/quickconnect?userId=' + userId);
page.querySelector('.lnkControlsPreferences').setAttribute('href', '#/mypreferencescontrols.html?userId=' + userId);
page.querySelector('.lnkControlsPreferences').setAttribute('href', '#/mypreferencescontrols?userId=' + userId);
const supportsClientSettings = appHost.supports('clientsettings');
page.querySelector('.clientSettings').classList.toggle('hide', !supportsClientSettings);
+1 -1
View File
@@ -361,7 +361,7 @@ function getVirtualFolderHtml(page, virtualFolder, index) {
window.WizardLibraryPage = {
next: function () {
Dashboard.navigate('wizardsettings.html');
Dashboard.navigate('wizardsettings');
}
};
pageClassOn('pageshow', 'mediaLibraryPage', function () {
+1 -1
View File
@@ -23,7 +23,7 @@ function save(page) {
}
function navigateToNextPage() {
Dashboard.navigate('wizardfinish.html');
Dashboard.navigate('wizardfinish');
}
function onSubmit(e) {
+1 -1
View File
@@ -66,7 +66,7 @@ function reload(page) {
}
function navigateToNextPage() {
Dashboard.navigate('wizardremoteaccess.html');
Dashboard.navigate('wizardremoteaccess');
}
function onSubmit(e) {
+1 -1
View File
@@ -24,7 +24,7 @@ function save(page) {
url: apiClient.getUrl('Startup/Configuration'),
contentType: 'application/json'
}).then(function () {
Dashboard.navigate('wizarduser.html');
Dashboard.navigate('wizarduser');
});
});
}
+1 -1
View File
@@ -11,7 +11,7 @@ function getApiClient() {
}
function nextWizardPage() {
Dashboard.navigate('wizardlibrary.html')
Dashboard.navigate('wizardlibrary')
.catch(err => {
console.error('[Wizard > User] error navigating to library setup', err);
});