Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

将UserConfig暴露至GM_info对象中 #206

Merged
merged 3 commits into from Jun 25, 2023
Merged

Conversation

DreamNya
Copy link
Contributor

  • 增加getUserConfigStr方法截取UserConfig文本
  • 修复getMetadataStr截取少1个字符BUG
  • 将userConfig对象及文本暴露至GM_info对象中
  • 补齐scriptcat.d.ts中GM_info缺失属性
  • 注释scriptcat.d.ts中GM_info实际不存在的属性
  • 根据新方法完善userconfig.js示例

 - 增加getUserConfigStr方法截取UserConfig文本
 - 修复getMetadataStr截取少1个字符BUG
 - 将userConfig对象及文本暴露至GM_info对象中
 - 补齐scriptcat.d.ts中GM_info缺失属性
 - 注释scriptcat.d.ts中GM_info实际不存在的属性
 - 根据新方法完善userconfig.js示例
@codecov-commenter
Copy link

codecov-commenter commented Jun 25, 2023

Codecov Report

Patch coverage: 87.50% and project coverage change: +0.17 🎉

Comparison is base (40bc8da) 45.18% compared to head (8c25322) 45.36%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #206      +/-   ##
==========================================
+ Coverage   45.18%   45.36%   +0.17%     
==========================================
  Files          65       65              
  Lines        4468     4475       +7     
  Branches     1022     1024       +2     
==========================================
+ Hits         2019     2030      +11     
+ Misses       2449     2445       -4     
Impacted Files Coverage Δ
src/pkg/utils/script.ts 14.87% <85.71%> (+4.81%) ⬆️
src/runtime/content/gm_api.ts 56.40% <100.00%> (+0.10%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

src/pkg/utils/script.ts Show resolved Hide resolved
src/types/scriptcat.d.ts Outdated Show resolved Hide resolved
@CodFrm CodFrm merged commit 3de39e7 into scriptscat:main Jun 25, 2023
1 check passed
@DreamNya DreamNya deleted the UserConfig branch June 25, 2023 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants