src/ZKEACMS.WebHost/DefaultResourceManager.cs

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/* http://www.zkea.net/ 
 * Copyright (c) ZKEASOFT. All rights reserved. 
 * http://www.zkea.net/licenses */

using Easy.Mvc.Resource;
using System;

namespace ZKEACMS.WebHost
{
    public class DefaultResourceManager : ResourceManager
    {
        const string LibraryPath = "~/lib";
        const string ScriptPath = "~/js";
        const string StylePath = "~/css";
        public override string Name { get; }
        protected override void InitScript(Func<string, ResourceHelper> script)
        {

            script("jQuery")
                .Include($"{LibraryPath}/jquery/dist/jquery.js", $"{LibraryPath}/jquery/dist/jquery.min.js").RequiredAtHead();

            script("bootStrap")
                .Include($"{LibraryPath}/bootstrap/dist/js/bootstrap.js", $"{LibraryPath}/bootstrap/dist/js/bootstrap.min.js").RequiredAtFoot();

            script("jQueryUi")
                .Include($"{LibraryPath}/jquery-ui/jquery-ui.js", $"{LibraryPath}/jquery-ui/jquery-ui.min.js");

            script("jQueryUi-sortable")
                .Include($"{LibraryPath}/jquery-ui/jquery-ui-sortalbe.js", $"{LibraryPath}/jquery-ui/jquery-ui-sortalbe.min.js");

            script("Easy")
                .Include($"{ScriptPath}/EasyPlug/Easy.js", $"{ScriptPath}/EasyPlug/Easy.min.js").RequiredAtHead();

            script("lightBox")
                .Include($"{LibraryPath}/lightbox2/dist/js/lightbox.js", $"{LibraryPath}/lightbox2/dist/js/lightbox.min.js");

            script("validate")
                .Include($"{LibraryPath}/jquery-validation/dist/jquery.validate.js", $"{LibraryPath}/jquery-validation/dist/jquery.validate.min.js")
                .Include($"{LibraryPath}/jquery-validation/dist/additional-methods.js", $"{LibraryPath}/jquery-validation/dist/additional-methods.min.js")
                .Include($"{LibraryPath}/jquery-validation-unobtrusive/src/jquery.validate.unobtrusive.js");

            script("jsTree")
                .Include($"{LibraryPath}/jstree/dist/jstree.js", $"{LibraryPath}/jstree/dist/jstree.min.js");


            script("OWL.Carousel")
                .Include($"{ScriptPath}/OwlCarousel/owl.carousel.min.js", $"{ScriptPath}/OwlCarousel/owl.carousel.min.js")
                .Include($"{ScriptPath}/Owl.Carousel.js", $"{ScriptPath}/Owl.Carousel.min.js");

            script("LayoutDesign")
                .Include($"{ScriptPath}/LayoutDesign.js", $"{ScriptPath}/LayoutDesign.min.js");

            script("PageDesign")
                .Include($"{ScriptPath}/PageDesign.js", $"{ScriptPath}/PageDesign.min.js");

            script("admin")
                .Include($"{ScriptPath}/admin.js", $"{ScriptPath}/admin.min.js")
                .Include($"{LibraryPath}/smooth-scrollbar/dist/smooth-scrollbar.js");

            script("smooth-scrollbar")
后面还有 110 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。