调整展示内容
parent
2e6ed6b5be
commit
f3f6fe6df1
|
|
@ -21,19 +21,16 @@ class HomeController extends AdminController
|
||||||
{
|
{
|
||||||
$page = $this->basePage()->css($this->css())->body([
|
$page = $this->basePage()->css($this->css())->body([
|
||||||
Grid::make()->columns([
|
Grid::make()->columns([
|
||||||
$this->frameworkInfo()->md(5),
|
$this->frameworkInfo()->md(8),
|
||||||
Flex::make()->items([
|
Flex::make()->items([
|
||||||
$this->pieChart(),
|
|
||||||
$this->cube(),
|
|
||||||
]),
|
|
||||||
]),
|
|
||||||
Grid::make()->columns([
|
|
||||||
$this->lineChart()->md(8),
|
|
||||||
Flex::make()->className('h-full')->items([
|
|
||||||
$this->clock(),
|
$this->clock(),
|
||||||
$this->hitokoto(),
|
$this->hitokoto(),
|
||||||
])->direction('column'),
|
])->direction('column'),
|
||||||
]),
|
]),
|
||||||
|
Grid::make()->columns([
|
||||||
|
$this->lineChart()->md(6),
|
||||||
|
$this->pieChart()->md(6),
|
||||||
|
]),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return $this->response()->success($page);
|
return $this->response()->success($page);
|
||||||
|
|
@ -87,7 +84,7 @@ JS
|
||||||
])->body([
|
])->body([
|
||||||
Custom::make()
|
Custom::make()
|
||||||
->name('clock')
|
->name('clock')
|
||||||
->html('<div id="clock" class="text-4xl"></div><div id="clock-date" class="mt-5"></div>')
|
->html('<div id="clock" class="text-5xl"></div><div id="clock-date" class="mt-5"></div>')
|
||||||
->onMount(<<<JS
|
->onMount(<<<JS
|
||||||
const clock = document.getElementById('clock');
|
const clock = document.getElementById('clock');
|
||||||
const tick = () => {
|
const tick = () => {
|
||||||
|
|
@ -112,25 +109,7 @@ JS
|
||||||
Image::make()->src(url(config('admin.logo'))),
|
Image::make()->src(url(config('admin.logo'))),
|
||||||
Wrapper::make()->className('text-3xl mt-9')->body(config('admin.name')),
|
Wrapper::make()->className('text-3xl mt-9')->body(config('admin.name')),
|
||||||
Flex::make()->className('w-64 mt-5')->justify('space-around')->items([
|
Flex::make()->className('w-64 mt-5')->justify('space-around')->items([
|
||||||
Action::make()
|
|
||||||
->level('link')
|
|
||||||
->label('GitHub')
|
|
||||||
->blank(true)
|
|
||||||
->actionType('url')
|
|
||||||
->blank(true)
|
|
||||||
->link('https://github.com/slowlyo/owl-admin'),
|
|
||||||
Action::make()
|
|
||||||
->level('link')
|
|
||||||
->label('OwlAdmin 文档')
|
|
||||||
->blank(true)
|
|
||||||
->actionType('url')
|
|
||||||
->link('https://learnku.com/docs/owl-admin'),
|
|
||||||
Action::make()
|
|
||||||
->level('link')
|
|
||||||
->label('Amis 文档')
|
|
||||||
->blank(true)
|
|
||||||
->actionType('url')
|
|
||||||
->link('https://aisuda.bce.baidu.com/amis/zh-CN/docs/index'),
|
|
||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
])
|
])
|
||||||
|
|
@ -141,6 +120,7 @@ JS
|
||||||
{
|
{
|
||||||
return Card::make()->className('h-96')->body(
|
return Card::make()->className('h-96')->body(
|
||||||
Chart::make()->height(350)->config("{
|
Chart::make()->height(350)->config("{
|
||||||
|
title:{ text: '护理占比', },
|
||||||
tooltip: { trigger: 'item' },
|
tooltip: { trigger: 'item' },
|
||||||
legend: { bottom: 0, left: 'center' },
|
legend: { bottom: 0, left: 'center' },
|
||||||
series: [
|
series: [
|
||||||
|
|
@ -181,19 +161,19 @@ JS
|
||||||
$random1 = $randArr();
|
$random1 = $randArr();
|
||||||
$random2 = $randArr();
|
$random2 = $randArr();
|
||||||
|
|
||||||
$chart = Chart::make()->height(380)->className('h-96')->config("{
|
$chart = Chart::make()->config("{
|
||||||
title:{ text: '会员增长情况', },
|
title:{ text: '入住情况', },
|
||||||
tooltip: { trigger: 'axis' },
|
tooltip: { trigger: 'axis' },
|
||||||
xAxis: { type: 'category', boundaryGap: false, data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] },
|
xAxis: { type: 'category', boundaryGap: false, data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] },
|
||||||
yAxis: { type: 'value' },
|
yAxis: { type: 'value' },
|
||||||
grid:{ left: '7%', right:'3%', top: 60, bottom: 30, },
|
grid:{ left: '7%', right:'3%', top: 60, bottom: 30, },
|
||||||
legend: { data: ['访问量','注册量'] },
|
legend: { data: ['访问量','注册量'] },
|
||||||
series: [
|
series: [
|
||||||
{ name: '访问量', data: {$random1}, type: 'line', areaStyle: {}, smooth: true, symbol: 'none', },
|
{ name: '入住量', data: {$random1}, type: 'line', areaStyle: {}, smooth: true, symbol: 'none', },
|
||||||
{ name:'注册量', data: {$random2}, type: 'line', areaStyle: {}, smooth: true, symbol: 'none', },
|
{ name:'注册量', data: {$random2}, type: 'line', areaStyle: {}, smooth: true, symbol: 'none', },
|
||||||
]}");
|
]}");
|
||||||
|
|
||||||
return Card::make()->className('clear-card-mb')->body($chart);
|
return Card::make()->height(380)->className('h-96')->body($chart);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function cube(): Card
|
public function cube(): Card
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ class LiveContinueController extends AdminController
|
||||||
$crud = $this->baseCRUD()
|
$crud = $this->baseCRUD()
|
||||||
->filterTogglable(false)
|
->filterTogglable(false)
|
||||||
->headerToolbar([
|
->headerToolbar([
|
||||||
...$this->baseHeaderToolBar(),
|
amis('button')->label('续住')->icon('fa fa-plus')->actionType('link')->level('primary')->link('live-in-continue'),
|
||||||
])
|
])
|
||||||
->filter(
|
->filter(
|
||||||
$this->baseFilter()->body([
|
$this->baseFilter()->body([
|
||||||
|
|
@ -43,7 +43,8 @@ class LiveContinueController extends AdminController
|
||||||
TableColumn::make()->name('client_phone')->label('委托人-手机号')->copyable(true),
|
TableColumn::make()->name('client_phone')->label('委托人-手机号')->copyable(true),
|
||||||
TableColumn::make()->name('avliable_at')->label('截至时间')->type('datetime')->sortable(true),
|
TableColumn::make()->name('avliable_at')->label('截至时间')->type('datetime')->sortable(true),
|
||||||
amisMake()->Operation()->label(__('admin.actions'))->buttons([
|
amisMake()->Operation()->label(__('admin.actions'))->buttons([
|
||||||
|
amisMake()->LinkAction()->label('续住')->icon('fa fa-plus')->link('live-continue-do?oldman_id=${id}')->level('link'),
|
||||||
|
amisMake()->LinkAction()->label('结算')->icon('fa fa-external-link-alt')->link('live-exit-do?oldman_id=${id}')->level('link')
|
||||||
]),
|
]),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ class LiveInController extends AdminController
|
||||||
$crud = $this->baseCRUD()
|
$crud = $this->baseCRUD()
|
||||||
->filterTogglable(false)
|
->filterTogglable(false)
|
||||||
->headerToolbar([
|
->headerToolbar([
|
||||||
...$this->baseHeaderToolBar(),
|
amis('button')->label('入住')->icon('fa fa-plus')->actionType('link')->level('primary')->link('live-in-do'),
|
||||||
])
|
])
|
||||||
->filter(
|
->filter(
|
||||||
$this->baseFilter()->body([
|
$this->baseFilter()->body([
|
||||||
|
|
@ -44,7 +44,8 @@ class LiveInController extends AdminController
|
||||||
TableColumn::make()->name('live_in_at')->label('入住时间')->type('datetime')->sortable(true),
|
TableColumn::make()->name('live_in_at')->label('入住时间')->type('datetime')->sortable(true),
|
||||||
TableColumn::make()->name('avliable_at')->label('截至时间')->type('datetime')->sortable(true),
|
TableColumn::make()->name('avliable_at')->label('截至时间')->type('datetime')->sortable(true),
|
||||||
amisMake()->Operation()->label(__('admin.actions'))->buttons([
|
amisMake()->Operation()->label(__('admin.actions'))->buttons([
|
||||||
|
amisMake()->LinkAction()->label('续住')->icon('fa fa-plus')->link('live-continue-do?oldman_id=${id}')->level('link'),
|
||||||
|
amisMake()->LinkAction()->label('结算')->icon('fa fa-external-link-alt')->link('live-exit-do?oldman_id=${id}')->level('link')
|
||||||
]),
|
]),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@ class OldmenController extends AdminController
|
||||||
->filterTogglable(false)
|
->filterTogglable(false)
|
||||||
->headerToolbar([
|
->headerToolbar([
|
||||||
$this->createButton(true, 'lg'),
|
$this->createButton(true, 'lg'),
|
||||||
...$this->baseHeaderToolBar(),
|
|
||||||
])
|
])
|
||||||
->filter(
|
->filter(
|
||||||
$this->baseFilter()->body([
|
$this->baseFilter()->body([
|
||||||
|
|
@ -58,10 +57,16 @@ class OldmenController extends AdminController
|
||||||
TableColumn::make()->name('nurse_lv')->type('mapping')->map(Keyword::getByParentKey('nurse_lv')->pluck('name', 'value'))->label('护理等级')->className('text-primary')->sortable(),
|
TableColumn::make()->name('nurse_lv')->type('mapping')->map(Keyword::getByParentKey('nurse_lv')->pluck('name', 'value'))->label('护理等级')->className('text-primary')->sortable(),
|
||||||
TableColumn::make()->name('client_name')->label('委托人'),
|
TableColumn::make()->name('client_name')->label('委托人'),
|
||||||
TableColumn::make()->name('client_phone')->label('委托人-手机号')->copyable(true),
|
TableColumn::make()->name('client_phone')->label('委托人-手机号')->copyable(true),
|
||||||
//状态显示:未入住、已办理,未入住、已入住-todo
|
//状态显示:已入住、未入住
|
||||||
|
TableColumn::make()->name('live_in')->type('mapping')->map([
|
||||||
|
"0"=>"<span class='label label-info'>未入住</span>",
|
||||||
|
"1"=>"<span class='label label-success'>已入住</span>",
|
||||||
|
"*"=> '其他:${live_in}'
|
||||||
|
])->label('状态')->sortable(),
|
||||||
TableColumn::make()->name('created_at')->label(__('admin.created_at'))->type('datetime')->sortable(true),
|
TableColumn::make()->name('created_at')->label(__('admin.created_at'))->type('datetime')->sortable(true),
|
||||||
amisMake()->Operation()->label(__('admin.actions'))->buttons([
|
amisMake()->Operation()->label(__('admin.actions'))->buttons([
|
||||||
|
amisMake()->LinkAction()->label('入住')->icon('fa fa-plus')->link('live-in-do?oldman_id=${id}')->level('link')->hiddenOn('this.live_in == 1'),
|
||||||
|
amisMake()->LinkAction()->label('续住')->icon('fa fa-plus')->link('live-continue-do?oldman_id=${id}')->level('link')->hiddenOn('this.live_in == 0'),
|
||||||
$this->rowEditButton(true, 'lg'),
|
$this->rowEditButton(true, 'lg'),
|
||||||
$this->rowDeleteButton()
|
$this->rowDeleteButton()
|
||||||
]),
|
]),
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,9 @@
|
||||||
|
|
||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Carbon\Carbon;
|
||||||
use EloquentFilter\Filterable;
|
use EloquentFilter\Filterable;
|
||||||
|
use Illuminate\Database\Eloquent\Casts\Attribute;
|
||||||
use Slowlyo\OwlAdmin\Models\BaseModel as Model;
|
use Slowlyo\OwlAdmin\Models\BaseModel as Model;
|
||||||
|
|
||||||
class Oldmen extends Model
|
class Oldmen extends Model
|
||||||
|
|
@ -22,6 +24,8 @@ class Oldmen extends Model
|
||||||
'birthday' => 'datetime:Y-m-d',
|
'birthday' => 'datetime:Y-m-d',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
protected $appends = ['age'];
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
'name', 'sex', 'birthday', 'card_no', 'card_city_code', 'card_province_id', 'card_city_id', 'card_area_id', 'card_address', 'card_complete_address',
|
'name', 'sex', 'birthday', 'card_no', 'card_city_code', 'card_province_id', 'card_city_id', 'card_area_id', 'card_address', 'card_complete_address',
|
||||||
'client_name', 'client_phone', 'client_city_code', 'client_province_id', 'client_city_id', 'client_area_id', 'client_address', 'client_complete_address',
|
'client_name', 'client_phone', 'client_city_code', 'client_province_id', 'client_city_id', 'client_area_id', 'client_address', 'client_complete_address',
|
||||||
|
|
@ -50,4 +54,11 @@ class Oldmen extends Model
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function age():Attribute
|
||||||
|
{
|
||||||
|
return Attribute::make(
|
||||||
|
get: fn($value) => $this->birthday ? Carbon::parse($this->birthday)->diffInYears(now()).'岁' : "未知",
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ namespace App\Services\Admin;
|
||||||
|
|
||||||
use App\Models\Oldmen;
|
use App\Models\Oldmen;
|
||||||
use App\Filters\Admin\OldmenFilter;
|
use App\Filters\Admin\OldmenFilter;
|
||||||
|
use App\Models\ConstFlow;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @method Oldmen getModel()
|
* @method Oldmen getModel()
|
||||||
|
|
@ -100,4 +101,20 @@ class OldmenService extends BaseService
|
||||||
}
|
}
|
||||||
return $money;
|
return $money;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*
|
||||||
|
* @param string $ids
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function delete(string $ids): mixed
|
||||||
|
{
|
||||||
|
//检查删除的记录中是否有记录已经有缴费记录;有,则无法删除
|
||||||
|
if(ConstFlow::whereIn('oldman_id', explode(',', $ids))->count()){
|
||||||
|
return $this->setError('数据存在关联信息,已无法删除,请联系开发者删除。');
|
||||||
|
};
|
||||||
|
return $this->query()->whereIn($this->primaryKey(), explode(',', $ids))->delete();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "f9f1c22ac338b3bb4697fcbcc921a5bd",
|
"content-hash": "a483aafe1cb9cc540a4db897e1c35ac4",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "brick/math",
|
"name": "brick/math",
|
||||||
|
|
@ -2353,16 +2353,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "slowlyo/owl-admin",
|
"name": "slowlyo/owl-admin",
|
||||||
"version": "v2.5.6",
|
"version": "v2.6.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Slowlyo/owl-admin.git",
|
"url": "https://github.com/Slowlyo/owl-admin.git",
|
||||||
"reference": "86c6117f681570a3862845ce182a3c80051098d3"
|
"reference": "07f6e09f1d24dd5a44b41018663114041e4353c3"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/Slowlyo/owl-admin/zipball/86c6117f681570a3862845ce182a3c80051098d3",
|
"url": "https://api.github.com/repos/Slowlyo/owl-admin/zipball/07f6e09f1d24dd5a44b41018663114041e4353c3",
|
||||||
"reference": "86c6117f681570a3862845ce182a3c80051098d3",
|
"reference": "07f6e09f1d24dd5a44b41018663114041e4353c3",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
|
@ -2382,7 +2382,7 @@
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/Libs/helpers.php"
|
"src/Support/helpers.php"
|
||||||
],
|
],
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Slowlyo\\OwlAdmin\\": "src/"
|
"Slowlyo\\OwlAdmin\\": "src/"
|
||||||
|
|
@ -2404,13 +2404,14 @@
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"OwlAdmin",
|
"OwlAdmin",
|
||||||
"admin",
|
"admin",
|
||||||
|
"amis",
|
||||||
"laravel"
|
"laravel"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/Slowlyo/owl-admin/issues",
|
"issues": "https://github.com/Slowlyo/owl-admin/issues",
|
||||||
"source": "https://github.com/Slowlyo/owl-admin/tree/v2.5.6"
|
"source": "https://github.com/Slowlyo/owl-admin/tree/v2.6.1"
|
||||||
},
|
},
|
||||||
"time": "2023-05-17T12:38:22+00:00"
|
"time": "2023-06-07T13:32:00+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/console",
|
"name": "symfony/console",
|
||||||
|
|
|
||||||
|
|
@ -57,13 +57,6 @@ return [
|
||||||
// 是否显示 [权限] 功能中的自动生成按钮
|
// 是否显示 [权限] 功能中的自动生成按钮
|
||||||
'show_auto_generate_permission_button' => env('ADMIN_SHOW_AUTO_GENERATE_PERMISSION_BUTTON', true),
|
'show_auto_generate_permission_button' => env('ADMIN_SHOW_AUTO_GENERATE_PERMISSION_BUTTON', true),
|
||||||
|
|
||||||
'dev_tools' => [
|
|
||||||
'terminal' => [
|
|
||||||
'php_alias' => 'php',
|
|
||||||
'composer_alias' => 'composer',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
// 扩展
|
// 扩展
|
||||||
'extension' => [
|
'extension' => [
|
||||||
'dir' => base_path('extensions'),
|
'dir' => base_path('extensions'),
|
||||||
|
|
@ -95,4 +88,11 @@ return [
|
||||||
// 底部信息
|
// 底部信息
|
||||||
'footer' => '<a href="https://github.com/slowlyo/owl-admin" target="_blank">Owl Admin</a>',
|
'footer' => '<a href="https://github.com/slowlyo/owl-admin" target="_blank">Owl Admin</a>',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'models' => [
|
||||||
|
'admin_user' => \Slowlyo\OwlAdmin\Models\AdminUser::class,
|
||||||
|
'admin_role' => \Slowlyo\OwlAdmin\Models\AdminRole::class,
|
||||||
|
'admin_menu' => \Slowlyo\OwlAdmin\Models\AdminMenu::class,
|
||||||
|
'admin_permission' => \Slowlyo\OwlAdmin\Models\AdminPermission::class,
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ return [
|
||||||
'edit' => 'Edit',
|
'edit' => 'Edit',
|
||||||
'show' => 'Show',
|
'show' => 'Show',
|
||||||
'delete' => 'Delete',
|
'delete' => 'Delete',
|
||||||
|
'copy' => 'Copy',
|
||||||
'confirm_delete' => 'Confirm Delete Selected Items?',
|
'confirm_delete' => 'Confirm Delete Selected Items?',
|
||||||
'back' => 'Back',
|
'back' => 'Back',
|
||||||
'reset' => 'Reset',
|
'reset' => 'Reset',
|
||||||
|
|
@ -53,6 +54,7 @@ return [
|
||||||
'yes' => 'Yes',
|
'yes' => 'Yes',
|
||||||
'no' => 'No',
|
'no' => 'No',
|
||||||
'need_start_with_slash' => 'Need Start With /',
|
'need_start_with_slash' => 'Need Start With /',
|
||||||
|
'cancel' => 'Cancel',
|
||||||
|
|
||||||
'code_generators' => [
|
'code_generators' => [
|
||||||
'remark1' => 'For more parameters, please refer to',
|
'remark1' => 'For more parameters, please refer to',
|
||||||
|
|
@ -82,6 +84,41 @@ return [
|
||||||
'generate_code' => 'Generate Code',
|
'generate_code' => 'Generate Code',
|
||||||
'expand_more_settings' => 'More Settings',
|
'expand_more_settings' => 'More Settings',
|
||||||
'collapse_settings' => 'Collapse Settings',
|
'collapse_settings' => 'Collapse Settings',
|
||||||
|
'confirm_generate_code' => 'Confirm Generate Code?',
|
||||||
|
'preview' => 'Preview',
|
||||||
|
'base_info' => 'Base Info',
|
||||||
|
'column_info' => 'Column Info',
|
||||||
|
'route_config' => 'Route Config',
|
||||||
|
'page_config' => 'Page Config',
|
||||||
|
'gen_route_menu' => 'Generate Route And Menu',
|
||||||
|
'route' => 'Route',
|
||||||
|
'menu_name' => 'Menu Name',
|
||||||
|
'parent_menu' => 'Parent Menu',
|
||||||
|
'menu_icon' => 'Menu Icon',
|
||||||
|
'name_label_desc' => 'Name And Label Attribute Take Field Name And Comment',
|
||||||
|
'column_warning' => 'If the field name exists (no / status) will cause the form to fail to echo back!',
|
||||||
|
'add_column' => 'Add Column',
|
||||||
|
'scope' => 'Scope',
|
||||||
|
'list_component' => 'List Component',
|
||||||
|
'list_component_desc' => 'List Component, Default Is TableColumn',
|
||||||
|
'form_component' => 'Form Component',
|
||||||
|
'form_component_desc' => 'Form Component, Default Is TextControl',
|
||||||
|
'detail_component' => 'Detail Component',
|
||||||
|
'detail_component_desc' => 'Detail Component, Default Is TextControl',
|
||||||
|
'model_config' => 'Model Config',
|
||||||
|
'file_column' => 'File Column',
|
||||||
|
'file_column_desc' => 'File Column, Automatically Add Attribute Methods In The Model',
|
||||||
|
'preview_code' => 'Preview Code',
|
||||||
|
'property' => 'Property',
|
||||||
|
'property_name' => 'Property Name',
|
||||||
|
'value' => 'Value',
|
||||||
|
'dialog_form' => 'Dialog Form',
|
||||||
|
'dialog_size' => 'Dialog Size',
|
||||||
|
'copy_record' => 'Copy Record',
|
||||||
|
'copy_record_description' => 'You can copy and share to <a href="https://github.com/Slowlyo/owl-admin/discussions/categories/%E4%BB%A3%E7%A0%81%E7%94%9F%E6%88%90%E8%AE%B0%E5%BD%95" target="_blank">Github</a>',
|
||||||
|
'import_record' => 'Import Record',
|
||||||
|
'import_record_placeholder' => 'Please enter the imported json record',
|
||||||
|
'import_record_desc' => 'You can find some records shared by others on <a href="https://github.com/Slowlyo/owl-admin/discussions/categories/%E4%BB%A3%E7%A0%81%E7%94%9F%E6%88%90%E8%AE%B0%E5%BD%95" target="_blank">Github</a>',
|
||||||
],
|
],
|
||||||
|
|
||||||
'admin_users' => 'Admin Users',
|
'admin_users' => 'Admin Users',
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ return [
|
||||||
'edit' => '编辑',
|
'edit' => '编辑',
|
||||||
'show' => '查看',
|
'show' => '查看',
|
||||||
'delete' => '删除',
|
'delete' => '删除',
|
||||||
|
'copy' => '复制',
|
||||||
'confirm_delete' => '确认删除选中项?',
|
'confirm_delete' => '确认删除选中项?',
|
||||||
'back' => '返回',
|
'back' => '返回',
|
||||||
'reset' => '重置',
|
'reset' => '重置',
|
||||||
|
|
@ -55,6 +56,7 @@ return [
|
||||||
'yes' => '是',
|
'yes' => '是',
|
||||||
'no' => '否',
|
'no' => '否',
|
||||||
'need_start_with_slash' => '需要以 / 开头',
|
'need_start_with_slash' => '需要以 / 开头',
|
||||||
|
'cancel' => '取消',
|
||||||
|
|
||||||
'code_generators' => [
|
'code_generators' => [
|
||||||
'remark1' => '额外参数请参考',
|
'remark1' => '额外参数请参考',
|
||||||
|
|
@ -84,6 +86,41 @@ return [
|
||||||
'generate_code' => '生成代码',
|
'generate_code' => '生成代码',
|
||||||
'expand_more_settings' => '更多设置',
|
'expand_more_settings' => '更多设置',
|
||||||
'collapse_settings' => '收起设置',
|
'collapse_settings' => '收起设置',
|
||||||
|
'confirm_generate_code' => '确认生成代码?',
|
||||||
|
'preview' => '预览',
|
||||||
|
'base_info' => '基本信息',
|
||||||
|
'column_info' => '字段信息',
|
||||||
|
'route_config' => '路由配置',
|
||||||
|
'page_config' => '页面配置',
|
||||||
|
'gen_route_menu' => '生成路由&菜单',
|
||||||
|
'route' => '路由',
|
||||||
|
'menu_name' => '菜单名称',
|
||||||
|
'parent_menu' => '父级菜单',
|
||||||
|
'menu_icon' => '菜单图标',
|
||||||
|
'name_label_desc' => 'name和label属性取字段名和注释',
|
||||||
|
'column_warning' => '如果字段名存在 no、status 会导致 form 回显失败!',
|
||||||
|
'add_column' => '添加字段',
|
||||||
|
'scope' => '作用域',
|
||||||
|
'list_component' => '列表组件',
|
||||||
|
'list_component_desc' => '列表组件, 默认为 TableColumn',
|
||||||
|
'form_component' => '表单组件',
|
||||||
|
'form_component_desc' => '表单组件, 默认为 TextControl',
|
||||||
|
'detail_component' => '详情组件',
|
||||||
|
'detail_component_desc' => '详情组件, 默认为 TextControl',
|
||||||
|
'model_config' => '模型配置',
|
||||||
|
'file_column' => '文件字段',
|
||||||
|
'file_column_desc' => '文件字段会自动在模型中添加 获取/修改器 方法',
|
||||||
|
'preview_code' => '预览代码',
|
||||||
|
'property' => '属性',
|
||||||
|
'property_name' => '属性名称',
|
||||||
|
'value' => '值',
|
||||||
|
'dialog_form' => '弹窗表单',
|
||||||
|
'dialog_size' => '弹窗大小',
|
||||||
|
'copy_record' => '复制记录',
|
||||||
|
'copy_record_description' => '你可以复制后分享到 <a href="https://github.com/Slowlyo/owl-admin/discussions/categories/%E4%BB%A3%E7%A0%81%E7%94%9F%E6%88%90%E8%AE%B0%E5%BD%95" target="_blank">Github</a>',
|
||||||
|
'import_record' => '导入记录',
|
||||||
|
'import_record_placeholder' => '请输入导入的json记录',
|
||||||
|
'import_record_desc' => '你可以在 <a href="https://github.com/Slowlyo/owl-admin/discussions/categories/%E4%BB%A3%E7%A0%81%E7%94%9F%E6%88%90%E8%AE%B0%E5%BD%95" target="_blank">Github</a> 找到一些其他人分享的记录',
|
||||||
],
|
],
|
||||||
|
|
||||||
'admin_users' => '管理员',
|
'admin_users' => '管理员',
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{l as e}from"./editor.main-2fff42fa.js";import"./index-416837cb.js";var t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},o={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{r as conf,o as language};
|
||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{conf as t,language as e}from"./typescript-3ed046ab.js";import"./editor.main-2fff42fa.js";import"./index-416837cb.js";var r=t,a={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{r as conf,a as language};
|
||||||
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{l as e}from"./editor.main-2fff42fa.js";import"./index-416837cb.js";var t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}]},r={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=><!]+/,identifier:/[a-zA-Z_][\w]*/,tokenizer:{root:[[/\{\%\s*comment\s*\%\}/,"comment.start.liquid","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@liquidState.root"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.root"}],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],comment:[[/\{\%\s*endcomment\s*\%\}/,"comment.end.liquid","@pop"],[/./,"comment.content.liquid"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{o as conf,r as language};
|
||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1,3 @@
|
||||||
|
import{g as x}from"./index-416837cb.js";import{a}from"./codemirror-97f56a35.js";function b(A,u){for(var t=0;t<u.length;t++){const r=u[t];if(typeof r!="string"&&!Array.isArray(r)){for(const f in r)if(f!=="default"&&!(f in A)){const g=Object.getOwnPropertyDescriptor(r,f);g&&Object.defineProperty(A,f,g.get?g:{enumerable:!0,get:()=>r[f]})}}}return Object.freeze(Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}))}var D={exports:{}};(function(A,u){(function(t){t(a)})(function(t){t.multiplexingMode=function(r){var f=Array.prototype.slice.call(arguments,1);function g(n,i,l,e){if(typeof i=="string"){var p=n.indexOf(i,l);return e&&p>-1?p+i.length:p}var o=i.exec(l?n.slice(l):n);return o?o.index+l+(e?o[0].length:0):-1}return{startState:function(){return{outer:t.startState(r),innerActive:null,inner:null,startingInner:!1}},copyState:function(n){return{outer:t.copyState(r,n.outer),innerActive:n.innerActive,inner:n.innerActive&&t.copyState(n.innerActive.mode,n.inner),startingInner:n.startingInner}},token:function(n,i){if(i.innerActive){var c=i.innerActive,e=n.string;if(!c.close&&n.sol())return i.innerActive=i.inner=null,this.token(n,i);var v=c.close&&!i.startingInner?g(e,c.close,n.pos,c.parseDelimiters):-1;if(v==n.pos&&!c.parseDelimiters)return n.match(c.close),i.innerActive=i.inner=null,c.delimStyle&&c.delimStyle+" "+c.delimStyle+"-close";v>-1&&(n.string=e.slice(0,v));var y=c.mode.token(n,i.inner);return v>-1?n.string=e:n.pos>n.start&&(i.startingInner=!1),v==n.pos&&c.parseDelimiters&&(i.innerActive=i.inner=null),c.innerStyle&&(y?y=y+" "+c.innerStyle:y=c.innerStyle),y}else{for(var l=1/0,e=n.string,p=0;p<f.length;++p){var o=f[p],v=g(e,o.open,n.pos);if(v==n.pos){o.parseDelimiters||n.match(o.open),i.startingInner=!!o.parseDelimiters,i.innerActive=o;var d=0;if(r.indent){var m=r.indent(i.outer,"","");m!==t.Pass&&(d=m)}return i.inner=t.startState(o.mode,d),o.delimStyle&&o.delimStyle+" "+o.delimStyle+"-open"}else v!=-1&&v<l&&(l=v)}l!=1/0&&(n.string=e.slice(0,l));var S=r.token(n,i.outer);return l!=1/0&&(n.string=e),S}},indent:function(n,i,l){var e=n.innerActive?n.innerActive.mode:r;return e.indent?e.indent(n.innerActive?n.inner:n.outer,i,l):t.Pass},blankLine:function(n){var i=n.innerActive?n.innerActive.mode:r;if(i.blankLine&&i.blankLine(n.innerActive?n.inner:n.outer),n.innerActive)n.innerActive.close===`
|
||||||
|
`&&(n.innerActive=n.inner=null);else for(var l=0;l<f.length;++l){var e=f[l];e.open===`
|
||||||
|
`&&(n.innerActive=e,n.inner=t.startState(e.mode,i.indent?i.indent(n.outer,"",""):0))}},electricChars:r.electricChars,innerMode:function(n){return n.inner?{state:n.inner,mode:n.innerActive.mode}:{state:n.outer,mode:r}}}}})})();var s=D.exports;const j=x(s),k=b({__proto__:null,default:j},[s]);export{k as m};
|
||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{l as e}from"./editor.main-2fff42fa.js";import"./index-416837cb.js";var s={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async).*?:\\s*$"),action:{indentAction:e.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},r={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","and","as","assert","async","await","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};export{s as conf,r as language};
|
||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{g as b}from"./index-416837cb.js";import{a as I}from"./codemirror-97f56a35.js";function R(y,m){for(var f=0;f<m.length;f++){const S=m[f];if(typeof S!="string"&&!Array.isArray(S)){for(const s in S)if(s!=="default"&&!(s in y)){const v=Object.getOwnPropertyDescriptor(S,s);v&&Object.defineProperty(y,s,v.get?v:{enumerable:!0,get:()=>S[s]})}}}return Object.freeze(Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}))}var T={exports:{}};(function(y,m){(function(f){f(I)})(function(f){f.defineSimpleMode=function(t,o){f.defineMode(t,function(n){return f.simpleMode(n,o)})},f.simpleMode=function(t,o){S(o,"start");var n={},e=o.meta||{},d=!1;for(var l in o)if(l!=e&&o.hasOwnProperty(l))for(var u=n[l]=[],p=o[l],c=0;c<p.length;c++){var i=p[c];u.push(new w(i,o)),(i.indent||i.dedent)&&(d=!0)}var g={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:d?[]:null}},copyState:function(r){var x={state:r.state,pending:r.pending,local:r.local,localState:null,indent:r.indent&&r.indent.slice(0)};r.localState&&(x.localState=f.copyState(r.local.mode,r.localState)),r.stack&&(x.stack=r.stack.slice(0));for(var h=r.persistentStates;h;h=h.next)x.persistentStates={mode:h.mode,spec:h.spec,state:h.state==r.localState?x.localState:f.copyState(h.mode,h.state),next:x.persistentStates};return x},token:P(n,t),innerMode:function(r){return r.local&&{mode:r.local.mode,state:r.localState}},indent:j(n,e)};if(e)for(var a in e)e.hasOwnProperty(a)&&(g[a]=e[a]);return g};function S(t,o){if(!t.hasOwnProperty(o))throw new Error("Undefined state "+o+" in simple mode")}function s(t,o){if(!t)return/(?:)/;var n="";return t instanceof RegExp?(t.ignoreCase&&(n="i"),t.unicode&&(n+="u"),t=t.source):t=String(t),new RegExp((o===!1?"":"^")+"(?:"+t+")",n)}function v(t){if(!t)return null;if(t.apply)return t;if(typeof t=="string")return t.replace(/\./g," ");for(var o=[],n=0;n<t.length;n++)o.push(t[n]&&t[n].replace(/\./g," "));return o}function w(t,o){(t.next||t.push)&&S(o,t.next||t.push),this.regex=s(t.regex),this.token=v(t.token),this.data=t}function P(t,o){return function(n,e){if(e.pending){var d=e.pending.shift();return e.pending.length==0&&(e.pending=null),n.pos+=d.text.length,d.token}if(e.local)if(e.local.end&&n.match(e.local.end)){var l=e.local.endToken||null;return e.local=e.localState=null,l}else{var l=e.local.mode.token(n,e.localState),u;return e.local.endScan&&(u=e.local.endScan.exec(n.current()))&&(n.pos=n.start+u.index),l}for(var p=t[e.state],c=0;c<p.length;c++){var i=p[c],g=(!i.data.sol||n.sol())&&n.match(i.regex);if(g){i.data.next?e.state=i.data.next:i.data.push?((e.stack||(e.stack=[])).push(e.state),e.state=i.data.push):i.data.pop&&e.stack&&e.stack.length&&(e.state=e.stack.pop()),i.data.mode&&E(o,e,i.data.mode,i.token),i.data.indent&&e.indent.push(n.indentation()+o.indentUnit),i.data.dedent&&e.indent.pop();var a=i.token;if(a&&a.apply&&(a=a(g)),g.length>2&&i.token&&typeof i.token!="string"){for(var r=2;r<g.length;r++)g[r]&&(e.pending||(e.pending=[])).push({text:g[r],token:i.token[r-1]});return n.backUp(g[0].length-(g[1]?g[1].length:0)),a[0]}else return a&&a.join?a[0]:a}}return n.next(),null}}function k(t,o){if(t===o)return!0;if(!t||typeof t!="object"||!o||typeof o!="object")return!1;var n=0;for(var e in t)if(t.hasOwnProperty(e)){if(!o.hasOwnProperty(e)||!k(t[e],o[e]))return!1;n++}for(var e in o)o.hasOwnProperty(e)&&n--;return n==0}function E(t,o,n,e){var d;if(n.persistent)for(var l=o.persistentStates;l&&!d;l=l.next)(n.spec?k(n.spec,l.spec):n.mode==l.mode)&&(d=l);var u=d?d.mode:n.mode||f.getMode(t,n.spec),p=d?d.state:f.startState(u);n.persistent&&!d&&(o.persistentStates={mode:u,spec:n.spec,state:p,next:o.persistentStates}),o.localState=p,o.local={mode:u,end:n.end&&s(n.end),endScan:n.end&&n.forceEnd!==!1&&s(n.end,!1),endToken:e&&e.join?e[e.length-1]:e}}function _(t,o){for(var n=0;n<o.length;n++)if(o[n]===t)return!0}function j(t,o){return function(n,e,d){if(n.local&&n.local.mode.indent)return n.local.mode.indent(n.localState,e,d);if(n.indent==null||n.local||o.dontIndentStates&&_(n.state,o.dontIndentStates)>-1)return f.Pass;var l=n.indent.length-1,u=t[n.state];n:for(;;){for(var p=0;p<u.length;p++){var c=u[p];if(c.data.dedent&&c.data.dedentIfLineStart!==!1){var i=c.regex.exec(e);if(i&&i[0]){l--,(c.next||c.push)&&(u=t[c.next||c.push]),e=e.slice(i[0].length);continue n}}}break}return l<0?0:n.indent[l]}}})})();var O=T.exports;const F=b(O),L=R({__proto__:null,default:F},[O]);export{L as s};
|
||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{l as e}from"./editor.main-2fff42fa.js";import"./index-416837cb.js";var o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:e.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:e.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:e.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:e.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},r={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{o as conf,r as language};
|
||||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{l as e}from"./editor.main-2fff42fa.js";import"./index-416837cb.js";var a={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}]},i={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};export{a as conf,i as language};
|
||||||
Binary file not shown.
|
|
@ -6,8 +6,8 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
|
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
|
||||||
<title></title>
|
<title></title>
|
||||||
<script type="module" crossorigin src="/admin/assets/index-14fc2d8d.js"></script>
|
<script type="module" crossorigin src="/admin/assets/index-416837cb.js"></script>
|
||||||
<link rel="stylesheet" href="/admin/assets/index-a757edf4.css">
|
<link rel="stylesheet" href="/admin/assets/index-e20be3c1.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue