1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-23 03:50:56 +08:00

清理无用文件

This commit is contained in:
xiaochong0302 2020-09-05 20:33:49 +08:00
parent 0482e5df8a
commit a69b9df86b
19 changed files with 122 additions and 91 deletions

View File

@ -38,7 +38,7 @@ PS**系统后台已禁止提交并隐藏私人配置**
#### 会推出商业服务吗?
- 如果不符合您对“开源”的认知,请移步其它同类产品,毕竟同类“免费”产品也很多。
- 如果“开源”版本不能满足您的需求,或者您希望有更好的支持,商业服务是不错的选择。
- 如果“开源”版本不能满足您的需求,或者您希望有更好的支持,商业服务是不错的选择。
我们为用户提供的服务包括:
@ -57,7 +57,7 @@ PS**系统后台已禁止提交并隐藏私人配置**
#### 通过这个项目能学到什么?
1. 项目规划phalcon实战缓存JWT即时通讯全文检索
2. docker操作docker服务编排supervisordevOps
2. docker操作docker服务编排supervisordevops
3. gitlinuxphpmysqlredisnginx
#### 开发计划

View File

@ -53,7 +53,8 @@
</div>
</div>
<div id="ptt-block" {{ ppt_display }}>
<table class="layui-table kg-table layui-form">
<div class="layui-form-item">
<table class="layui-table">
<colgroup>
<col>
<col>
@ -89,7 +90,7 @@
</tr>
</tbody>
</table>
<br>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label"></label>

View File

@ -32,20 +32,35 @@
</div>
</div>
<fieldset class="layui-elem-field layui-field-title">
<legend>数据万象</legend>
<legend>图片处理样式</legend>
</fieldset>
<div class="layui-form-item">
<label class="layui-form-label">访问协议</label>
<div class="layui-input-block">
<input type="radio" name="ci_protocol" value="http" title="HTTP" {% if storage.ci_protocol == "http" %}checked{% endif %}>
<input type="radio" name="ci_protocol" value="https" title="HTTPS" {% if storage.ci_protocol == "https" %}checked{% endif %}>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">访问域名</label>
<div class="layui-input-block">
<input class="layui-input" type="text" name="ci_domain" value="{{ storage.ci_domain }}" lay-verify="required">
</div>
<table class="layui-table" lay-size="lg">
<colgroup>
<col>
<col>
</colgroup>
<thead>
<tr>
<th>样式名称</th>
<th>样式描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>avatar_160</td>
<td>imageMogr2/thumbnail/160x/interlace/0</td>
</tr>
<tr>
<td>cover_270</td>
<td>mageMogr2/thumbnail/270x/interlace/0</td>
</tr>
<tr>
<td>carousel_1100</td>
<td>imageMogr2/thumbnail/1100x/interlace/0</td>
</tr>
</tbody>
</table>
</div>
<div class="layui-form-item">
<label class="layui-form-label"></label>

View File

@ -1,3 +1,9 @@
{% set tc_val = request.get('tc','int','all') %}
{% set sc_val = request.get('sc','int','all') %}
{% set model_val = request.get('model','trim','all') %}
{% set level_val = request.get('level','trim','all') %}
{% set sort_val = request.get('sort','trim','score') %}
<div class="filter-toggle">
<span class="layui-icon layui-icon-up"></span>
</div>
@ -6,7 +12,6 @@
<div class="filter-group">
<div class="title">方向</div>
<div class="content">
{% set tc_val = request.get('tc','int','all') %}
{% for category in top_categories %}
{% set class = tc_val == category.id ? 'layui-btn layui-btn-xs' : 'none' %}
<a class="{{ class }}" href="{{ category.url }}">{{ category.name }}</a>
@ -17,7 +22,6 @@
<div class="filter-group">
<div class="title">分类</div>
<div class="content">
{% set sc_val = request.get('sc','int','all') %}
{% for category in sub_categories %}
{% set class = sc_val == category.id ? 'layui-btn layui-btn-xs' : 'none' %}
<a class="{{ class }}" href="{{ category.url }}">{{ category.name }}</a>
@ -28,7 +32,6 @@
<div class="filter-group">
<div class="title">类型</div>
<div class="content">
{% set model_val = request.get('model','trim','all') %}
{% for model in models %}
{% set class = model_val == model.id ? 'layui-btn layui-btn-xs' : 'none' %}
<a class="{{ class }}" href="{{ model.url }}">{{ model.name }}</a>
@ -38,7 +41,6 @@
<div class="filter-group">
<div class="title">难度</div>
<div class="content">
{% set level_val = request.get('level','trim','all') %}
{% for level in levels %}
{% set class = level_val == level.id ? 'layui-btn layui-btn-xs' : 'none' %}
<a class="{{ class }}" href="{{ level.url }}">{{ level.name }}</a>
@ -48,7 +50,6 @@
</div>
<div class="course-sort wrap">
{% set sort_val = request.get('sort','trim','score') %}
{% for sort in sorts %}
{% set class = sort_val == sort.id ? 'layui-btn layui-btn-xs' : 'none' %}
<a class="{{ class }}" href="{{ sort.url }}">{{ sort.name }}</a>

