generated from panliang/owl-admin-starter
resource/admin-views
parent
c4a6e495ea
commit
2e1ad54186
76
README.md
76
README.md
|
|
@ -1,75 +1,5 @@
|
|||
# Owl Admin Start
|
||||
# 五星党员评定
|
||||
|
||||
- php >= 8.1
|
||||
- Laravel 10.x
|
||||
- slowlyo/owl-admin
|
||||
- tucker-eric/eloquentfilter
|
||||
|
||||
## 修改前端文件
|
||||
|
||||
### resources\admin-views\src\pages\amis\index.tsx
|
||||
|
||||
自定义登录页面, 删除高度 `20px` 的 `div`
|
||||
|
||||
```tsx
|
||||
return (
|
||||
<>
|
||||
<Spin loading={initPage.loading}
|
||||
dot
|
||||
size={8}
|
||||
className="w-full"
|
||||
style={{minHeight: initPage.loading ? "500px" : ""}}>
|
||||
<AmisRender schema={schema}/>
|
||||
</Spin>
|
||||
{(settings.footer && !initPage.loading) && <Footer/>}
|
||||
</>
|
||||
)
|
||||
```
|
||||
|
||||
### resources\admin-views\src\components\AmisRender\CustomComponents\components\WangEditor\index.tsx
|
||||
|
||||
WangEditor 编辑器上传图片时, 把登录授权的 `token` 带上
|
||||
|
||||
```tsx
|
||||
// 编辑器配置
|
||||
const editorConfig: Partial<IEditorConfig> = {
|
||||
placeholder: props.placeholder,
|
||||
readOnly: props.disabled || props.static,
|
||||
autoFocus: props.autoFocus,
|
||||
maxLength: props.maxLength,
|
||||
MENU_CONF: {
|
||||
uploadImage: {
|
||||
server: props.uploadImageServer,
|
||||
maxFileSize: props.uploadImageMaxSize || (1024 * 1024 * 2),
|
||||
maxNumberOfFiles: props.uploadImageMaxNumber || 100,
|
||||
headers: {
|
||||
Authorization: `Bearer ${token}`
|
||||
}
|
||||
},
|
||||
uploadVideo: {
|
||||
server: props.uploadVideoServer,
|
||||
maxFileSize: props.uploadVideoMaxSize || (1024 * 1024 * 10),
|
||||
maxNumberOfFiles: props.uploadVideoMaxNumber || 10,
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### resources\admin-views\src\pages\login\form.tsx
|
||||
|
||||
自定义登录页面, 重复请求接口 `admin-api/captcha` 获取图形验证码
|
||||
|
||||
```tsx
|
||||
// 读取 localStorage, 设置初始值
|
||||
useEffect(() => {
|
||||
const rememberPassword = !!loginParams
|
||||
setRememberPassword(rememberPassword)
|
||||
if (formRef.current && rememberPassword) {
|
||||
const parseParams = JSON.parse(decodeURIComponent(window.atob(loginParams)))
|
||||
formRef.current.setFieldsValue(parseParams)
|
||||
}
|
||||
|
||||
// if (appSettings.login_captcha) {
|
||||
// getCaptcha.run()
|
||||
// }
|
||||
}, [loginParams])
|
||||
```
|
||||
- slowlyo/owl-admin latest
|
||||
|
|
|
|||
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
namespace App\Admin\Controllers;
|
||||
|
||||
use Slowlyo\OwlAdmin\Controllers\AdminRoleController as Base;
|
||||
use Slowlyo\OwlAdmin\Services\AdminPermissionService;
|
||||
|
||||
class AdminRoleController extends Base
|
||||
{
|
||||
protected function setPermission()
|
||||
{
|
||||
return amisMake()->DrawerAction()->label(__('admin.admin_role.set_permissions'))->icon('fa-solid fa-gear')->level('link')->drawer(
|
||||
amisMake()->Drawer()->title(__('admin.admin_role.set_permissions'))->resizable()->closeOnOutside()->closeOnEsc()->body([
|
||||
amisMake()
|
||||
->Form()
|
||||
->api(admin_url('system/admin_role_save_permissions'))
|
||||
->initApi($this->getEditGetDataPath())
|
||||
->mode('normal')
|
||||
->data(['id' => '${id}'])
|
||||
->body([
|
||||
amisMake()->TreeControl()
|
||||
->name('permissions')
|
||||
->label()
|
||||
->multiple()
|
||||
->options(AdminPermissionService::make()->getTree())
|
||||
->searchable()
|
||||
->cascade()
|
||||
->joinValues(false)
|
||||
->extractValue()
|
||||
->size('full')
|
||||
->className('h-full b-none')
|
||||
->inputClassName('h-full tree-full')
|
||||
->labelField('name')
|
||||
->valueField('id'),
|
||||
]),
|
||||
])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -10,8 +10,11 @@ use App\Admin\Services\UserScoreService;
|
|||
use App\Enums\CheckStatus;
|
||||
use App\Models\Article;
|
||||
use App\Models\Keyword;
|
||||
use App\Models\PartyCate;
|
||||
use App\Models\PartyUser;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Str;
|
||||
use Slowlyo\OwlAdmin\Admin;
|
||||
use Slowlyo\OwlAdmin\Controllers\AdminController;
|
||||
use Slowlyo\OwlAdmin\Renderers\Form;
|
||||
use Slowlyo\OwlAdmin\Renderers\Page;
|
||||
|
|
@ -25,6 +28,25 @@ class PartyCateController extends AdminController
|
|||
|
||||
protected $userOptions;
|
||||
|
||||
public function index()
|
||||
{
|
||||
$user = Admin::user();
|
||||
// 判断当前账户拥有的支部权限
|
||||
if (!$user->can('party_cate_all')) {
|
||||
$permissions = $user->allPermissions()->where(fn ($item) => Str::startsWith($item->slug, 'party_cate_') && $item->http_method)->pluck('http_method')->all();
|
||||
request()->offsetSet('ids', $permissions);
|
||||
}
|
||||
if ($this->actionOfGetData()) {
|
||||
return $this->response()->success($this->service->list());
|
||||
}
|
||||
|
||||
if ($this->actionOfExport()) {
|
||||
return $this->export();
|
||||
}
|
||||
|
||||
return $this->response()->success($this->list());
|
||||
}
|
||||
|
||||
public function list(): Page
|
||||
{
|
||||
$primary = $this->service->primaryKey();
|
||||
|
|
@ -100,6 +122,7 @@ class PartyCateController extends AdminController
|
|||
$service = PartyUserService::make();
|
||||
$userController = new PartyUserController();
|
||||
$primary = $service->primaryKey();
|
||||
$cate = PartyCate::find($cid);
|
||||
request()->offsetSet('cate_id', $cid);
|
||||
if ($userController->actionOfGetData()) {
|
||||
return $userController->response()->success($service->list());
|
||||
|
|
@ -144,7 +167,9 @@ class PartyCateController extends AdminController
|
|||
->api('delete:' . admin_url('/party-user/${'.$primary.'}')),
|
||||
]),
|
||||
]);
|
||||
return $userController->response()->success($userController->baseList($crud));
|
||||
return $userController->baseList($crud)->title(
|
||||
amisMake()->LinkAction()->body($cate->name)->onEvent(['click' => ['actions' => ['actionType' => 'goBack']]])
|
||||
)->subTitle('党员管理');
|
||||
}
|
||||
|
||||
public function articleUpdate($cid, Request $request)
|
||||
|
|
@ -164,6 +189,7 @@ class PartyCateController extends AdminController
|
|||
$service = UserScoreService::make();
|
||||
$userController = new UserScoreController();
|
||||
$primary = $service->primaryKey();
|
||||
$cate = PartyCate::find($cid);
|
||||
request()->offsetSet('cate_id', $cid);
|
||||
if ($userController->actionOfGetData()) {
|
||||
return $userController->response()->success($service->list());
|
||||
|
|
@ -243,7 +269,9 @@ class PartyCateController extends AdminController
|
|||
]),
|
||||
]);
|
||||
|
||||
return $this->baseList($crud);
|
||||
return $this->baseList($crud)->title(
|
||||
amisMake()->LinkAction()->body($cate->name)->onEvent(['click' => ['actions' => ['actionType' => 'goBack']]])
|
||||
)->subTitle('审核评定');
|
||||
}
|
||||
|
||||
public function getUserOptions()
|
||||
|
|
|
|||
|
|
@ -34,7 +34,9 @@ class PartyCateService extends BaseService
|
|||
AdminPermissionService::make()->store([
|
||||
'slug' => 'party_cate_' . $info->id,
|
||||
'name' => $info->name,
|
||||
'parent_id' => $parent->id
|
||||
'parent_id' => $parent->id,
|
||||
'order' => 1,
|
||||
'http_method' => $info->id,
|
||||
]);
|
||||
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ Route::group([
|
|||
|
||||
$router->resource('system/settings', \App\Admin\Controllers\SettingController::class);
|
||||
|
||||
$router->resource('system/admin_roles', \App\Admin\Controllers\AdminRoleController::class);
|
||||
|
||||
$router->any('upload_image', '\App\Admin\Controllers\HomeController@uploadImage');
|
||||
$router->any('upload_file', '\App\Admin\Controllers\HomeController@uploadFile');
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ use App\Http\Controllers\Controller;
|
|||
use App\Models\PartyUser;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
|
||||
class AuthController extends Controller
|
||||
{
|
||||
|
|
@ -18,12 +19,12 @@ class AuthController extends Controller
|
|||
|
||||
$auth = $this->guard();
|
||||
$user = PartyUser::where('username', $request->input('username'))->first();
|
||||
if ($user) {
|
||||
if ($user && Hash::check($request->input('password'), $user->getRawOriginal('password'))) {
|
||||
$auth->login($user);
|
||||
return back()->with('flash_message', '登录成功');
|
||||
}
|
||||
|
||||
return back()->withErrors('用户名或密码错误');
|
||||
return back()->withErrors('用户名或密码错误')->withInput(['username' => $request->input('username')]);
|
||||
}
|
||||
|
||||
public function logout()
|
||||
|
|
|
|||
|
|
@ -12,6 +12,6 @@ class Authenticate extends Middleware
|
|||
*/
|
||||
protected function redirectTo(Request $request): ?string
|
||||
{
|
||||
return $request->expectsJson() ? null : route('login');
|
||||
return $request->expectsJson() ? null : url('/');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,10 @@ class PartyCateFilter extends ModelFilter
|
|||
*/
|
||||
public $relations = [];
|
||||
|
||||
public function ids($ids)
|
||||
{
|
||||
$this->whereIn('id', is_array($ids) ? $ids : explode(',', $ids));
|
||||
}
|
||||
public function name($name)
|
||||
{
|
||||
$this->whereLike('name', $name);
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class PartyUser extends Authenticatable
|
|||
protected $hidden = ['password'];
|
||||
|
||||
protected $casts = [
|
||||
'password' => 'encrypted',
|
||||
'password' => 'hashed',
|
||||
'avatar' => StorageFile::class,
|
||||
'scores' => 'array',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -5,10 +5,12 @@ namespace Database\Seeders;
|
|||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Slowlyo\OwlAdmin\Models\AdminMenu;
|
||||
use Slowlyo\OwlAdmin\Models\AdminPermission;
|
||||
use Throwable;
|
||||
|
||||
class AdminMenuSeeder extends Seeder
|
||||
{
|
||||
protected $permissions;
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
|
|
@ -18,22 +20,24 @@ class AdminMenuSeeder extends Seeder
|
|||
{
|
||||
// 图标: https://iconpark.oceanengine.com/official
|
||||
$menus = [
|
||||
['title' => '主页', 'icon' => 'icon-park:home-two', 'url' => '/dashboard', 'is_home' => 1],
|
||||
['title' => '支部管理', 'icon' => 'icon-park:flag', 'url' => '/party-cate'],
|
||||
['title' => '党员管理', 'icon' => 'icon-park:every-user', 'url' => '/party-user'],
|
||||
['title' => '审核评定', 'icon' => 'icon-park:internal-data', 'url' => '/user-score'],
|
||||
['title' => '信息管理', 'icon' => 'icon-park:web-page', 'url' => '/articles'],
|
||||
['title' => '广告管理', 'icon' => 'icon-park:picture-one', 'url' => '/banner'],
|
||||
['title' => '系统管理', 'icon' => 'icon-park:setting', 'url' => '/system', 'children' => [
|
||||
['title' => '用户管理', 'icon' => 'icon-park:people-plus', 'url' => '/system/admin_users'],
|
||||
['title' => '角色管理', 'icon' => 'icon-park:people-plus-one', 'url' => '/system/admin_roles'],
|
||||
['title' => '权限管理', 'icon' => 'icon-park:key-one', 'url' => '/system/admin_permissions'],
|
||||
['title' => '菜单管理', 'icon' => 'icon-park:menu-fold-one', 'url' => '/system/admin_menus'],
|
||||
['title' => '字典管理', 'icon' => 'icon-park:arrow-keys', 'url' => '/keywords'],
|
||||
['title' => '配置管理', 'icon' => 'icon-park:setting-two', 'url' => '/system/settings'],
|
||||
['title' => '主页', 'icon' => 'icon-park:home-two', 'url' => '/dashboard', 'is_home' => 1, 'permission' => ['dashboard']],
|
||||
['title' => '支部管理', 'icon' => 'icon-park:flag', 'url' => '/party-cate', 'permission' => ['party_cate']],
|
||||
['title' => '党员管理', 'icon' => 'icon-park:every-user', 'url' => '/party-user', 'permission' => ['party_user']],
|
||||
['title' => '审核评定', 'icon' => 'icon-park:internal-data', 'url' => '/user-score', 'permission' => ['user_score']],
|
||||
['title' => '信息管理', 'icon' => 'icon-park:web-page', 'url' => '/articles', 'permission' => ['article']],
|
||||
['title' => '广告管理', 'icon' => 'icon-park:picture-one', 'url' => '/banner', 'permission' => ['banner']],
|
||||
['title' => '系统管理', 'icon' => 'icon-park:setting', 'url' => '/system', 'permission' => ['system'], 'children' => [
|
||||
['title' => '用户管理', 'icon' => 'icon-park:people-plus', 'url' => '/system/admin_users', 'permission' => ['admin_user']],
|
||||
['title' => '角色管理', 'icon' => 'icon-park:people-plus-one', 'url' => '/system/admin_roles', 'permission' => ['admin_rule']],
|
||||
['title' => '权限管理', 'icon' => 'icon-park:key-one', 'url' => '/system/admin_permissions', 'permission' => ['admin_permission']],
|
||||
['title' => '菜单管理', 'icon' => 'icon-park:menu-fold-one', 'url' => '/system/admin_menus', 'permission' => ['admin_menu']],
|
||||
['title' => '字典管理', 'icon' => 'icon-park:arrow-keys', 'url' => '/keywords', 'permission' => ['keyword']],
|
||||
['title' => '配置管理', 'icon' => 'icon-park:setting-two', 'url' => '/system/settings', 'permission' => ['admin_setting']],
|
||||
]],
|
||||
];
|
||||
$this->permissions = AdminPermission::all();
|
||||
DB::table('admin_menus')->truncate();
|
||||
DB::table('admin_permission_menu')->truncate();
|
||||
try {
|
||||
DB::begintransaction();
|
||||
$this->createMenus($menus);
|
||||
|
|
@ -57,7 +61,19 @@ class AdminMenuSeeder extends Seeder
|
|||
'is_home' => data_get($menu, 'is_home', 0),
|
||||
'order' => data_get($menu, 'order', $index + 1),
|
||||
]);
|
||||
if (isset($menu['permission'])) {
|
||||
$permission_slug = $menu['permission'];
|
||||
$permissions = $this->permissions->where(fn($item) => is_array($permission_slug) ? in_array($item->slug, $permission_slug) : $item->slug == $permission_slug);
|
||||
$attrs = [];
|
||||
foreach ($permissions as $permission) {
|
||||
$attrs[] = [
|
||||
'permission_id' => $permission->id,
|
||||
'menu_id' => $mm->id,
|
||||
];
|
||||
}
|
||||
|
||||
DB::table('admin_permission_menu')->insert($attrs);
|
||||
}
|
||||
if (isset($menu['children'])) {
|
||||
$this->createMenus($menu['children'], $mm->id);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ class AdminSeeder extends Seeder
|
|||
*/
|
||||
public function run()
|
||||
{
|
||||
DB::table('admin_role_permissions')->truncate();
|
||||
DB::table('admin_role_users')->truncate();
|
||||
// DB::table('admin_role_permissions')->truncate();
|
||||
// DB::table('admin_role_users')->truncate();
|
||||
AdminUser::truncate();
|
||||
$user = AdminUser::create([
|
||||
'username' => 'admin',
|
||||
|
|
@ -35,50 +35,45 @@ class AdminSeeder extends Seeder
|
|||
|
||||
$user->roles()->attach($role);
|
||||
|
||||
$menus = AdminMenu::all()->toArray();
|
||||
|
||||
$permissions = [];
|
||||
foreach ($menus as $menu) {
|
||||
$_httpPath = $menu['url_type'] == AdminMenu::TYPE_ROUTE ? $this->getHttpPath($menu['url']) : '';
|
||||
|
||||
$permissions[] = [
|
||||
'id' => $menu['id'],
|
||||
'name' => $menu['title'],
|
||||
'slug' => 'permission_'.$menu['id'],
|
||||
'http_path' => json_encode($_httpPath ? [$_httpPath] : ''),
|
||||
'order' => $menu['order'],
|
||||
'parent_id' => $menu['parent_id'],
|
||||
'created_at' => $menu['created_at'],
|
||||
'updated_at' => $menu['updated_at'],
|
||||
];
|
||||
}
|
||||
|
||||
AdminPermission::query()->truncate();
|
||||
AdminPermission::query()->insert($permissions);
|
||||
AdminPermission::create([
|
||||
'name' => '党支部',
|
||||
'slug' => 'party_cate',
|
||||
'order' => count($permissions) + 1,
|
||||
]);
|
||||
|
||||
DB::table('admin_permission_menu')->truncate();
|
||||
foreach ($permissions as $item) {
|
||||
$query = DB::table('admin_permission_menu');
|
||||
$query->insert([
|
||||
'permission_id' => $item['id'],
|
||||
'menu_id' => $item['id'],
|
||||
]);
|
||||
|
||||
$_id = $item['id'];
|
||||
while ($item['parent_id'] != 0) {
|
||||
(clone $query)->insert([
|
||||
'permission_id' => $_id,
|
||||
'menu_id' => $item['parent_id'],
|
||||
]);
|
||||
|
||||
$item = AdminMenu::query()->find($item['parent_id']);
|
||||
}
|
||||
}
|
||||
// $menus = AdminMenu::all()->toArray();
|
||||
//
|
||||
// $permissions = [];
|
||||
// foreach ($menus as $menu) {
|
||||
// $_httpPath = $menu['url_type'] == AdminMenu::TYPE_ROUTE ? $this->getHttpPath($menu['url']) : '';
|
||||
//
|
||||
// $permissions[] = [
|
||||
// 'id' => $menu['id'],
|
||||
// 'name' => $menu['title'],
|
||||
// 'slug' => 'permission_'.$menu['id'],
|
||||
// 'http_path' => json_encode($_httpPath ? [$_httpPath] : ''),
|
||||
// 'order' => $menu['order'],
|
||||
// 'parent_id' => $menu['parent_id'],
|
||||
// 'created_at' => $menu['created_at'],
|
||||
// 'updated_at' => $menu['updated_at'],
|
||||
// ];
|
||||
// }
|
||||
//
|
||||
// AdminPermission::query()->truncate();
|
||||
// AdminPermission::query()->insert($permissions);
|
||||
//
|
||||
// DB::table('admin_permission_menu')->truncate();
|
||||
// foreach ($permissions as $item) {
|
||||
// $query = DB::table('admin_permission_menu');
|
||||
// $query->insert([
|
||||
// 'permission_id' => $item['id'],
|
||||
// 'menu_id' => $item['id'],
|
||||
// ]);
|
||||
//
|
||||
// $_id = $item['id'];
|
||||
// while ($item['parent_id'] != 0) {
|
||||
// (clone $query)->insert([
|
||||
// 'permission_id' => $_id,
|
||||
// 'menu_id' => $item['parent_id'],
|
||||
// ]);
|
||||
//
|
||||
// $item = AdminMenu::query()->find($item['parent_id']);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
private function getHttpPath($uri)
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ class DatabaseSeeder extends Seeder
|
|||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$this->call(PermissionSeeder::class);
|
||||
$this->call(AdminMenuSeeder::class);
|
||||
$this->call(AdminSeeder::class);
|
||||
$this->call(KeywordSeeder::class);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,55 @@
|
|||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Slowlyo\OwlAdmin\Models\AdminPermission;
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Arr;
|
||||
|
||||
class PermissionSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
DB::table('admin_permissions')->truncate();
|
||||
DB::table('admin_role_permissions')->truncate();
|
||||
$list = [
|
||||
['name' => '主页', 'slug' => 'dashboard'],
|
||||
['name' => '支部管理', 'slug' => 'party_cate', 'children' => [
|
||||
['name' => '全部', 'slug' => 'party_cate_all'],
|
||||
]],
|
||||
['name' => '党员管理', 'slug' => 'party_user'],
|
||||
['name' => '审核评定', 'slug' => 'user_score'],
|
||||
['name' => '信息管理', 'slug' => 'article'],
|
||||
['name' => '广告管理', 'slug' => 'banner'],
|
||||
['name' => '系统管理', 'slug' => 'system', 'children' => [
|
||||
['name' => '用户管理', 'slug' => 'admin_user'],
|
||||
['name' => '角色管理', 'slug' => 'admin_role'],
|
||||
['name' => '权限管理', 'slug' => 'admin_permission'],
|
||||
['name' => '菜单管理', 'slug' => 'admin_menu'],
|
||||
['name' => '字典管理', 'slug' => 'keyword'],
|
||||
['name' => '配置管理', 'slug' => 'admin_setting'],
|
||||
]],
|
||||
];
|
||||
|
||||
$this->createByTree($list);
|
||||
}
|
||||
|
||||
protected function createByTree($list, $parent = null)
|
||||
{
|
||||
foreach ($list as $index => $item) {
|
||||
$params = Arr::except($item, ['children']);
|
||||
$params['order'] = $index + 1;
|
||||
$params['parent_id'] = $parent ? $parent->id : 0;
|
||||
$model = AdminPermission::create($params);
|
||||
|
||||
if ($children = data_get($item, 'children')) {
|
||||
$this->createByTree($children, $model);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,4 +1,4 @@
|
|||
import{c as ke,g as qe,b as Ge,d as je,R as We}from"./index-dfab27d5.js";var Fe={exports:{}};/*!
|
||||
import{c as ke,g as qe,b as Ge,d as je,R as We}from"./index-c6e017e7.js";var Fe={exports:{}};/*!
|
||||
* froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
|
||||
* License https://froala.com/wysiwyg-editor/terms/
|
||||
* Copyright 2014-2020 Froala Labs
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
import{g as a}from"./index-dfab27d5.js";import{r as f}from"./codemirror-744c9f2b.js";function s(o,c){for(var t=0;t<c.length;t++){const r=c[t];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in o)){const i=Object.getOwnPropertyDescriptor(r,e);i&&Object.defineProperty(o,e,i.get?i:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var n=f();const m=a(n),d=s({__proto__:null,default:m},[n]);export{d as c};
|
||||
import{g as a}from"./index-c6e017e7.js";import{r as f}from"./codemirror-b187e7af.js";function s(o,c){for(var t=0;t<c.length;t++){const r=c[t];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in o)){const i=Object.getOwnPropertyDescriptor(r,e);i&&Object.defineProperty(o,e,i.get?i:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var n=f();const m=a(n),d=s({__proto__:null,default:m},[n]);export{d as c};
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
|
|
@ -1,4 +1,4 @@
|
|||
import{n as Rt,g as Lt}from"./index-dfab27d5.js";import{h as Bt}from"./index-f453d8c4.js";function Xt(J,rt){for(var $=0;$<rt.length;$++){const Y=rt[$];if(typeof Y!="string"&&!Array.isArray(Y)){for(const R in Y)if(R!=="default"&&!(R in J)){const j=Object.getOwnPropertyDescriptor(Y,R);j&&Object.defineProperty(J,R,j.get?j:{enumerable:!0,get:()=>Y[R]})}}}return Object.freeze(Object.defineProperty(J,Symbol.toStringTag,{value:"Module"}))}var Tt={exports:{}};const Yt=Rt(Bt);(function(J,rt){(function(Y,R){J.exports=R(Yt)})(self,function($){return(()=>{var Y={"./index.js":(L,K,mt)=>{mt.r(K);var O=mt("echarts/lib/echarts");O.extendSeriesModel({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(f){return{fill:f.get("color")}},visualDrawType:"fill",optionUpdated:function(){var f=this.option;f.gridSize=Math.max(Math.floor(f.gridSize),4)},getInitialData:function(f,o){var a=O.helper.createDimensions(f.data,{coordDimensions:["value"]}),l=new O.List(a,this);return l.initData(f.data),l},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}}),O.extendChartView({type:"wordCloud",render:function(f,o,a){var l=this.group;l.removeAll();var t=f.getData(),x=f.get("gridSize");f.layoutInstance.ondraw=function(d,r,T,P){var B=t.getItemModel(T),q=B.getModel("textStyle"),b=new O.graphic.Text({style:O.helper.createTextStyle(q),scaleX:1/P.info.mu,scaleY:1/P.info.mu,x:(P.gx+P.info.gw/2)*x,y:(P.gy+P.info.gh/2)*x,rotation:P.rot});b.setStyle({x:P.info.fillTextOffsetX,y:P.info.fillTextOffsetY+r*.5,text:d,verticalAlign:"middle",fill:t.getItemVisual(T,"style").fill,fontSize:r}),l.add(b),t.setItemGraphicEl(T,b),b.ensureState("emphasis").style=O.helper.createTextStyle(B.getModel(["emphasis","textStyle"]),{state:"emphasis"}),b.ensureState("blur").style=O.helper.createTextStyle(B.getModel(["blur","textStyle"]),{state:"blur"}),O.helper.enableHoverEmphasis(b,B.get(["emphasis","focus"]),B.get(["emphasis","blurScope"])),b.stateTransition={duration:f.get("animation")?f.get(["stateAnimation","duration"]):0,easing:f.get(["stateAnimation","easing"])},b.__highDownDispatcher=!0},this._model=f},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}});/*!
|
||||
import{n as Rt,g as Lt}from"./index-c6e017e7.js";import{h as Bt}from"./index-f453d8c4.js";function Xt(J,rt){for(var $=0;$<rt.length;$++){const Y=rt[$];if(typeof Y!="string"&&!Array.isArray(Y)){for(const R in Y)if(R!=="default"&&!(R in J)){const j=Object.getOwnPropertyDescriptor(Y,R);j&&Object.defineProperty(J,R,j.get?j:{enumerable:!0,get:()=>Y[R]})}}}return Object.freeze(Object.defineProperty(J,Symbol.toStringTag,{value:"Module"}))}var Tt={exports:{}};const Yt=Rt(Bt);(function(J,rt){(function(Y,R){J.exports=R(Yt)})(self,function($){return(()=>{var Y={"./index.js":(L,K,mt)=>{mt.r(K);var O=mt("echarts/lib/echarts");O.extendSeriesModel({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(f){return{fill:f.get("color")}},visualDrawType:"fill",optionUpdated:function(){var f=this.option;f.gridSize=Math.max(Math.floor(f.gridSize),4)},getInitialData:function(f,o){var a=O.helper.createDimensions(f.data,{coordDimensions:["value"]}),l=new O.List(a,this);return l.initData(f.data),l},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}}),O.extendChartView({type:"wordCloud",render:function(f,o,a){var l=this.group;l.removeAll();var t=f.getData(),x=f.get("gridSize");f.layoutInstance.ondraw=function(d,r,T,P){var B=t.getItemModel(T),q=B.getModel("textStyle"),b=new O.graphic.Text({style:O.helper.createTextStyle(q),scaleX:1/P.info.mu,scaleY:1/P.info.mu,x:(P.gx+P.info.gw/2)*x,y:(P.gy+P.info.gh/2)*x,rotation:P.rot});b.setStyle({x:P.info.fillTextOffsetX,y:P.info.fillTextOffsetY+r*.5,text:d,verticalAlign:"middle",fill:t.getItemVisual(T,"style").fill,fontSize:r}),l.add(b),t.setItemGraphicEl(T,b),b.ensureState("emphasis").style=O.helper.createTextStyle(B.getModel(["emphasis","textStyle"]),{state:"emphasis"}),b.ensureState("blur").style=O.helper.createTextStyle(B.getModel(["blur","textStyle"]),{state:"blur"}),O.helper.enableHoverEmphasis(b,B.get(["emphasis","focus"]),B.get(["emphasis","blurScope"])),b.stateTransition={duration:f.get("animation")?f.get(["stateAnimation","duration"]):0,easing:f.get(["stateAnimation","easing"])},b.__highDownDispatcher=!0},this._model=f},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}});/*!
|
||||
* wordcloud2.js
|
||||
* http://timdream.org/wordcloud2.js/
|
||||
*
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
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.
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
import{l as e}from"./editor.main-1a76a7f4.js";import"./index-dfab27d5.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};
|
||||
import{l as e}from"./editor.main-907ec6af.js";import"./index-c6e017e7.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.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
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.
|
|
@ -1,4 +1,4 @@
|
|||
import{c as gi,g as yr,L as _O,M as BO,x as yo,N as rp,R as m,Q as DO,T as MO,U as Ii,V as ae,a as RO,b as H,W as ce,I as xe,j as L,l as x,X as ba,d as g,Y as Ja,e as wa,Z as pa,$ as Ve,a0 as xt,a1 as ip,a2 as LO,a3 as re,a4 as Qt,a5 as or,a6 as jO,a7 as ga,a8 as Ar,a9 as qo,aa as ca,o as Ne,p as Oe,ab as Os,ac as zO,ad as Um,ae as Hn,af as en,ag as zd,ah as Wm,ai as yn,aj as $O,r as y,ak as VO,al as Cn,am as Go,an as Se,ao as J,ap as Mn,aq as Za,ar as P1,as as Lo,at as yi,au as Wc,av as qm,aw as yf,ax as Hr,ay as HO,az as jo,aA as UO,aB as WO,aC as jn,aD as _1,O as Gn,P as Yn,aE as Gm,aF as qO,k as Ge,aG as We,aH as B1,aI as na,aJ as GO,aK as YO,aL as KO,aM as JO,aN as ZO,aO as D1,aP as wn,aQ as Ym,aR as Ti,aS as zo,aT as xn,aU as XO,aV as QO,aW as Km,aX as fr,aY as Yo,aZ as Jm,a_ as eN,a$ as aN,b0 as zn,b1 as tN,b2 as op,C as Pe,B as ee,b3 as nN,b4 as cp,b5 as Cf,b6 as Fi,b7 as rN,b8 as iN,b9 as oN,ba as cN,bb as M1,bc as dN,bd as fn,be as lN,bf as sN,bg as Zm,bh as fN,bi as bN,bj as uN,bk as pN,bl as dp,bm as wf,bn as $i,bo as mN,bp as St,bq as $n,br as R1,bs as mi,bt as hN,bu as lp,bv as vN,bw as Cd,bx as gN,by as yN,bz as CN,bA as Ur,bB as Xm,bC as wN,bD as Rn,bE as Mr,f as xN,bF as SN,bG as EN,bH as ON,bI as L1,bJ as NN,bK as kN,bL as IN,bM as Qm,bN as br,bO as j1,bP as pr,bQ as TN,bR as FN,bS as AN,bT as PN,bU as _N,bV as $d,bW as BN,bX as Ko,bY as xf,S as eh,bZ as DN,b_ as MN,b$ as RN,c0 as LN,c1 as jN,c2 as Ns,c3 as zN,c4 as $N,c5 as VN}from"./index-dfab27d5.js";import{_ as HN}from"./main-d6e61064.js";var wd={exports:{}};/**
|
||||
import{c as gi,g as yr,L as _O,M as BO,x as yo,N as rp,R as m,Q as DO,T as MO,U as Ii,V as ae,a as RO,b as H,W as ce,I as xe,j as L,l as x,X as ba,d as g,Y as Ja,e as wa,Z as pa,$ as Ve,a0 as xt,a1 as ip,a2 as LO,a3 as re,a4 as Qt,a5 as or,a6 as jO,a7 as ga,a8 as Ar,a9 as qo,aa as ca,o as Ne,p as Oe,ab as Os,ac as zO,ad as Um,ae as Hn,af as en,ag as zd,ah as Wm,ai as yn,aj as $O,r as y,ak as VO,al as Cn,am as Go,an as Se,ao as J,ap as Mn,aq as Za,ar as P1,as as Lo,at as yi,au as Wc,av as qm,aw as yf,ax as Hr,ay as HO,az as jo,aA as UO,aB as WO,aC as jn,aD as _1,O as Gn,P as Yn,aE as Gm,aF as qO,k as Ge,aG as We,aH as B1,aI as na,aJ as GO,aK as YO,aL as KO,aM as JO,aN as ZO,aO as D1,aP as wn,aQ as Ym,aR as Ti,aS as zo,aT as xn,aU as XO,aV as QO,aW as Km,aX as fr,aY as Yo,aZ as Jm,a_ as eN,a$ as aN,b0 as zn,b1 as tN,b2 as op,C as Pe,B as ee,b3 as nN,b4 as cp,b5 as Cf,b6 as Fi,b7 as rN,b8 as iN,b9 as oN,ba as cN,bb as M1,bc as dN,bd as fn,be as lN,bf as sN,bg as Zm,bh as fN,bi as bN,bj as uN,bk as pN,bl as dp,bm as wf,bn as $i,bo as mN,bp as St,bq as $n,br as R1,bs as mi,bt as hN,bu as lp,bv as vN,bw as Cd,bx as gN,by as yN,bz as CN,bA as Ur,bB as Xm,bC as wN,bD as Rn,bE as Mr,f as xN,bF as SN,bG as EN,bH as ON,bI as L1,bJ as NN,bK as kN,bL as IN,bM as Qm,bN as br,bO as j1,bP as pr,bQ as TN,bR as FN,bS as AN,bT as PN,bU as _N,bV as $d,bW as BN,bX as Ko,bY as xf,S as eh,bZ as DN,b_ as MN,b$ as RN,c0 as LN,c1 as jN,c2 as Ns,c3 as zN,c4 as $N,c5 as VN}from"./index-c6e017e7.js";import{_ as HN}from"./main-3b098da0.js";var wd={exports:{}};/**
|
||||
* @license
|
||||
* Lodash <https://lodash.com/>
|
||||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
import{conf as t,language as e}from"./typescript-bf199638.js";import"./editor.main-1a76a7f4.js";import"./index-dfab27d5.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};
|
||||
import{conf as t,language as e}from"./typescript-35e1849c.js";import"./editor.main-907ec6af.js";import"./index-c6e017e7.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};
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
import{l as e}from"./editor.main-1a76a7f4.js";import"./index-dfab27d5.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};
|
||||
import{l as e}from"./editor.main-907ec6af.js";import"./index-c6e017e7.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.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -1,3 +1,3 @@
|
|||
import{g as x}from"./index-dfab27d5.js";import{r as a}from"./codemirror-744c9f2b.js";function b(y,A){for(var t=0;t<A.length;t++){const l=A[t];if(typeof l!="string"&&!Array.isArray(l)){for(const f in l)if(f!=="default"&&!(f in y)){const g=Object.getOwnPropertyDescriptor(l,f);g&&Object.defineProperty(y,f,g.get?g:{enumerable:!0,get:()=>l[f]})}}}return Object.freeze(Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}))}var D={exports:{}};(function(y,A){(function(t){t(a())})(function(t){t.multiplexingMode=function(l){var f=Array.prototype.slice.call(arguments,1);function g(i,n,r,e){if(typeof n=="string"){var p=i.indexOf(n,r);return e&&p>-1?p+n.length:p}var o=n.exec(r?i.slice(r):i);return o?o.index+r+(e?o[0].length:0):-1}return{startState:function(){return{outer:t.startState(l),innerActive:null,inner:null,startingInner:!1}},copyState:function(i){return{outer:t.copyState(l,i.outer),innerActive:i.innerActive,inner:i.innerActive&&t.copyState(i.innerActive.mode,i.inner),startingInner:i.startingInner}},token:function(i,n){if(n.innerActive){var c=n.innerActive,e=i.string;if(!c.close&&i.sol())return n.innerActive=n.inner=null,this.token(i,n);var v=c.close&&!n.startingInner?g(e,c.close,i.pos,c.parseDelimiters):-1;if(v==i.pos&&!c.parseDelimiters)return i.match(c.close),n.innerActive=n.inner=null,c.delimStyle&&c.delimStyle+" "+c.delimStyle+"-close";v>-1&&(i.string=e.slice(0,v));var u=c.mode.token(i,n.inner);return v>-1?i.string=e:i.pos>i.start&&(n.startingInner=!1),v==i.pos&&c.parseDelimiters&&(n.innerActive=n.inner=null),c.innerStyle&&(u?u=u+" "+c.innerStyle:u=c.innerStyle),u}else{for(var r=1/0,e=i.string,p=0;p<f.length;++p){var o=f[p],v=g(e,o.open,i.pos);if(v==i.pos){o.parseDelimiters||i.match(o.open),n.startingInner=!!o.parseDelimiters,n.innerActive=o;var d=0;if(l.indent){var m=l.indent(n.outer,"","");m!==t.Pass&&(d=m)}return n.inner=t.startState(o.mode,d),o.delimStyle&&o.delimStyle+" "+o.delimStyle+"-open"}else v!=-1&&v<r&&(r=v)}r!=1/0&&(i.string=e.slice(0,r));var S=l.token(i,n.outer);return r!=1/0&&(i.string=e),S}},indent:function(i,n,r){var e=i.innerActive?i.innerActive.mode:l;return e.indent?e.indent(i.innerActive?i.inner:i.outer,n,r):t.Pass},blankLine:function(i){var n=i.innerActive?i.innerActive.mode:l;if(n.blankLine&&n.blankLine(i.innerActive?i.inner:i.outer),i.innerActive)i.innerActive.close===`
|
||||
import{g as x}from"./index-c6e017e7.js";import{r as a}from"./codemirror-b187e7af.js";function b(y,A){for(var t=0;t<A.length;t++){const l=A[t];if(typeof l!="string"&&!Array.isArray(l)){for(const f in l)if(f!=="default"&&!(f in y)){const g=Object.getOwnPropertyDescriptor(l,f);g&&Object.defineProperty(y,f,g.get?g:{enumerable:!0,get:()=>l[f]})}}}return Object.freeze(Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}))}var D={exports:{}};(function(y,A){(function(t){t(a())})(function(t){t.multiplexingMode=function(l){var f=Array.prototype.slice.call(arguments,1);function g(i,n,r,e){if(typeof n=="string"){var p=i.indexOf(n,r);return e&&p>-1?p+n.length:p}var o=n.exec(r?i.slice(r):i);return o?o.index+r+(e?o[0].length:0):-1}return{startState:function(){return{outer:t.startState(l),innerActive:null,inner:null,startingInner:!1}},copyState:function(i){return{outer:t.copyState(l,i.outer),innerActive:i.innerActive,inner:i.innerActive&&t.copyState(i.innerActive.mode,i.inner),startingInner:i.startingInner}},token:function(i,n){if(n.innerActive){var c=n.innerActive,e=i.string;if(!c.close&&i.sol())return n.innerActive=n.inner=null,this.token(i,n);var v=c.close&&!n.startingInner?g(e,c.close,i.pos,c.parseDelimiters):-1;if(v==i.pos&&!c.parseDelimiters)return i.match(c.close),n.innerActive=n.inner=null,c.delimStyle&&c.delimStyle+" "+c.delimStyle+"-close";v>-1&&(i.string=e.slice(0,v));var u=c.mode.token(i,n.inner);return v>-1?i.string=e:i.pos>i.start&&(n.startingInner=!1),v==i.pos&&c.parseDelimiters&&(n.innerActive=n.inner=null),c.innerStyle&&(u?u=u+" "+c.innerStyle:u=c.innerStyle),u}else{for(var r=1/0,e=i.string,p=0;p<f.length;++p){var o=f[p],v=g(e,o.open,i.pos);if(v==i.pos){o.parseDelimiters||i.match(o.open),n.startingInner=!!o.parseDelimiters,n.innerActive=o;var d=0;if(l.indent){var m=l.indent(n.outer,"","");m!==t.Pass&&(d=m)}return n.inner=t.startState(o.mode,d),o.delimStyle&&o.delimStyle+" "+o.delimStyle+"-open"}else v!=-1&&v<r&&(r=v)}r!=1/0&&(i.string=e.slice(0,r));var S=l.token(i,n.outer);return r!=1/0&&(i.string=e),S}},indent:function(i,n,r){var e=i.innerActive?i.innerActive.mode:l;return e.indent?e.indent(i.innerActive?i.inner:i.outer,n,r):t.Pass},blankLine:function(i){var n=i.innerActive?i.innerActive.mode:l;if(n.blankLine&&n.blankLine(i.innerActive?i.inner:i.outer),i.innerActive)i.innerActive.close===`
|
||||
`&&(i.innerActive=i.inner=null);else for(var r=0;r<f.length;++r){var e=f[r];e.open===`
|
||||
`&&(i.innerActive=e,i.inner=t.startState(e.mode,n.indent?n.indent(i.outer,"",""):0))}},electricChars:l.electricChars,innerMode:function(i){return i.inner?{state:i.inner,mode:i.innerActive.mode}:{state:i.outer,mode:l}}}}})})();var s=D.exports;const j=x(s),k=b({__proto__:null,default:j},[s]);export{k as m};
|
||||
Binary file not shown.
Binary file not shown.
|
|
@ -1,4 +1,4 @@
|
|||
import{g as be,c as Ee}from"./index-dfab27d5.js";function we(ee,he){for(var X=0;X<he.length;X++){const c=he[X];if(typeof c!="string"&&!Array.isArray(c)){for(const U in c)if(U!=="default"&&!(U in ee)){const G=Object.getOwnPropertyDescriptor(c,U);G&&Object.defineProperty(ee,U,G.get?G:{enumerable:!0,get:()=>c[U]})}}}return Object.freeze(Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"}))}var me={exports:{}};/* @license
|
||||
import{g as be,c as Ee}from"./index-c6e017e7.js";function we(ee,he){for(var X=0;X<he.length;X++){const c=he[X];if(typeof c!="string"&&!Array.isArray(c)){for(const U in c)if(U!=="default"&&!(U in ee)){const G=Object.getOwnPropertyDescriptor(c,U);G&&Object.defineProperty(ee,U,G.get?G:{enumerable:!0,get:()=>c[U]})}}}return Object.freeze(Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"}))}var me={exports:{}};/* @license
|
||||
Papa Parse
|
||||
v5.4.1
|
||||
https://github.com/mholt/PapaParse
|
||||
Binary file not shown.
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
import{l as e}from"./editor.main-1a76a7f4.js";import"./index-dfab27d5.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};
|
||||
import{l as e}from"./editor.main-907ec6af.js";import"./index-c6e017e7.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.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue