You've already forked think-plugs-notice
Init
This commit is contained in:
39
composer.json
Normal file
39
composer.json
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"name": "q792602257/think-plugs-notice",
|
||||||
|
"description": "ThinkAdmin Plugin: User Notice",
|
||||||
|
"version": "dev-master",
|
||||||
|
"minimum-stability": "dev",
|
||||||
|
"license": "WTFPL",
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Jerry Yan",
|
||||||
|
"email": "792602257@qq.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"extra": {
|
||||||
|
"config": {
|
||||||
|
"type": "module",
|
||||||
|
"name": "消息提醒",
|
||||||
|
"platforms": ["h5web"],
|
||||||
|
"description": "消息提醒"
|
||||||
|
},
|
||||||
|
"plugin": {
|
||||||
|
"copy": {
|
||||||
|
"stc/database": "database/migrations"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"think": {
|
||||||
|
"services": [
|
||||||
|
"jerryyan\\notice\\Service"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"jerryyan\\notice\\": "src"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
15
src/Service.php
Normal file
15
src/Service.php
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace jerryyan\notice;
|
||||||
|
|
||||||
|
use think\admin\Plugin;
|
||||||
|
|
||||||
|
class Service extends Plugin
|
||||||
|
{
|
||||||
|
protected $appName = '通知提醒';
|
||||||
|
|
||||||
|
public static function menu(): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
23
src/view/main.html
Normal file
23
src/view/main.html
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<div class="layui-card">
|
||||||
|
{block name='style'}{/block}
|
||||||
|
{block name='header'}
|
||||||
|
{notempty name='title'}
|
||||||
|
<div class="layui-card-header">
|
||||||
|
<span class="layui-icon font-s10 color-desc margin-right-5"></span>{$title|lang}
|
||||||
|
<div class="pull-right">{block name='button'}{/block}</div>
|
||||||
|
</div>
|
||||||
|
{/notempty}
|
||||||
|
{/block}
|
||||||
|
<div class="layui-card-line"></div>
|
||||||
|
<div class="layui-card-body">
|
||||||
|
<div class="layui-card-html">
|
||||||
|
{notempty name='showErrorMessage'}
|
||||||
|
<div class="think-box-notify" type="error">
|
||||||
|
<b>{:lang('系统提示:')}</b><span>{$showErrorMessage|raw}</span>
|
||||||
|
</div>
|
||||||
|
{/notempty}
|
||||||
|
{block name='content'}{/block}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{block name='script'}{/block}
|
||||||
|
</div>
|
23
src/view/table.html
Normal file
23
src/view/table.html
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<div class="layui-card">
|
||||||
|
{block name='style'}{/block}
|
||||||
|
{block name='header'}
|
||||||
|
{notempty name='title'}
|
||||||
|
<div class="layui-card-header">
|
||||||
|
<span class="layui-icon font-s10 color-desc margin-right-5"></span>{$title|lang}
|
||||||
|
<div class="pull-right">{block name='button'}{/block}</div>
|
||||||
|
</div>
|
||||||
|
{/notempty}
|
||||||
|
{/block}
|
||||||
|
<div class="layui-card-line"></div>
|
||||||
|
<div class="layui-card-body">
|
||||||
|
<div class="layui-card-table">
|
||||||
|
{notempty name='showErrorMessage'}
|
||||||
|
<div class="think-box-notify" type="error">
|
||||||
|
<b>{:lang('系统提示:')}</b><span>{$showErrorMessage|raw}</span>
|
||||||
|
</div>
|
||||||
|
{/notempty}
|
||||||
|
{block name='content'}{/block}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{block name='script'}{/block}
|
||||||
|
</div>
|
Reference in New Issue
Block a user