添加项目文件。
This commit is contained in:
1 parent
05e131ca4e
commit
514d6f5255
1162 files changed
+81255
No files matched your search
@@ -0,0 +1,268 @@
|
||||
@model WalkingTec.Mvvm.Core.BaseVM
|
||||
@using System.Text.Json
|
||||
|
||||
<div class="layui-row layui-col-space15" id="frontpage" >
|
||||
<div class="layui-col-md8">
|
||||
<div class="layui-row layui-col-space15">
|
||||
<div class="layui-col-md6">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">快捷方式</div>
|
||||
<div class="layui-card-body">
|
||||
|
||||
<div class="layui-carousel layadmin-carousel layadmin-shortcut">
|
||||
<div carousel-item>
|
||||
<ul class="layui-row layui-col-space10">
|
||||
<li class="layui-col-xs3">
|
||||
<a lay-href="_Admin/FrameworkUser/Index">
|
||||
<i class="layui-icon layui-icon-username"></i>
|
||||
<cite>用户</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a lay-href="_Admin/FrameworkRole/Index">
|
||||
<i class="layui-icon layui-icon-tabs"></i>
|
||||
<cite>角色</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a lay-href="_Admin/FrameworkMenu/Index">
|
||||
<i class="layui-icon layui-icon-app"></i>
|
||||
<cite>菜单</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a lay-href="_Admin/FrameworkGroup/Index">
|
||||
<i class="layui-icon layui-icon-user"></i>
|
||||
<cite>用户组</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a lay-href="_Admin/DataPrivilege/Index">
|
||||
<i class="layui-icon layui-icon-auz"></i>
|
||||
<cite>数据权限</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a lay-href="_Admin/ActionLog/Index">
|
||||
<i class="layui-icon layui-icon-console"></i>
|
||||
<cite>日志</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a href="/_codegen/index" target="_blank">
|
||||
<i class="layui-icon layui-icon-template-1"></i>
|
||||
<cite>代码生成</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a href="https://wtmdoc.walkingtec.cn" target="_blank">
|
||||
<i class="layui-icon layui-icon-read"></i>
|
||||
<cite>文档</cite>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-col-md6">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">WTM开源</div>
|
||||
<div class="layui-card-body">
|
||||
|
||||
<div class="layui-carousel layadmin-carousel layadmin-backlog">
|
||||
<div carousel-item>
|
||||
<ul class="layui-row layui-col-space10">
|
||||
<li class="layui-col-xs6">
|
||||
<a href="https://localhost:5001/_framework/RemoteEntry?redirect=%2F%23%2F_Admin%2FActionLog%2FIndex&_remotetoken=@Model.LoginUserInfo.RemoteToken" class="layadmin-backlog-body"
|
||||
target="_blank">
|
||||
<h3>5001</h3>
|
||||
<p><cite id="githubstar"></cite></p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs6">
|
||||
<a href="http://localhost:52836/_framework/RemoteEntry?_remotetoken=@Model.LoginUserInfo.RemoteToken" class="layadmin-backlog-body"
|
||||
target="_blank">
|
||||
<h3>52836</h3>
|
||||
<p><cite id="githubfork"></cite></p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs6">
|
||||
<a href="https://localhost:6001/RemoteEntry?_remotetoken=@Model.LoginUserInfo.RemoteToken" class="layadmin-backlog-body"
|
||||
target="_blank">
|
||||
<h3>6001</h3>
|
||||
<p><cite id="githubwatch"></cite></p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs6">
|
||||
<a href="https://github.com/dotnetcore/WTM/issues" class="layadmin-backlog-body" target="_blank">
|
||||
<h3>Issue</h3>
|
||||
<p><cite id="githubissue"></cite></p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="layui-row layui-col-space10">
|
||||
<li class="layui-col-xs12">
|
||||
<span style="font-size:16px;line-height:50px;">WTM是纯开源免费框架,如果喜欢,来GitHub赏个星~~</span>
|
||||
|
||||
<p style="text-align:center">
|
||||
<a href="https://github.com/dotnetcore/wtm" target="_blank"
|
||||
style="background-color:#eee;background-image:linear-gradient(to bottom, #fcfcfc 0, #eee 100%);background-repeat:no-repeat;border:1px solid #d5d5d5;color:#333;padding:3px 10px 3px 8px;font-size:16px;line-height:22px">
|
||||
<span width="20"
|
||||
style="width:20px;height:20px;font-size:16px;line-height:22px;box-sizing:border-box; background-size:100% 100%; background-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjQwcHgiIGhlaWdodD0iNDBweCIgdmlld0JveD0iMTIgMTIgNDAgNDAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMTIgMTIgNDAgNDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGZpbGw9IiMzMzMzMzMiIGQ9Ik0zMiAxMy40Yy0xMC41IDAtMTkgOC41LTE5IDE5YzAgOC40IDUuNSAxNS41IDEzIDE4YzEgMC4yIDEuMy0wLjQgMS4zLTAuOWMwLTAuNSAwLTEuNyAwLTMuMiBjLTUuMyAxLjEtNi40LTIuNi02LjQtMi42QzIwIDQxLjYgMTguOCA0MSAxOC44IDQxYy0xLjctMS4yIDAuMS0xLjEgMC4xLTEuMWMxLjkgMC4xIDIuOSAyIDIuOSAyYzEuNyAyLjkgNC41IDIuMSA1LjUgMS42IGMwLjItMS4yIDAuNy0yLjEgMS4yLTIuNmMtNC4yLTAuNS04LjctMi4xLTguNy05LjRjMC0yLjEgMC43LTMuNyAyLTUuMWMtMC4yLTAuNS0wLjgtMi40IDAuMi01YzAgMCAxLjYtMC41IDUuMiAyIGMxLjUtMC40IDMuMS0wLjcgNC44LTAuN2MxLjYgMCAzLjMgMC4yIDQuNyAwLjdjMy42LTIuNCA1LjItMiA1LjItMmMxIDIuNiAwLjQgNC42IDAuMiA1YzEuMiAxLjMgMiAzIDIgNS4xYzAgNy4zLTQuNSA4LjktOC43IDkuNCBjMC43IDAuNiAxLjMgMS43IDEuMyAzLjVjMCAyLjYgMCA0LjYgMCA1LjJjMCAwLjUgMC40IDEuMSAxLjMgMC45YzcuNS0yLjYgMTMtOS43IDEzLTE4LjFDNTEgMjEuOSA0Mi41IDEzLjQgMzIgMTMuNHoiLz48L3N2Zz4=')"> </span>
|
||||
<span>Stars <cite id="githubstars"></cite></span>
|
||||
</a>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-col-md6">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">控制器</div>
|
||||
<div class="layui-card-body">
|
||||
<wt:chart is-horizontal="true" show-legend="true" show-tooltip="true" type="Bar" height="300" trigger-url="/Home/GetActionChart" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-col-md6">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">模型</div>
|
||||
<div class="layui-card-body">
|
||||
<wt:chart show-legend="false" show-tooltip="true" type="PieHollow" height="300" trigger-url="/Home/GetModelChart" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-col-md12">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">模拟数据</div>
|
||||
<div class="layui-card-body">
|
||||
<wt:chart is-horizontal="true" type="Scatter" height="400" trigger-url="/Home/GetSampleChart" radius="50" name-x="X" name-y="Y" name-category="C" name-addition="A"/>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-col-md4">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">版本信息</div>
|
||||
<div class="layui-card-body layui-text">
|
||||
@if (Model.ConfigInfo.IsQuickDebug == true)
|
||||
{
|
||||
<p>你正在使用<font color="Red">调试模式</font>,在调试模式下,框架会:</p>
|
||||
<p><span class="layui-badge layui-bg-cyan">1</span> 反射所有controller下的Index方法作为左侧菜单</p>
|
||||
<p><span class="layui-badge layui-bg-cyan">2</span> 登陆时自动添加用户名和密码</p>
|
||||
<p><span class="layui-badge layui-bg-cyan">3</span> 跳过权限验证</p>
|
||||
<p>
|
||||
修改appsettings文件中的IsQuickDebug可关闭调试模式,<a href="http://wtmdoc.walkingtec.cn/#/QuickStart/FAQ" target="_blank">详见文档</a>
|
||||
</p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p>你正在使用普通模式,普通模式是项目发布后应该使用的模式,框架会:</p>
|
||||
<p><span class="layui-badge layui-bg-cyan">1</span> 从数据库读取菜单和权限配置</p>
|
||||
<p><span class="layui-badge layui-bg-cyan">2</span> 验证所有访问地址的权限</p>
|
||||
<p><span class="layui-badge layui-bg-cyan">3</span> 不再输出各类调试信息</p>
|
||||
<p>
|
||||
修改appsettings文件中的IsQuickDebug可开启调试模式,<a href="http://wtmdoc.walkingtec.cn/#/QuickStart/FAQ" target="_blank">详见文档</a>
|
||||
</p>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">框架特点</div>
|
||||
<div class="layui-card-body layadmin-takerates">
|
||||
<ul>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>一键生成WTM项目</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>一键生成增删改查,导入导出,批量操作代码</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>支持一对多,多对多关联模型的识别和代码生成</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>支持分离和不分离两种模式</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>支持sqlserver,mysql,pgsql三种数据库</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>封装了Layui,AntD,Element的大部分控件,编写前台更加简便</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>提供了很多基类,封装了绝大部分后台常用操作</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>提供了用户,角色,用户组,菜单,日志等常用模块</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>支持数据权限的开发和配置</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>支持读写分离和数据库分库</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">
|
||||
作者的话
|
||||
<i class="layui-icon layui-icon-tips" lay-tips="从善如登" lay-offset="5"></i>
|
||||
</div>
|
||||
<div class="layui-card-body layui-text layadmin-text">
|
||||
<p>
|
||||
WTM框架,全称WalkingTec
|
||||
MVVM(不是“我特么”的拼音首字母),WTM是一个快速开发框架,有多快?至少目前dotnetcore的开源项目中,我还没有见到更接地气,开发速度更快的框架。WTM的设计理念就是最大程度的加快开发速度,降低开发成本。
|
||||
</p>
|
||||
<p>
|
||||
国内Java一家独大原因很多,有BAT的示范效应,也有微软自己战略的失误。好在微软这两年终于想明白了, dotnet
|
||||
core的横空出世和收购github都是非常正确的方向。当然要想达到java一样的生态还有很长的路要走,那我就贡献一点绵薄之力吧。
|
||||
</p>
|
||||
<p>
|
||||
WTM开源以来,受到了越来越多开发者的喜爱,WTM必将以更加成熟稳定的姿态回报各位的喜爱。特别鸣谢贤心(<a href="http://www.layui.com/"
|
||||
target="_blank">layui.com</a>),授权WTM开发的项目可以免费使用其收费版的LayuiAdmin。提高自己,造福他人,吾道不孤!
|
||||
</p>
|
||||
<p>
|
||||
—— 框架开源地址:<a href="https://github.com/dotnetcore/WTM" target="_blank">https://github.com/dotnetcore/WTM</a>
|
||||
</p>
|
||||
<p>—— 框架在线文档:<a href="https://wtmdoc.walkingtec.cn" target="_blank">https://wtmdoc.walkingtec.cn</a></p>
|
||||
<p>—— 框架QQ交流群:694148336</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
$("#frontpage").parents(".layui-card").css("background-color", "#eee").css("height","unset");
|
||||
|
||||
$.get("/Home/GetGithubInfo", function (r) {
|
||||
if (r === undefined || r === null) {
|
||||
return;
|
||||
}
|
||||
$("#githubstar").html(r.stargazers_count);
|
||||
$("#githubstars").html(r.stargazers_count);
|
||||
$("#githubfork").html(r.forks_count);
|
||||
$("#githubwatch").html(r.subscribers_count);
|
||||
$("#githubissue").html(r.open_issues_count);
|
||||
});
|
||||
|
||||
//区块轮播切换
|
||||
layui.use(['admin', 'carousel'], function () {
|
||||
var $ = layui.$
|
||||
, admin = layui.admin
|
||||
, carousel = layui.carousel
|
||||
, element = layui.element
|
||||
, device = layui.device();
|
||||
|
||||
//轮播切换
|
||||
$('.layadmin-carousel').each(function () {
|
||||
var othis = $(this);
|
||||
carousel.render({
|
||||
elem: this
|
||||
, width: '100%'
|
||||
, arrow: 'none'
|
||||
, interval: othis.data('interval')
|
||||
, autoplay: othis.data('autoplay') === true
|
||||
, trigger: (device.ios || device.android) ? 'click' : 'hover'
|
||||
, anim: othis.data('anim')
|
||||
});
|
||||
});
|
||||
|
||||
element.render('progress');
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1,265 @@
|
||||
@model WalkingTec.Mvvm.Core.BaseVM
|
||||
@using System.Text.Json
|
||||
|
||||
<div class="layui-row layui-col-space15" id="frontpage">
|
||||
<div class="layui-col-md8">
|
||||
<div class="layui-row layui-col-space15">
|
||||
<div class="layui-col-md6">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">ShortCut</div>
|
||||
<div class="layui-card-body">
|
||||
|
||||
<div class="layui-carousel layadmin-carousel layadmin-shortcut">
|
||||
<div carousel-item>
|
||||
<ul class="layui-row layui-col-space10">
|
||||
<li class="layui-col-xs3">
|
||||
<a lay-href="_Admin/FrameworkUser/Index">
|
||||
<i class="layui-icon layui-icon-username"></i>
|
||||
<cite>Users</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a lay-href="_Admin/FrameworkRole/Index">
|
||||
<i class="layui-icon layui-icon-tabs"></i>
|
||||
<cite>Roles</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a lay-href="_Admin/FrameworkMenu/Index">
|
||||
<i class="layui-icon layui-icon-app"></i>
|
||||
<cite>Menu</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a lay-href="_Admin/FrameworkGroup/Index">
|
||||
<i class="layui-icon layui-icon-user"></i>
|
||||
<cite>Groups</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a lay-href="_Admin/DataPrivilege/Index">
|
||||
<i class="layui-icon layui-icon-auz"></i>
|
||||
<cite>DataPris</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a lay-href="_Admin/ActionLog/Index">
|
||||
<i class="layui-icon layui-icon-console"></i>
|
||||
<cite>Logs</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a href="/_codegen/index" target="_blank">
|
||||
<i class="layui-icon layui-icon-template-1"></i>
|
||||
<cite>CodeGen</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a href="https://wtmdoc.walkingtec.cn" target="_blank">
|
||||
<i class="layui-icon layui-icon-read"></i>
|
||||
<cite>Doc</cite>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-col-md6">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">WTM Open Source</div>
|
||||
<div class="layui-card-body">
|
||||
|
||||
<div class="layui-carousel layadmin-carousel layadmin-backlog">
|
||||
<div carousel-item>
|
||||
<ul class="layui-row layui-col-space10">
|
||||
<li class="layui-col-xs6">
|
||||
<a href="https://github.com/dotnetcore/WTM/stargazers" class="layadmin-backlog-body"
|
||||
target="_blank">
|
||||
<h3>Star</h3>
|
||||
<p><cite id="githubstar"></cite></p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs6">
|
||||
<a href="https://github.com/dotnetcore/WTM/network/members" class="layadmin-backlog-body"
|
||||
target="_blank">
|
||||
<h3>Fork</h3>
|
||||
<p><cite id="githubfork"></cite></p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs6">
|
||||
<a href="https://github.com/dotnetcore/WTM/watchers" class="layadmin-backlog-body"
|
||||
target="_blank">
|
||||
<h3>Watch</h3>
|
||||
<p><cite id="githubwatch"></cite></p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs6">
|
||||
<a href="https://github.com/dotnetcore/WTM/issues" class="layadmin-backlog-body" target="_blank">
|
||||
<h3>Issue</h3>
|
||||
<p><cite id="githubissue"></cite></p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="layui-row layui-col-space10">
|
||||
<li class="layui-col-xs12">
|
||||
<span style="font-size:16px;line-height:50px;">WTM is free and open source, if you like wtm, please star us at Github~~</span>
|
||||
|
||||
<p style="text-align:center">
|
||||
<a href="https://github.com/dotnetcore/wtm" target="_blank"
|
||||
style="background-color:#eee;background-image:linear-gradient(to bottom, #fcfcfc 0, #eee 100%);background-repeat:no-repeat;border:1px solid #d5d5d5;color:#333;padding:3px 10px 3px 8px;font-size:16px;line-height:22px">
|
||||
<span width="20"
|
||||
style="width:20px;height:20px;font-size:16px;line-height:22px;box-sizing:border-box; background-size:100% 100%; background-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjQwcHgiIGhlaWdodD0iNDBweCIgdmlld0JveD0iMTIgMTIgNDAgNDAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMTIgMTIgNDAgNDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGZpbGw9IiMzMzMzMzMiIGQ9Ik0zMiAxMy40Yy0xMC41IDAtMTkgOC41LTE5IDE5YzAgOC40IDUuNSAxNS41IDEzIDE4YzEgMC4yIDEuMy0wLjQgMS4zLTAuOWMwLTAuNSAwLTEuNyAwLTMuMiBjLTUuMyAxLjEtNi40LTIuNi02LjQtMi42QzIwIDQxLjYgMTguOCA0MSAxOC44IDQxYy0xLjctMS4yIDAuMS0xLjEgMC4xLTEuMWMxLjkgMC4xIDIuOSAyIDIuOSAyYzEuNyAyLjkgNC41IDIuMSA1LjUgMS42IGMwLjItMS4yIDAuNy0yLjEgMS4yLTIuNmMtNC4yLTAuNS04LjctMi4xLTguNy05LjRjMC0yLjEgMC43LTMuNyAyLTUuMWMtMC4yLTAuNS0wLjgtMi40IDAuMi01YzAgMCAxLjYtMC41IDUuMiAyIGMxLjUtMC40IDMuMS0wLjcgNC44LTAuN2MxLjYgMCAzLjMgMC4yIDQuNyAwLjdjMy42LTIuNCA1LjItMiA1LjItMmMxIDIuNiAwLjQgNC42IDAuMiA1YzEuMiAxLjMgMiAzIDIgNS4xYzAgNy4zLTQuNSA4LjktOC43IDkuNCBjMC43IDAuNiAxLjMgMS43IDEuMyAzLjVjMCAyLjYgMCA0LjYgMCA1LjJjMCAwLjUgMC40IDEuMSAxLjMgMC45YzcuNS0yLjYgMTMtOS43IDEzLTE4LjFDNTEgMjEuOSA0Mi41IDEzLjQgMzIgMTMuNHoiLz48L3N2Zz4=')"> </span>
|
||||
<span>Stars <cite id="githubstars"></cite></span>
|
||||
</a>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-col-md6">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">Controllers</div>
|
||||
<div class="layui-card-body">
|
||||
<wt:chart is-horizontal="true" show-legend="true" show-tooltip="true" type="Bar" height="300" trigger-url="/Home/GetActionChart" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-col-md6">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">Models</div>
|
||||
<div class="layui-card-body">
|
||||
<wt:chart show-legend="false" show-tooltip="true" type="Pie" height="300" trigger-url="/Home/GetModelChart" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-col-md12">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">Mock data</div>
|
||||
<div class="layui-card-body">
|
||||
<wt:chart is-horizontal="true" type="Scatter" height="400" trigger-url="/Home/GetSampleChart" radius="50" name-x="X" name-y="Y" name-category="C" name-addition="A" />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-col-md4">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">Version</div>
|
||||
<div class="layui-card-body layui-text">
|
||||
@if (Model.ConfigInfo.IsQuickDebug == true)
|
||||
{
|
||||
<p>You are in <font color="Red">debug mode</font>,in debug mode, WTM will:</p>
|
||||
<p><span class="layui-badge layui-bg-cyan">1</span> Reflect all controllers' Index action to be the menu on left</p>
|
||||
<p><span class="layui-badge layui-bg-cyan">2</span> Fill in default user name and password</p>
|
||||
<p><span class="layui-badge layui-bg-cyan">3</span> Skip authorization</p>
|
||||
<p>
|
||||
Modify isquickdebug in the Appsettings file to turn off debugging mode. <a href="http://wtmdoc.walkingtec.cn/#/QuickStart/FAQ" target="_blank">详见文档</a>
|
||||
</p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p>You are in production mode,it is the mode you should use when you publish the system.In production mode, WTM will:</p>
|
||||
<p><span class="layui-badge layui-bg-cyan">1</span> Load menu and authorization info from database</p>
|
||||
<p><span class="layui-badge layui-bg-cyan">2</span> Do authentication and authorization check</p>
|
||||
<p><span class="layui-badge layui-bg-cyan">3</span> Do not output debug messages</p>
|
||||
<p>
|
||||
Modify isquickdebug in the Appsettings file to turn on debugging mode.<a href="http://wtmdoc.walkingtec.cn/#/QuickStart/FAQ" target="_blank">详见文档</a>
|
||||
</p>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">Why WTM</div>
|
||||
<div class="layui-card-body layadmin-takerates">
|
||||
<ul>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>One click WTM project generation</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>One click generate CRUD,search,import/export,batch operation code</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>Support one to many, many to many association model identification and code generation</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>Support React and VUE</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>Support sqlserver,mysql,pgsql, sqlite</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>Encapsulates most of the controls of layui, antd and element, making writing the view easier</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>Many base classes are provided to encapsulate most common background operations</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>It provides common modules such as user, role, user group, menu, log, etc</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>Support the development and configuration of Data permission</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>Support read-write separation and multi database</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">
|
||||
From author
|
||||
<i class="layui-icon layui-icon-tips" lay-tips="To pursue goodness is as difficult as ascending a mountain" lay-offset="5"></i>
|
||||
</div>
|
||||
<div class="layui-card-body layui-text layadmin-text">
|
||||
<p>
|
||||
WTM stands for Walkingtec MVVM , WTM is a rapid development framework, how fast is it? At least at present, in the open source project of dotnetcore, I haven't seen a more grounded and faster development framework. The design concept of WTM is to speed up the development speed and reduce the development cost to the greatest extent.
|
||||
</p>
|
||||
<p>
|
||||
Microsoft has finally figured it out in the past two years,
|
||||
The emergence of dotnet core and the acquisition of GitHub are both very right directions. Of course, there is still a long way to go to reach the Java ecosystem, so I will contribute a little.
|
||||
</p>
|
||||
<p>
|
||||
WTM has been loved by more and more developers since its open source. WTM will surely repay your love with a more mature and stable attitude. Improve yourself, benefit others, I am not alone!
|
||||
</p>
|
||||
<p>
|
||||
—— Github:<a href="https://github.com/dotnetcore/WTM" target="_blank">https://github.com/dotnetcore/WTM</a>
|
||||
</p>
|
||||
<p>—— Docs:<a href="https://wtmdoc.walkingtec.cn" target="_blank">https://wtmdoc.walkingtec.cn</a></p>
|
||||
<p>—— QQ:694148336</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
$("#frontpage").parent().css("background-color", "#eee");
|
||||
$.get("/Home/GetGithubInfo", function (r) {
|
||||
if (r === undefined || r === null) {
|
||||
return;
|
||||
}
|
||||
$("#githubstar").html(r.stargazers_count);
|
||||
$("#githubstars").html(r.stargazers_count);
|
||||
$("#githubfork").html(r.forks_count);
|
||||
$("#githubwatch").html(r.subscribers_count);
|
||||
$("#githubissue").html(r.open_issues_count);
|
||||
});
|
||||
|
||||
//区块轮播切换
|
||||
layui.use(['admin', 'carousel'], function () {
|
||||
var $ = layui.$
|
||||
, admin = layui.admin
|
||||
, carousel = layui.carousel
|
||||
, element = layui.element
|
||||
, device = layui.device();
|
||||
|
||||
//轮播切换
|
||||
$('.layadmin-carousel').each(function () {
|
||||
var othis = $(this);
|
||||
carousel.render({
|
||||
elem: this
|
||||
, width: '100%'
|
||||
, arrow: 'none'
|
||||
, interval: othis.data('interval')
|
||||
, autoplay: othis.data('autoplay') === true
|
||||
, trigger: (device.ios || device.android) ? 'click' : 'hover'
|
||||
, anim: othis.data('anim')
|
||||
});
|
||||
});
|
||||
|
||||
element.render('progress');
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1 @@
|
||||
<script>layui.use('index')</script>
|
||||
@@ -0,0 +1,219 @@
|
||||
@using Microsoft.AspNetCore.Builder
|
||||
@using Microsoft.AspNetCore.Localization
|
||||
@using Microsoft.Extensions.Options
|
||||
@using WalkingTec.Mvvm.Core
|
||||
@using WalkingTec.Mvvm.Core.Extensions
|
||||
@model WalkingTec.Mvvm.Core.BaseVM
|
||||
@inject IOptionsMonitor<RequestLocalizationOptions> LocOptions
|
||||
|
||||
@{
|
||||
var requestCulture = Context.Features.Get<IRequestCultureFeature>();
|
||||
var cultureItems = LocOptions.CurrentValue.SupportedUICultures
|
||||
.Select(c => new SelectListItem { Value = c.Name, Text = c.NativeName })
|
||||
.ToList();
|
||||
List<ComboSelectListItem> tenants = new List<ComboSelectListItem>();
|
||||
if (Model?.LoginUserInfo != null)
|
||||
{
|
||||
tenants = Model.Wtm.GlobaInfo.AllTenant.Where(x => x.TenantCode == Model.LoginUserInfo.TenantCode).AsQueryable().GetSelectListItems(Model.Wtm, x => x.TName, x => x.TCode);
|
||||
}
|
||||
}
|
||||
<div class="layui-layout layui-layout-admin">
|
||||
<div class="layui-header">
|
||||
|
||||
<!-- 头部区域 -->
|
||||
<ul class="layui-nav layui-layout-left">
|
||||
<li class="layui-nav-item layadmin-flexible" lay-unselect>
|
||||
<a href="javascript:;" layadmin-event="flexible" title="@Model.Localizer["Sys.HideShow"]">
|
||||
<i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-nav-item layui-hide-xs" lay-unselect>
|
||||
<a href="https://wtmdoc.walkingtec.cn" target="_blank" title="@Model.Localizer["Sys.WtmDoc"]">
|
||||
<i class="layui-icon layui-icon-website"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-nav-item" lay-unselect>
|
||||
<a href="javascript:;" layadmin-event="refresh" title="@Model.Localizer["Sys.Refresh"]">
|
||||
<i class="layui-icon layui-icon-refresh-3"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs" lay-unselect>
|
||||
<a href="javascript:;" layadmin-event="theme">
|
||||
<i class="layui-icon layui-icon-theme"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-nav-item layui-hide-xs" lay-unselect>
|
||||
<a href="javascript:;" layadmin-event="fullscreen">
|
||||
<i class="layui-icon layui-icon-screen-full"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-nav-item" lay-unselect>
|
||||
<a href="javascript:;">
|
||||
<cite>@requestCulture.RequestCulture.UICulture.NativeName</cite>
|
||||
</a>
|
||||
<dl class="layui-nav-child">
|
||||
@foreach (var item in cultureItems)
|
||||
{
|
||||
<dd>
|
||||
<wt:linkbutton url="/_Framework/SetLanguage?culture=@item.Value" target=" ButtonTargetEnum.self" window-width="400" text="@item.Text" is-link="true" />
|
||||
</dd>
|
||||
}
|
||||
</dl>
|
||||
</li>
|
||||
@if (tenants.Count() > 0)
|
||||
{
|
||||
var current = Model?.Wtm?.LoginUserInfo?.CurrentTenant ==Model?.Wtm?.LoginUserInfo?.TenantCode ? Model.Localizer["_Admin.TenantHost"] : tenants.Where(x=>x.Value.ToString() == Model?.Wtm?.LoginUserInfo?.CurrentTenant).Select(x=>x.Text).SingleOrDefault();
|
||||
<li class="layui-nav-item" lay-unselect>
|
||||
<a href="javascript:;">
|
||||
<cite>@current</cite>
|
||||
</a>
|
||||
<dl class="layui-nav-child">
|
||||
<dd>
|
||||
<wt:linkbutton url="/_Framework/SetTenant?tenant=@Model?.Wtm?.LoginUserInfo?.TenantCode" target=" ButtonTargetEnum.self" window-width="400" text="@Model.Localizer["_Admin.TenantHost"]" is-link="true" />
|
||||
</dd>
|
||||
@foreach (var item in tenants)
|
||||
{
|
||||
<dd>
|
||||
<wt:linkbutton url="/_Framework/SetTenant?tenant=@item.Value" target=" ButtonTargetEnum.self" window-width="400" text="@item.Text" is-link="true" />
|
||||
</dd>
|
||||
}
|
||||
</dl>
|
||||
</li>
|
||||
|
||||
}
|
||||
<li class="layui-nav-item" lay-unselect>
|
||||
<a href="javascript:;">
|
||||
@if (Model.LoginUserInfo?.PhotoId != null)
|
||||
{
|
||||
<img class="layui-nav-img" src="api/_file/getuserphoto/@Model.LoginUserInfo.PhotoId" />
|
||||
}
|
||||
<cite>@Model.LoginUserInfo.Name</cite>
|
||||
</a>
|
||||
<dl class="layui-nav-child">
|
||||
<dd>
|
||||
<wt:linkbutton url="/Login/ChangePassword" window-width="400" text="@Model.Localizer["Login.ChangePassword"]" is-link="true" />
|
||||
</dd>
|
||||
<dd><a href="javascript:;" lay-href="/">@Model.Localizer["Sys.BackHome"]</a></dd>
|
||||
@{
|
||||
if (ViewData["debug"] is bool debug && debug)
|
||||
{
|
||||
<dd>
|
||||
<wt:linkbutton url="~/_CodeGen/Index" target="ButtonTargetEnum.newwindow" is-link="true" text="@Model.Localizer["Sys.CodeGen"]"
|
||||
window-title="@Model.Localizer["Sys.CodeGen"]" />
|
||||
</dd>
|
||||
<dd>
|
||||
<wt:linkbutton url="~/swagger" target="ButtonTargetEnum.newwindow" is-link="true" text="@Model.Localizer["Sys.ApiDoc"]"
|
||||
window-title="@Model.Localizer["Sys.ApiDoc"]" />
|
||||
</dd>
|
||||
}
|
||||
}
|
||||
</dl>
|
||||
</li>
|
||||
<li class="layui-nav-item"><a href="/Login/Logout">@Model.Localizer["Login.LogOut"]</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- 侧边菜单 -->
|
||||
<div class="layui-side layui-side-menu">
|
||||
<div class="layui-side-scroll">
|
||||
<!-- <script type="text/html" template lay-url="./json/menu.js?v={{ layui.admin.v }}" -->
|
||||
<script type="text/html" template lay-url="/_Framework/Menu?t=@DateTime.Now.Ticks"
|
||||
lay-done="layui.element.render('nav', 'layadmin-system-side-menu');layui.event.call(this, layui.setter.MOD_NAME, 'hash({*})', layui.router());" id="TPL_layout">
|
||||
|
||||
<div class="layui-logo" lay-href="">
|
||||
<span><img src="~/layuiadmin/style/res/logo.png" style="margin-right:5px" />{{ layui.setter.name || 'layuiAdmin' }}</span>
|
||||
</div>
|
||||
|
||||
<ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
|
||||
{{#
|
||||
var path = layui.router().path
|
||||
,pathURL = layui.admin.correctRouter(path.join('/'))
|
||||
,dataName = layui.setter.response.dataName;
|
||||
|
||||
layui.each(d[dataName], function(index, item){
|
||||
var hasChildren = typeof item.list === 'object' && item.list.length > 0
|
||||
,url = (item.jump && typeof item.jump === 'string') ? item.jump : item.name;
|
||||
}}
|
||||
<li data-name="{{ item.name || '' }}" data-jump="{{ item.jump || '' }}" class="layui-nav-item ">
|
||||
<a href="javascript:;" {{ hasChildren ? '' : 'lay-href="'+ url +'"' }} lay-tips="{{ item.title }}" lay-direction="2">
|
||||
<i class="{{ item.icon }}"></i>
|
||||
<cite>{{ item.title }}</cite>
|
||||
</a>
|
||||
{{# if(hasChildren){ }}
|
||||
<dl class="layui-nav-child">
|
||||
{{# layui.each(item.list, function(index2, item2){
|
||||
var hasChildren2 = typeof item2.list == 'object' && item2.list.length > 0
|
||||
,url2 = (item2.jump && typeof item2.jump === 'string')
|
||||
? item2.jump
|
||||
: [item.name, item2.name, ''].join('/');
|
||||
}}
|
||||
<dd data-name="{{ item2.name || '' }}" data-jump="{{ item2.jump || '' }}">
|
||||
<a href="javascript:;" {{ hasChildren2 ? '' : 'lay-href="'+ url2 +'"' }}>
|
||||
<i class="{{ item2.icon }}"></i>
|
||||
<cite>{{ item2.title }}</cite>
|
||||
</a>
|
||||
{{# if(hasChildren2){ }}
|
||||
<dl class="layui-nav-child">
|
||||
{{# layui.each(item2.list, function(index3, item3){
|
||||
var url3 = (item3.jump && typeof item3.jump === 'string')
|
||||
? item3.jump
|
||||
: [item.name, item2.name, item3.name].join('/')
|
||||
}}
|
||||
<dd data-name="{{ item3.name || '' }}" data-jump="{{ item3.jump || '' }}">
|
||||
<a href="javascript:;" lay-href="{{ url3 }}" {{ item3.iframe ? 'lay-iframe="true"' : '' }}>
|
||||
<i class="{{ item3.icon }}"></i>
|
||||
<cite>{{ item3.title }}</cite>
|
||||
</a>
|
||||
</dd>
|
||||
{{# }); }}
|
||||
</dl>
|
||||
{{# } }}
|
||||
</dd>
|
||||
{{# }); }}
|
||||
</dl>
|
||||
{{# } }}
|
||||
</li>
|
||||
{{# }); }}
|
||||
</ul>
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 页面标签 -->
|
||||
<script type="text/html" template lay-done="layui.element.render('nav', 'layadmin-pagetabs-nav')">
|
||||
{{# if(layui.setter.pageTabs){ }}
|
||||
<div class="layadmin-pagetabs" id="LAY_app_tabs">
|
||||
<div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
|
||||
<div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
|
||||
<div class="layui-icon layadmin-tabs-control layui-icon-down">
|
||||
<ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
|
||||
<li class="layui-nav-item" lay-unselect>
|
||||
<a href="javascript:;"></a>
|
||||
<dl class="layui-nav-child layui-anim-fadein">
|
||||
<dd layadmin-event="closeThisTabs"><a href="javascript:;">@Model.Localizer["Sys.CloseThisTag"]</a></dd>
|
||||
<dd layadmin-event="closeOtherTabs"><a href="javascript:;">@Model.Localizer["Sys.CloseOtherTags"]</a></dd>
|
||||
<dd layadmin-event="closeAllTabs"><a href="javascript:;">@Model.Localizer["Sys.CloseAllTags"]</a></dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
|
||||
<ul class="layui-tab-title" id="LAY_app_tabsheader">
|
||||
<li lay-id="/"><i class="layui-icon layui-icon-home"></i></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{{# } }}
|
||||
</script>
|
||||
|
||||
<!-- 主体内容 -->
|
||||
<div class="layui-body" id="LAY_app_body">
|
||||
<div class="layadmin-tabsbody-item layui-show"></div>
|
||||
</div>
|
||||
|
||||
<!-- 辅助元素,一般用于移动设备下遮罩 -->
|
||||
<div class="layadmin-body-shade" layadmin-event="shade"></div>
|
||||
</div>
|
||||
@@ -0,0 +1,7 @@
|
||||
<div class="layui-layout layui-layout-admin">
|
||||
<div class="layui-body" id="LAY_app_body" style="left: 0; top: 0; bottom: 0; padding-bottom: 0px; background-color: #fff ">
|
||||
</div>
|
||||
<div class="layadmin-body-shade" layadmin-event="shade"></div>
|
||||
</div>
|
||||
|
||||
<script>layui.use('pindex')</script>
|
||||
Reference in new issue
Block a user