mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-30 14:14:55 +08:00
vditor本地化
This commit is contained in:
parent
af65adaf94
commit
8fccecb372
@ -1,3 +1,12 @@
|
||||
### [v1.5.3](https://gitee.com/koogua/course-tencent-cloud/releases/v1.5.3)(2022-05-30)
|
||||
|
||||
- 优化章节排序初始值和步长
|
||||
- 修复删除群组前台列表仍然显示问题
|
||||
- 设置360浏览器的默认模式为webkit
|
||||
- 修复首页简单模式课程项顶部缺少空白
|
||||
- vditor本地化,彻底弃用cdn.jsdelivr.net
|
||||
- 调整markdown样式
|
||||
|
||||
### [v1.5.2](https://gitee.com/koogua/course-tencent-cloud/releases/v1.5.2)(2022-04-17)
|
||||
|
||||
- 补充话题列表课程数据结构
|
||||
|
@ -81,7 +81,14 @@ class Chapter extends Service
|
||||
$data['parent_id'] = 0;
|
||||
}
|
||||
|
||||
$data['priority'] += 1;
|
||||
/**
|
||||
* 排序从10开始递增,步长为5
|
||||
*/
|
||||
if ($data['priority'] < 10) {
|
||||
$data['priority'] = 10;
|
||||
} else {
|
||||
$data['priority'] += 5;
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
|
@ -29,13 +29,13 @@
|
||||
|
||||
{% block link_css %}
|
||||
|
||||
{{ css_link('https://cdn.staticfile.org/vditor/3.8.13/index.css', false) }}
|
||||
{{ css_link('lib/vditor/dist/index.css') }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block include_js %}
|
||||
|
||||
{{ js_include('https://cdn.staticfile.org/vditor/3.8.13/index.min.js', false) }}
|
||||
{{ js_include('lib/vditor/dist/index.min.js') }}
|
||||
{{ js_include('admin/js/vditor.js') }}
|
||||
|
||||
{% endblock %}
|
@ -28,13 +28,13 @@
|
||||
|
||||
{% block link_css %}
|
||||
|
||||
{{ css_link('https://cdn.staticfile.org/vditor/3.8.13/index.css', false) }}
|
||||
{{ css_link('lib/vditor/dist/index.css') }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block include_js %}
|
||||
|
||||
{{ js_include('https://cdn.staticfile.org/vditor/3.8.13/index.min.js', false) }}
|
||||
{{ js_include('lib/vditor/dist/index.min.js') }}
|
||||
{{ js_include('admin/js/vditor.js') }}
|
||||
|
||||
{% endblock %}
|
@ -25,13 +25,13 @@
|
||||
|
||||
{% block link_css %}
|
||||
|
||||
{{ css_link('https://cdn.staticfile.org/vditor/3.8.13/index.css', false) }}
|
||||
{{ css_link('lib/vditor/dist/index.css') }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block include_js %}
|
||||
|
||||
{{ js_include('https://cdn.staticfile.org/vditor/3.8.13/index.min.js', false) }}
|
||||
{{ js_include('lib/vditor/dist/index.min.js') }}
|
||||
{{ js_include('lib/xm-select.js') }}
|
||||
{{ js_include('admin/js/vditor.js') }}
|
||||
|
||||
|
@ -50,7 +50,7 @@
|
||||
{% block link_css %}
|
||||
|
||||
{% if chapter.model == 3 %}
|
||||
{{ css_link('https://cdn.staticfile.org/vditor/3.8.13/index.css', false) }}
|
||||
{{ css_link('lib/vditor/dist/index.css') }}
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
@ -59,7 +59,7 @@
|
||||
|
||||
{% if chapter.model == 3 %}
|
||||
|
||||
{{ js_include('https://cdn.staticfile.org/vditor/3.8.13/index.min.js', false) }}
|
||||
{{ js_include('lib/vditor/dist/index.min.js') }}
|
||||
{{ js_include('admin/js/vditor.js') }}
|
||||
|
||||
{% elseif chapter.model == 1 %}
|
||||
|
@ -41,13 +41,13 @@
|
||||
|
||||
{% block link_css %}
|
||||
|
||||
{{ css_link('https://cdn.staticfile.org/vditor/3.8.13/index.css', false) }}
|
||||
{{ css_link('lib/vditor/dist/index.css') }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block include_js %}
|
||||
|
||||
{{ js_include('https://cdn.staticfile.org/vditor/3.8.13/index.min.js', false) }}
|
||||
{{ js_include('lib/vditor/dist/index.min.js') }}
|
||||
{{ js_include('lib/xm-select.js') }}
|
||||
{{ js_include('admin/js/cover.upload.js') }}
|
||||
{{ js_include('admin/js/vditor.js') }}
|
||||
|
@ -49,13 +49,13 @@
|
||||
|
||||
{% block link_css %}
|
||||
|
||||
{{ css_link('https://cdn.staticfile.org/vditor/3.8.13/index.css', false) }}
|
||||
{{ css_link('lib/vditor/dist/index.css') }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block include_js %}
|
||||
|
||||
{{ js_include('https://cdn.staticfile.org/vditor/3.8.13/index.min.js', false) }}
|
||||
{{ js_include('lib/vditor/dist/index.min.js') }}
|
||||
{{ js_include('admin/js/vditor.js') }}
|
||||
|
||||
{% endblock %}
|
@ -56,13 +56,13 @@
|
||||
|
||||
{% block link_css %}
|
||||
|
||||
{{ css_link('https://cdn.staticfile.org/vditor/3.8.13/index.css', false) }}
|
||||
{{ css_link('lib/vditor/dist/index.css') }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block include_js %}
|
||||
|
||||
{{ js_include('https://cdn.staticfile.org/vditor/3.8.13/index.min.js', false) }}
|
||||
{{ js_include('lib/vditor/dist/index.min.js') }}
|
||||
{{ js_include('admin/js/vditor.js') }}
|
||||
|
||||
{% endblock %}
|
@ -32,13 +32,13 @@
|
||||
|
||||
{% block link_css %}
|
||||
|
||||
{{ css_link('https://cdn.staticfile.org/vditor/3.8.13/index.css', false) }}
|
||||
{{ css_link('lib/vditor/dist/index.css') }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block include_js %}
|
||||
|
||||
{{ js_include('https://cdn.staticfile.org/vditor/3.8.13/index.min.js', false) }}
|
||||
{{ js_include('lib/vditor/dist/index.min.js') }}
|
||||
{{ js_include('admin/js/vditor.js') }}
|
||||
|
||||
{% endblock %}
|
@ -45,13 +45,13 @@
|
||||
|
||||
{% block link_css %}
|
||||
|
||||
{{ css_link('https://cdn.staticfile.org/vditor/3.8.13/index.css', false) }}
|
||||
{{ css_link('lib/vditor/dist/index.css') }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block include_js %}
|
||||
|
||||
{{ js_include('https://cdn.staticfile.org/vditor/3.8.13/index.min.js', false) }}
|
||||
{{ js_include('lib/vditor/dist/index.min.js') }}
|
||||
{{ js_include('admin/js/vditor.js') }}
|
||||
|
||||
{% endblock %}
|
@ -15,7 +15,7 @@
|
||||
{% block link_css %}
|
||||
|
||||
{% if gift.type == 2 %}
|
||||
{{ css_link('https://cdn.staticfile.org/vditor/3.8.13/index.css', false) }}
|
||||
{{ css_link('lib/vditor/dist/index.css') }}
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
@ -23,7 +23,7 @@
|
||||
{% block include_js %}
|
||||
|
||||
{% if gift.type == 2 %}
|
||||
{{ js_include('https://cdn.staticfile.org/vditor/3.8.13/index.min.js', false) }}
|
||||
{{ js_include('lib/vditor/dist/index.min.js') }}
|
||||
{{ js_include('admin/js/cover.upload.js') }}
|
||||
{{ js_include('admin/js/vditor.js') }}
|
||||
{% endif %}
|
||||
|
@ -25,13 +25,13 @@
|
||||
|
||||
{% block link_css %}
|
||||
|
||||
{{ css_link('https://cdn.staticfile.org/vditor/3.8.13/index.css', false) }}
|
||||
{{ css_link('lib/vditor/dist/index.css') }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block include_js %}
|
||||
|
||||
{{ js_include('https://cdn.staticfile.org/vditor/3.8.13/index.min.js', false) }}
|
||||
{{ js_include('lib/vditor/dist/index.min.js') }}
|
||||
{{ js_include('lib/xm-select.js') }}
|
||||
{{ js_include('admin/js/vditor.js') }}
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="csrf-token" content="{{ csrfToken.getToken() }}">
|
||||
<title>管理后台</title>
|
||||
{{ icon_link('favicon.ico') }}
|
||||
|
@ -4,6 +4,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="csrf-token" content="{{ csrfToken.getToken() }}">
|
||||
<title>管理后台</title>
|
||||
{{ icon_link('favicon.ico') }}
|
||||
|
@ -27,6 +27,7 @@ class ImGroup extends Service
|
||||
$params = $pagerQuery->getParams();
|
||||
|
||||
$params['published'] = 1;
|
||||
$params['deleted'] = 0;
|
||||
|
||||
$sort = $pagerQuery->getSort();
|
||||
$page = $pagerQuery->getPage();
|
||||
|
@ -41,13 +41,13 @@
|
||||
|
||||
{% block link_css %}
|
||||
|
||||
{{ css_link('https://cdn.staticfile.org/vditor/3.8.13/index.css', false) }}
|
||||
{{ css_link('lib/vditor/dist/index.css') }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block include_js %}
|
||||
|
||||
{{ js_include('https://cdn.staticfile.org/vditor/3.8.13/index.min.js', false) }}
|
||||
{{ js_include('lib/vditor/dist/index.min.js') }}
|
||||
{{ js_include('home/js/answer.edit.js') }}
|
||||
{{ js_include('home/js/vditor.js') }}
|
||||
|
||||
|
@ -36,13 +36,13 @@
|
||||
|
||||
{% block link_css %}
|
||||
|
||||
{{ css_link('https://cdn.staticfile.org/vditor/3.8.13/index.css', false) }}
|
||||
{{ css_link('lib/vditor/dist/index.css') }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block include_js %}
|
||||
|
||||
{{ js_include('https://cdn.staticfile.org/vditor/3.8.13/index.min.js', false) }}
|
||||
{{ js_include('lib/vditor/dist/index.min.js') }}
|
||||
{{ js_include('home/js/answer.edit.js') }}
|
||||
{{ js_include('home/js/vditor.js') }}
|
||||
|
||||
|
@ -76,13 +76,13 @@
|
||||
|
||||
{% block link_css %}
|
||||
|
||||
{{ css_link('https://cdn.staticfile.org/vditor/3.8.13/index.css', false) }}
|
||||
{{ css_link('lib/vditor/dist/index.css') }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block include_js %}
|
||||
|
||||
{{ js_include('https://cdn.staticfile.org/vditor/3.8.13/index.min.js', false) }}
|
||||
{{ js_include('lib/vditor/dist/index.min.js') }}
|
||||
{{ js_include('lib/xm-select.js') }}
|
||||
{{ js_include('home/js/article.edit.js') }}
|
||||
{{ js_include('home/js/vditor.js') }}
|
||||
|
@ -35,7 +35,7 @@
|
||||
{% if featured_courses|length > 0 %}
|
||||
<div class="index-wrap wrap">
|
||||
<div class="header">推荐课程</div>
|
||||
<div class="content">
|
||||
<div class="content simple">
|
||||
{{ show_courses(featured_courses) }}
|
||||
</div>
|
||||
</div>
|
||||
@ -44,7 +44,7 @@
|
||||
{% if new_courses|length > 0 %}
|
||||
<div class="index-wrap wrap">
|
||||
<div class="header">新上课程</div>
|
||||
<div class="content">
|
||||
<div class="content simple">
|
||||
{{ show_courses(new_courses) }}
|
||||
</div>
|
||||
</div>
|
||||
@ -62,7 +62,7 @@
|
||||
{% if vip_courses|length > 0 %}
|
||||
<div class="index-wrap wrap">
|
||||
<div class="header">会员课程</div>
|
||||
<div class="content">
|
||||
<div class="content simple">
|
||||
{{ show_courses(vip_courses) }}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -56,13 +56,13 @@
|
||||
|
||||
{% block link_css %}
|
||||
|
||||
{{ css_link('https://cdn.staticfile.org/vditor/3.8.13/index.css', false) }}
|
||||
{{ css_link('lib/vditor/dist/index.css') }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block include_js %}
|
||||
|
||||
{{ js_include('https://cdn.staticfile.org/vditor/3.8.13/index.min.js', false) }}
|
||||
{{ js_include('lib/vditor/dist/index.min.js') }}
|
||||
{{ js_include('lib/xm-select.js') }}
|
||||
{{ js_include('home/js/question.edit.js') }}
|
||||
{{ js_include('home/js/vditor.js') }}
|
||||
|
@ -4,6 +4,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>出错啦 - {{ site_info.title }}</title>
|
||||
{% if site_info.favicon %}
|
||||
{{ icon_link(site_info.favicon,false) }}
|
||||
|
@ -4,6 +4,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="csrf-token" content="{{ csrfToken.getToken() }}">
|
||||
<title>{{ site_info.title }}</title>
|
||||
{% if site_info.favicon %}
|
||||
|
@ -4,6 +4,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="keywords" content="{{ seo.getKeywords() }}">
|
||||
<meta name="description" content="{{ seo.getDescription() }}">
|
||||
<meta name="csrf-token" content="{{ csrfToken.getToken() }}">
|
||||
|
@ -83,7 +83,7 @@ class Category extends Model
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $priority = 100;
|
||||
public $priority = 10;
|
||||
|
||||
/**
|
||||
* 发布标识
|
||||
|
@ -110,7 +110,7 @@ class Chapter extends Model
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $priority = 100;
|
||||
public $priority = 10;
|
||||
|
||||
/**
|
||||
* 免费标识
|
||||
|
@ -180,7 +180,7 @@ class FlashSale extends Model
|
||||
{
|
||||
$result = [];
|
||||
|
||||
foreach (range(8, 20, 2) as $hour) {
|
||||
foreach (range(10, 20, 2) as $hour) {
|
||||
$result[] = [
|
||||
'name' => sprintf('%02d点', $hour),
|
||||
'hour' => sprintf('%02d', $hour),
|
||||
|
@ -46,7 +46,7 @@ class Help extends Model
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $priority = 100;
|
||||
public $priority = 10;
|
||||
|
||||
/**
|
||||
* 发布标识
|
||||
|
@ -50,6 +50,8 @@ class Chapter extends Repository
|
||||
$query->andWhere('deleted = :deleted:', ['deleted' => $where['deleted']]);
|
||||
}
|
||||
|
||||
$query->orderBy('priority ASC');
|
||||
|
||||
return $query->execute();
|
||||
}
|
||||
|
||||
@ -87,6 +89,7 @@ class Chapter extends Repository
|
||||
return ChapterModel::query()
|
||||
->where('parent_id = :parent_id:', ['parent_id' => $id])
|
||||
->andWhere('deleted = 0')
|
||||
->orderBy('priority ASC')
|
||||
->execute();
|
||||
}
|
||||
|
||||
|
@ -22,6 +22,7 @@ class GroupList extends LogicService
|
||||
$params = $pagerQuery->getParams();
|
||||
|
||||
$params['published'] = 1;
|
||||
$params['deleted'] = 0;
|
||||
|
||||
$sort = $pagerQuery->getSort();
|
||||
$page = $pagerQuery->getPage();
|
||||
|
@ -302,7 +302,7 @@
|
||||
}
|
||||
|
||||
.index-wrap .layui-tab-content {
|
||||
padding: 20px 0 0 0;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
.index-wrap .header {
|
||||
@ -312,6 +312,10 @@
|
||||
border-bottom: 1px solid #f6f6f6;
|
||||
}
|
||||
|
||||
.index-wrap .simple {
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
.index-course-list .course-card {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
@ -60,7 +60,7 @@
|
||||
.markdown-body {
|
||||
-ms-text-size-adjust: 100%;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
line-height: 1.5;
|
||||
line-height: 1.8;
|
||||
color: #24292e;
|
||||
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
|
||||
font-size: 14px;
|
||||
|
Loading…
x
Reference in New Issue
Block a user