View File

@ -33,24 +33,24 @@
<p class="item">
<span class="key">难度级别</span><span class="value">{{ level_info(course.level) }}</span>
<span class="key">学习人次</span><span class="value">{{ course.user_count }}</span>
<span class="key">综合评分</span><span class="value">{{ course.ratings.rating }}</span>
<span class="key">综合评分</span><span class="value">{{ "%0.1f"|format(course.ratings.rating) }}</span>
</p>
</div>
<div class="rating">
<p class="item">
<span class="name">内容实用</span>
<span class="star">{{ star_info(course.ratings.rating1) }}</span>
<span class="score">{{ course.ratings.rating1 }}分</span>
<span class="score">{{ "%0.1f"|format(course.ratings.rating1) }}分</span>
</p>
<p class="item">
<span class="name">简洁易懂</span>
<span class="star">{{ star_info(course.ratings.rating2) }}</span>
<span class="score">{{ course.ratings.rating2 }}分</span>
<span class="score">{{ "%0.1f"|format(course.ratings.rating2) }}分</span>
</p>
<p class="item">
<span class="name">逻辑清晰</span>
<span class="star">{{ star_info(course.ratings.rating3) }}</span>
<span class="score">{{ course.ratings.rating3 }}分</span>
<span class="score">{{ "%0.1f"|format(course.ratings.rating3) }}分</span>
</p>
</div>
</div>

View File

@ -0,0 +1,9 @@
{%- macro priority_info(value) %}
{% if value == 10 %}
<span class="layui-badge layui-bg-red">高</span>
{% elseif value == 20 %}
<span class="layui-badge layui-bg-blue">中</span>
{% elseif value == 30 %}
<span class="layui-badge layui-bg-gray">低</span>
{% endif %}
{%- endmacro %}

View File

@ -1,9 +1,9 @@
{%- macro type_info(value) %}
{% if value == '1' %}
{% if value == 1 %}
<span class="layui-badge layui-bg-green type" title="课程交流">课</span>
{% elseif value == '2' %}
{% elseif value == 2 %}
<span class="layui-badge layui-bg-blue type" title="课外畅聊">聊</span>
{% elseif value == '3' %}
{% elseif value == 3 %}
<span class="layui-badge layui-bg-cyan type" title="职工交流">职</span>
{% endif %}
{%- endmacro %}

View File

@ -33,8 +33,8 @@
{% set delete_url = url({'for':'desktop.consult.delete','id':item.id}) %}
<tr>
<td>
<p class="layui-elip item-elip" title="{{ item.question }}">提问:{{ item.question }}</p>
<p class="layui-elip item-elip" title="{{ item.answer }}">回复:{{ item.answer }}</p>
<p class="content layui-elip" title="{{ item.question }}">提问:{{ item.question }}</p>
<p class="content layui-elip" title="{{ item.answer }}">回复:{{ item.answer }}</p>
</td>
<td>{{ date('Y-m-d',item.create_time) }}</td>
<td>

View File

@ -37,7 +37,7 @@
<td><a href="{{ course_url }}">{{ item.title }}</a> {{ model_info(item.model) }}</td>
<td>{{ item.user_count }}</td>
<td>{{ item.favorite_count }}</td>
<td>{{ item.rating }}</td>
<td>{{ "%0.1f"|format(item.rating) }}</td>
<td class="center">
<button class="layui-btn layui-btn-sm kg-delete" data-tips="确定要取消收藏吗?" data-url="{{ favorite_url }}">取消</button>
</td>

View File

@ -44,7 +44,7 @@
<tr>
<td><a href="{{ user_url }}" title="{{ item.about }}">{{ item.name }}</a></td>
<td>{{ gender_info(item.gender) }}</td>
<td>{{ item.location }}</td>
<td>{{ item.area }}</td>
<td>{{ item.active_time|time_ago }}</td>
<td>
<button class="layui-btn layui-btn-sm kg-delete" data-url="{{ delete_url }}">删除</button>

View File

@ -2,13 +2,7 @@
{% block content %}
{%- macro type_info(value) %}
{% if value == 'course' %}
<span class="layui-badge layui-bg-green">课</span>
{% elseif value == 'chat' %}
<span class="layui-badge layui-bg-blue">聊</span>
{% endif %}
{%- endmacro %}
{{ partial('macros/group') }}
{% set joined_url = url({'for':'desktop.my.groups'},{'type':'joined'}) %}
{% set owned_url = url({'for':'desktop.my.groups'},{'type':'owned'}) %}

View File

