懒得勤快 3 years ago
parent
commit
3537991bdc

+ 2 - 2
src/Masuit.MyBlogs.Core/Views/Seminar/Index.cshtml

@@ -55,7 +55,7 @@
         </h2>
         <div class="divider"></div>
         <p class="size24">
-            @ViewBag.SubTitle
+            @Html.Raw(ViewBag.SubTitle)
         </p>
     </div>
 </div>
@@ -68,7 +68,7 @@
                 </h3>
             </div>
             <p>
-                @ViewBag.Desc
+                @Html.Raw(ViewBag.Desc)
             </p>
         </div>
     </div>

+ 4 - 4
src/Masuit.MyBlogs.Core/Views/Shared/_Layout.cshtml

@@ -1,5 +1,5 @@
-@inject IMenuService _menuService;
-@inject ILinksService _linksService;
+@inject IMenuService MenuService;
+@inject ILinksService LinksService;
 @using Masuit.MyBlogs.Core.Common
 @using Masuit.MyBlogs.Core.Infrastructure.Services.Interface
 @using Masuit.MyBlogs.Core.Models.DTO
@@ -19,9 +19,9 @@
 
 @{
     string[] colors = { "success", "info", "warning", "danger", "default" };
-    List<Menu> menus = _menuService.GetQueryFromCache(m => m.Status == Status.Available,m => m.Sort).ToPooledList().ToTree(m => m.Id,m => m.ParentId);
+    var menus = MenuService.GetQueryFromCache(m => m.Status == Status.Available,m => m.Sort).ToTree(m => m.Id,m => m.ParentId);
     var user = Context.Session.Get<UserInfoDto>(SessionKey.UserInfo) ?? new UserInfoDto();
-    using var links = _linksService.GetQuery(l => l.Status == Status.Available).OrderByDescending(l => l.Recommend).ThenByDescending(l => l.Loopbacks.GroupBy(x => x.IP).Count()).Take(30).Select(e => new{e.Url,e.Name}).FromCache().ToPooledList();
+    using var links = LinksService.GetQuery(l => l.Status == Status.Available).OrderByDescending(l => l.Recommend).ThenByDescending(l => l.Loopbacks.GroupBy(x => x.IP).Count()).Take(30).Select(e => new{e.Url,e.Name}).FromCache().ToPooledList();
 }
 
 <!DOCTYPE html>

+ 1 - 1
src/Masuit.MyBlogs.Core/wwwroot/ng-views/controllers/seminar.js

@@ -66,7 +66,7 @@
 			html:
 				'<div class="input-group"><span class="input-group-addon">专题名称: </span><div class="fg-line"><input id="title" type="text" class="form-control input-lg" autofocus placeholder="请输入专题名称" value="'+row.Title+'"></div></div>' +
 			'<div class="input-group"><span class="input-group-addon">子标题: </span><div class="fg-line"><input id="subtitle" type="text" class="form-control input-lg" placeholder="请输入专题子标题" value="' + row.SubTitle +'"></div></div>' +
-			'<div class="input-group"><span class="input-group-addon">专题描述:</span><div class="fg-line"><textarea id="desc" rows="5" class="form-control" placeholder="请输入专题描述" value="' + row.Description + '">' + row.Description +'</textarea></div></div>',
+			'<div class="input-group"><span class="input-group-addon">专题描述:</span><div class="fg-line"><textarea id="desc" rows="10" class="form-control" placeholder="请输入专题描述">' + row.Description +'</textarea></div></div>',
 			showCloseButton: true,
 			confirmButtonColor: "#DD6B55",
 			confirmButtonText: "确定",

+ 1 - 1
src/Masuit.MyBlogs.Core/wwwroot/ng-views/controllers/system.js

@@ -33,7 +33,7 @@ myApp.controller("system", ["$scope", "$http", function($scope, $http) {
         });
 		scriptEditor.onDidChangeModelContent(function(e) {
             $scope.$apply(function () {
-			   $scope.Settings.Styles = scriptEditor.getValue();
+			   $scope.Settings.Scripts = scriptEditor.getValue();
 			});
         });
     });