Compare commits

...
22 Commits
Author SHA1 Message Date
whyour b733937691 更新版本 v2.17.12 2024-10-26 14:59:36 +08:00
whyour 0d9eba4b6e 定时任务外漏标签改为 10 个 2024-10-26 14:49:02 +08:00
whyour 20c6a1e8bf 移除任务执行前后的脚本参数 2024-10-26 14:12:58 +08:00
qiaoyun680GitHubqiaoyun680 <qiaoyun680>
56bc2f0b1d 改进ntfy通知,将中文标题进行编码后发送 (#2541)
* 1.改进ntfy通知,将中文标题进行编码后发送,可以直接展示中文标题;2.改进notify.py和notify.js中ntfy的推送;
---------

Co-authored-by: qiaoyun680 <qiaoyun680>
2024-10-23 16:38:51 +08:00
EasyandGitHub ecc55883f0 优化Server酱Key相关的逻辑 (#2538)
* 优化sendkey的兼容

* 对title和desp encode
2024-10-22 21:49:07 +08:00
qiaoyun680GitHubqiaoyun680 <qiaoyun680>
185fd2ff91 增加 ntfy 通知 (#2537)
Co-authored-by: qiaoyun680 <qiaoyun680>
2024-10-22 21:47:38 +08:00
whyour 3822c37fa0 修复登录日志保存 2024-10-19 00:18:24 +08:00
whyour 4244502949 增加 log 图标样式 2024-10-13 21:24:17 +08:00
EasyandGitHub 71dd82f74e 适配Server酱APP分支(Server酱³),移除已废弃的旧版api入口 (#2524) 2024-10-10 22:09:00 +08:00
whyour 6ea8d361fd 修复 mac 时间格式化 2024-09-29 22:47:57 +08:00
whyour 3f71f9acdb 修复任务命令带有 -m 参数时,日志目录生成异常 2024-09-29 22:27:52 +08:00
whyour 418695c4aa 定时任务支持复制 2024-09-24 23:33:04 +08:00
whyour 4c5223ba11 更新版本 v2.17.11 2024-09-16 21:35:38 +08:00
whyour 2f70e10be7 修复 shell 检查 nounset 变量 2024-09-16 21:35:36 +08:00
whyour 66706ce150 修复任务视图过多无法选到视图管理 2024-09-10 22:50:33 +08:00
whyour 3d719baa54 修复任务执行初始化环境变量 PYTHONPATH 和 NODE_OPTIONS 被清空 2024-09-10 22:41:39 +08:00
whyour 926ad067c1 修复通知文件换行符解析错误 2024-09-09 23:19:58 +08:00
whyour ff98c3a499 修复任务跳转脚本未显示文件大小,订阅删除未删除 repo 目录 2024-09-08 21:08:15 +08:00
whyour 69fcf45231 修复任务执行前命令错误提示 2024-09-08 17:58:37 +08:00
whyour c3704502bf 更新 readme 2024-09-05 22:35:14 +08:00
whyour a0613d0f39 修复文件越权访问 2024-09-04 23:25:48 +08:00
whyour 8c0f46420e 更新 readme 2024-09-04 22:27:03 +08:00
40 changed files with 1770 additions and 282 deletions
+11 -3
View File
@@ -18,9 +18,9 @@ Timed task management platform supporting Python3, JavaScript, Shell, Typescript
[docker-image-size-image]: https://img.shields.io/docker/image-size/whyour/qinglong?style=flat [docker-image-size-image]: https://img.shields.io/docker/image-size/whyour/qinglong?style=flat
[docker-image-size-url]: https://hub.docker.com/r/whyour/qinglong [docker-image-size-url]: https://hub.docker.com/r/whyour/qinglong
[Demo](http://demo.dlww.cc:4433/) / [Issues](https://github.com/whyour/qinglong/issues) / [Telegram Channel](https://t.me/jiao_long) / [Buy Me a Coffee](https://www.buymeacoffee.com/qinglong) [Demo](http://demo.ninesix.cc:4433/) / [Issues](https://github.com/whyour/qinglong/issues) / [Telegram Channel](https://t.me/jiao_long) / [Buy Me a Coffee](https://www.buymeacoffee.com/qinglong)
[演示](http://demo.dlww.cc:4433/) / [反馈](https://github.com/whyour/qinglong/issues) / [Telegram 频道](https://t.me/jiao_long) / [打赏开发者](https://user-images.githubusercontent.com/22700758/244744295-29cd0cd1-c8bb-4ea1-adf6-29bd390ad4dd.jpg) [演示](http://demo.ninesix.cc:4433/) / [反馈](https://github.com/whyour/qinglong/issues) / [Telegram 频道](https://t.me/jiao_long) / [打赏开发者](https://user-images.githubusercontent.com/22700758/244744295-29cd0cd1-c8bb-4ea1-adf6-29bd390ad4dd.jpg)
</div> </div>
![cover](https://user-images.githubusercontent.com/22700758/244847235-8dc1ca21-e03f-4606-9458-0541fab60413.png) ![cover](https://user-images.githubusercontent.com/22700758/244847235-8dc1ca21-e03f-4606-9458-0541fab60413.png)
@@ -74,6 +74,14 @@ docker run -dit \
whyour/qinglong:latest whyour/qinglong:latest
``` ```
### BaoTa Panel one-click deployment (Recommended)
1. To install Pagoda Panel, go to the official website of [BaoTa Panel](https://www.bt.cn/u/EcDAFU), select the official version of the script to download and install.
2. After installation, login to Pagoda Panel, click `Docker` in the menu bar, the first time you enter, you will be prompted to install `Docker` service, click Install Now, follow the prompts to complete the installation.
3. After the installation is complete, find `Qinglong Panel` in the app shop, click Install, configure the domain name and other basic information to complete the installation.
### Docker-compose (Recommended) ### Docker-compose (Recommended)
```bash ```bash
@@ -105,7 +113,7 @@ podman run -dit \
docker.io/whyour/qinglong:latest docker.io/whyour/qinglong:latest
``` ```
### Npm ### Npm (Local)
It is recommended to use a pure system installation to avoid losing the original system data, you need to install node/npm/python3/pip3/pnpm yourself It is recommended to use a pure system installation to avoid losing the original system data, you need to install node/npm/python3/pip3/pnpm yourself
+11 -3
View File
@@ -20,9 +20,9 @@ Timed task management platform supporting Python3, JavaScript, Shell, Typescript
[docker-image-size-image]: https://img.shields.io/docker/image-size/whyour/qinglong?style=flat [docker-image-size-image]: https://img.shields.io/docker/image-size/whyour/qinglong?style=flat
[docker-image-size-url]: https://hub.docker.com/r/whyour/qinglong [docker-image-size-url]: https://hub.docker.com/r/whyour/qinglong
[Demo](http://demo.dlww.cc:4433/) / [Issues](https://github.com/whyour/qinglong/issues) / [Telegram Channel](https://t.me/jiao_long) / [Buy Me a Coffee](https://www.buymeacoffee.com/qinglong) [Demo](http://demo.ninesix.cc:4433/) / [Issues](https://github.com/whyour/qinglong/issues) / [Telegram Channel](https://t.me/jiao_long) / [Buy Me a Coffee](https://www.buymeacoffee.com/qinglong)
[演示](http://demo.dlww.cc:4433/) / [反馈](https://github.com/whyour/qinglong/issues) / [Telegram 频道](https://t.me/jiao_long) / [打赏开发者](https://user-images.githubusercontent.com/22700758/244744295-29cd0cd1-c8bb-4ea1-adf6-29bd390ad4dd.jpg) [演示](http://demo.ninesix.cc:4433/) / [反馈](https://github.com/whyour/qinglong/issues) / [Telegram 频道](https://t.me/jiao_long) / [打赏开发者](https://user-images.githubusercontent.com/22700758/244744295-29cd0cd1-c8bb-4ea1-adf6-29bd390ad4dd.jpg)
</div> </div>
![cover](https://user-images.githubusercontent.com/22700758/244847235-8dc1ca21-e03f-4606-9458-0541fab60413.png) ![cover](https://user-images.githubusercontent.com/22700758/244847235-8dc1ca21-e03f-4606-9458-0541fab60413.png)
@@ -76,6 +76,14 @@ docker run -dit \
whyour/qinglong:latest whyour/qinglong:latest
``` ```
### 宝塔面板一键部署(推荐)
1. 安装宝塔面板,前往 [宝塔面板](https://www.bt.cn/u/EcDAFU) 官网,选择正式版的脚本下载安装
2. 安装后登录宝塔面板,在菜单栏中点击 `Docker`,首次进入会提示安装`Docker`服务,点击立即安装,按提示完成安装
3. 安装完成后在应用商店中找到`青龙面板`,点击安装,配置域名等基本信息即可完成安装
### docker-compose (推荐) ### docker-compose (推荐)
```bash ```bash
@@ -107,7 +115,7 @@ podman run -dit \
docker.io/whyour/qinglong:latest docker.io/whyour/qinglong:latest
``` ```
### npm ### npm (本地)
建议使用纯净系统安装,避免系统原有数据丢失,需要自己安装 node/npm/python3/pip3/pnpm 建议使用纯净系统安装,避免系统原有数据丢失,需要自己安装 node/npm/python3/pip3/pnpm
-1
View File
@@ -1,4 +1,3 @@
import { getFileContentByName, getLastModifyFilePath } from '../config/util';
import { Router, Request, Response, NextFunction } from 'express'; import { Router, Request, Response, NextFunction } from 'express';
import { Container } from 'typedi'; import { Container } from 'typedi';
import { Logger } from 'winston'; import { Logger } from 'winston';
+22 -16
View File
@@ -1,10 +1,9 @@
import { Router, Request, Response, NextFunction } from 'express'; import { Router, Request, Response, NextFunction } from 'express';
import { Container } from 'typedi'; import { Container } from 'typedi';
import { Logger } from 'winston'; import { Logger } from 'winston';
import * as fs from 'fs';
import config from '../config'; import config from '../config';
import { getFileContentByName, readDirs, rmPath } from '../config/util'; import { getFileContentByName, readDirs, rmPath } from '../config/util';
import { join } from 'path'; import { join, resolve } from 'path';
import { celebrate, Joi } from 'celebrate'; import { celebrate, Joi } from 'celebrate';
const route = Router(); const route = Router();
const blacklist = ['.tmp']; const blacklist = ['.tmp'];
@@ -30,15 +29,19 @@ export default (app: Router) => {
'/detail', '/detail',
async (req: Request, res: Response, next: NextFunction) => { async (req: Request, res: Response, next: NextFunction) => {
try { try {
if (blacklist.includes(req.path)) { const finalPath = resolve(
config.logPath,
(req.query.path as string) || '',
(req.query.file as string) || '',
);
if (
blacklist.includes(req.query.path as string) ||
!finalPath.startsWith(config.logPath)
) {
return res.send({ code: 403, message: '暂无权限' }); return res.send({ code: 403, message: '暂无权限' });
} }
const filePath = join( const content = await getFileContentByName(finalPath);
config.logPath,
(req.query.path || '') as string,
req.query.file as string,
);
const content = await getFileContentByName(filePath);
res.send({ code: 200, data: content }); res.send({ code: 200, data: content });
} catch (e) { } catch (e) {
return next(e); return next(e);
@@ -50,15 +53,18 @@ export default (app: Router) => {
'/:file', '/:file',
async (req: Request, res: Response, next: NextFunction) => { async (req: Request, res: Response, next: NextFunction) => {
try { try {
if (blacklist.includes(req.path)) { const finalPath = resolve(
config.logPath,
(req.query.path as string) || '',
(req.params.file as string) || '',
);
if (
blacklist.includes(req.path) ||
!finalPath.startsWith(config.logPath)
) {
return res.send({ code: 403, message: '暂无权限' }); return res.send({ code: 403, message: '暂无权限' });
} }
const filePath = join( const content = await getFileContentByName(finalPath);
config.logPath,
(req.query.path || '') as string,
req.params.file,
);
const content = await getFileContentByName(filePath);
res.send({ code: 200, data: content }); res.send({ code: 200, data: content });
} catch (e) { } catch (e) {
return next(e); return next(e);
+1 -8
View File
@@ -1,11 +1,4 @@
import { import { fileExist, readDirs, readDir, rmPath } from '../config/util';
fileExist,
getFileContentByName,
readDirs,
getLastModifyFilePath,
readDir,
rmPath,
} from '../config/util';
import { Router, Request, Response, NextFunction } from 'express'; import { Router, Request, Response, NextFunction } from 'express';
import { Container } from 'typedi'; import { Container } from 'typedi';
import { Logger } from 'winston'; import { Logger } from 'winston';
+2
View File
@@ -31,6 +31,7 @@ const tmpPath = path.join(rootPath, '.tmp/');
const samplePath = path.join(rootPath, 'sample/'); const samplePath = path.join(rootPath, 'sample/');
const configPath = path.join(dataPath, 'config/'); const configPath = path.join(dataPath, 'config/');
const scriptPath = path.join(dataPath, 'scripts/'); const scriptPath = path.join(dataPath, 'scripts/');
const repoPath = path.join(dataPath, 'repo/');
const bakPath = path.join(dataPath, 'bak/'); const bakPath = path.join(dataPath, 'bak/');
const logPath = path.join(dataPath, 'log/'); const logPath = path.join(dataPath, 'log/');
const dbPath = path.join(dataPath, 'db/'); const dbPath = path.join(dataPath, 'db/');
@@ -101,6 +102,7 @@ export default {
uploadPath, uploadPath,
configPath, configPath,
scriptPath, scriptPath,
repoPath,
samplePath, samplePath,
blackFileList: [ blackFileList: [
'auth.json', 'auth.json',
+3 -3
View File
@@ -5,13 +5,13 @@ let pickedEnv: Record<string, string>;
function getPickedEnv() { function getPickedEnv() {
if (pickedEnv) return pickedEnv; if (pickedEnv) return pickedEnv;
const picked = pick(process.env, ['QlBaseUrl', 'DeployEnv']); const picked = pick(process.env, ['QlBaseUrl', 'DeployEnv', 'QL_DIR']);
if (picked.QlBaseUrl) { if (picked.QlBaseUrl) {
if (!picked.QlBaseUrl.startsWith('/')) { if (!picked.QlBaseUrl.startsWith('/')) {
picked.QlBaseUrl = `/${picked.QlBaseUrl}` picked.QlBaseUrl = `/${picked.QlBaseUrl}`;
} }
if (!picked.QlBaseUrl.endsWith('/')) { if (!picked.QlBaseUrl.endsWith('/')) {
picked.QlBaseUrl = `${picked.QlBaseUrl}/` picked.QlBaseUrl = `${picked.QlBaseUrl}/`;
} }
} }
pickedEnv = picked as Record<string, string>; pickedEnv = picked as Record<string, string>;
+10 -5
View File
@@ -469,13 +469,18 @@ export async function getUniqPath(
command: string, command: string,
id: string, id: string,
): Promise<string> { ): Promise<string> {
let suffix = '';
if (/^\d+$/.test(id)) { if (/^\d+$/.test(id)) {
id = `_${id}`; suffix = `_${id}`;
} else { }
id = '';
let items = command.split(/ +/);
const maxTimeCommandIndex = items.findIndex((x) => x === '-m');
if (maxTimeCommandIndex !== -1) {
items = items.slice(maxTimeCommandIndex + 2);
} }
const items = command.split(/ +/);
let str = items[0]; let str = items[0];
if (items[0] === TASK_COMMAND) { if (items[0] === TASK_COMMAND) {
str = items[1]; str = items[1];
@@ -499,7 +504,7 @@ export async function getUniqPath(
str = `${tempStr}_${str.slice(slashIndex + 1)}`; str = `${tempStr}_${str.slice(slashIndex + 1)}`;
} }
return `${str}${id}`; return `${str}${suffix}`;
} }
export function safeJSONParse(value?: string) { export function safeJSONParse(value?: string) {
+8 -1
View File
@@ -20,6 +20,7 @@ export enum NotificationMode {
'feishu' = 'feishu', 'feishu' = 'feishu',
'webhook' = 'webhook', 'webhook' = 'webhook',
'chronocat' = 'Chronocat', 'chronocat' = 'Chronocat',
'ntfy' = 'ntfy',
} }
abstract class NotificationBaseInfo { abstract class NotificationBaseInfo {
@@ -139,6 +140,11 @@ export class LarkNotification extends NotificationBaseInfo {
public larkKey = ''; public larkKey = '';
} }
export class NtfyNotification extends NotificationBaseInfo {
public ntfyUrl = '';
public ntfyTopic = '';
public ntfyPriority = '';
}
export interface NotificationInfo export interface NotificationInfo
extends GoCqHttpBotNotification, extends GoCqHttpBotNotification,
GotifyNotification, GotifyNotification,
@@ -158,5 +164,6 @@ export interface NotificationInfo
PushMeNotification, PushMeNotification,
WebhookNotification, WebhookNotification,
ChronocatNotification, ChronocatNotification,
LarkNotification {} LarkNotification,
NtfyNotification {}
+4 -4
View File
@@ -4,10 +4,10 @@ import config from '../config';
import path from 'path'; import path from 'path';
const levelMap: Record<string, string> = { const levelMap: Record<string, string> = {
info: '🔵', info: '\ue6f5',
warn: '🟡', warn: '\ue880',
error: '🔴', error: '\ue602',
debug: '🔶' debug: '\ue67f'
} }
const customFormat = winston.format.combine( const customFormat = winston.format.combine(
+14 -2
View File
@@ -11,9 +11,21 @@ export default class ConfigService {
public async getFile(filePath: string, res: Response) { public async getFile(filePath: string, res: Response) {
let content = ''; let content = '';
if (config.blackFileList.includes(filePath) || !filePath) { const avaliablePath = [config.rootPath, config.configPath].map((x) =>
res.send({ code: 403, message: '文件无法访问' }); path.resolve(x, filePath),
);
if (
config.blackFileList.includes(filePath) ||
avaliablePath.every(
(x) =>
!x.startsWith(config.scriptPath) && !x.startsWith(config.configPath),
) ||
!filePath
) {
return res.send({ code: 403, message: '文件无法访问' });
} }
if (filePath.startsWith('sample/')) { if (filePath.startsWith('sample/')) {
const res = await got.get( const res = await got.get(
`https://gitlab.com/whyour/qinglong/-/raw/master/${filePath}`, `https://gitlab.com/whyour/qinglong/-/raw/master/${filePath}`,
+34 -5
View File
@@ -35,6 +35,7 @@ export default class NotificationService {
['webhook', this.webhook], ['webhook', this.webhook],
['lark', this.lark], ['lark', this.lark],
['chronocat', this.chronocat], ['chronocat', this.chronocat],
['ntfy', this.ntfy],
]); ]);
private title = ''; private title = '';
@@ -151,14 +152,16 @@ export default class NotificationService {
private async serverChan() { private async serverChan() {
const { serverChanKey } = this.params; const { serverChanKey } = this.params;
const url = serverChanKey.startsWith('SCT') const matchResult = serverChanKey.match(/^sctp(\d+)t/i);
? `https://sctapi.ftqq.com/${serverChanKey}.send` const url = matchResult && matchResult[1]
: `https://sc.ftqq.com/${serverChanKey}.send`; ? `https://${matchResult[1]}.push.ft07.com/send/${serverChanKey}.send`
: `https://sctapi.ftqq.com/${serverChanKey}.send`;
try { try {
const res: any = await got const res: any = await got
.post(url, { .post(url, {
...this.gotOption, ...this.gotOption,
body: `title=${this.title}&desp=${this.content}`, body: `title=${encodeURIComponent(this.title)}&desp=${encodeURIComponent(this.content)}`,
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
}) })
.json(); .json();
@@ -516,7 +519,7 @@ export default class NotificationService {
} catch (error: any) { } catch (error: any) {
throw new Error(error.response ? error.response.body : error); throw new Error(error.response ? error.response.body : error);
} }
} }
private async pushPlus() { private async pushPlus() {
const { pushPlusToken, pushPlusUser } = this.params; const { pushPlusToken, pushPlusUser } = this.params;
@@ -661,6 +664,32 @@ export default class NotificationService {
} }
} }
private async ntfy() {
const { ntfyUrl, ntfyTopic, ntfyPriority } = this.params;
// 编码函数
const encodeRfc2047 = (text: string, charset: string = 'UTF-8'): string => {
const encodedText = Buffer.from(text).toString('base64');
return `=?${charset}?B?${encodedText}?=`;
};
try {
const encodedTitle = encodeRfc2047(this.title);
const res: any = await got
.post(`${ntfyUrl || 'https://ntfy.sh'}/${ntfyTopic}`, {
...this.gotOption,
body: `${this.content}`,
headers: { 'Title': encodedTitle, 'Priority': `${ntfyPriority || '3'}` },
});
if (res.statusCode === 200) {
return true;
} else {
throw new Error(JSON.stringify(res));
}
} catch (error: any) {
throw new Error(error.response ? error.response.body : error);
}
}
private async chronocat() { private async chronocat() {
const { chronocatURL, chronocatQQ, chronocatToken } = this.params; const { chronocatURL, chronocatQQ, chronocatToken } = this.params;
try { try {
+6 -4
View File
@@ -65,11 +65,13 @@ export default class ScriptService {
} }
public async getFile(filePath: string, fileName: string) { public async getFile(filePath: string, fileName: string) {
let _filePath = join(config.scriptPath, filePath, fileName); const finalPath = path.resolve(config.scriptPath, filePath, fileName);
if (filePath.startsWith(config.dataPath)) {
_filePath = join(filePath, fileName); if (!finalPath.startsWith(config.scriptPath)) {
return '';
} }
const content = await getFileContentByName(_filePath);
const content = await getFileContentByName(finalPath);
return content; return content;
} }
} }
+2
View File
@@ -277,7 +277,9 @@ export default class SubscriptionService {
} }
for (const doc of docs) { for (const doc of docs) {
const filePath = join(config.scriptPath, doc.alias); const filePath = join(config.scriptPath, doc.alias);
const repoPath = join(config.repoPath, doc.alias);
await rmPath(filePath); await rmPath(filePath);
await rmPath(repoPath);
} }
} }
} }
+1 -1
View File
@@ -217,7 +217,7 @@ export default class UserService {
(a, b) => b.info!.timestamp! - a.info!.timestamp!, (a, b) => b.info!.timestamp! - a.info!.timestamp!,
); );
if (result.length > 100) { if (result.length > 100) {
const ids = result.slice(0, result.length - 100).map((x) => x.id!); const ids = result.slice(100).map((x) => x.id!);
await SystemModel.destroy({ await SystemModel.destroy({
where: { id: ids }, where: { id: ids },
}); });
+2
View File
@@ -106,6 +106,8 @@
"moment": "2.30.1", "moment": "2.30.1",
"@ant-design/icons": "^4.7.0", "@ant-design/icons": "^4.7.0",
"@ant-design/pro-layout": "6.38.22", "@ant-design/pro-layout": "6.38.22",
"@codemirror/view": "^6.34.1",
"@codemirror/state": "^6.4.1",
"@monaco-editor/react": "4.2.1", "@monaco-editor/react": "4.2.1",
"@react-hook/resize-observer": "^1.2.6", "@react-hook/resize-observer": "^1.2.6",
"react-router-dom": "6.26.1", "react-router-dom": "6.26.1",
+187 -159
View File
@@ -145,6 +145,12 @@ devDependencies:
'@ant-design/pro-layout': '@ant-design/pro-layout':
specifier: 6.38.22 specifier: 6.38.22
version: 6.38.22(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0) version: 6.38.22(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0)
'@codemirror/state':
specifier: ^6.4.1
version: 6.4.1
'@codemirror/view':
specifier: ^6.34.1
version: 6.34.1
'@monaco-editor/react': '@monaco-editor/react':
specifier: 4.2.1 specifier: 4.2.1
version: 4.2.1(monaco-editor@0.33.0)(react-dom@18.2.0)(react@18.2.0) version: 4.2.1(monaco-editor@0.33.0)(react-dom@18.2.0)(react@18.2.0)
@@ -225,10 +231,10 @@ devDependencies:
version: 8.3.4 version: 8.3.4
'@uiw/codemirror-extensions-langs': '@uiw/codemirror-extensions-langs':
specifier: ^4.21.9 specifier: ^4.21.9
version: 4.21.9(@codemirror/autocomplete@6.9.0)(@codemirror/language-data@6.3.1)(@codemirror/language@6.9.0)(@codemirror/legacy-modes@6.3.3)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4)(@lezer/highlight@1.1.6)(@lezer/javascript@1.4.5)(@lezer/lr@1.3.10) version: 4.21.9(@codemirror/autocomplete@6.9.0)(@codemirror/language-data@6.3.1)(@codemirror/language@6.10.3)(@codemirror/legacy-modes@6.3.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)(@lezer/highlight@1.2.1)(@lezer/javascript@1.4.5)(@lezer/lr@1.3.10)
'@uiw/react-codemirror': '@uiw/react-codemirror':
specifier: ^4.21.9 specifier: ^4.21.9
version: 4.21.9(@babel/runtime@7.23.1)(@codemirror/autocomplete@6.9.0)(@codemirror/language@6.9.0)(@codemirror/lint@6.4.0)(@codemirror/search@6.5.1)(@codemirror/state@6.2.1)(@codemirror/theme-one-dark@6.1.2)(@codemirror/view@6.16.0)(codemirror@6.0.1)(react-dom@18.2.0)(react@18.2.0) version: 4.21.9(@babel/runtime@7.23.1)(@codemirror/autocomplete@6.9.0)(@codemirror/language@6.10.3)(@codemirror/lint@6.4.0)(@codemirror/search@6.5.1)(@codemirror/state@6.4.1)(@codemirror/theme-one-dark@6.1.2)(@codemirror/view@6.34.1)(codemirror@6.0.1)(react-dom@18.2.0)(react@18.2.0)
'@umijs/max': '@umijs/max':
specifier: ^4.0.72 specifier: ^4.0.72
version: 4.0.72(@types/node@17.0.45)(@types/react-dom@18.2.4)(@types/react@18.2.8)(prettier@2.8.8)(react-dom@18.2.0)(react@18.2.0)(sockjs-client@1.6.1)(typescript@5.2.2)(webpack@5.85.1) version: 4.0.72(@types/node@17.0.45)(@types/react-dom@18.2.4)(@types/react@18.2.8)(prettier@2.8.8)(react-dom@18.2.0)(react@18.2.0)(sockjs-client@1.6.1)(typescript@5.2.2)(webpack@5.85.1)
@@ -2814,7 +2820,7 @@ packages:
tinycolor2: 1.6.0 tinycolor2: 1.6.0
dev: true dev: true
/@codemirror/autocomplete@6.9.0(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4): /@codemirror/autocomplete@6.9.0(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.0.4):
resolution: {integrity: sha512-Fbwm0V/Wn3BkEJZRhr0hi5BhCo5a7eBL6LYaliPjOSwCyfOpnjXY59HruSxOUNV+1OYer0Tgx1zRNQttjXyDog==} resolution: {integrity: sha512-Fbwm0V/Wn3BkEJZRhr0hi5BhCo5a7eBL6LYaliPjOSwCyfOpnjXY59HruSxOUNV+1OYer0Tgx1zRNQttjXyDog==}
peerDependencies: peerDependencies:
'@codemirror/language': ^6.0.0 '@codemirror/language': ^6.0.0
@@ -2822,18 +2828,32 @@ packages:
'@codemirror/view': ^6.0.0 '@codemirror/view': ^6.0.0
'@lezer/common': ^1.0.0 '@lezer/common': ^1.0.0
dependencies: dependencies:
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@codemirror/view': 6.16.0 '@codemirror/view': 6.34.1
'@lezer/common': 1.0.4 '@lezer/common': 1.0.4
dev: true dev: true
/@codemirror/autocomplete@6.9.0(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3):
resolution: {integrity: sha512-Fbwm0V/Wn3BkEJZRhr0hi5BhCo5a7eBL6LYaliPjOSwCyfOpnjXY59HruSxOUNV+1OYer0Tgx1zRNQttjXyDog==}
peerDependencies:
'@codemirror/language': ^6.0.0
'@codemirror/state': ^6.0.0
'@codemirror/view': ^6.0.0
'@lezer/common': ^1.0.0
dependencies:
'@codemirror/language': 6.10.3
'@codemirror/state': 6.4.1
'@codemirror/view': 6.34.1
'@lezer/common': 1.2.3
dev: true
/@codemirror/commands@6.2.4: /@codemirror/commands@6.2.4:
resolution: {integrity: sha512-42lmDqVH0ttfilLShReLXsDfASKLXzfyC36bzwcqzox9PlHulMcsUOfHXNo2X2aFMVNUoQ7j+d4q5bnfseYoOA==} resolution: {integrity: sha512-42lmDqVH0ttfilLShReLXsDfASKLXzfyC36bzwcqzox9PlHulMcsUOfHXNo2X2aFMVNUoQ7j+d4q5bnfseYoOA==}
dependencies: dependencies:
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@codemirror/view': 6.16.0 '@codemirror/view': 6.34.1
'@lezer/common': 1.0.4 '@lezer/common': 1.0.4
dev: true dev: true
@@ -2842,25 +2862,25 @@ packages:
dependencies: dependencies:
'@codemirror/lang-html': 6.4.5 '@codemirror/lang-html': 6.4.5
'@codemirror/lang-javascript': 6.1.9 '@codemirror/lang-javascript': 6.1.9
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@lezer/common': 1.0.4 '@lezer/common': 1.0.4
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
/@codemirror/lang-cpp@6.0.2: /@codemirror/lang-cpp@6.0.2:
resolution: {integrity: sha512-6oYEYUKHvrnacXxWxYa6t4puTlbN3dgV662BDfSH8+MfjQjVmP697/KYTDOqpxgerkvoNm7q5wlFMBeX8ZMocg==} resolution: {integrity: sha512-6oYEYUKHvrnacXxWxYa6t4puTlbN3dgV662BDfSH8+MfjQjVmP697/KYTDOqpxgerkvoNm7q5wlFMBeX8ZMocg==}
dependencies: dependencies:
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@lezer/cpp': 1.1.1 '@lezer/cpp': 1.1.1
dev: true dev: true
/@codemirror/lang-css@6.2.1(@codemirror/view@6.16.0): /@codemirror/lang-css@6.2.1(@codemirror/view@6.34.1):
resolution: {integrity: sha512-/UNWDNV5Viwi/1lpr/dIXJNWiwDxpw13I4pTUAsNxZdg6E0mI2kTQb0P2iHczg1Tu+H4EBgJR+hYhKiHKko7qg==} resolution: {integrity: sha512-/UNWDNV5Viwi/1lpr/dIXJNWiwDxpw13I4pTUAsNxZdg6E0mI2kTQb0P2iHczg1Tu+H4EBgJR+hYhKiHKko7qg==}
dependencies: dependencies:
'@codemirror/autocomplete': 6.9.0(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4) '@codemirror/autocomplete': 6.9.0(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.0.4)
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@lezer/common': 1.0.4 '@lezer/common': 1.0.4
'@lezer/css': 1.1.3 '@lezer/css': 1.1.3
transitivePeerDependencies: transitivePeerDependencies:
@@ -2870,12 +2890,12 @@ packages:
/@codemirror/lang-html@6.4.5: /@codemirror/lang-html@6.4.5:
resolution: {integrity: sha512-dUCSxkIw2G+chaUfw3Gfu5kkN83vJQN8gfQDp9iEHsIZluMJA0YJveT12zg/28BJx+uPsbQ6VimKCgx3oJrZxA==} resolution: {integrity: sha512-dUCSxkIw2G+chaUfw3Gfu5kkN83vJQN8gfQDp9iEHsIZluMJA0YJveT12zg/28BJx+uPsbQ6VimKCgx3oJrZxA==}
dependencies: dependencies:
'@codemirror/autocomplete': 6.9.0(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4) '@codemirror/autocomplete': 6.9.0(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.0.4)
'@codemirror/lang-css': 6.2.1(@codemirror/view@6.16.0) '@codemirror/lang-css': 6.2.1(@codemirror/view@6.34.1)
'@codemirror/lang-javascript': 6.1.9 '@codemirror/lang-javascript': 6.1.9
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@codemirror/view': 6.16.0 '@codemirror/view': 6.34.1
'@lezer/common': 1.0.4 '@lezer/common': 1.0.4
'@lezer/css': 1.1.3 '@lezer/css': 1.1.3
'@lezer/html': 1.3.6 '@lezer/html': 1.3.6
@@ -2884,18 +2904,18 @@ packages:
/@codemirror/lang-java@6.0.1: /@codemirror/lang-java@6.0.1:
resolution: {integrity: sha512-OOnmhH67h97jHzCuFaIEspbmsT98fNdhVhmA3zCxW0cn7l8rChDhZtwiwJ/JOKXgfm4J+ELxQihxaI7bj7mJRg==} resolution: {integrity: sha512-OOnmhH67h97jHzCuFaIEspbmsT98fNdhVhmA3zCxW0cn7l8rChDhZtwiwJ/JOKXgfm4J+ELxQihxaI7bj7mJRg==}
dependencies: dependencies:
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@lezer/java': 1.0.4 '@lezer/java': 1.0.4
dev: true dev: true
/@codemirror/lang-javascript@6.1.9: /@codemirror/lang-javascript@6.1.9:
resolution: {integrity: sha512-z3jdkcqOEBT2txn2a87A0jSy6Te3679wg/U8QzMeftFt+4KA6QooMwfdFzJiuC3L6fXKfTXZcDocoaxMYfGz0w==} resolution: {integrity: sha512-z3jdkcqOEBT2txn2a87A0jSy6Te3679wg/U8QzMeftFt+4KA6QooMwfdFzJiuC3L6fXKfTXZcDocoaxMYfGz0w==}
dependencies: dependencies:
'@codemirror/autocomplete': 6.9.0(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4) '@codemirror/autocomplete': 6.9.0(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.0.4)
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@codemirror/lint': 6.4.0 '@codemirror/lint': 6.4.0
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@codemirror/view': 6.16.0 '@codemirror/view': 6.34.1
'@lezer/common': 1.0.4 '@lezer/common': 1.0.4
'@lezer/javascript': 1.4.5 '@lezer/javascript': 1.4.5
dev: true dev: true
@@ -2903,16 +2923,16 @@ packages:
/@codemirror/lang-json@6.0.1: /@codemirror/lang-json@6.0.1:
resolution: {integrity: sha512-+T1flHdgpqDDlJZ2Lkil/rLiRy684WMLc74xUnjJH48GQdfJo/pudlTRreZmKwzP8/tGdKf83wlbAdOCzlJOGQ==} resolution: {integrity: sha512-+T1flHdgpqDDlJZ2Lkil/rLiRy684WMLc74xUnjJH48GQdfJo/pudlTRreZmKwzP8/tGdKf83wlbAdOCzlJOGQ==}
dependencies: dependencies:
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@lezer/json': 1.0.1 '@lezer/json': 1.0.1
dev: true dev: true
/@codemirror/lang-less@6.0.1(@codemirror/view@6.16.0): /@codemirror/lang-less@6.0.1(@codemirror/view@6.34.1):
resolution: {integrity: sha512-ABcsKBjLbyPZwPR5gePpc8jEKCQrFF4pby2WlMVdmJOOr7OWwwyz8DZonPx/cKDE00hfoSLc8F7yAcn/d6+rTQ==} resolution: {integrity: sha512-ABcsKBjLbyPZwPR5gePpc8jEKCQrFF4pby2WlMVdmJOOr7OWwwyz8DZonPx/cKDE00hfoSLc8F7yAcn/d6+rTQ==}
dependencies: dependencies:
'@codemirror/lang-css': 6.2.1(@codemirror/view@6.16.0) '@codemirror/lang-css': 6.2.1(@codemirror/view@6.34.1)
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
transitivePeerDependencies: transitivePeerDependencies:
- '@codemirror/view' - '@codemirror/view'
@@ -2921,8 +2941,8 @@ packages:
/@codemirror/lang-lezer@6.0.1: /@codemirror/lang-lezer@6.0.1:
resolution: {integrity: sha512-WHwjI7OqKFBEfkunohweqA5B/jIlxaZso6Nl3weVckz8EafYbPZldQEKSDb4QQ9H9BUkle4PVELP4sftKoA0uQ==} resolution: {integrity: sha512-WHwjI7OqKFBEfkunohweqA5B/jIlxaZso6Nl3weVckz8EafYbPZldQEKSDb4QQ9H9BUkle4PVELP4sftKoA0uQ==}
dependencies: dependencies:
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@lezer/common': 1.0.4 '@lezer/common': 1.0.4
'@lezer/lezer': 1.1.2 '@lezer/lezer': 1.1.2
dev: true dev: true
@@ -2930,11 +2950,11 @@ packages:
/@codemirror/lang-markdown@6.2.0: /@codemirror/lang-markdown@6.2.0:
resolution: {integrity: sha512-deKegEQVzfBAcLPqsJEa+IxotqPVwWZi90UOEvQbfa01NTAw8jNinrykuYPTULGUj+gha0ZG2HBsn4s5d64Qrg==} resolution: {integrity: sha512-deKegEQVzfBAcLPqsJEa+IxotqPVwWZi90UOEvQbfa01NTAw8jNinrykuYPTULGUj+gha0ZG2HBsn4s5d64Qrg==}
dependencies: dependencies:
'@codemirror/autocomplete': 6.9.0(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4) '@codemirror/autocomplete': 6.9.0(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.0.4)
'@codemirror/lang-html': 6.4.5 '@codemirror/lang-html': 6.4.5
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@codemirror/view': 6.16.0 '@codemirror/view': 6.34.1
'@lezer/common': 1.0.4 '@lezer/common': 1.0.4
'@lezer/markdown': 1.1.0 '@lezer/markdown': 1.1.0
dev: true dev: true
@@ -2943,17 +2963,17 @@ packages:
resolution: {integrity: sha512-ublojMdw/PNWa7qdN5TMsjmqkNuTBD3k6ndZ4Z0S25SBAiweFGyY68AS3xNcIOlb6DDFDvKlinLQ40vSLqf8xA==} resolution: {integrity: sha512-ublojMdw/PNWa7qdN5TMsjmqkNuTBD3k6ndZ4Z0S25SBAiweFGyY68AS3xNcIOlb6DDFDvKlinLQ40vSLqf8xA==}
dependencies: dependencies:
'@codemirror/lang-html': 6.4.5 '@codemirror/lang-html': 6.4.5
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@lezer/common': 1.0.4 '@lezer/common': 1.0.4
'@lezer/php': 1.0.1 '@lezer/php': 1.0.1
dev: true dev: true
/@codemirror/lang-python@6.1.3(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4): /@codemirror/lang-python@6.1.3(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3):
resolution: {integrity: sha512-S9w2Jl74hFlD5nqtUMIaXAq9t5WlM0acCkyuQWUUSvZclk1sV+UfnpFiZzuZSG+hfEaOmxKR5UxY/Uxswn7EhQ==} resolution: {integrity: sha512-S9w2Jl74hFlD5nqtUMIaXAq9t5WlM0acCkyuQWUUSvZclk1sV+UfnpFiZzuZSG+hfEaOmxKR5UxY/Uxswn7EhQ==}
dependencies: dependencies:
'@codemirror/autocomplete': 6.9.0(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4) '@codemirror/autocomplete': 6.9.0(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@lezer/python': 1.1.8 '@lezer/python': 1.1.8
transitivePeerDependencies: transitivePeerDependencies:
- '@codemirror/state' - '@codemirror/state'
@@ -2964,29 +2984,29 @@ packages:
/@codemirror/lang-rust@6.0.1: /@codemirror/lang-rust@6.0.1:
resolution: {integrity: sha512-344EMWFBzWArHWdZn/NcgkwMvZIWUR1GEBdwG8FEp++6o6vT6KL9V7vGs2ONsKxxFUPXKI0SPcWhyYyl2zPYxQ==} resolution: {integrity: sha512-344EMWFBzWArHWdZn/NcgkwMvZIWUR1GEBdwG8FEp++6o6vT6KL9V7vGs2ONsKxxFUPXKI0SPcWhyYyl2zPYxQ==}
dependencies: dependencies:
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@lezer/rust': 1.0.1 '@lezer/rust': 1.0.1
dev: true dev: true
/@codemirror/lang-sass@6.0.2(@codemirror/view@6.16.0): /@codemirror/lang-sass@6.0.2(@codemirror/view@6.34.1):
resolution: {integrity: sha512-l/bdzIABvnTo1nzdY6U+kPAC51czYQcOErfzQ9zSm9D8GmNPD0WTW8st/CJwBTPLO8jlrbyvlSEcN20dc4iL0Q==} resolution: {integrity: sha512-l/bdzIABvnTo1nzdY6U+kPAC51czYQcOErfzQ9zSm9D8GmNPD0WTW8st/CJwBTPLO8jlrbyvlSEcN20dc4iL0Q==}
dependencies: dependencies:
'@codemirror/lang-css': 6.2.1(@codemirror/view@6.16.0) '@codemirror/lang-css': 6.2.1(@codemirror/view@6.34.1)
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@lezer/common': 1.0.4 '@lezer/common': 1.0.4
'@lezer/sass': 1.0.3 '@lezer/sass': 1.0.3
transitivePeerDependencies: transitivePeerDependencies:
- '@codemirror/view' - '@codemirror/view'
dev: true dev: true
/@codemirror/lang-sql@6.5.4(@codemirror/view@6.16.0)(@lezer/common@1.0.4): /@codemirror/lang-sql@6.5.4(@codemirror/view@6.34.1)(@lezer/common@1.2.3):
resolution: {integrity: sha512-5Gq7fYtT/5HbNyIG7a8vYaqOYQU3JbgtBe3+derkrFUXRVcjkf8WVgz++PIbMFAQsOFMDdDR+uiNM8ZRRuXH+w==} resolution: {integrity: sha512-5Gq7fYtT/5HbNyIG7a8vYaqOYQU3JbgtBe3+derkrFUXRVcjkf8WVgz++PIbMFAQsOFMDdDR+uiNM8ZRRuXH+w==}
dependencies: dependencies:
'@codemirror/autocomplete': 6.9.0(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4) '@codemirror/autocomplete': 6.9.0(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
transitivePeerDependencies: transitivePeerDependencies:
- '@codemirror/view' - '@codemirror/view'
@@ -2998,53 +3018,53 @@ packages:
dependencies: dependencies:
'@codemirror/lang-html': 6.4.5 '@codemirror/lang-html': 6.4.5
'@codemirror/lang-javascript': 6.1.9 '@codemirror/lang-javascript': 6.1.9
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@lezer/common': 1.0.4 '@lezer/common': 1.0.4
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
/@codemirror/lang-wast@6.0.1: /@codemirror/lang-wast@6.0.1:
resolution: {integrity: sha512-sQLsqhRjl2MWG3rxZysX+2XAyed48KhLBHLgq9xcKxIJu3npH/G+BIXW5NM5mHeDUjG0jcGh9BcjP0NfMStuzA==} resolution: {integrity: sha512-sQLsqhRjl2MWG3rxZysX+2XAyed48KhLBHLgq9xcKxIJu3npH/G+BIXW5NM5mHeDUjG0jcGh9BcjP0NfMStuzA==}
dependencies: dependencies:
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
/@codemirror/lang-xml@6.0.2(@codemirror/view@6.16.0): /@codemirror/lang-xml@6.0.2(@codemirror/view@6.34.1):
resolution: {integrity: sha512-JQYZjHL2LAfpiZI2/qZ/qzDuSqmGKMwyApYmEUUCTxLM4MWS7sATUEfIguZQr9Zjx/7gcdnewb039smF6nC2zw==} resolution: {integrity: sha512-JQYZjHL2LAfpiZI2/qZ/qzDuSqmGKMwyApYmEUUCTxLM4MWS7sATUEfIguZQr9Zjx/7gcdnewb039smF6nC2zw==}
dependencies: dependencies:
'@codemirror/autocomplete': 6.9.0(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4) '@codemirror/autocomplete': 6.9.0(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.0.4)
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@lezer/common': 1.0.4 '@lezer/common': 1.0.4
'@lezer/xml': 1.0.2 '@lezer/xml': 1.0.2
transitivePeerDependencies: transitivePeerDependencies:
- '@codemirror/view' - '@codemirror/view'
dev: true dev: true
/@codemirror/language-data@6.3.1(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4): /@codemirror/language-data@6.3.1(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3):
resolution: {integrity: sha512-p6jhJmvhGe1TG1EGNhwH7nFWWFSTJ8NDKnB2fVx5g3t+PpO0+63R7GJNxjS0TmmH3cdMxZbzejsik+rlEh1EyQ==} resolution: {integrity: sha512-p6jhJmvhGe1TG1EGNhwH7nFWWFSTJ8NDKnB2fVx5g3t+PpO0+63R7GJNxjS0TmmH3cdMxZbzejsik+rlEh1EyQ==}
dependencies: dependencies:
'@codemirror/lang-angular': 0.1.2 '@codemirror/lang-angular': 0.1.2
'@codemirror/lang-cpp': 6.0.2 '@codemirror/lang-cpp': 6.0.2
'@codemirror/lang-css': 6.2.1(@codemirror/view@6.16.0) '@codemirror/lang-css': 6.2.1(@codemirror/view@6.34.1)
'@codemirror/lang-html': 6.4.5 '@codemirror/lang-html': 6.4.5
'@codemirror/lang-java': 6.0.1 '@codemirror/lang-java': 6.0.1
'@codemirror/lang-javascript': 6.1.9 '@codemirror/lang-javascript': 6.1.9
'@codemirror/lang-json': 6.0.1 '@codemirror/lang-json': 6.0.1
'@codemirror/lang-less': 6.0.1(@codemirror/view@6.16.0) '@codemirror/lang-less': 6.0.1(@codemirror/view@6.34.1)
'@codemirror/lang-markdown': 6.2.0 '@codemirror/lang-markdown': 6.2.0
'@codemirror/lang-php': 6.0.1 '@codemirror/lang-php': 6.0.1
'@codemirror/lang-python': 6.1.3(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4) '@codemirror/lang-python': 6.1.3(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)
'@codemirror/lang-rust': 6.0.1 '@codemirror/lang-rust': 6.0.1
'@codemirror/lang-sass': 6.0.2(@codemirror/view@6.16.0) '@codemirror/lang-sass': 6.0.2(@codemirror/view@6.34.1)
'@codemirror/lang-sql': 6.5.4(@codemirror/view@6.16.0)(@lezer/common@1.0.4) '@codemirror/lang-sql': 6.5.4(@codemirror/view@6.34.1)(@lezer/common@1.2.3)
'@codemirror/lang-vue': 0.1.2 '@codemirror/lang-vue': 0.1.2
'@codemirror/lang-wast': 6.0.1 '@codemirror/lang-wast': 6.0.1
'@codemirror/lang-xml': 6.0.2(@codemirror/view@6.16.0) '@codemirror/lang-xml': 6.0.2(@codemirror/view@6.34.1)
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@codemirror/legacy-modes': 6.3.3 '@codemirror/legacy-modes': 6.3.3
transitivePeerDependencies: transitivePeerDependencies:
- '@codemirror/state' - '@codemirror/state'
@@ -3052,13 +3072,13 @@ packages:
- '@lezer/common' - '@lezer/common'
dev: true dev: true
/@codemirror/language@6.9.0: /@codemirror/language@6.10.3:
resolution: {integrity: sha512-nFu311/0ne/qGuGCL3oKuktBgzVOaxCHZPZv1tLSZkNjPYxxvkjSbzno3MlErG2tgw1Yw1yF8BxMCegeMXqpiw==} resolution: {integrity: sha512-kDqEU5sCP55Oabl6E7m5N+vZRoc0iWqgDVhEKifcHzPzjqCegcO4amfrYVL9PmPZpl4G0yjkpTpUO/Ui8CzO8A==}
dependencies: dependencies:
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@codemirror/view': 6.16.0 '@codemirror/view': 6.34.1
'@lezer/common': 1.0.4 '@lezer/common': 1.2.3
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
style-mod: 4.0.3 style-mod: 4.0.3
dev: true dev: true
@@ -3066,43 +3086,43 @@ packages:
/@codemirror/legacy-modes@6.3.3: /@codemirror/legacy-modes@6.3.3:
resolution: {integrity: sha512-X0Z48odJ0KIoh/HY8Ltz75/4tDYc9msQf1E/2trlxFaFFhgjpVHjZ/BCXe1Lk7s4Gd67LL/CeEEHNI+xHOiESg==} resolution: {integrity: sha512-X0Z48odJ0KIoh/HY8Ltz75/4tDYc9msQf1E/2trlxFaFFhgjpVHjZ/BCXe1Lk7s4Gd67LL/CeEEHNI+xHOiESg==}
dependencies: dependencies:
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
dev: true dev: true
/@codemirror/lint@6.4.0: /@codemirror/lint@6.4.0:
resolution: {integrity: sha512-6VZ44Ysh/Zn07xrGkdtNfmHCbGSHZzFBdzWi0pbd7chAQ/iUcpLGX99NYRZTa7Ugqg4kEHCqiHhcZnH0gLIgSg==} resolution: {integrity: sha512-6VZ44Ysh/Zn07xrGkdtNfmHCbGSHZzFBdzWi0pbd7chAQ/iUcpLGX99NYRZTa7Ugqg4kEHCqiHhcZnH0gLIgSg==}
dependencies: dependencies:
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@codemirror/view': 6.16.0 '@codemirror/view': 6.34.1
crelt: 1.0.6 crelt: 1.0.6
dev: true dev: true
/@codemirror/search@6.5.1: /@codemirror/search@6.5.1:
resolution: {integrity: sha512-4jupk4JwkeVbrN2pStY74q6OJEYqwosB4koA66nyLeVedadtX9MHI38j2vbYmnfDGurDApP3OZO46MrWalcjiQ==} resolution: {integrity: sha512-4jupk4JwkeVbrN2pStY74q6OJEYqwosB4koA66nyLeVedadtX9MHI38j2vbYmnfDGurDApP3OZO46MrWalcjiQ==}
dependencies: dependencies:
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@codemirror/view': 6.16.0 '@codemirror/view': 6.34.1
crelt: 1.0.6 crelt: 1.0.6
dev: true dev: true
/@codemirror/state@6.2.1: /@codemirror/state@6.4.1:
resolution: {integrity: sha512-RupHSZ8+OjNT38zU9fKH2sv+Dnlr8Eb8sl4NOnnqz95mCFTZUaiRP8Xv5MeeaG0px2b8Bnfe7YGwCV3nsBhbuw==} resolution: {integrity: sha512-QkEyUiLhsJoZkbumGZlswmAhA7CBU02Wrz7zvH4SrcifbsqwlXShVXg65f3v/ts57W3dqyamEriMhij1Z3Zz4A==}
dev: true dev: true
/@codemirror/theme-one-dark@6.1.2: /@codemirror/theme-one-dark@6.1.2:
resolution: {integrity: sha512-F+sH0X16j/qFLMAfbciKTxVOwkdAS336b7AXTKOZhy8BR3eH/RelsnLgLFINrpST63mmN2OuwUt0W2ndUgYwUA==} resolution: {integrity: sha512-F+sH0X16j/qFLMAfbciKTxVOwkdAS336b7AXTKOZhy8BR3eH/RelsnLgLFINrpST63mmN2OuwUt0W2ndUgYwUA==}
dependencies: dependencies:
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@codemirror/view': 6.16.0 '@codemirror/view': 6.34.1
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
dev: true dev: true
/@codemirror/view@6.16.0: /@codemirror/view@6.34.1:
resolution: {integrity: sha512-1Z2HkvkC3KR/oEZVuW9Ivmp8TWLzGEd8T8TA04TTwPvqogfkHBdYSlflytDOqmkUxM2d1ywTg7X2dU5mC+SXvg==} resolution: {integrity: sha512-t1zK/l9UiRqwUNPm+pdIT0qzJlzuVckbTEMVNFhfWkGiBQClstzg+78vedCvLSX0xJEZ6lwZbPpnljL7L6iwMQ==}
dependencies: dependencies:
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
style-mod: 4.0.3 style-mod: 4.1.2
w3c-keyname: 2.2.8 w3c-keyname: 2.2.8
dev: true dev: true
@@ -3911,22 +3931,26 @@ packages:
resolution: {integrity: sha512-lZHlk8p67x4aIDtJl6UQrXSOP6oi7dQR3W/geFVrENdA1JDaAJWldnVqVjPMJupbTKbzDfFcePfKttqVidS/dg==} resolution: {integrity: sha512-lZHlk8p67x4aIDtJl6UQrXSOP6oi7dQR3W/geFVrENdA1JDaAJWldnVqVjPMJupbTKbzDfFcePfKttqVidS/dg==}
dev: true dev: true
/@lezer/common@1.2.3:
resolution: {integrity: sha512-w7ojc8ejBqr2REPsWxJjrMFsA/ysDCFICn8zEOR9mrqzOu2amhITYuLD8ag6XZf0CFXDrhKqw7+tW8cX66NaDA==}
dev: true
/@lezer/cpp@1.1.1: /@lezer/cpp@1.1.1:
resolution: {integrity: sha512-eS1M3L3U2mDowoFVPG7tEp01SWu9/68Nx3HEBgLJVn3N9ku7g5S7WdFv0jzmcTipAyONYfZJ+7x4WRkfdB2Ung==} resolution: {integrity: sha512-eS1M3L3U2mDowoFVPG7tEp01SWu9/68Nx3HEBgLJVn3N9ku7g5S7WdFv0jzmcTipAyONYfZJ+7x4WRkfdB2Ung==}
dependencies: dependencies:
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
/@lezer/css@1.1.3: /@lezer/css@1.1.3:
resolution: {integrity: sha512-SjSM4pkQnQdJDVc80LYzEaMiNy9txsFbI7HsMgeVF28NdLaAdHNtQ+kB/QqDUzRBV/75NTXjJ/R5IdC8QQGxMg==} resolution: {integrity: sha512-SjSM4pkQnQdJDVc80LYzEaMiNy9txsFbI7HsMgeVF28NdLaAdHNtQ+kB/QqDUzRBV/75NTXjJ/R5IdC8QQGxMg==}
dependencies: dependencies:
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
/@lezer/highlight@1.1.6: /@lezer/highlight@1.2.1:
resolution: {integrity: sha512-cmSJYa2us+r3SePpRCjN5ymCqCPv+zyXmDl0ciWtVaNiORT/MxM7ZgOMQZADD0o51qOaOg24qc/zBViOIwAjJg==} resolution: {integrity: sha512-Z5duk4RN/3zuVO7Jq0pGLJ3qynpxUVsh7IbUbGj88+uV2ApSAn6kWg2au3iJb+0Zi7kKtqffIESgNcRXWZWmSA==}
dependencies: dependencies:
'@lezer/common': 1.0.4 '@lezer/common': 1.0.4
dev: true dev: true
@@ -3935,83 +3959,83 @@ packages:
resolution: {integrity: sha512-Kk9HJARZTc0bAnMQUqbtuhFVsB4AnteR2BFUWfZV7L/x1H0aAKz6YabrfJ2gk/BEgjh9L3hg5O4y2IDZRBdzuQ==} resolution: {integrity: sha512-Kk9HJARZTc0bAnMQUqbtuhFVsB4AnteR2BFUWfZV7L/x1H0aAKz6YabrfJ2gk/BEgjh9L3hg5O4y2IDZRBdzuQ==}
dependencies: dependencies:
'@lezer/common': 1.0.4 '@lezer/common': 1.0.4
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
/@lezer/java@1.0.4: /@lezer/java@1.0.4:
resolution: {integrity: sha512-POc53LHf2AuNeRXjqZbXNu88GKj0KZTjjSx0L7tYeXlrEHF+3NAQx+dEwKVuCbkl0ZMtpRy2VsDYOV7KKV0oyg==} resolution: {integrity: sha512-POc53LHf2AuNeRXjqZbXNu88GKj0KZTjjSx0L7tYeXlrEHF+3NAQx+dEwKVuCbkl0ZMtpRy2VsDYOV7KKV0oyg==}
dependencies: dependencies:
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
/@lezer/javascript@1.4.5: /@lezer/javascript@1.4.5:
resolution: {integrity: sha512-FmBUHz8K1V22DgjTd6SrIG9owbzOYZ1t3rY6vGEmw+e2RVBd7sqjM8uXEVRFmfxKFn1Mx2ABJehHjrN3G2ZpmA==} resolution: {integrity: sha512-FmBUHz8K1V22DgjTd6SrIG9owbzOYZ1t3rY6vGEmw+e2RVBd7sqjM8uXEVRFmfxKFn1Mx2ABJehHjrN3G2ZpmA==}
dependencies: dependencies:
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
/@lezer/json@1.0.1: /@lezer/json@1.0.1:
resolution: {integrity: sha512-nkVC27qiEZEjySbi6gQRuMwa2sDu2PtfjSgz0A4QF81QyRGm3kb2YRzLcOPcTEtmcwvrX/cej7mlhbwViA4WJw==} resolution: {integrity: sha512-nkVC27qiEZEjySbi6gQRuMwa2sDu2PtfjSgz0A4QF81QyRGm3kb2YRzLcOPcTEtmcwvrX/cej7mlhbwViA4WJw==}
dependencies: dependencies:
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
/@lezer/lezer@1.1.2: /@lezer/lezer@1.1.2:
resolution: {integrity: sha512-O8yw3CxPhzYHB1hvwbdozjnAslhhR8A5BH7vfEMof0xk3p+/DFDfZkA9Tde6J+88WgtwaHy4Sy6ThZSkaI0Evw==} resolution: {integrity: sha512-O8yw3CxPhzYHB1hvwbdozjnAslhhR8A5BH7vfEMof0xk3p+/DFDfZkA9Tde6J+88WgtwaHy4Sy6ThZSkaI0Evw==}
dependencies: dependencies:
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
/@lezer/lr@1.3.10: /@lezer/lr@1.3.10:
resolution: {integrity: sha512-BZfVvf7Re5BIwJHlZXbJn9L8lus5EonxQghyn+ih8Wl36XMFBPTXC0KM0IdUtj9w/diPHsKlXVgL+AlX2jYJ0Q==} resolution: {integrity: sha512-BZfVvf7Re5BIwJHlZXbJn9L8lus5EonxQghyn+ih8Wl36XMFBPTXC0KM0IdUtj9w/diPHsKlXVgL+AlX2jYJ0Q==}
dependencies: dependencies:
'@lezer/common': 1.0.4 '@lezer/common': 1.2.3
dev: true dev: true
/@lezer/markdown@1.1.0: /@lezer/markdown@1.1.0:
resolution: {integrity: sha512-JYOI6Lkqbl83semCANkO3CKbKc0pONwinyagBufWBm+k4yhIcqfCF8B8fpEpvJLmIy7CAfwiq7dQ/PzUZA340g==} resolution: {integrity: sha512-JYOI6Lkqbl83semCANkO3CKbKc0pONwinyagBufWBm+k4yhIcqfCF8B8fpEpvJLmIy7CAfwiq7dQ/PzUZA340g==}
dependencies: dependencies:
'@lezer/common': 1.0.4 '@lezer/common': 1.0.4
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
dev: true dev: true
/@lezer/php@1.0.1: /@lezer/php@1.0.1:
resolution: {integrity: sha512-aqdCQJOXJ66De22vzdwnuC502hIaG9EnPK2rSi+ebXyUd+j7GAX1mRjWZOVOmf3GST1YUfUCu6WXDiEgDGOVwA==} resolution: {integrity: sha512-aqdCQJOXJ66De22vzdwnuC502hIaG9EnPK2rSi+ebXyUd+j7GAX1mRjWZOVOmf3GST1YUfUCu6WXDiEgDGOVwA==}
dependencies: dependencies:
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
/@lezer/python@1.1.8: /@lezer/python@1.1.8:
resolution: {integrity: sha512-1T/XsmeF57ijrjpC0Zmrf9YeO5mn2zC1XeSNrOnc0KB+6PgxJ5m7kWKt0CnwyS74oHQXbJxUUL+QDQJR26c1Gw==} resolution: {integrity: sha512-1T/XsmeF57ijrjpC0Zmrf9YeO5mn2zC1XeSNrOnc0KB+6PgxJ5m7kWKt0CnwyS74oHQXbJxUUL+QDQJR26c1Gw==}
dependencies: dependencies:
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
/@lezer/rust@1.0.1: /@lezer/rust@1.0.1:
resolution: {integrity: sha512-j+ToFKM6Wpglv3OQ4ebHYdYIMT2dh0ziCCV0rTf47AWiHOVhR0WjaKrBq+yuvDQNEhr5sxPxVI7+naJIgpqcsQ==} resolution: {integrity: sha512-j+ToFKM6Wpglv3OQ4ebHYdYIMT2dh0ziCCV0rTf47AWiHOVhR0WjaKrBq+yuvDQNEhr5sxPxVI7+naJIgpqcsQ==}
dependencies: dependencies:
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
/@lezer/sass@1.0.3: /@lezer/sass@1.0.3:
resolution: {integrity: sha512-n4l2nVOB7gWiGU/Cg2IVxpt2Ic9Hgfgy/7gk+p/XJibAsPXs0lSbsfGwQgwsAw9B/euYo3oS6lEFr9WytoqcZg==} resolution: {integrity: sha512-n4l2nVOB7gWiGU/Cg2IVxpt2Ic9Hgfgy/7gk+p/XJibAsPXs0lSbsfGwQgwsAw9B/euYo3oS6lEFr9WytoqcZg==}
dependencies: dependencies:
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
/@lezer/xml@1.0.2: /@lezer/xml@1.0.2:
resolution: {integrity: sha512-dlngsWceOtQBMuBPw5wtHpaxdPJ71aVntqjbpGkFtWsp4WtQmCnuTjQGocviymydN6M18fhj6UQX3oiEtSuY7w==} resolution: {integrity: sha512-dlngsWceOtQBMuBPw5wtHpaxdPJ71aVntqjbpGkFtWsp4WtQmCnuTjQGocviymydN6M18fhj6UQX3oiEtSuY7w==}
dependencies: dependencies:
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
@@ -4100,7 +4124,7 @@ packages:
/@nextjournal/lang-clojure@1.0.0: /@nextjournal/lang-clojure@1.0.0:
resolution: {integrity: sha512-gOCV71XrYD0DhwGoPMWZmZ0r92/lIHsqQu9QWdpZYYBwiChNwMO4sbVMP7eTuAqffFB2BTtCSC+1skSH9d3bNg==} resolution: {integrity: sha512-gOCV71XrYD0DhwGoPMWZmZ0r92/lIHsqQu9QWdpZYYBwiChNwMO4sbVMP7eTuAqffFB2BTtCSC+1skSH9d3bNg==}
dependencies: dependencies:
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@nextjournal/lezer-clojure': 1.0.0 '@nextjournal/lezer-clojure': 1.0.0
dev: true dev: true
@@ -4706,7 +4730,7 @@ packages:
engines: {node: '>=14.0.0'} engines: {node: '>=14.0.0'}
dev: true dev: true
/@replit/codemirror-lang-csharp@6.1.0(@codemirror/autocomplete@6.9.0)(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4)(@lezer/highlight@1.1.6)(@lezer/lr@1.3.10): /@replit/codemirror-lang-csharp@6.1.0(@codemirror/autocomplete@6.9.0)(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)(@lezer/highlight@1.2.1)(@lezer/lr@1.3.10):
resolution: {integrity: sha512-Dtyk9WVrdPPgkgTp8MUX9HyXd87O7UZnFrE647gjHUZY8p0UN+z0m6dPfk6rJMsTTvMcl7YbDUykxfeqB6EQOQ==} resolution: {integrity: sha512-Dtyk9WVrdPPgkgTp8MUX9HyXd87O7UZnFrE647gjHUZY8p0UN+z0m6dPfk6rJMsTTvMcl7YbDUykxfeqB6EQOQ==}
peerDependencies: peerDependencies:
'@codemirror/autocomplete': ^6.0.0 '@codemirror/autocomplete': ^6.0.0
@@ -4717,16 +4741,16 @@ packages:
'@lezer/highlight': ^1.0.0 '@lezer/highlight': ^1.0.0
'@lezer/lr': ^1.0.0 '@lezer/lr': ^1.0.0
dependencies: dependencies:
'@codemirror/autocomplete': 6.9.0(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4) '@codemirror/autocomplete': 6.9.0(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@codemirror/view': 6.16.0 '@codemirror/view': 6.34.1
'@lezer/common': 1.0.4 '@lezer/common': 1.2.3
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
/@replit/codemirror-lang-nix@6.0.1(@codemirror/autocomplete@6.9.0)(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4)(@lezer/highlight@1.1.6)(@lezer/lr@1.3.10): /@replit/codemirror-lang-nix@6.0.1(@codemirror/autocomplete@6.9.0)(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)(@lezer/highlight@1.2.1)(@lezer/lr@1.3.10):
resolution: {integrity: sha512-lvzjoYn9nfJzBD5qdm3Ut6G3+Or2wEacYIDJ49h9+19WSChVnxv4ojf+rNmQ78ncuxIt/bfbMvDLMeMP0xze6g==} resolution: {integrity: sha512-lvzjoYn9nfJzBD5qdm3Ut6G3+Or2wEacYIDJ49h9+19WSChVnxv4ojf+rNmQ78ncuxIt/bfbMvDLMeMP0xze6g==}
peerDependencies: peerDependencies:
'@codemirror/autocomplete': ^6.0.0 '@codemirror/autocomplete': ^6.0.0
@@ -4737,24 +4761,24 @@ packages:
'@lezer/highlight': ^1.0.0 '@lezer/highlight': ^1.0.0
'@lezer/lr': ^1.0.0 '@lezer/lr': ^1.0.0
dependencies: dependencies:
'@codemirror/autocomplete': 6.9.0(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4) '@codemirror/autocomplete': 6.9.0(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@codemirror/view': 6.16.0 '@codemirror/view': 6.34.1
'@lezer/common': 1.0.4 '@lezer/common': 1.2.3
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
/@replit/codemirror-lang-solidity@6.0.1(@codemirror/language@6.9.0): /@replit/codemirror-lang-solidity@6.0.1(@codemirror/language@6.10.3):
resolution: {integrity: sha512-kDnak0xZelGmvzJwKTpMTl6gYSfFq9hnxrkbLaMV0CARq/MFvDQJmcmYon/k8uZqXy6DfzewKDV8tx9kY2WUZg==} resolution: {integrity: sha512-kDnak0xZelGmvzJwKTpMTl6gYSfFq9hnxrkbLaMV0CARq/MFvDQJmcmYon/k8uZqXy6DfzewKDV8tx9kY2WUZg==}
peerDependencies: peerDependencies:
'@codemirror/language': ^6.0.0 '@codemirror/language': ^6.0.0
dependencies: dependencies:
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
dev: true dev: true
/@replit/codemirror-lang-svelte@6.0.0(@codemirror/autocomplete@6.9.0)(@codemirror/lang-css@6.2.1)(@codemirror/lang-html@6.4.5)(@codemirror/lang-javascript@6.1.9)(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4)(@lezer/highlight@1.1.6)(@lezer/javascript@1.4.5)(@lezer/lr@1.3.10): /@replit/codemirror-lang-svelte@6.0.0(@codemirror/autocomplete@6.9.0)(@codemirror/lang-css@6.2.1)(@codemirror/lang-html@6.4.5)(@codemirror/lang-javascript@6.1.9)(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)(@lezer/highlight@1.2.1)(@lezer/javascript@1.4.5)(@lezer/lr@1.3.10):
resolution: {integrity: sha512-U2OqqgMM6jKelL0GNWbAmqlu1S078zZNoBqlJBW+retTc5M4Mha6/Y2cf4SVg6ddgloJvmcSpt4hHrVoM4ePRA==} resolution: {integrity: sha512-U2OqqgMM6jKelL0GNWbAmqlu1S078zZNoBqlJBW+retTc5M4Mha6/Y2cf4SVg6ddgloJvmcSpt4hHrVoM4ePRA==}
peerDependencies: peerDependencies:
'@codemirror/autocomplete': ^6.0.0 '@codemirror/autocomplete': ^6.0.0
@@ -4769,15 +4793,15 @@ packages:
'@lezer/javascript': ^1.2.0 '@lezer/javascript': ^1.2.0
'@lezer/lr': ^1.0.0 '@lezer/lr': ^1.0.0
dependencies: dependencies:
'@codemirror/autocomplete': 6.9.0(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4) '@codemirror/autocomplete': 6.9.0(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)
'@codemirror/lang-css': 6.2.1(@codemirror/view@6.16.0) '@codemirror/lang-css': 6.2.1(@codemirror/view@6.34.1)
'@codemirror/lang-html': 6.4.5 '@codemirror/lang-html': 6.4.5
'@codemirror/lang-javascript': 6.1.9 '@codemirror/lang-javascript': 6.1.9
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@codemirror/view': 6.16.0 '@codemirror/view': 6.34.1
'@lezer/common': 1.0.4 '@lezer/common': 1.2.3
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/javascript': 1.4.5 '@lezer/javascript': 1.4.5
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
@@ -5816,7 +5840,7 @@ packages:
eslint-visitor-keys: 3.4.1 eslint-visitor-keys: 3.4.1
dev: true dev: true
/@uiw/codemirror-extensions-basic-setup@4.21.9(@codemirror/autocomplete@6.9.0)(@codemirror/commands@6.2.4)(@codemirror/language@6.9.0)(@codemirror/lint@6.4.0)(@codemirror/search@6.5.1)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0): /@uiw/codemirror-extensions-basic-setup@4.21.9(@codemirror/autocomplete@6.9.0)(@codemirror/commands@6.2.4)(@codemirror/language@6.10.3)(@codemirror/lint@6.4.0)(@codemirror/search@6.5.1)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1):
resolution: {integrity: sha512-TQT6aF8brxZpFnk/K4fm/K/9k9eF3PMav/KKjHlYrGUT8BTNk/qL+ximLtIzvTUhmBFchjM1lrqSJdvpVom7/w==} resolution: {integrity: sha512-TQT6aF8brxZpFnk/K4fm/K/9k9eF3PMav/KKjHlYrGUT8BTNk/qL+ximLtIzvTUhmBFchjM1lrqSJdvpVom7/w==}
peerDependencies: peerDependencies:
'@codemirror/autocomplete': '>=6.0.0' '@codemirror/autocomplete': '>=6.0.0'
@@ -5827,16 +5851,16 @@ packages:
'@codemirror/state': '>=6.0.0' '@codemirror/state': '>=6.0.0'
'@codemirror/view': '>=6.0.0' '@codemirror/view': '>=6.0.0'
dependencies: dependencies:
'@codemirror/autocomplete': 6.9.0(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4) '@codemirror/autocomplete': 6.9.0(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)
'@codemirror/commands': 6.2.4 '@codemirror/commands': 6.2.4
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@codemirror/lint': 6.4.0 '@codemirror/lint': 6.4.0
'@codemirror/search': 6.5.1 '@codemirror/search': 6.5.1
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@codemirror/view': 6.16.0 '@codemirror/view': 6.34.1
dev: true dev: true
/@uiw/codemirror-extensions-langs@4.21.9(@codemirror/autocomplete@6.9.0)(@codemirror/language-data@6.3.1)(@codemirror/language@6.9.0)(@codemirror/legacy-modes@6.3.3)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4)(@lezer/highlight@1.1.6)(@lezer/javascript@1.4.5)(@lezer/lr@1.3.10): /@uiw/codemirror-extensions-langs@4.21.9(@codemirror/autocomplete@6.9.0)(@codemirror/language-data@6.3.1)(@codemirror/language@6.10.3)(@codemirror/legacy-modes@6.3.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)(@lezer/highlight@1.2.1)(@lezer/javascript@1.4.5)(@lezer/lr@1.3.10):
resolution: {integrity: sha512-s1VT1rss0iyvrtRl7BZtC5H7U5uQtCKTaD8wxjQrgZz5un9wHVvy9twU97aJGQR0FwbKWqK8/1iiICRJTRCoZA==} resolution: {integrity: sha512-s1VT1rss0iyvrtRl7BZtC5H7U5uQtCKTaD8wxjQrgZz5un9wHVvy9twU97aJGQR0FwbKWqK8/1iiICRJTRCoZA==}
peerDependencies: peerDependencies:
'@codemirror/language-data': '>=6.0.0' '@codemirror/language-data': '>=6.0.0'
@@ -5844,29 +5868,29 @@ packages:
dependencies: dependencies:
'@codemirror/lang-angular': 0.1.2 '@codemirror/lang-angular': 0.1.2
'@codemirror/lang-cpp': 6.0.2 '@codemirror/lang-cpp': 6.0.2
'@codemirror/lang-css': 6.2.1(@codemirror/view@6.16.0) '@codemirror/lang-css': 6.2.1(@codemirror/view@6.34.1)
'@codemirror/lang-html': 6.4.5 '@codemirror/lang-html': 6.4.5
'@codemirror/lang-java': 6.0.1 '@codemirror/lang-java': 6.0.1
'@codemirror/lang-javascript': 6.1.9 '@codemirror/lang-javascript': 6.1.9
'@codemirror/lang-json': 6.0.1 '@codemirror/lang-json': 6.0.1
'@codemirror/lang-less': 6.0.1(@codemirror/view@6.16.0) '@codemirror/lang-less': 6.0.1(@codemirror/view@6.34.1)
'@codemirror/lang-lezer': 6.0.1 '@codemirror/lang-lezer': 6.0.1
'@codemirror/lang-markdown': 6.2.0 '@codemirror/lang-markdown': 6.2.0
'@codemirror/lang-php': 6.0.1 '@codemirror/lang-php': 6.0.1
'@codemirror/lang-python': 6.1.3(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4) '@codemirror/lang-python': 6.1.3(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)
'@codemirror/lang-rust': 6.0.1 '@codemirror/lang-rust': 6.0.1
'@codemirror/lang-sass': 6.0.2(@codemirror/view@6.16.0) '@codemirror/lang-sass': 6.0.2(@codemirror/view@6.34.1)
'@codemirror/lang-sql': 6.5.4(@codemirror/view@6.16.0)(@lezer/common@1.0.4) '@codemirror/lang-sql': 6.5.4(@codemirror/view@6.34.1)(@lezer/common@1.2.3)
'@codemirror/lang-vue': 0.1.2 '@codemirror/lang-vue': 0.1.2
'@codemirror/lang-wast': 6.0.1 '@codemirror/lang-wast': 6.0.1
'@codemirror/lang-xml': 6.0.2(@codemirror/view@6.16.0) '@codemirror/lang-xml': 6.0.2(@codemirror/view@6.34.1)
'@codemirror/language-data': 6.3.1(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4) '@codemirror/language-data': 6.3.1(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)
'@codemirror/legacy-modes': 6.3.3 '@codemirror/legacy-modes': 6.3.3
'@nextjournal/lang-clojure': 1.0.0 '@nextjournal/lang-clojure': 1.0.0
'@replit/codemirror-lang-csharp': 6.1.0(@codemirror/autocomplete@6.9.0)(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4)(@lezer/highlight@1.1.6)(@lezer/lr@1.3.10) '@replit/codemirror-lang-csharp': 6.1.0(@codemirror/autocomplete@6.9.0)(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)(@lezer/highlight@1.2.1)(@lezer/lr@1.3.10)
'@replit/codemirror-lang-nix': 6.0.1(@codemirror/autocomplete@6.9.0)(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4)(@lezer/highlight@1.1.6)(@lezer/lr@1.3.10) '@replit/codemirror-lang-nix': 6.0.1(@codemirror/autocomplete@6.9.0)(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)(@lezer/highlight@1.2.1)(@lezer/lr@1.3.10)
'@replit/codemirror-lang-solidity': 6.0.1(@codemirror/language@6.9.0) '@replit/codemirror-lang-solidity': 6.0.1(@codemirror/language@6.10.3)
'@replit/codemirror-lang-svelte': 6.0.0(@codemirror/autocomplete@6.9.0)(@codemirror/lang-css@6.2.1)(@codemirror/lang-html@6.4.5)(@codemirror/lang-javascript@6.1.9)(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4)(@lezer/highlight@1.1.6)(@lezer/javascript@1.4.5)(@lezer/lr@1.3.10) '@replit/codemirror-lang-svelte': 6.0.0(@codemirror/autocomplete@6.9.0)(@codemirror/lang-css@6.2.1)(@codemirror/lang-html@6.4.5)(@codemirror/lang-javascript@6.1.9)(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)(@lezer/highlight@1.2.1)(@lezer/javascript@1.4.5)(@lezer/lr@1.3.10)
codemirror-lang-mermaid: 0.2.2 codemirror-lang-mermaid: 0.2.2
transitivePeerDependencies: transitivePeerDependencies:
- '@codemirror/autocomplete' - '@codemirror/autocomplete'
@@ -5879,7 +5903,7 @@ packages:
- '@lezer/lr' - '@lezer/lr'
dev: true dev: true
/@uiw/react-codemirror@4.21.9(@babel/runtime@7.23.1)(@codemirror/autocomplete@6.9.0)(@codemirror/language@6.9.0)(@codemirror/lint@6.4.0)(@codemirror/search@6.5.1)(@codemirror/state@6.2.1)(@codemirror/theme-one-dark@6.1.2)(@codemirror/view@6.16.0)(codemirror@6.0.1)(react-dom@18.2.0)(react@18.2.0): /@uiw/react-codemirror@4.21.9(@babel/runtime@7.23.1)(@codemirror/autocomplete@6.9.0)(@codemirror/language@6.10.3)(@codemirror/lint@6.4.0)(@codemirror/search@6.5.1)(@codemirror/state@6.4.1)(@codemirror/theme-one-dark@6.1.2)(@codemirror/view@6.34.1)(codemirror@6.0.1)(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-aeLegPz2iCvqJjhzXp2WUMqpMZDqxsTnF3rX9kGRlfY6vQLsrjoctj0cQ29uxEtFYJChOVjtCOtnQUlyIuNAHQ==} resolution: {integrity: sha512-aeLegPz2iCvqJjhzXp2WUMqpMZDqxsTnF3rX9kGRlfY6vQLsrjoctj0cQ29uxEtFYJChOVjtCOtnQUlyIuNAHQ==}
peerDependencies: peerDependencies:
'@babel/runtime': '>=7.11.0' '@babel/runtime': '>=7.11.0'
@@ -5897,11 +5921,11 @@ packages:
dependencies: dependencies:
'@babel/runtime': 7.23.1 '@babel/runtime': 7.23.1
'@codemirror/commands': 6.2.4 '@codemirror/commands': 6.2.4
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@codemirror/theme-one-dark': 6.1.2 '@codemirror/theme-one-dark': 6.1.2
'@codemirror/view': 6.16.0 '@codemirror/view': 6.34.1
'@uiw/codemirror-extensions-basic-setup': 4.21.9(@codemirror/autocomplete@6.9.0)(@codemirror/commands@6.2.4)(@codemirror/language@6.9.0)(@codemirror/lint@6.4.0)(@codemirror/search@6.5.1)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0) '@uiw/codemirror-extensions-basic-setup': 4.21.9(@codemirror/autocomplete@6.9.0)(@codemirror/commands@6.2.4)(@codemirror/language@6.10.3)(@codemirror/lint@6.4.0)(@codemirror/search@6.5.1)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)
codemirror: 6.0.1(@lezer/common@1.0.4) codemirror: 6.0.1(@lezer/common@1.2.3)
react: 18.2.0 react: 18.2.0
react-dom: 18.2.0(react@18.2.0) react-dom: 18.2.0(react@18.2.0)
transitivePeerDependencies: transitivePeerDependencies:
@@ -7755,21 +7779,21 @@ packages:
/codemirror-lang-mermaid@0.2.2: /codemirror-lang-mermaid@0.2.2:
resolution: {integrity: sha512-AqSzkQgfWsjBbifio3dy/zDj6WXEw4g52Mq6bltIWLMWryWWRMpFwjQSlHtCGOol1FENYObUF5KI4ofiv8bjXA==} resolution: {integrity: sha512-AqSzkQgfWsjBbifio3dy/zDj6WXEw4g52Mq6bltIWLMWryWWRMpFwjQSlHtCGOol1FENYObUF5KI4ofiv8bjXA==}
dependencies: dependencies:
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@lezer/highlight': 1.1.6 '@lezer/highlight': 1.2.1
'@lezer/lr': 1.3.10 '@lezer/lr': 1.3.10
dev: true dev: true
/codemirror@6.0.1(@lezer/common@1.0.4): /codemirror@6.0.1(@lezer/common@1.2.3):
resolution: {integrity: sha512-J8j+nZ+CdWmIeFIGXEFbFPtpiYacFMDR8GlHK3IyHQJMCaVRfGx9NT+Hxivv1ckLWPvNdZqndbr/7lVhrf/Svg==} resolution: {integrity: sha512-J8j+nZ+CdWmIeFIGXEFbFPtpiYacFMDR8GlHK3IyHQJMCaVRfGx9NT+Hxivv1ckLWPvNdZqndbr/7lVhrf/Svg==}
dependencies: dependencies:
'@codemirror/autocomplete': 6.9.0(@codemirror/language@6.9.0)(@codemirror/state@6.2.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4) '@codemirror/autocomplete': 6.9.0(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)
'@codemirror/commands': 6.2.4 '@codemirror/commands': 6.2.4
'@codemirror/language': 6.9.0 '@codemirror/language': 6.10.3
'@codemirror/lint': 6.4.0 '@codemirror/lint': 6.4.0
'@codemirror/search': 6.5.1 '@codemirror/search': 6.5.1
'@codemirror/state': 6.2.1 '@codemirror/state': 6.4.1
'@codemirror/view': 6.16.0 '@codemirror/view': 6.34.1
transitivePeerDependencies: transitivePeerDependencies:
- '@lezer/common' - '@lezer/common'
dev: true dev: true
@@ -15670,6 +15694,10 @@ packages:
resolution: {integrity: sha512-78Jv8kYJdjbvRwwijtCevYADfsI0lGzYJe4mMFdceO8l75DFFDoqBhR1jVDicDRRaX4//g1u9wKeo+ztc2h1Rw==} resolution: {integrity: sha512-78Jv8kYJdjbvRwwijtCevYADfsI0lGzYJe4mMFdceO8l75DFFDoqBhR1jVDicDRRaX4//g1u9wKeo+ztc2h1Rw==}
dev: true dev: true
/style-mod@4.1.2:
resolution: {integrity: sha512-wnD1HyVqpJUI2+eKZ+eo1UwghftP6yuFheBqqe+bWCotBjC2K1YnteJILRMs3SM4V/0dLEW1SC27MWP5y+mwmw==}
dev: true
/style-search@0.1.0: /style-search@0.1.0:
resolution: {integrity: sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg==} resolution: {integrity: sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg==}
dev: true dev: true
+11 -1
View File
@@ -211,7 +211,17 @@ export FSKEY=""
export QMSG_KEY="" export QMSG_KEY=""
export QMSG_TYPE="" export QMSG_TYPE=""
## 20. 自定义通知 ## 20.Ntfy
## 官方文档: https://docs.ntfy.sh
## ntfy_url 填写ntfy地址,如https://ntfy.sh
## ntfy_topic 填写ntfy的消息应用topic
## ntfy_priority 填写推送消息优先级,默认为3
export NTFY_URL=""
export NTFY_TOPIC=""
export NTFY_PRIORITY="3"
## 21. 自定义通知
## 自定义通知 接收回调的URL ## 自定义通知 接收回调的URL
export WEBHOOK_URL="" export WEBHOOK_URL=""
## WEBHOOK_BODY 和 WEBHOOK_HEADERS 多个参数时,直接换行或者使用 $'\n' 连接多行字符串,比如 export dd="line 1"$'\n'"line 2" ## WEBHOOK_BODY 和 WEBHOOK_HEADERS 多个参数时,直接换行或者使用 $'\n' 连接多行字符串,比如 export dd="line 1"$'\n'"line 2"
+67 -16
View File
@@ -95,6 +95,10 @@ const push_config = {
WEBHOOK_HEADERS: '', // 自定义通知 请求头 WEBHOOK_HEADERS: '', // 自定义通知 请求头
WEBHOOK_METHOD: '', // 自定义通知 请求方法 WEBHOOK_METHOD: '', // 自定义通知 请求方法
WEBHOOK_CONTENT_TYPE: '', // 自定义通知 content-type WEBHOOK_CONTENT_TYPE: '', // 自定义通知 content-type
NTFY_URL: '', // ntfy地址,如https://ntfy.sh,默认为https://ntfy.sh
NTFY_TOPIC: '', // ntfy的消息应用topic
NTFY_PRIORITY: '3', // 推送消息优先级,默认为3
}; };
for (const key in push_config) { for (const key in push_config) {
@@ -224,11 +228,13 @@ function serverNotify(text, desp) {
if (PUSH_KEY) { if (PUSH_KEY) {
// 微信server酱推送通知一个\n不会换行,需要两个\n才能换行,故做此替换 // 微信server酱推送通知一个\n不会换行,需要两个\n才能换行,故做此替换
desp = desp.replace(/[\n\r]/g, '\n\n'); desp = desp.replace(/[\n\r]/g, '\n\n');
const matchResult = PUSH_KEY.match(/^sctp(\d+)t/i);
const options = { const options = {
url: PUSH_KEY.includes('SCT') url: matchResult && matchResult[1]
? `https://sctapi.ftqq.com/${PUSH_KEY}.send` ? `https://${matchResult[1]}.push.ft07.com/send/${PUSH_KEY}.send`
: `https://sc.ftqq.com/${PUSH_KEY}.send`, : `https://sctapi.ftqq.com/${PUSH_KEY}.send`,
body: `text=${text}&desp=${desp}`, body: `text=${encodeURIComponent(text)}&desp=${encodeURIComponent(desp)}`,
headers: { headers: {
'Content-Type': 'application/x-www-form-urlencoded', 'Content-Type': 'application/x-www-form-urlencoded',
}, },
@@ -1143,14 +1149,20 @@ function webhookNotify(text, desp) {
WEBHOOK_CONTENT_TYPE, WEBHOOK_CONTENT_TYPE,
WEBHOOK_METHOD, WEBHOOK_METHOD,
} = push_config; } = push_config;
if (!WEBHOOK_URL.includes('$title') && !WEBHOOK_BODY.includes('$title')) { if (
!WEBHOOK_METHOD ||
!WEBHOOK_URL ||
(!WEBHOOK_URL.includes('$title') && !WEBHOOK_BODY.includes('$title'))
) {
resolve(); resolve();
return; return;
} }
const headers = parseHeaders(WEBHOOK_HEADERS); const headers = parseHeaders(WEBHOOK_HEADERS);
const body = parseBody(WEBHOOK_BODY, WEBHOOK_CONTENT_TYPE, (v) => const body = parseBody(WEBHOOK_BODY, WEBHOOK_CONTENT_TYPE, (v) =>
v?.replaceAll('$title', text)?.replaceAll('$content', desp), v
?.replaceAll('$title', text?.replaceAll('\n', '\\n'))
?.replaceAll('$content', desp?.replaceAll('\n', '\\n')),
); );
const bodyParam = formatBodyFun(WEBHOOK_CONTENT_TYPE, body); const bodyParam = formatBodyFun(WEBHOOK_CONTENT_TYPE, body);
const options = { const options = {
@@ -1162,22 +1174,59 @@ function webhookNotify(text, desp) {
retry: 1, retry: 1,
}; };
if (WEBHOOK_METHOD) { const formatUrl = WEBHOOK_URL.replaceAll(
const formatUrl = WEBHOOK_URL.replaceAll( '$title',
'$title', encodeURIComponent(text),
encodeURIComponent(text), ).replaceAll('$content', encodeURIComponent(desp));
).replaceAll('$content', encodeURIComponent(desp)); got(formatUrl, options).then((resp) => {
got(formatUrl, options).then((resp) => { try {
if (resp.statusCode !== 200) {
console.log(`自定义发送通知消息失败😞 ${resp.body}\n`);
} else {
console.log(`自定义发送通知消息成功🎉 ${resp.body}\n`);
}
} catch (e) {
$.logErr(e, resp);
} finally {
resolve(resp.body);
}
});
});
}
function ntfyNotify(text, desp) {
function encodeRFC2047(text) {
const encodedBase64 = Buffer.from(text).toString('base64');
return `=?utf-8?B?${encodedBase64}?=`;
}
return new Promise((resolve) => {
const { NTFY_URL, NTFY_TOPIC, NTFY_PRIORITY } = push_config;
if (NTFY_TOPIC) {
const options = {
url: `${NTFY_URL || 'https://ntfy.sh'}/${NTFY_TOPIC}`,
body: `${desp}`,
headers: {
'Title': `${encodeRFC2047(text)}`,
'Priority': NTFY_PRIORITY || '3'
},
timeout,
};
$.post(options, (err, resp, data) => {
try { try {
if (resp.statusCode !== 200) { if (err) {
console.log(`自定义发送通知消息失败😞 ${resp.body}\n`); console.log('Ntfy 通知调用API失败😞\n', err);
} else { } else {
console.log(`自定义发送通知消息成功🎉 ${resp.body}\n`); if (data.id) {
console.log('Ntfy 发送通知消息成功🎉\n');
} else {
console.log(`Ntfy 发送通知消息异常 ${JSON.stringify(data)}`);
}
} }
} catch (e) { } catch (e) {
$.logErr(e, resp); $.logErr(e, resp);
} finally { } finally {
resolve(resp.body); resolve(data);
} }
}); });
} else { } else {
@@ -1186,6 +1235,7 @@ function webhookNotify(text, desp) {
}); });
} }
function parseString(input, valueFormatFn) { function parseString(input, valueFormatFn) {
const regex = /(\w+):\s*((?:(?!\n\w+:).)*)/g; const regex = /(\w+):\s*((?:(?!\n\w+:).)*)/g;
const matches = {}; const matches = {};
@@ -1314,6 +1364,7 @@ async function sendNotify(text, desp, params = {}) {
chronocatNotify(text, desp), // Chronocat chronocatNotify(text, desp), // Chronocat
webhookNotify(text, desp), // 自定义通知 webhookNotify(text, desp), // 自定义通知
qmsgNotify(text, desp), // 自定义通知 qmsgNotify(text, desp), // 自定义通知
ntfyNotify(text, desp), // Ntfy
]); ]);
} }
+53 -6
View File
@@ -116,7 +116,11 @@ push_config = {
'WEBHOOK_BODY': '', # 自定义通知 请求体 'WEBHOOK_BODY': '', # 自定义通知 请求体
'WEBHOOK_HEADERS': '', # 自定义通知 请求头 'WEBHOOK_HEADERS': '', # 自定义通知 请求头
'WEBHOOK_METHOD': '', # 自定义通知 请求方法 'WEBHOOK_METHOD': '', # 自定义通知 请求方法
'WEBHOOK_CONTENT_TYPE': '' # 自定义通知 content-type 'WEBHOOK_CONTENT_TYPE': '', # 自定义通知 content-type
'NTFY_URL': '', # ntfy地址,如https://ntfy.sh
'NTFY_TOPIC': '', # ntfy的消息应用topic
'NTFY_PRIORITY':'3', # 推送消息优先级,默认为3
} }
# fmt: on # fmt: on
@@ -298,10 +302,14 @@ def serverJ(title: str, content: str) -> None:
print("serverJ 服务启动") print("serverJ 服务启动")
data = {"text": title, "desp": content.replace("\n", "\n\n")} data = {"text": title, "desp": content.replace("\n", "\n\n")}
if push_config.get("PUSH_KEY").find("SCT") != -1:
url = f'https://sctapi.ftqq.com/{push_config.get("PUSH_KEY")}.send' match = re.match(r'sctp(\d+)t', push_config.get("PUSH_KEY"))
if match:
num = match.group(1)
url = f'https://{num}.push.ft07.com/send/{push_config.get("PUSH_KEY")}.send'
else: else:
url = f'https://sc.ftqq.com/{push_config.get("PUSH_KEY")}.send' url = f'https://sctapi.ftqq.com/{push_config.get("PUSH_KEY")}.send'
response = requests.post(url, data=data).json() response = requests.post(url, data=data).json()
if response.get("errno") == 0 or response.get("code") == 0: if response.get("errno") == 0 or response.get("code") == 0:
@@ -777,6 +785,42 @@ def chronocat(title: str, content: str) -> None:
print(f"QQ群消息:{ids}推送失败!") print(f"QQ群消息:{ids}推送失败!")
def ntfy(title: str, content: str) -> None:
"""
通过 Ntfy 推送消息
"""
def encode_rfc2047(text: str) -> str:
"""将文本编码为符合 RFC 2047 标准的格式"""
encoded_bytes = base64.b64encode(text.encode('utf-8'))
encoded_str = encoded_bytes.decode('utf-8')
return f'=?utf-8?B?{encoded_str}?='
if not push_config.get("NTFY_TOPIC"):
print("ntfy 服务的 NTFY_TOPIC 未设置!!\n取消推送")
return
print("ntfy 服务启动")
priority = '3'
if not push_config.get("NTFY_PRIORITY"):
print("ntfy 服务的NTFY_PRIORITY 未设置!!默认设置为3")
else:
priority = push_config.get("NTFY_PRIORITY")
# 使用 RFC 2047 编码 title
encoded_title = encode_rfc2047(title)
data = content.encode(encoding='utf-8')
headers = {
"Title": encoded_title, # 使用编码后的 title
"Priority": priority
}
url = push_config.get("NTFY_URL") + "/" + push_config.get("NTFY_TOPIC")
response = requests.post(url, data=data, headers=headers)
if response.status_code == 200: # 使用 response.status_code 进行检查
print("Ntfy 推送成功!")
else:
print("Ntfy 推送失败!错误信息:", response.text)
def parse_headers(headers): def parse_headers(headers):
if not headers: if not headers:
return {} return {}
@@ -852,7 +896,9 @@ def custom_notify(title: str, content: str) -> None:
body = parse_body( body = parse_body(
WEBHOOK_BODY, WEBHOOK_BODY,
WEBHOOK_CONTENT_TYPE, WEBHOOK_CONTENT_TYPE,
lambda v: v.replace("$title", title).replace("$content", content), lambda v: v.replace("$title", title.replace("\n", "\\n")).replace(
"$content", content.replace("\n", "\\n")
),
) )
formatted_url = WEBHOOK_URL.replace( formatted_url = WEBHOOK_URL.replace(
"$title", urllib.parse.quote_plus(title) "$title", urllib.parse.quote_plus(title)
@@ -935,7 +981,8 @@ def add_notify_function():
notify_function.append(chronocat) notify_function.append(chronocat)
if push_config.get("WEBHOOK_URL") and push_config.get("WEBHOOK_METHOD"): if push_config.get("WEBHOOK_URL") and push_config.get("WEBHOOK_METHOD"):
notify_function.append(custom_notify) notify_function.append(custom_notify)
if push_config.get("NTFY_TOPIC"):
notify_function.append(ntfy)
if not notify_function: if not notify_function:
print(f"无推送渠道,请检查通知变量是否正确") print(f"无推送渠道,请检查通知变量是否正确")
return notify_function return notify_function
File diff suppressed because it is too large Load Diff
+18 -9
View File
@@ -125,7 +125,8 @@ run_concurrent() {
fi fi
handle_env_split handle_env_split
single_log_time=$(date "+%Y-%m-%d-%H-%M-%S.%3N") time=$(date "+$mtime_format")
single_log_time=$(format_log_time "$mtime_format" "$time")
cd $dir_scripts cd $dir_scripts
local relative_path="${file_param%/*}" local relative_path="${file_param%/*}"
@@ -216,12 +217,12 @@ check_file() {
if [[ -f $file_env ]]; then if [[ -f $file_env ]]; then
get_env_array get_env_array
if [[ $isJsOrPythonFile == 'true' ]]; then if [[ $isJsOrPythonFile == 'true' ]]; then
PREV_NODE_OPTIONS="${NODE_OPTIONS:=}" export PREV_NODE_OPTIONS="${NODE_OPTIONS:=}"
PREV_PYTHONPATH="${PYTHONPATH:=}" export PREV_PYTHONPATH="${PYTHONPATH:=}"
if [[ $1 == *.js ]] || [[ $1 == *.ts ]] || [[ $1 == *.mjs ]]; then if [[ $1 == *.js ]] || [[ $1 == *.ts ]] || [[ $1 == *.mjs ]]; then
export NODE_OPTIONS="${NODE_OPTIONS} -r ${file_preload_js}" export NODE_OPTIONS="-r ${file_preload_js} ${NODE_OPTIONS}"
else else
export PYTHONPATH="${PYTHONPATH}:${dir_preload}:${dir_config}" export PYTHONPATH="${dir_preload}:${dir_config}:${PYTHONPATH}"
fi fi
else else
. $file_env . $file_env
@@ -229,6 +230,17 @@ check_file() {
fi fi
} }
check_nounset() {
local output=$(set -o)
while read -r line; do
if [[ "$line" =~ "nounset" ]] && [[ "$line" =~ "on" ]]; then
set_u_on="true"
set +u
break
fi
done <<<"$output"
}
main() { main() {
if [[ $1 == *.js ]] || [[ $1 == *.py ]] || [[ $1 == *.pyc ]] || [[ $1 == *.sh ]] || [[ $1 == *.ts ]]; then if [[ $1 == *.js ]] || [[ $1 == *.py ]] || [[ $1 == *.pyc ]] || [[ $1 == *.sh ]] || [[ $1 == *.ts ]]; then
if [[ $1 == *.sh ]]; then if [[ $1 == *.sh ]]; then
@@ -270,10 +282,7 @@ if [[ $isJsOrPythonFile == 'false' ]]; then
run_task_before "${task_shell_params[@]}" run_task_before "${task_shell_params[@]}"
fi fi
set_u_on="false" set_u_on="false"
if set -o | grep -q 'nounset.*on'; then check_nounset
set_u_on="true"
set +u
fi
main "${task_shell_params[@]}" main "${task_shell_params[@]}"
if [[ "$set_u_on" == 'true' ]]; then if [[ "$set_u_on" == 'true' ]]; then
set -u set -u
+15 -4
View File
@@ -1,5 +1,6 @@
const { execSync } = require('child_process'); const { execSync } = require('child_process');
require(`./env.js`); require(`./env.js`);
function expandRange(rangeStr, max) { function expandRange(rangeStr, max) {
const tempRangeStr = rangeStr const tempRangeStr = rangeStr
.trim() .trim()
@@ -28,11 +29,12 @@ function run() {
file_task_before_js, file_task_before_js,
dir_scripts, dir_scripts,
task_before, task_before,
PREV_NODE_OPTIONS,
} = process.env; } = process.env;
require(file_task_before_js);
try { try {
process.env.NODE_OPTIONS = PREV_NODE_OPTIONS;
const splitStr = '__sitecustomize__'; const splitStr = '__sitecustomize__';
const fileName = process.argv[1].replace(`${dir_scripts}/`, ''); const fileName = process.argv[1].replace(`${dir_scripts}/`, '');
let command = `bash -c "source ${file_task_before} ${fileName}`; let command = `bash -c "source ${file_task_before} ${fileName}`;
@@ -44,7 +46,7 @@ function run() {
console.log('执行前置命令\n'); console.log('执行前置命令\n');
} }
const res = execSync( const res = execSync(
`${command} && echo -e '${splitStr}' && NODE_OPTIONS= node -p 'JSON.stringify(process.env)'"`, `${command} && echo -e '${splitStr}' && node -p 'JSON.stringify(process.env)'"`,
{ {
encoding: 'utf-8', encoding: 'utf-8',
}, },
@@ -60,10 +62,19 @@ function run() {
} }
} catch (error) { } catch (error) {
if (!error.message.includes('spawnSync /bin/sh E2BIG')) { if (!error.message.includes('spawnSync /bin/sh E2BIG')) {
console.log(`run task before error: `, error); console.log(`\ue926 run task before error: `, error);
} else {
console.log(
`\ue926 The environment variable is too large. It is recommended to use task_before.js instead of task_before.sh\n`,
);
}
if (task_before) {
console.log('执行前置命令结束\n');
} }
} }
require(file_task_before_js);
if (envParam && numParam) { if (envParam && numParam) {
const array = (process.env[envParam] || '').split('&'); const array = (process.env[envParam] || '').split('&');
const runArr = expandRange(numParam, array.length); const runArr = expandRange(numParam, array.length);
+16 -4
View File
@@ -35,9 +35,10 @@ def expand_range(range_str, max_value):
def run(): def run():
import task_before
try: try:
prev_pythonpath = os.getenv("PREV_PYTHONPATH", "")
os.environ["PYTHONPATH"] = prev_pythonpath
split_str = "__sitecustomize__" split_str = "__sitecustomize__"
file_name = sys.argv[0].replace(f"{os.getenv('dir_scripts')}/", "") file_name = sys.argv[0].replace(f"{os.getenv('dir_scripts')}/", "")
command = f'bash -c "source {os.getenv("file_task_before")} {file_name}' command = f'bash -c "source {os.getenv("file_task_before")} {file_name}'
@@ -48,7 +49,10 @@ def run():
command += f" && eval '{escape_task_before}'" command += f" && eval '{escape_task_before}'"
print("执行前置命令\n") print("执行前置命令\n")
python_command = "PYTHONPATH= python3 -c 'import os, json; print(json.dumps(dict(os.environ)))'" prev_pythonpath = os.getenv("PREV_PYTHONPATH", "")
python_command = (
"python3 -c 'import os, json; print(json.dumps(dict(os.environ)))'"
)
command += f" && echo -e '{split_str}' && {python_command}\"" command += f" && echo -e '{split_str}' && {python_command}\""
res = subprocess.check_output(command, shell=True, encoding="utf-8") res = subprocess.check_output(command, shell=True, encoding="utf-8")
@@ -68,10 +72,18 @@ def run():
except OSError as error: except OSError as error:
error_message = str(error) error_message = str(error)
if "Argument list too long" not in error_message: if "Argument list too long" not in error_message:
print(f"run task before error: {error}") print(f"\ue926 run task before error: {error}")
else:
print(
"\ue926 The environment variable is too large. It is recommended to use task_before.py instead of task_before.sh\n"
)
if task_before:
print("执行前置命令结束")
except Exception as error: except Exception as error:
print(f"run task before error: {error}") print(f"run task before error: {error}")
import task_before
env_param = os.getenv("envParam") env_param = os.getenv("envParam")
num_param = os.getenv("numParam") num_param = os.getenv("numParam")
+3 -3
View File
@@ -340,7 +340,7 @@ format_log_time() {
local time="$2" local time="$2"
if [[ $is_macos -eq 1 ]]; then if [[ $is_macos -eq 1 ]]; then
echo $(date -j -f "$format" "$time" "+%Y-%m-%d-%H-%M-%S-%3N") echo $(python3 -c 'from datetime import datetime; print(datetime.now().strftime("%Y-%m-%d-%H-%M-%S-%f")[:-3])')
else else
echo $(date -d "$time" "+%Y-%m-%d-%H-%M-%S-%3N") echo $(date -d "$time" "+%Y-%m-%d-%H-%M-%S-%3N")
fi fi
@@ -453,7 +453,7 @@ run_task_before() {
if [[ ${task_before:=} ]]; then if [[ ${task_before:=} ]]; then
echo -e "执行前置命令\n" echo -e "执行前置命令\n"
eval "${task_before%;}" "$@" eval "${task_before%;}"
echo -e "\n执行前置命令结束\n" echo -e "\n执行前置命令结束\n"
fi fi
} }
@@ -463,7 +463,7 @@ run_task_after() {
if [[ ${task_after:=} ]]; then if [[ ${task_after:=} ]]; then
echo -e "\n执行后置命令\n" echo -e "\n执行后置命令\n"
eval "${task_after%;}" "$@" eval "${task_after%;}"
echo -e "\n执行后置命令结束" echo -e "\n执行后置命令结束"
fi fi
} }
Binary file not shown.
Binary file not shown.
Binary file not shown.
+16
View File
@@ -8,6 +8,13 @@
url('../assets/fonts/SourceCodePro-Regular.ttf') format('truetype'); url('../assets/fonts/SourceCodePro-Regular.ttf') format('truetype');
} }
@font-face {
font-family: Log;
src: url('../assets/fonts/log.woff2') format('woff2'),
url('../assets/fonts/log.woff') format('woff'),
url('../assets/fonts/log.ttf') format('truetype');
}
body { body {
// 禁止手机页面下拉刷新 // 禁止手机页面下拉刷新
overflow: hidden; overflow: hidden;
@@ -52,6 +59,11 @@ body {
width: 100%; width: 100%;
padding: 24px; padding: 24px;
overflow-y: auto; overflow-y: auto;
code,
span {
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo,
Courier, monospace, Log;
}
} }
} }
@@ -63,6 +75,10 @@ body {
} }
} }
.ͼ1 .cm-scroller {
font-family: monospace, Log;
}
.monaco-editor:not(.rename-box) { .monaco-editor:not(.rename-box) {
height: calc(100vh - 128px) !important; height: calc(100vh - 128px) !important;
height: calc(100vh - var(--vh-offset, 0px) - 128px) !important; height: calc(100vh - var(--vh-offset, 0px) - 128px) !important;
+2
View File
@@ -388,6 +388,8 @@
"SMTP 登录密码,也可能为特殊口令,视具体邮件服务商说明而定": "The SMTP login password may also be a special passphrase, depending on the specific email service provider's instructions", "SMTP 登录密码,也可能为特殊口令,视具体邮件服务商说明而定": "The SMTP login password may also be a special passphrase, depending on the specific email service provider's instructions",
"PushMe的Keyhttps://push.i-i.me/": "PushMe key, https://push.i-i.me/", "PushMe的Keyhttps://push.i-i.me/": "PushMe key, https://push.i-i.me/",
"自建的PushMeServer消息接口地址,例如:http://127.0.0.1:3010,不填则使用官方消息接口": "The self built PushMeServer message interface address, for example: http://127.0.0.1:3010 If left blank, use the official message interface", "自建的PushMeServer消息接口地址,例如:http://127.0.0.1:3010,不填则使用官方消息接口": "The self built PushMeServer message interface address, for example: http://127.0.0.1:3010 If left blank, use the official message interface",
"ntfy的url地址,例如 https://ntfy.sh'": "The URL address of ntfy, for example, https://ntfy.sh.",
"ntfy的消息应用topic": "The topic for ntfy's messaging application.",
"请求方法": "Request Method", "请求方法": "Request Method",
"请求头Content-Type": "Request Header Content-Type", "请求头Content-Type": "Request Header Content-Type",
"请求链接以http或者https开头。url或者body中必须包含$title$content可选,对应api内容的位置": "Request URL should start with http or https. URL or body must contain $title, $content is optional and corresponds to the API content position.", "请求链接以http或者https开头。url或者body中必须包含$title$content可选,对应api内容的位置": "Request URL should start with http or https. URL or body must contain $title, $content is optional and corresponds to the API content position.",
+2
View File
@@ -388,6 +388,8 @@
"SMTP 登录密码,也可能为特殊口令,视具体邮件服务商说明而定": "SMTP 登录密码,也可能为特殊口令,视具体邮件服务商说明而定", "SMTP 登录密码,也可能为特殊口令,视具体邮件服务商说明而定": "SMTP 登录密码,也可能为特殊口令,视具体邮件服务商说明而定",
"PushMe的Keyhttps://push.i-i.me/": "PushMe的Keyhttps://push.i-i.me/", "PushMe的Keyhttps://push.i-i.me/": "PushMe的Keyhttps://push.i-i.me/",
"自建的PushMeServer消息接口地址,例如:http://127.0.0.1:3010,不填则使用官方消息接口": "自建的PushMeServer消息接口地址,例如:http://127.0.0.1:3010,不填则使用官方消息接口", "自建的PushMeServer消息接口地址,例如:http://127.0.0.1:3010,不填则使用官方消息接口": "自建的PushMeServer消息接口地址,例如:http://127.0.0.1:3010,不填则使用官方消息接口",
"ntfy的url地址,例如 https://ntfy.sh": "ntfy的url地址,例如 https://ntfy.sh",
"ntfy的消息应用topic": "ntfy的消息应用topic",
"请求方法": "请求方法", "请求方法": "请求方法",
"请求头Content-Type": "请求头Content-Type", "请求头Content-Type": "请求头Content-Type",
"请求链接以http或者https开头。url或者body中必须包含$title$content可选,对应api内容的位置": "请求链接以http或者https开头。url或者body中必须包含$title$content可选,对应api内容的位置", "请求链接以http或者https开头。url或者body中必须包含$title$content可选,对应api内容的位置": "请求链接以http或者https开头。url或者body中必须包含$title$content可选,对应api内容的位置",
+14 -4
View File
@@ -36,6 +36,7 @@ import {
PlusOutlined, PlusOutlined,
UnorderedListOutlined, UnorderedListOutlined,
CheckOutlined, CheckOutlined,
CopyOutlined,
} from '@ant-design/icons'; } from '@ant-design/icons';
import config from '@/utils/config'; import config from '@/utils/config';
import { PageContainer } from '@ant-design/pro-layout'; import { PageContainer } from '@ant-design/pro-layout';
@@ -57,10 +58,11 @@ import { useVT } from 'virtualizedtableforantd4';
import { ICrontab, OperationName, OperationPath, CrontabStatus } from './type'; import { ICrontab, OperationName, OperationPath, CrontabStatus } from './type';
import Name from '@/components/name'; import Name from '@/components/name';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import { noop } from 'lodash'; import { noop, omit } from 'lodash';
const { Text, Paragraph, Link } = Typography; const { Text, Paragraph, Link } = Typography;
const { Search } = Input; const { Search } = Input;
const SHOW_TAB_COUNT = 10;
const Crontab = () => { const Crontab = () => {
const { headerStyle, isPhone, theme } = useOutletContext<SharedContext>(); const { headerStyle, isPhone, theme } = useOutletContext<SharedContext>();
@@ -620,6 +622,7 @@ const Crontab = () => {
icon: icon:
record.isDisabled === 1 ? <CheckCircleOutlined /> : <StopOutlined />, record.isDisabled === 1 ? <CheckCircleOutlined /> : <StopOutlined />,
}, },
{ label: intl.get('复制'), key: 'copy', icon: <CopyOutlined /> },
{ label: intl.get('删除'), key: 'delete', icon: <DeleteOutlined /> }, { label: intl.get('删除'), key: 'delete', icon: <DeleteOutlined /> },
{ {
label: record.isPinned === 1 ? intl.get('取消置顶') : intl.get('置顶'), label: record.isPinned === 1 ? intl.get('取消置顶') : intl.get('置顶'),
@@ -655,6 +658,9 @@ const Crontab = () => {
case 'edit': case 'edit':
editCron(record, index); editCron(record, index);
break; break;
case 'copy':
editCron(omit(record, 'id'), index);
break;
case 'enableOrDisable': case 'enableOrDisable':
enabledOrDisabledCron(record, index); enabledOrDisabledCron(record, index);
break; break;
@@ -800,7 +806,7 @@ const Crontab = () => {
useEffect(() => { useEffect(() => {
if (viewConf && enabledCronViews && enabledCronViews.length > 0) { if (viewConf && enabledCronViews && enabledCronViews.length > 0) {
const view = enabledCronViews.slice(4).find((x) => x.id === viewConf.id); const view = enabledCronViews.slice(SHOW_TAB_COUNT).find((x) => x.id === viewConf.id);
setMoreMenuActive(!!view); setMoreMenuActive(!!view);
} }
}, [viewConf, enabledCronViews]); }, [viewConf, enabledCronViews]);
@@ -830,7 +836,7 @@ const Crontab = () => {
viewAction(key); viewAction(key);
}, },
items: [ items: [
...[...enabledCronViews].slice(4).map((x) => ({ ...[...enabledCronViews].slice(SHOW_TAB_COUNT).map((x) => ({
label: ( label: (
<Space style={{ display: 'flex', justifyContent: 'space-between' }}> <Space style={{ display: 'flex', justifyContent: 'space-between' }}>
<span>{x.name}</span> <span>{x.name}</span>
@@ -856,6 +862,10 @@ const Crontab = () => {
icon: <SettingOutlined />, icon: <SettingOutlined />,
}, },
], ],
style: {
maxHeight: 350,
overflowY: 'auto',
},
}; };
const getCronViews = () => { const getCronViews = () => {
@@ -946,7 +956,7 @@ const Crontab = () => {
} }
onTabClick={tabClick} onTabClick={tabClick}
items={[ items={[
...[...enabledCronViews].slice(0, 4).map((x) => ({ ...[...enabledCronViews].slice(0, SHOW_TAB_COUNT).map((x) => ({
key: x.id, key: x.id,
label: x.name, label: x.name,
})), })),
+4 -4
View File
@@ -21,9 +21,9 @@ const CronModal = ({
const handleOk = async (values: any) => { const handleOk = async (values: any) => {
setLoading(true); setLoading(true);
const method = cron ? 'put' : 'post'; const method = cron?.id ? 'put' : 'post';
const payload = { ...values }; const payload = { ...values };
if (cron) { if (cron?.id) {
payload.id = cron.id; payload.id = cron.id;
} }
try { try {
@@ -34,7 +34,7 @@ const CronModal = ({
if (code === 200) { if (code === 200) {
message.success( message.success(
cron ? intl.get('更新任务成功') : intl.get('创建任务成功'), cron?.id ? intl.get('更新任务成功') : intl.get('创建任务成功'),
); );
handleCancel(data); handleCancel(data);
} }
@@ -50,7 +50,7 @@ const CronModal = ({
return ( return (
<Modal <Modal
title={cron ? intl.get('编辑任务') : intl.get('创建任务')} title={cron?.id ? intl.get('编辑任务') : intl.get('创建任务')}
open={visible} open={visible}
forceRender forceRender
centered centered
+2 -1
View File
@@ -108,6 +108,7 @@ const Script = () => {
}; };
const item = findNode(_data, (c) => c.key === obj.node.key); const item = findNode(_data, (c) => c.key === obj.node.key);
if (item) { if (item) {
obj.node = item;
setExpandedKeys([p as string]); setExpandedKeys([p as string]);
onTreeSelect([vkey], obj); onTreeSelect([vkey], obj);
} }
@@ -643,7 +644,7 @@ const Script = () => {
fontSize: 12, fontSize: 12,
lineNumbersMinChars: 3, lineNumbersMinChars: 3,
glyphMargin: false, glyphMargin: false,
accessibilitySupport: 'off' accessibilitySupport: 'off',
}} }}
onMount={(editor) => { onMount={(editor) => {
editorRef.current = editor; editorRef.current = editor;
+16 -1
View File
@@ -1,3 +1,4 @@
import intl from 'react-intl-universal';
import React, { useRef, useState } from 'react'; import React, { useRef, useState } from 'react';
import CodeMirror from '@uiw/react-codemirror'; import CodeMirror from '@uiw/react-codemirror';
import { Button, DatePicker, Empty, message, Spin } from 'antd'; import { Button, DatePicker, Empty, message, Spin } from 'antd';
@@ -9,6 +10,13 @@ import { request } from '@/utils/http';
import config from '@/utils/config'; import config from '@/utils/config';
import { useRequest } from 'ahooks'; import { useRequest } from 'ahooks';
import moment from 'moment'; import moment from 'moment';
import {
systemLogDebugHighlightPlugin,
systemLogErrorHighlightPlugin,
systemLogInfoHighlightPlugin,
systemLogTheme,
systemLogWarnHighlightPlugin,
} from '@/utils/codemirror/systemLog';
const { RangePicker } = DatePicker; const { RangePicker } = DatePicker;
@@ -83,7 +91,7 @@ const SystemLog = ({ height, theme }: any) => {
deleteLog(); deleteLog();
}} }}
> >
{intl.get('清空日志')}
</Button> </Button>
</div> </div>
{systemLogData ? ( {systemLogData ? (
@@ -94,6 +102,13 @@ const SystemLog = ({ height, theme }: any) => {
onCreateEditor={(view) => { onCreateEditor={(view) => {
editorRef.current = view; editorRef.current = view;
}} }}
extensions={[
systemLogDebugHighlightPlugin,
systemLogErrorHighlightPlugin,
systemLogInfoHighlightPlugin,
systemLogWarnHighlightPlugin,
systemLogTheme,
]}
readOnly={true} readOnly={true}
theme={theme.includes('dark') ? 'dark' : 'light'} theme={theme.includes('dark') ? 'dark' : 'light'}
/> />
+174
View File
@@ -0,0 +1,174 @@
import {
Decoration,
EditorView,
ViewPlugin,
ViewUpdate,
} from '@codemirror/view';
import { RangeSet, RangeSetBuilder } from '@codemirror/state';
const infoWord = /\[\ue6f5info\]/g;
const debugWord = /\[\ue67fdebug\]/g;
const warnWord = /\[\ue880warn\]/g;
const errorWord = /\[\ue602error\]/g;
const customWordClassMap = {
info: 'system-log-info',
warn: 'system-warn-info',
error: 'system-error-info',
debug: 'system-debug-info',
};
export const systemLogInfoHighlightPlugin = ViewPlugin.fromClass(
class {
decorations: RangeSet<Decoration>;
constructor(view: EditorView) {
this.decorations = this.getDecorations(view);
}
update(update: ViewUpdate) {
if (update.docChanged) {
this.decorations = this.getDecorations(update.view);
}
}
getDecorations(view: EditorView) {
const builder = new RangeSetBuilder<Decoration>();
const doc = view.state.doc.toString();
let match;
while ((match = infoWord.exec(doc)) !== null) {
const deco = Decoration.mark({
class: customWordClassMap.info,
});
builder.add(match.index, match.index + match[0].length, deco);
}
return builder.finish();
}
},
{
decorations: (v) => v.decorations,
},
);
export const systemLogWarnHighlightPlugin = ViewPlugin.fromClass(
class {
decorations: RangeSet<Decoration>;
constructor(view: EditorView) {
this.decorations = this.getDecorations(view);
}
update(update: ViewUpdate) {
if (update.docChanged) {
this.decorations = this.getDecorations(update.view);
}
}
getDecorations(view: EditorView) {
const builder = new RangeSetBuilder<Decoration>();
const doc = view.state.doc.toString();
let match;
while ((match = warnWord.exec(doc)) !== null) {
const deco = Decoration.mark({
class: customWordClassMap.warn,
});
builder.add(match.index, match.index + match[0].length, deco);
}
return builder.finish();
}
},
{
decorations: (v) => v.decorations,
},
);
export const systemLogDebugHighlightPlugin = ViewPlugin.fromClass(
class {
decorations: RangeSet<Decoration>;
constructor(view: EditorView) {
this.decorations = this.getDecorations(view);
}
update(update: ViewUpdate) {
if (update.docChanged) {
this.decorations = this.getDecorations(update.view);
}
}
getDecorations(view: EditorView) {
const builder = new RangeSetBuilder<Decoration>();
const doc = view.state.doc.toString();
let match;
while ((match = debugWord.exec(doc)) !== null) {
const deco = Decoration.mark({
class: customWordClassMap.debug,
});
builder.add(match.index, match.index + match[0].length, deco);
}
return builder.finish();
}
},
{
decorations: (v) => v.decorations,
},
);
export const systemLogErrorHighlightPlugin = ViewPlugin.fromClass(
class {
decorations: RangeSet<Decoration>;
constructor(view: EditorView) {
this.decorations = this.getDecorations(view);
}
update(update: ViewUpdate) {
if (update.docChanged) {
this.decorations = this.getDecorations(update.view);
}
}
getDecorations(view: EditorView) {
const builder = new RangeSetBuilder<Decoration>();
const doc = view.state.doc.toString();
let match;
while ((match = errorWord.exec(doc)) !== null) {
const deco = Decoration.mark({
class: customWordClassMap.error,
});
builder.add(match.index, match.index + match[0].length, deco);
}
return builder.finish();
}
},
{
decorations: (v) => v.decorations,
},
);
export const systemLogTheme = EditorView.baseTheme({
'.system-log-info': {
color: '#2196F3',
},
'.system-warn-info': {
color: '#FFB827',
},
'.system-error-info': {
color: '#FA5151',
},
'.system-debug-info': {
color: '#009A29',
},
});
+14
View File
@@ -84,6 +84,7 @@ export default {
}, },
notificationModes: [ notificationModes: [
{ value: 'gotify', label: 'Gotify' }, { value: 'gotify', label: 'Gotify' },
{ value: 'ntfy', label: 'Ntfy' },
{ value: 'goCqHttpBot', label: 'GoCqHttpBot' }, { value: 'goCqHttpBot', label: 'GoCqHttpBot' },
{ value: 'serverChan', label: intl.get('Server酱') }, { value: 'serverChan', label: intl.get('Server酱') },
{ value: 'pushDeer', label: 'PushDeer' }, { value: 'pushDeer', label: 'PushDeer' },
@@ -118,6 +119,19 @@ export default {
}, },
{ label: 'gotifyPriority', tip: intl.get('推送消息的优先级') }, { label: 'gotifyPriority', tip: intl.get('推送消息的优先级') },
], ],
ntfy: [
{
label: 'ntfyUrl',
tip: intl.get('ntfy的url地址,例如 https://ntfy.sh'),
required: true,
},
{
label: 'ntfyTopic',
tip: intl.get('ntfy的消息应用topic'),
required: true,
},
{ label: 'ntfyPriority', tip: intl.get('推送消息的优先级') },
],
chat: [ chat: [
{ {
label: 'chatUrl', label: 'chatUrl',
+3 -2
View File
@@ -313,8 +313,9 @@ export function getCommandScript(
['.js', '.ts', '.sh', '.py'].some((y) => x.endsWith(y)), ['.js', '.ts', '.sh', '.py'].some((y) => x.endsWith(y)),
); );
if (!scriptsPart) return; if (!scriptsPart) return;
if (scriptsPart.startsWith('/ql/data/scripts')) { const scriptDir = `${window.__ENV__QL_DIR}/data/scripts`;
scriptsPart = scriptsPart.replace('/ql/data/scripts/', ''); if (scriptsPart.startsWith(scriptDir)) {
scriptsPart = scriptsPart.replace(scriptDir, '');
} }
let p: string, s: string; let p: string, s: string;
+1
View File
@@ -12,4 +12,5 @@ declare module '*.svg' {
interface Window { interface Window {
__ENV__QlBaseUrl: string; __ENV__QlBaseUrl: string;
__ENV__DeployEnv: string; __ENV__DeployEnv: string;
__ENV__QL_DIR: string;
} }
+10 -11
View File
@@ -1,12 +1,11 @@
version: 2.17.10 version: 2.17.12
changeLogLink: https://t.me/jiao_long/421 changeLogLink: https://t.me/jiao_long/422
publishTime: 2024-08-30 23:00 publishTime: 2024-10-26 15:30
changeLog: | changeLog: |
1. 系统日志增加时间筛选和清空操作 1. 定时任务支持复制
2. 单个任务运行中实例限制最多 5 个,防止任务堆积过多,运行实例超过 5 个时,会发频繁通知 2. 增加 ntfy 通知
3. 修复 shell 任务无法正常结束 3. 适配Server酱APP分支(Server酱³),移除已废弃的旧版api入口
4. 修改 python 任务 smtp 参数说明,详见 config.sh 4. 修复任务命令带有 -m 参数时,日志目录生成异常
5. 修复任务执行前命令 (task_before) 执行报错 5. 修复登录日志无法自动保存
6. 修复删除日志命令可能失败 6. 移除任务执行前后的脚本参数
7. 其他样式修复 7. 定时任务外漏视图改为 10 个