@ -16,10 +16,11 @@
</thead>
<tbody>
{% for item in pager.items %}
{% set show_url = url({'for':'desktop.group.show','id':item.id}) %}
{% set owner_url = url({'for':'desktop.user.show','id':item.owner.id}) %}
{% set delete_url = url({'for':'desktop.im.quit_group','id':item.id}) %}
<tr>
<td><span title="{{ item.about }}">{{ item.name }}</span> {{ type_info(item.type) }}</td>
<td><a href="{{ show_url }}" title="{{ item.about }}">{{ item.name }}</a> {{ type_info(item.type) }}</td>
<td><a href="{{ owner_url }}">{{ item.owner.name }}</a></td>
<td>{{ item.user_count }}</td>
<td>

View File

@ -36,9 +36,9 @@
<p class="content layui-elip" title="{{ item.content }}">评价:{{ item.content }}</p>
</td>
<td>
<p class="rating">内容实用:{{ item.rating1 }}</p>
<p class="rating">通俗易懂:{{ item.rating2 }}</p>
<p class="rating">逻辑清晰:{{ item.rating3 }}</p>
<p class="rating">内容实用:{{ "%0.1f"|format(item.rating1) }}</p>
<p class="rating">通俗易懂:{{ "%0.1f"|format(item.rating2) }}</p>
<p class="rating">逻辑清晰:{{ "%0.1f"|format(item.rating3) }}</p>
</td>
<td>
<button class="layui-btn layui-btn-xs btn-edit-review" data-url="{{ edit_url }}">修改</button>

View File

@ -2,6 +2,8 @@
{% block content %}
{{ partial('macros/consult') }}
{% set status_types = {'all':'全部','pending':'待回复','replied':'已回复'} %}
{% set status = request.get('status','trim','all') %}
@ -45,7 +47,7 @@
<p class="content layui-elip" title="{{ item.question }}">提问:{{ item.question }}</p>
<p class="content layui-elip" title="{{ item.answer }}">回复:{{ answer }}</p>
</td>
<td>{{ item.priority }}</td>
<td>{{ priority_info(item.priority) }}</td>
<td>{{ date('Y-m-d',item.create_time) }}</td>
<td>
<button class="layui-btn layui-btn-xs layui-bg-green btn-show-consult" data-url="{{ show_url }}">详情</button>

View File

@ -37,7 +37,7 @@
<td>{{ item.lesson_count }}</td>
<td>{{ item.user_count }}</td>
<td>{{ item.favorite_count }}</td>
<td>{{ item.rating }}</td>
<td>{{ "%0.1f"|format(item.rating) }}</td>
</tr>
{% endfor %}
</tbody>

View File

@ -56,6 +56,13 @@ class Consult extends Model
*/
public $answer;
/**
* 评分
*
* @var int
*/
public $rating;
/**
* 优先级
*

View File

@ -27,8 +27,8 @@ class ConsultInfo extends FrontendService
'id' => $consult->id,
'question' => $consult->question,
'answer' => $consult->answer,
'private' => $consult->private,
'rating' => $consult->rating,
'private' => $consult->private,
'like_count' => $consult->like_count,
'create_time' => $consult->create_time,
'update_time' => $consult->update_time,

View File

@ -82,52 +82,52 @@ final class InsertSettingData extends AbstractMigration
],
[
'section' => 'live.push',
'item_key' => 'push_auth_enabled',
'item_key' => 'auth_enabled',
'item_value' => '1',
],
[
'section' => 'live.push',
'item_key' => 'push_auth_key',
'item_key' => 'auth_key',
'item_value' => '',
],
[
'section' => 'live.push',
'item_key' => 'push_auth_delta',
'item_key' => 'auth_delta',
'item_value' => '18000',
],
[
'section' => 'live.pull',
'item_key' => 'pull_protocol',
'item_key' => 'protocol',
'item_value' => 'http',
],
[
'section' => 'live.pull',
'item_key' => 'pull_domain',
'item_key' => 'domain',
'item_value' => '',
],
[
'section' => 'live.pull',
'item_key' => 'pull_trans_enabled',
'item_key' => 'trans_enabled',
'item_value' => '0',
],
[
'section' => 'live.pull',
'item_key' => 'pull_auth_enabled',
'item_key' => 'auth_enabled',
'item_value' => '1',
],
[
'section' => 'live.pull',
'item_key' => 'pull_auth_key',
'item_key' => 'auth_key',
'item_value' => '',
],
[
'section' => 'live.pull',
'item_key' => 'pull_auth_delta',
'item_key' => 'auth_delta',
'item_value' => '18000',
],
[
'section' => 'live.notify',
'item_key' => 'pull_auth_key',
'item_key' => 'auth_key',
'item_value' => '',
],
[

View File

@ -73,6 +73,7 @@
}
.pager {
margin-top: 20px;
text-align: center;
}