1
0
Fork 0

调整样式

develop
vine_liutk 2023-04-17 17:09:09 +08:00
parent 980a3e8d57
commit 4904ef811e
185 changed files with 9629 additions and 21 deletions

View File

@ -111,7 +111,7 @@ class CustomRegionController extends AdminController
amisMake()->Panel()->title('基础详情')
->subFormMode('horizontal')
->labelWidth(100)
// ->className('Panel--info')
// ->headerClassName('text-white')
->body([
\amisMake()->TextControl()->static(true)->name('name')->label('名称')->value('试验田1'),
\amisMake()->TextControl()->static(true)->name('name1')->label('负责人')->value('负责人'),
@ -121,14 +121,14 @@ class CustomRegionController extends AdminController
\amisMake()->SwitchControl()->static(true)->name('is_enable')->name('is_enable')->label('显示')->value($region?->is_enable ?? 0),
]),
amisMake()->Panel()->title('基础介绍')
// ->className('Panel--info')
// ->headerClassName('text-white')
->body([
amisMake()->Tpl()->tpl($region?->content ?? '')
])
]),
amisMake()->Wrapper()->sm(8)->body([
amisMake()->Panel()->title('种植记录')
// ->className('Panel--info')
// ->headerClassName('text-white')
->body([
\amisMake()->Button()->className('absolute top-1 right-4')->actionType('dialog')->label('新增')->dialog([
"title"=> "种植记录",

View File

@ -102,6 +102,38 @@ class DeviceController extends AdminController
]);
}
/**
* 监控历史视频
*/
public function monitorVideoList(){
return CRUDTable::make()->mode('cards')->columnsCount(3)
->data([
'items' => [
[
'id'=>1,
'src'=>''
// ws://183.221.204.29:8100/rtsp?url=cnRzcDovL2FkbWluOjEyMzQ1Njc4OXhAMTE3LjE3NC4xODQuMTE4OjkwMDkvY2FtL3JlYWxtb25pdG9yP2NoYW5uZWw9MSZzdWJ0eXBlPTA=
],
]
])
->filter([
'title' => '搜索条件',
'body' => [
\amisMake()->TextControl()->name('name')->label('点位名称')->size('sm'),
\amisMake()->DateRangeControl()->label('时间范围'),
amis('submit')->label(__('admin.search'))->level('primary'),
]
])
->actions([])
->itemClassName('col-sm-4')
->card([
'header' => [],
'body' => amisMake()->Video()
// ->isLive(true)->videoType('video/x-flv')->muted(true)->autoPlay(true)
->src('${src}')
]);
}
/**
* 气象图表
*/

View File

@ -0,0 +1,34 @@
<?php
namespace App\Admin\Controllers;
use Slowlyo\OwlAdmin\Controllers\IndexController as BaseController;
use Slowlyo\OwlAdmin\Admin;
use Illuminate\Http\JsonResponse;
use Slowlyo\OwlAdmin\Models\Extension;
use Illuminate\Http\Resources\Json\JsonResource;
class IndexController extends BaseController
{
public function settings(): JsonResponse|JsonResource
{
return $this->response()->success([
'assets' => Admin::getAssets(),
'app_name' => config('admin.name'),
'locale' => config('app.locale'),
'layout' => config('admin.layout'),
'logo' => url(config('admin.logo')),
'login_captcha' => config('admin.auth.login_captcha'),
'show_development_tools' => config('admin.show_development_tools'),
'system_theme_setting' => array_merge(
Admin::setting()->get('system_theme_setting'),
[
'enableTab' => config('admin.layout.tab_enable'),
'tabIcon' => config('admin.layout.tab_icon'),
]
),
'enabled_extensions' => Extension::query()->where('is_enabled', 1)->pluck('name')?->toArray(),
]);
}
}

View File

@ -17,12 +17,12 @@ class WarningSettingController extends AdminController
return $this->response()->success($page);
}
private function settingForm(){
return \amisMake()->Tabs()->name('detailTab')->tabs([
private function settingForm(){
return \amisMake()->Tabs()->name('detailTab')->tabs([
[
'title' => '气象预警',
'value' => 'detail',
'tab'=>'',
'value' => 'meteorological',
'tab'=>$this->meteorologicalForm(),
'unmountOnExit' => true//每次切换tab都要销毁
],
[
@ -38,5 +38,13 @@ class WarningSettingController extends AdminController
'unmountOnExit' => true//每次切换tab都要销毁
],
]);
}
}
public function meteorologicalForm(){
return \amisMake()->Form()->title('')->body([
\amisMake()->TextControl()->label('设备名称'),
\amisMake()->DateRangeControl()->label('时间范围'),
amis('submit')->label(__('admin.save'))->level('primary'),
]);
}
}

View File

@ -8,6 +8,7 @@ Route::group([
'prefix' => config('admin.route.prefix'),
'middleware' => config('admin.route.middleware'),
], function (Router $router) {
$router->get('/_settings', '\App\Admin\Controllers\IndexController@settings');
$router->group([
'prefix' => 'api',
], function (Router $router) {
@ -47,6 +48,7 @@ Route::group([
$router->get('custom-region-monitor', '\App\Admin\Controllers\DeviceController@monitorList');
$router->post('custom-region-monitor', '\App\Admin\Controllers\DeviceController@monitorList');
$router->get('custom-region-monitor-video', '\App\Admin\Controllers\DeviceController@monitorVideoList');
$router->get('custom-region-meteorological', '\App\Admin\Controllers\DeviceController@meteorologicalChart');
$router->post('custom-region-meteorological', '\App\Admin\Controllers\DeviceController@meteorologicalChart');

6
composer.lock generated
View File

@ -2317,11 +2317,11 @@
},
{
"name": "slowlyo/owl-admin",
"version": "v2.3.6",
"version": "v2.3.9",
"source": {
"type": "git",
"url": "https://gitee.com/slowlyo/owl-admin",
"reference": "ce8dffe5197cd25d23f913cefd7d752f4bc0d8c0"
"reference": "27ef4679b374b18d4f5e103cf7b7c02f202a4b33"
},
"require": {
"illuminate/support": "~9|~10",
@ -2364,7 +2364,7 @@
"admin",
"laravel"
],
"time": "2023-04-12T02:23:04+00:00"
"time": "2023-04-16T13:40:19+00:00"
},
{
"name": "symfony/console",

View File

@ -10,9 +10,6 @@ return [
// 默认头像
'default_avatar' => '/admin/default-avatar.png',
// 底部信息
'footer' => '',
'directory' => app_path('Admin'),
'bootstrap' => app_path('Admin/bootstrap.php'),
@ -56,8 +53,44 @@ return [
// 是否显示 [权限] 功能中的自动生成按钮
'show_auto_generate_permission_button' => true,
'dev_tools' => [
'terminal' => [
'php_alias' => 'php',
'composer_alias' => 'composer',
],
],
// 扩展
'extension' => [
'extension' => [
'dir' => base_path('extensions'),
],
'layout' => [
// 浏览器标题, 功能名称使用 %title% 代替
'title' => '%title% | 农业园区平台',
'tab_enable' => true,
'tab_icon' => true,
'header' => [
// 是否显示 [刷新] 按钮
'refresh' => true,
// 是否显示 [全屏] 按钮
'full_screen' => true,
// 是否显示 [主题模式] 按钮
'switch_theme' => false,
// 是否显示 [主题配置] 按钮
'theme_config' => false,
],
/*
* keep_alive 页面缓存黑名单
*
* eg:
* 列表: /user
* 详情: /user/:id
* 编辑: /user/:id/edit
* 新增: /user/create
*/
'keep_alive_exclude' => [],
// 底部信息
'footer' => '© 2023 <a href="https://gitee.com/slowlyo/owl-admin" target="_blank">Owl Admin</a>',
],
];

View File

@ -52,10 +52,11 @@ class AdminMenuSeeder extends Seeder
['title' => '设备管理', 'icon' => 'icon-park:devices', 'url' => '/devices', 'order'=>6],
['title' => '设备数据', 'icon' => 'icon-park:data-switching', 'url' => '', 'order'=>7,
'children' => [
['title' => '视频监控', 'icon'=>'icon-park:videocamera', 'url'=> '/custom-region-monitor', 'order'=>1],
['title' => '气象数据', 'icon'=>'icon-park:brightness', 'url'=> '/custom-region-meteorological', 'order'=>2],
['title' => '土壤数据', 'icon'=>'icon-park:floor-tile', 'url'=> '/custom-region-water', 'order'=>3],
['title' => '水质数据', 'icon'=>'icon-park:diving-bottle', 'url'=> '/custom-region-soil', 'order'=>4],
['title' => '实时监控', 'icon'=>'icon-park:videocamera', 'url'=> '/custom-region-monitor', 'order'=>1],
['title' => '历史视频', 'icon'=>'icon-park:film', 'url'=> '/custom-region-monitor-video', 'order'=>2],
['title' => '气象数据', 'icon'=>'icon-park:brightness', 'url'=> '/custom-region-meteorological', 'order'=>3],
['title' => '土壤数据', 'icon'=>'icon-park:floor-tile', 'url'=> '/custom-region-water', 'order'=>4],
['title' => '水质数据', 'icon'=>'icon-park:diving-bottle', 'url'=> '/custom-region-soil', 'order'=>5],
]
],
['title' => '设备预警', 'icon' => 'icon-park:alarm', 'url' => '', 'order'=>8,

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.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -0,0 +1 @@
import{r as n,d,a as r,e as m,j as t,T as f,f as h}from"./index.d4616be0.js";import{i as y,T as k}from"./index.54deca71.js";import{S as g}from"./index.99b63f05.js";import{L as x}from"./index.7be62405.js";const w="_item_1h3pz_1",T="_link_1h3pz_8";var i={item:w,link:T};function S(){const[o,c]=n.exports.useState([]),[l,s]=n.exports.useState(!0),a=d(y),p=()=>{s(!0),h.get("/api/workplace/announcement").then(e=>{c(e.data)}).finally(()=>{s(!1)})};n.exports.useEffect(()=>{p()},[]);function u(e){switch(e){case"activity":return"orangered";case"info":return"cyan";case"notice":return"arcoblue";default:return"arcoblue"}}return r(m,{children:[r("div",{style:{display:"flex",justifyContent:"space-between"},children:[t(k.Title,{heading:6,children:a["workplace.announcement"]}),t(x,{children:a["workplace.seeMore"]})]}),t(g,{loading:l,text:{rows:5,width:"100%"},animation:!0,children:t("div",{children:o.map(e=>r("div",{className:i.item,children:[t(f,{color:u(e.type),size:"small",children:a[`workplace.${e.type}`]}),t("span",{className:i.link,children:e.content})]},e.key))})})]})}export{S as default};

View File

@ -0,0 +1 @@
import{r as n,d,a as r,e as m,j as t,T as f,f as h}from"./index.36e488d1.js";import{i as y,T as k}from"./index.15575a5c.js";import{S as g}from"./index.87818bd6.js";import{L as x}from"./index.0b158146.js";const w="_item_1h3pz_1",T="_link_1h3pz_8";var i={item:w,link:T};function S(){const[o,c]=n.exports.useState([]),[l,s]=n.exports.useState(!0),a=d(y),p=()=>{s(!0),h.get("/api/workplace/announcement").then(e=>{c(e.data)}).finally(()=>{s(!1)})};n.exports.useEffect(()=>{p()},[]);function u(e){switch(e){case"activity":return"orangered";case"info":return"cyan";case"notice":return"arcoblue";default:return"arcoblue"}}return r(m,{children:[r("div",{style:{display:"flex",justifyContent:"space-between"},children:[t(k.Title,{heading:6,children:a["workplace.announcement"]}),t(x,{children:a["workplace.seeMore"]})]}),t(g,{loading:l,text:{rows:5,width:"100%"},animation:!0,children:t("div",{children:o.map(e=>r("div",{className:i.item,children:[t(f,{color:u(e.type),size:"small",children:a[`workplace.${e.type}`]}),t("span",{className:i.link,children:e.content})]},e.key))})})]})}export{S as default};

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.

View File

@ -0,0 +1 @@
import{d as f,r as e,a as g,e as m,j as o,S as h,f as x}from"./index.36e488d1.js";import{i as y,T as F}from"./index.15575a5c.js";import{D as C}from"./index.f2964e97.js";function D(){const a=f(y),[s,n]=e.exports.useState([]),[i,r]=e.exports.useState(!0),l=()=>{r(!0),x.get("/api/workplace/content-percentage").then(t=>{n(t.data)}).finally(()=>{r(!1)})};return e.exports.useEffect(()=>{l()},[]),g(m,{children:[o(F.Title,{heading:6,children:a["workplace.contentPercentage"]}),o(h,{loading:i,style:{display:"block"},children:o(C,{autoFit:!0,height:340,data:s,radius:.7,innerRadius:.65,angleField:"count",colorField:"type",color:["#21CCFF","#313CA9","#249EFF"],interactions:[{type:"element-single-selected"}],tooltip:{showMarkers:!1},label:{visible:!0,type:"spider",formatter:t=>`${(t.percent*100).toFixed(0)}%`,style:{fill:"#86909C",fontSize:14}},legend:{position:"bottom"},statistic:{title:{style:{fontSize:"14px",lineHeight:2,color:"rgb(--var(color-text-1))"},formatter:()=>"\u5185\u5BB9\u91CF"},content:{style:{fontSize:"16px",color:"rgb(--var(color-text-1))"},formatter:(t,c)=>{const p=c.reduce((u,d)=>u+d.count,0);return Number(p).toLocaleString()}}}})})]})}export{D as default};

View File

@ -0,0 +1 @@
import{d as f,r as e,a as g,e as m,j as o,S as h,f as x}from"./index.d4616be0.js";import{i as y,T as F}from"./index.54deca71.js";import{D as C}from"./index.f894e5ac.js";function D(){const a=f(y),[s,n]=e.exports.useState([]),[i,r]=e.exports.useState(!0),l=()=>{r(!0),x.get("/api/workplace/content-percentage").then(t=>{n(t.data)}).finally(()=>{r(!1)})};return e.exports.useEffect(()=>{l()},[]),g(m,{children:[o(F.Title,{heading:6,children:a["workplace.contentPercentage"]}),o(h,{loading:i,style:{display:"block"},children:o(C,{autoFit:!0,height:340,data:s,radius:.7,innerRadius:.65,angleField:"count",colorField:"type",color:["#21CCFF","#313CA9","#249EFF"],interactions:[{type:"element-single-selected"}],tooltip:{showMarkers:!1},label:{visible:!0,type:"spider",formatter:t=>`${(t.percent*100).toFixed(0)}%`,style:{fill:"#86909C",fontSize:14}},legend:{position:"bottom"},statistic:{title:{style:{fontSize:"14px",lineHeight:2,color:"rgb(--var(color-text-1))"},formatter:()=>"\u5185\u5BB9\u91CF"},content:{style:{fontSize:"16px",color:"rgb(--var(color-text-1))"},formatter:(t,c)=>{const p=c.reduce((u,d)=>u+d.count,0);return Number(p).toLocaleString()}}}})})]})}export{D as default};

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.

View File

@ -0,0 +1 @@
import{d as n,a as t,e as o,j as e}from"./index.d4616be0.js";import{i as d,T as l}from"./index.54deca71.js";import{L as r}from"./index.7be62405.js";const p="_docs_dimkm_1",m="_link_dimkm_5";var i={docs:p,link:m};const h={react:"https://arco.design/react/docs/start",vue:"https://arco.design/vue/docs/start",designLab:"https://arco.design/themes",materialMarket:"https://arco.design/material/"};function u(){const s=n(d);return t(o,{children:[t("div",{style:{display:"flex",justifyContent:"space-between"},children:[e(l.Title,{heading:6,children:s["workplace.docs"]}),e(r,{children:s["workplace.seeMore"]})]}),e("div",{className:i.docs,children:Object.entries(h).map(([a,c])=>e(r,{className:i.link,href:c,target:"_blank",children:s[`workplace.${a}`]},a))})]})}export{u as default};

View File

@ -0,0 +1 @@
import{d as n,a as t,e as o,j as e}from"./index.36e488d1.js";import{i as d,T as l}from"./index.15575a5c.js";import{L as r}from"./index.0b158146.js";const p="_docs_dimkm_1",m="_link_dimkm_5";var i={docs:p,link:m};const h={react:"https://arco.design/react/docs/start",vue:"https://arco.design/vue/docs/start",designLab:"https://arco.design/themes",materialMarket:"https://arco.design/material/"};function u(){const s=n(d);return t(o,{children:[t("div",{style:{display:"flex",justifyContent:"space-between"},children:[e(l.Title,{heading:6,children:s["workplace.docs"]}),e(r,{children:s["workplace.seeMore"]})]}),e("div",{className:i.docs,children:Object.entries(h).map(([a,c])=>e(r,{className:i.link,href:c,target:"_blank",children:s[`workplace.${a}`]},a))})]})}export{u as default};

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.

View File

@ -0,0 +1 @@
import{l as e}from"./editor.main.47d3db50.js";import"./index.36e488d1.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.

View File

@ -0,0 +1 @@
import{l as e}from"./editor.main.f4da2c9b.js";import"./index.d4616be0.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.

View File

@ -0,0 +1 @@
import{R as w,r as v,I,j as f,C as L,u as j,k as P,a as $,c as R}from"./index.36e488d1.js";function T(r,s){const a=v.exports.useContext(I),e=a.prefixCls,t=e===void 0?"arco":e,l=r.spin,i=r.className,n={"aria-hidden":!0,focusable:!1,ref:s,...r,className:`${i?i+" ":""}${t}-icon ${t}-icon-link`};return l&&(n.className=`${n.className} ${t}-icon-loading`),delete n.spin,delete n.isIcon,f("svg",{fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48",...n,children:f("path",{d:"m14.1 25.414-4.95 4.95a6 6 0 0 0 8.486 8.485l8.485-8.485a6 6 0 0 0 0-8.485m7.779.707 4.95-4.95a6 6 0 1 0-8.486-8.485l-8.485 8.485a6 6 0 0 0 0 8.485"})})}const b=w.forwardRef(T);b.defaultProps={isIcon:!0};b.displayName="IconLink";var E=b,u=globalThis&&globalThis.__assign||function(){return u=Object.assign||function(r){for(var s,a=1,e=arguments.length;a<e;a++){s=arguments[a];for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&(r[t]=s[t])}return r},u.apply(this,arguments)},K=globalThis&&globalThis.__rest||function(r,s){var a={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&s.indexOf(e)<0&&(a[e]=r[e]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,e=Object.getOwnPropertySymbols(r);t<e.length;t++)s.indexOf(e[t])<0&&Object.prototype.propertyIsEnumerable.call(r,e[t])&&(a[e[t]]=r[e[t]]);return a},D={hoverable:!0};function S(r,s){var a,e=v.exports.useContext(L),t=e.getPrefixCls,l=e.componentConfig,i=e.rtl,n=j(r,D,l==null?void 0:l.Link),x=n.className,y=n.style,C=n.children,c=n.icon,h=n.status,p=n.disabled,k=n.hoverable,_=K(n,["className","style","children","icon","status","disabled","hoverable"]),N=P({onKeyDown:n.onKeyDown}),o=t("link"),O="href"in n?"a":"span",g=function(d){p?(d.preventDefault(),d.stopPropagation()):n.onClick&&n.onClick(d)};return $(O,{...u({className:R(o,(a={},a[o+"-disabled"]=p,a[o+"-is-"+h]=h,a[o+"-with-icon"]=c,a[o+"-hoverless"]=!k,a[o+"-rtl"]=i,a),x),ref:s,tabIndex:p?-1:void 0},_,{style:y,onClick:g},N({onPressEnter:g})),children:[c?f("span",{className:o+"-icon",children:c===!0?f(E,{}):c}):null,C]})}var m=v.exports.forwardRef(S);m.displayName="Link";var B=m;export{B as L};

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.

View File

@ -0,0 +1 @@
import{R as w,r as v,I,j as f,C as L,u as j,k as P,a as $,c as R}from"./index.d4616be0.js";function T(r,s){const a=v.exports.useContext(I),e=a.prefixCls,t=e===void 0?"arco":e,l=r.spin,i=r.className,n={"aria-hidden":!0,focusable:!1,ref:s,...r,className:`${i?i+" ":""}${t}-icon ${t}-icon-link`};return l&&(n.className=`${n.className} ${t}-icon-loading`),delete n.spin,delete n.isIcon,f("svg",{fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48",...n,children:f("path",{d:"m14.1 25.414-4.95 4.95a6 6 0 0 0 8.486 8.485l8.485-8.485a6 6 0 0 0 0-8.485m7.779.707 4.95-4.95a6 6 0 1 0-8.486-8.485l-8.485 8.485a6 6 0 0 0 0 8.485"})})}const b=w.forwardRef(T);b.defaultProps={isIcon:!0};b.displayName="IconLink";var E=b,u=globalThis&&globalThis.__assign||function(){return u=Object.assign||function(r){for(var s,a=1,e=arguments.length;a<e;a++){s=arguments[a];for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&(r[t]=s[t])}return r},u.apply(this,arguments)},K=globalThis&&globalThis.__rest||function(r,s){var a={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&s.indexOf(e)<0&&(a[e]=r[e]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,e=Object.getOwnPropertySymbols(r);t<e.length;t++)s.indexOf(e[t])<0&&Object.prototype.propertyIsEnumerable.call(r,e[t])&&(a[e[t]]=r[e[t]]);return a},D={hoverable:!0};function S(r,s){var a,e=v.exports.useContext(L),t=e.getPrefixCls,l=e.componentConfig,i=e.rtl,n=j(r,D,l==null?void 0:l.Link),x=n.className,y=n.style,C=n.children,c=n.icon,h=n.status,p=n.disabled,k=n.hoverable,_=K(n,["className","style","children","icon","status","disabled","hoverable"]),N=P({onKeyDown:n.onKeyDown}),o=t("link"),O="href"in n?"a":"span",g=function(d){p?(d.preventDefault(),d.stopPropagation()):n.onClick&&n.onClick(d)};return $(O,{...u({className:R(o,(a={},a[o+"-disabled"]=p,a[o+"-is-"+h]=h,a[o+"-with-icon"]=c,a[o+"-hoverless"]=!k,a[o+"-rtl"]=i,a),x),ref:s,tabIndex:p?-1:void 0},_,{style:y,onClick:g},N({onPressEnter:g})),children:[c?f("span",{className:o+"-icon",children:c===!0?f(E,{}):c}):null,C]})}var m=v.exports.forwardRef(S);m.displayName="Link";var B=m;export{B as L};

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More