#266 returning approved mistake for recitations to be shown on the website and versionng js/css files
This commit is contained in:
parent
190456d59d
commit
c434ece31d
@ -15,7 +15,7 @@
|
||||
گنجور » نمایش خوانش
|
||||
</title>
|
||||
<link href="~/dist/skin/pink.flag/css/jplayer.pink.flag.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="~/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="~/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
<script>
|
||||
@ -149,7 +149,7 @@
|
||||
</p>
|
||||
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="~/js/bk.js?version=16"></script>
|
||||
<script src="~/js/bk.js?version=17"></script>
|
||||
<script src="~/js/jplayersupport.js"></script>
|
||||
<script src="~/js/vaabd.js"></script>
|
||||
<script src="~/dist/jplayer/jquery.jplayer.min.js"></script>
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<title>انتخاب قطعهٔ موسیقی مرتبط با شعر از بیپتونز</title>
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link href="/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/spotify.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
<script src="/lib/jquery/dist/jquery.min.js"></script>
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
@ViewData["Title"]
|
||||
</title>
|
||||
|
||||
<link href="/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<title>انتخاب قطعهای از برنامهٔ گلها مرتبط با این شعر</title>
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link href="/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/spotify.css" rel="stylesheet" type="text/css" />
|
||||
<script src="/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="~/js/golha.js"></script>
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
{
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
}
|
||||
<link href="/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/fab.css" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
@ -24,7 +24,7 @@
|
||||
<script>
|
||||
var playerScrollLock = false;
|
||||
</script>
|
||||
<script src="/js/bk.js?version=16"></script>
|
||||
<script src="/js/bk.js?version=17"></script>
|
||||
|
||||
@if (Model.IsHomePage)
|
||||
{
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link href="/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="hdr">
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="description" content="شاعران و نویسندگان گنجور روی نقشهٔ جغرافیایی" />
|
||||
<meta charset="utf-8" />
|
||||
<link href="/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
<link rel="stylesheet" href="/css/leaflet.css" />
|
||||
<style>
|
||||
.leaflet-container {
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<title>پیشنهاد شعر مرتبط با تصویر</title>
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link href="/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/spotify.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
<script src="/lib/jquery/dist//jquery.min.js"></script>
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<title>درخواست حذف حاشیه</title>
|
||||
<script src="/lib/jquery/dist/jquery.min.js"></script>
|
||||
<link href="/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
<style>
|
||||
label {
|
||||
width: 100px;
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<title>گزارش خطا در خوانش</title>
|
||||
<script src="/lib/jquery/dist/jquery.min.js"></script>
|
||||
<link href="/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
<style>
|
||||
label {
|
||||
width: 100px;
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link href="/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="hdr">
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
@ViewData["Title"]
|
||||
</title>
|
||||
|
||||
<link href="/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/fab.css" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
@ -187,7 +187,7 @@
|
||||
</div>
|
||||
|
||||
<script src="/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="/js/bk.js?version=16"></script>
|
||||
<script src="/js/bk.js?version=17"></script>
|
||||
<script src="/js/vaabd.js"></script>
|
||||
|
||||
@if (!string.IsNullOrEmpty(ViewData["GoogleAnalyticsCode"].ToString()))
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" />
|
||||
<link href="/dist/skin/blue.monday/css/jplayer.blue.monday.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/fab.css" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" />
|
||||
<link href="/dist/skin/blue.monday/css/jplayer.blue.monday.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/fab.css" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link href="/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="hdr">
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<title>انتخاب قطعهٔ موسیقی مرتبط با شعر از اسپاتیفای</title>
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link href="/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/spotify.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
<script src="/lib/jquery/dist/jquery.min.js"></script>
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
گنجور » برگردانها و نویسهای شعر
|
||||
</title>
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
<link href="~/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="~/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
</head>
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
@ViewData["Title"]
|
||||
</title>
|
||||
|
||||
<link href="/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
@ViewData["Title"]
|
||||
</title>
|
||||
|
||||
<link href="/css/p8.css?version=23" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=24" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
|
||||
|
||||
@ -97,5 +97,10 @@ namespace RMuseum.Models.GanjoorAudio.ViewModels
|
||||
/// </summary>
|
||||
public string HtmlText { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// mistakes
|
||||
/// </summary>
|
||||
public RecitationMistakeViewModel[] Mistakes { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,23 @@
|
||||
namespace RMuseum.Models.GanjoorAudio.ViewModels
|
||||
{
|
||||
/// <summary>
|
||||
/// approved mistake view model
|
||||
/// </summary>
|
||||
public class RecitationMistakeViewModel
|
||||
{
|
||||
/// <summary>
|
||||
/// mistake
|
||||
/// </summary>
|
||||
public string Mistake { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// number of verses affected
|
||||
/// </summary>
|
||||
public int NumberOfLinesAffected { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// couplet index
|
||||
/// </summary>
|
||||
public int CoupletIndex { get; set; }
|
||||
}
|
||||
}
|
||||
@ -4059,6 +4059,11 @@
|
||||
Poem Html Text
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:RMuseum.Models.GanjoorAudio.ViewModels.PublicRecitationViewModel.Mistakes">
|
||||
<summary>
|
||||
mistakes
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:RMuseum.Models.GanjoorAudio.ViewModels.RecitationErrorReportViewModel">
|
||||
<summary>
|
||||
Post Error Report for recitations
|
||||
@ -4099,6 +4104,26 @@
|
||||
DateTime
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:RMuseum.Models.GanjoorAudio.ViewModels.RecitationMistakeViewModel">
|
||||
<summary>
|
||||
approved mistake view model
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:RMuseum.Models.GanjoorAudio.ViewModels.RecitationMistakeViewModel.Mistake">
|
||||
<summary>
|
||||
mistake
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:RMuseum.Models.GanjoorAudio.ViewModels.RecitationMistakeViewModel.NumberOfLinesAffected">
|
||||
<summary>
|
||||
number of verses affected
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:RMuseum.Models.GanjoorAudio.ViewModels.RecitationMistakeViewModel.CoupletIndex">
|
||||
<summary>
|
||||
couplet index
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:RMuseum.Models.GanjoorAudio.ViewModels.RecitationModerateViewModel">
|
||||
<summary>
|
||||
Poem Narration Moderation View Model
|
||||
|
||||
@ -547,7 +547,20 @@ namespace RMuseum.Services.Implementation
|
||||
PlainText = "", //poem.PlainText
|
||||
HtmlText = "",//poem.HtmlText
|
||||
};
|
||||
return new RServiceResult<PublicRecitationViewModel[]>(await source.AsNoTracking().ToArrayAsync());
|
||||
var recitations = await source.AsNoTracking().ToArrayAsync();
|
||||
foreach (var recitation in recitations)
|
||||
{
|
||||
recitation.Mistakes =
|
||||
await _context.RecitationApprovedMistakes.AsNoTracking()
|
||||
.Where(m => m.RecitationId == recitation.Id)
|
||||
.Select(m => new RecitationMistakeViewModel()
|
||||
{
|
||||
Mistake = m.Mistake,
|
||||
NumberOfLinesAffected = m.NumberOfLinesAffected,
|
||||
CoupletIndex = m.CoupletIndex
|
||||
}).ToArrayAsync();
|
||||
}
|
||||
return new RServiceResult<PublicRecitationViewModel[]>(recitations);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user