Skip to content

Commit

Permalink
fix: 更新 easy-us API
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed May 10, 2024
1 parent 8c8425f commit 0150b49
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"vite-plugin-banner": "^0.6.1"
},
"dependencies": {
"easy-us": "^0.0.15",
"easy-us": "^0.0.20",
"events": "^3.3.0",
"lodash": "^4.17.21",
"playwright-core": "^1.40.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/scripts/entry.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (
) {
const open = confirm(
`OCS网课脚本不支持当前的脚本管理器(${GM_info.scriptHandler})。` +
'请前往 https://docs.ocsjs.com/docs/script 下载指定的脚本管理器,例如 “Scriptcat 脚本猫” 或者 “Tampermonkey 油猴”'
'请前往 https://docs.ocsjs.com/docs/script 下载指定的脚本管理器,例如 “Scriptcat 脚本猫” 或者 “Tampermonkey 油猴”'
);

if (open) {
Expand All @@ -40,9 +40,9 @@ const infos = GM_info;

// 运行脚本
start({
RenderScript,
projects: projects,
renderConfig: {
renderScript: RenderScript,
styles: [GM_getResourceText('STYLE')],
defaultPanelName: CommonProject.scripts.guide.namespace,
title: `OCS DEV-${infos.script.version}`
Expand Down
4 changes: 2 additions & 2 deletions packages/scripts/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (
) {
const open = confirm(
`OCS网课脚本不支持当前的脚本管理器(${GM_info.scriptHandler})。` +
'请前往 https://docs.ocsjs.com/docs/script 下载指定的脚本管理器,例如 “Scriptcat 脚本猫” 或者 “Tampermonkey 油猴”'
'请前往 https://docs.ocsjs.com/docs/script 下载指定的脚本管理器,例如 “Scriptcat 脚本猫” 或者 “Tampermonkey 油猴”'
);

if (open) {
Expand All @@ -40,9 +40,9 @@ const infos = GM_info;

// 运行脚本
start({
RenderScript,
projects: projects,
renderConfig: {
renderScript: RenderScript,
styles: [STYLE],
defaultPanelName: CommonProject.scripts.guide.namespace,
title: `OCS-${infos.script.version}`
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@ocsjs/core": "4.0.1",
"@rollup/plugin-commonjs": "^24.0.0",
"browser-env": "^3.3.0",
"easy-us": "^0.0.18",
"easy-us": "^0.0.20",
"lodash": "^4.17.21",
"markdown-it": "^13.0.1",
"marked": "^4.2.12",
Expand Down

0 comments on commit 0150b49

Please sign in to comment.