Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
1f4b5ad34e | |||
10cfec30f9 | |||
d41c4d2b2d | |||
bc7b16ecb4 | |||
081523b510 | |||
856e30aacc |
31
HISTORY.md
31
HISTORY.md
@@ -5,6 +5,37 @@ Changelog
|
|||||||
(unreleased)
|
(unreleased)
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
Fix
|
||||||
|
~~~
|
||||||
|
- Issues with index page for unauthenticated users, refs NOISSUE. [Simon
|
||||||
|
Diesenreiter]
|
||||||
|
|
||||||
|
|
||||||
|
0.6.2 (2025-07-20)
|
||||||
|
------------------
|
||||||
|
|
||||||
|
Fix
|
||||||
|
~~~
|
||||||
|
- Build issues, refs NOISSUE. [Simon Diesenreiter]
|
||||||
|
|
||||||
|
Other
|
||||||
|
~~~~~
|
||||||
|
|
||||||
|
|
||||||
|
0.6.1 (2025-07-20)
|
||||||
|
------------------
|
||||||
|
|
||||||
|
Fix
|
||||||
|
~~~
|
||||||
|
- Remove local debugging configs, refs NOISSUE. [Simon Diesenreiter]
|
||||||
|
|
||||||
|
Other
|
||||||
|
~~~~~
|
||||||
|
|
||||||
|
|
||||||
|
0.6.0 (2025-07-20)
|
||||||
|
------------------
|
||||||
|
|
||||||
Fix
|
Fix
|
||||||
~~~
|
~~~
|
||||||
- Formatting, refs NOISSUE. [Simon Diesenreiter]
|
- Formatting, refs NOISSUE. [Simon Diesenreiter]
|
||||||
|
@@ -11,8 +11,11 @@
|
|||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
<th>Song</th>
|
<th>Song</th>
|
||||||
<th>Submitter</th>
|
<th>Submitter</th>
|
||||||
<th>Details</th>
|
@if(@User.Identity.IsAuthenticated)
|
||||||
<th></th>
|
{
|
||||||
|
<th>Details</th>
|
||||||
|
<th></th>
|
||||||
|
}
|
||||||
</tr>
|
</tr>
|
||||||
@foreach(var songSuggestion in Model.SongSuggestions)
|
@foreach(var songSuggestion in Model.SongSuggestions)
|
||||||
{
|
{
|
||||||
@@ -26,18 +29,21 @@
|
|||||||
<td>@songSuggestion?.Date.ToString("dd. MM. yyyy")</td>
|
<td>@songSuggestion?.Date.ToString("dd. MM. yyyy")</td>
|
||||||
<td><a href="@songSuggestion?.Song.Url" target="_blank">@string.Format("{0} - {1}", songSuggestion?.Song.Name, songSuggestion?.Song.Artist)</a></td>
|
<td><a href="@songSuggestion?.Song.Url" target="_blank">@string.Format("{0} - {1}", songSuggestion?.Song.Name, songSuggestion?.Song.Artist)</a></td>
|
||||||
<td>@displayName</td>
|
<td>@displayName</td>
|
||||||
<td><a href="/SongSubmission/@songSuggestion?.Id">View</a></td>
|
@if(@User.Identity.IsAuthenticated)
|
||||||
<td class="=viewLike">
|
{
|
||||||
@if(songSuggestion?.Song != null)
|
<td><a href="/SongSubmission/@songSuggestion?.Id">View</a></td>
|
||||||
{
|
<td class="=viewLike">
|
||||||
var handler = Model.HasUserLikedThisSong(@songSuggestion.Song) ? "UnlikeSong" : "LikeSong";
|
@if(songSuggestion?.Song != null)
|
||||||
var likebuttonText = Model.HasUserLikedThisSong(@songSuggestion.Song) ? "Unlike" : "Like";
|
{
|
||||||
<form method="post">
|
var handler = Model.HasUserLikedThisSong(@songSuggestion.Song) ? "UnlikeSong" : "LikeSong";
|
||||||
<input name="songId" value="@songSuggestion.Song.SongId" type="hidden" />
|
var likebuttonText = Model.HasUserLikedThisSong(@songSuggestion.Song) ? "Unlike" : "Like";
|
||||||
<input type="submit" id="songlike" value="@likebuttonText" asp-page-handler="@handler" />
|
<form method="post">
|
||||||
</form>
|
<input name="songId" value="@songSuggestion.Song.SongId" type="hidden" />
|
||||||
}
|
<input type="submit" id="songlike" value="@likebuttonText" asp-page-handler="@handler" />
|
||||||
</td>
|
</form>
|
||||||
|
}
|
||||||
|
</td>
|
||||||
|
}
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -57,6 +57,7 @@ userCheckTimer.OnOccurence += async (s, ea) =>
|
|||||||
LdapUserName = string.Empty,
|
LdapUserName = string.Empty,
|
||||||
AssociationInProgress = false,
|
AssociationInProgress = false,
|
||||||
WasChosenForSuggestionThisRound = false,
|
WasChosenForSuggestionThisRound = false,
|
||||||
|
LikedSongs = new List<Song>()
|
||||||
};
|
};
|
||||||
dci.Users?.Add(newUser);
|
dci.Users?.Add(newUser);
|
||||||
needsSaving = true;
|
needsSaving = true;
|
||||||
|
@@ -77,7 +77,7 @@ public class SpotifyApiClient
|
|||||||
|
|
||||||
public string GetLoginRedirectUri()
|
public string GetLoginRedirectUri()
|
||||||
{
|
{
|
||||||
return "http://127.0.0.1:5000/SpotifyLogin";
|
return AppConfiguration.Instance.WebUIBaseURL + (AppConfiguration.Instance.WebUIBaseURL.EndsWith("/") ? "SpotifyLogin" : "/SpotifyLogin");
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool IsAuthTokenExpired(User user)
|
private bool IsAuthTokenExpired(User user)
|
||||||
|
@@ -1 +1 @@
|
|||||||
0.6.0
|
0.6.3
|
||||||
|
Reference in New Issue
Block a user