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

fix(toolbar): delete specific rules #29

Closed
wants to merge 359 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
359 commits
Select commit Hold shift + click to select a range
604bfb7
feat: add MboxCSS
BaigeiGu Feb 22, 2024
3f6a0d6
Merge pull request #9 from BaigeiGu/master
BaigeiGu Feb 22, 2024
863a82b
chore: 修正链接
ZoruaFox Feb 22, 2024
4540f02
Merge branch 'master' of https://github.com/TopRealm/YsArxiv-Gadgets
ZoruaFox Feb 22, 2024
c907efb
feat: 尝试部署Twinkle
ZoruaFox Feb 22, 2024
e02b0f2
fix: 神金
ZoruaFox Feb 22, 2024
6174384
feat: 迁移多个小工具
ZoruaFox Feb 23, 2024
427d0c9
chore: 补充Twinkle输出,便于调试
ZoruaFox Feb 23, 2024
40e63e7
fix: 将Twinkle判断非对应用户组输出提升至WARN
ZoruaFox Feb 23, 2024
f30ed3f
fix: 提前Twinkle定义,防止后方无权限时调用出错
ZoruaFox Feb 23, 2024
80400ee
chore: 重新生成dist文件
ZoruaFox Feb 23, 2024
7236797
refactor: 迁移Common.css、Common.js、Citizen.css,新增其他皮肤CSS
ZoruaFox Feb 23, 2024
ab99472
refactor: 迁移注册用户脚本
ZoruaFox Feb 23, 2024
c9312fd
chore: store
ZoruaFox Feb 23, 2024
6b460f5
fix: 在ts引入CitizenCSS
ZoruaFox Feb 23, 2024
fc4be3c
chore: 更新现有部署项
ZoruaFox Feb 23, 2024
249e7e0
fix: 在ShowAvatar.ts引入对应Less
ZoruaFox Feb 23, 2024
a56c37b
chore: re-generate dist
ZoruaFox Feb 23, 2024
d47da9a
fix(ShowAvatarJS): from moegirl
ZoruaFox Feb 23, 2024
d989bd7
feat: add avatar gadgets
ZoruaFox Feb 23, 2024
ec76958
fix: deprecate JQuery
ZoruaFox Feb 23, 2024
9b08c49
refactor(UserLinkAvatar): refactor
ZoruaFox Feb 23, 2024
6c2128f
chore: 重新生成dist
ZoruaFox Feb 23, 2024
5d5f8e5
fix: 在Scroller.ts引入对应Less,修复UserLinkAvatar.less
ZoruaFox Feb 23, 2024
ac76299
refactor: 更新global.json,正式迁移小工具
ZoruaFox Feb 23, 2024
e3012ba
chore: 重新生成dist
ZoruaFox Feb 23, 2024
93b13a8
fix: 取消隐藏特殊页面菜单项
ZoruaFox Feb 23, 2024
0aab5cc
fix: 不显示页头
ZoruaFox Feb 23, 2024
04dc2f4
fix: 修复特定CSS在主页的生效
ZoruaFox Feb 23, 2024
11ab62b
style: 增加背景图片样式
ZoruaFox Feb 23, 2024
b868352
fix: 无聊
ZoruaFox Feb 23, 2024
18d9895
feat: 尝试添加背景淡入
ZoruaFox Feb 23, 2024
bf48875
revert: 没事
ZoruaFox Feb 23, 2024
2ba1f67
revert: again
ZoruaFox Feb 23, 2024
2f385b0
chore: 重新生成dist
ZoruaFox Feb 23, 2024
d41f610
fix: 统一背景为固定
ZoruaFox Feb 23, 2024
c984f28
fix: hatnote color
ZoruaFox Feb 24, 2024
fe350fa
feat: 加入Actions自动部署
ZoruaFox Feb 24, 2024
46c55d4
fix: 增加pnpm安装
ZoruaFox Feb 24, 2024
3bb1645
fix: pnpm run deploy:directly
ZoruaFox Feb 24, 2024
68adf5f
fix: 背景
ZoruaFox Feb 24, 2024
867d98a
style: 为转换变体小工具按钮添加样式
ZoruaFox Feb 24, 2024
c58322b
chore: 重新生成dist
ZoruaFox Feb 24, 2024
3d2a47c
fix: 为转换变体小工具按钮添加样式
ZoruaFox Feb 24, 2024
c3e216c
fix: 主页名字空间判断
ZoruaFox Feb 24, 2024
097b6d8
chore: dist
ZoruaFox Feb 24, 2024
a4a4676
feat: 迁移一批小工具
ZoruaFox Feb 24, 2024
e3f545a
fix: remove unused group
ZoruaFox Feb 24, 2024
32571d1
fix: 优编用户组
ZoruaFox Feb 24, 2024
b7c5f8f
fix: 错拼导致优编颜色异常
ZoruaFox Feb 25, 2024
783f29c
update: 上游源代码更新
ZoruaFox Feb 27, 2024
d4dcf05
update: 上游源代码更新
ZoruaFox Feb 27, 2024
9d7d239
update: 上游源代码更新
ZoruaFox Feb 27, 2024
8eddc02
fix: 移除
ZoruaFox Feb 27, 2024
6aed449
Update NotifyConversion.ts
ZoruaFox Feb 27, 2024
498f456
refactor: 整合样式
ZoruaFox Feb 27, 2024
24fa5fa
Delete src/NotifyConversion-pagestyles directory
ZoruaFox Feb 27, 2024
238474a
Update deploy.yml
ZoruaFox Feb 27, 2024
4aa1e5b
Update core.ts
ZoruaFox Feb 27, 2024
4d3a087
Update core.ts
ZoruaFox Feb 27, 2024
9c3dc6d
Update core.ts
ZoruaFox Feb 27, 2024
3161cff
Update i18n.ts
ZoruaFox Feb 27, 2024
9fcaa38
Merge branch 'master' of https://github.com/AnYiEE/AwesomeGadgets
actions-user Feb 27, 2024
833002f
更新背景
ajdgg Feb 27, 2024
24ffb98
更新背景
ajdgg Feb 27, 2024
0737d88
Update background.less
ajdgg Feb 27, 2024
d3098e6
Update background.less
ajdgg Feb 27, 2024
3a08894
feat: 添加变体切换,标注仓库地址
Feb 27, 2024
798da98
chore: dist
Feb 27, 2024
68302ed
chore: 升级actions代码
ZoruaFox Feb 27, 2024
446ed5d
refactor: 依据求闻上游更改结构
ZoruaFox Feb 28, 2024
0c692d2
fix: ts飞了
ZoruaFox Feb 28, 2024
ea11ae0
chore: 下调并发
ZoruaFox Feb 28, 2024
3ec20ee
fix: 消失的它
ZoruaFox Feb 28, 2024
05447c0
chore: dist
ZoruaFox Feb 28, 2024
6ee55f8
feat: add wikilove icon for citizen
ZoruaFox Feb 28, 2024
f6cd8fb
Merge branch 'master' of https://github.com/AnYiEE/AwesomeGadgets
actions-user Feb 29, 2024
4694d7c
Update README.md
ZoruaFox Feb 29, 2024
4773603
Update README.md
ZoruaFox Feb 29, 2024
64508f5
Update README.md
ZoruaFox Feb 29, 2024
2ef53ee
Update README.md
ZoruaFox Mar 1, 2024
f09f809
Merge branch 'master' of https://github.com/AnYiEE/AwesomeGadgets
actions-user Mar 2, 2024
ac3ddca
refactor: 替换权限组
ZoruaFox Mar 3, 2024
2591839
style: 增加h2标题元素
ZoruaFox Mar 3, 2024
a9c623c
fix: 修正头像上传链接
ZoruaFox Mar 3, 2024
9aabc9f
fix: 去除h2背景
ZoruaFox Mar 3, 2024
8794626
fix: 也许修了文件页样式
ZoruaFox Mar 3, 2024
d563d9c
fix: 。。。
ZoruaFox Mar 3, 2024
75e0c23
fix: style
ZoruaFox Mar 3, 2024
700c1b3
refactor: 分离Citizen样式与脚本
ZoruaFox Mar 4, 2024
2e408db
fix: 文件名
ZoruaFox Mar 4, 2024
faacbeb
feat: 更新转换变体小工具#QW
ZoruaFox Mar 4, 2024
04b1ee5
feat: 更新权标小工具 from QiuWen
ZoruaFox Mar 4, 2024
ce1d8f9
chore: update dist
ZoruaFox Mar 4, 2024
764d12e
chore: set GeoLocation gadget to default and hidden
ZoruaFox Mar 7, 2024
e27e018
fix: 分类显示差异化
ZoruaFox Mar 7, 2024
798cf2e
chore: dist
ZoruaFox Mar 7, 2024
71c5013
fix: twinkle
ZoruaFox Mar 8, 2024
390d369
fix: arxiv→archives
ZoruaFox Mar 9, 2024
62700e6
fix: arxiv→archives
ZoruaFox Mar 9, 2024
1bcf2bd
fix: image width in special:viewavatar
ZoruaFox Mar 10, 2024
dfd9986
chore(dist): image width in special:viewavatar
ZoruaFox Mar 10, 2024
eaa234c
style: whoisactive
ZoruaFox Mar 10, 2024
1d347d7
fix: use wgserver instead of fixed url
ZoruaFox Mar 11, 2024
7742b86
Update ShowAvatar.ts
ZoruaFox Mar 13, 2024
8dd6319
Merge branch 'master' of https://github.com/TopRealm/YsArxiv-Gadgets
ZoruaFox Mar 13, 2024
615ce6e
Merge branch 'master' of https://github.com/AnYiEE/AwesomeGadgets
actions-user Mar 13, 2024
ad9d726
fix(ShowAvatar): use wgserver instead of fixed url
ZoruaFox Mar 13, 2024
f8ce53e
Merge branch 'master' of https://github.com/TopRealm/YsArxiv-Gadgets
ZoruaFox Mar 13, 2024
1d23321
chore(dist): regenerate
ZoruaFox Mar 13, 2024
3995aa8
revert: fixed url
ZoruaFox Mar 13, 2024
f9df79a
fix(global.json): bureaucrat→steward
ZoruaFox Mar 13, 2024
83a1588
Merge branch 'master' of https://github.com/AnYiEE/AwesomeGadgets
actions-user Mar 14, 2024
14eed68
build(deps-dev): bump follow-redirects from 1.15.5 to 1.15.6 (#22)
dependabot[bot] Mar 17, 2024
d805886
Merge branch 'master' of https://github.com/AnYiEE/AwesomeGadgets
actions-user Mar 17, 2024
c914a99
Merge branch 'master' of https://github.com/AnYiEE/AwesomeGadgets
actions-user Mar 17, 2024
44c033f
Merge branch 'master' of https://github.com/AnYiEE/AwesomeGadgets
actions-user Mar 20, 2024
81b28fd
Merge branch 'master' of https://github.com/AnYiEE/AwesomeGadgets
actions-user Mar 30, 2024
79683a8
fix(twinkleprotect): 本地化
ZoruaFox Apr 13, 2024
a5a1203
Merge branch 'master' of https://github.com/AnYiEE/AwesomeGadgets
actions-user Apr 14, 2024
48049b8
Update fix-site-icon.less
ajdgg Apr 17, 2024
20f429a
Update fix-site-icon.less
ajdgg Apr 17, 2024
c51373e
Update fix-site-icon.less
ajdgg Apr 17, 2024
5ac0e69
Create fix-toolbar.less
ajdgg Apr 17, 2024
5f899ea
Update SkinCitizen_CSS.less
ajdgg Apr 17, 2024
c287fbc
Update fix-toolbar.less
ajdgg Apr 17, 2024
47115ed
Update fix-toolbar.less
ajdgg Apr 17, 2024
ba6de66
Update fix-toolbar.less
ajdgg Apr 17, 2024
2b1444b
Update fix-toolbar.less
ajdgg Apr 17, 2024
ef0a04a
refactor: 更新小工具逻辑
ZoruaFox Apr 17, 2024
8290012
chore: update store.txt
ZoruaFox Apr 17, 2024
739fed3
fix: 更新变量与活跃样式
ZoruaFox Apr 17, 2024
6f2d6b9
feat: 更新小工具
ZoruaFox Apr 18, 2024
2e713bd
fix: 多个小工具
ZoruaFox Apr 20, 2024
171a075
fix: 用户组脚本&样式表
ZoruaFox Apr 22, 2024
defad8b
chore: dist
ZoruaFox Apr 22, 2024
46fda62
fix: unterminated string constant
ZoruaFox Apr 22, 2024
bd24335
chore: store.txt
ZoruaFox Apr 22, 2024
8ba1071
fix: toolbar fix
ZoruaFox Apr 22, 2024
ae98da1
fix: border-radius 10px→5px
ZoruaFox Apr 22, 2024
4fccbae
feat: update wikicache
ZoruaFox Apr 24, 2024
22641a3
feat: 更新/修复/自定义小工具
ZoruaFox Apr 26, 2024
4f6f672
fix: citizen的contentsub
ZoruaFox Apr 26, 2024
21c6dd8
feat: 加入用户组样式
ZoruaFox Apr 26, 2024
0c3127d
fix: 修复重定向子标题
ZoruaFox Apr 27, 2024
5a95a00
fix: 取消地理位置自动更新
ZoruaFox Apr 27, 2024
0a79cfc
Update article-category.less
ajdgg Apr 29, 2024
601b587
Update README.md
ZoruaFox Apr 29, 2024
e0e521f
Merge branch 'master' into upstream
ZoruaFox Apr 30, 2024
dc5190e
Update pnpm-lock.yaml
ZoruaFox Apr 30, 2024
8adbfff
Merge pull request #11 from TopRealm/upstream
ZoruaFox Apr 30, 2024
f802d3d
fix: pnpm lock file
ZoruaFox Apr 30, 2024
094ea2a
fix: various bugs
ZoruaFox Apr 30, 2024
07bbd57
feat: add mailmap
ZoruaFox Apr 30, 2024
3c9beef
fix: Prefer `.querySelector()` over `.getElementById()`
ZoruaFox Apr 30, 2024
26362f2
update mailmap
ZoruaFox Apr 30, 2024
c275413
update: for test
ZoruaFox Apr 30, 2024
7c21ace
chore: update store.txt
ZoruaFox Apr 30, 2024
65bc3cc
fix(DefaultSummaries): broken
ZoruaFox May 1, 2024
0d4e143
chore: dist
ZoruaFox May 1, 2024
b55d9da
fix(EditForm): util
ZoruaFox May 1, 2024
048165f
fix(util): user-agent
ZoruaFox May 1, 2024
046a239
fix(WikiCache): 不再默认加载
ZoruaFox May 1, 2024
7c4d04c
Add files via upload
ajdgg May 1, 2024
742517f
feat(RightTopicon): add RightTopicon
ajdgg May 1, 2024
dcf206b
fix: noarticletext的样式
ZoruaFox May 1, 2024
f4f961e
feat(RightTopicon): add RightTopicon
ajdgg May 1, 2024
54454bf
Delete src/RightTopicons/PermissionData.ts
ajdgg May 1, 2024
f0d44cd
Merge branch 'master' of https://github.com/TopRealm/YsArchives-Gadgets
ZoruaFox May 1, 2024
7464e4f
fix(RightTopicon): autoconfirmed→confirmed
ZoruaFox May 1, 2024
22b6c7d
fix(RightTopicon): typo and cancel default & hidden
ZoruaFox May 1, 2024
ead5764
fix(RightTopicon): typo
ZoruaFox May 1, 2024
3b182c8
chore: dist
ZoruaFox May 1, 2024
ea08aae
revert(RightTopicons): incomplete function; already has MarkRights
ZoruaFox May 1, 2024
920718c
chore: raise maximum concurrency
ZoruaFox May 1, 2024
86bbccf
chore: dist
ZoruaFox May 1, 2024
12d1d30
fix(SiteCommon): page name
ZoruaFox May 1, 2024
a9b6484
fix(talkPage): typo
ZoruaFox May 2, 2024
ccf2ae1
chore: lower maximum concurrency to 12
ZoruaFox May 2, 2024
bcab5ae
fix(SpecialWikitext): 同步上游仓库更新
ZoruaFox May 4, 2024
b2f70c9
chore: update fix-toolbar.less
ZoruaFox May 7, 2024
6218613
fix: update fix-toolbar.less
ZoruaFox May 7, 2024
9296de0
fix: update fix-toolbar.less
ZoruaFox May 7, 2024
554b262
chore: dist
ZoruaFox May 7, 2024
fe368a3
fix: update image URLs for indication icons
ZoruaFox May 7, 2024
51eabc5
fix: package.json
ZoruaFox May 7, 2024
d8ab766
fix: lockfile
ZoruaFox May 7, 2024
c08aa41
chore: update upstream
ZoruaFox May 7, 2024
fb683a6
fix: lockfile
ZoruaFox May 7, 2024
78fa3b8
revert: severe bugs in new version
ZoruaFox May 7, 2024
6213203
Merge branch 'master' into conflict
ZoruaFox May 7, 2024
2aa0a16
Merge pull request #13 from TopRealm/conflict
ZoruaFox May 7, 2024
b6f212f
fix: lockfile
ZoruaFox May 7, 2024
e8f713a
refactor: remove unnecessary type casting in useDefault.ts
ZoruaFox May 7, 2024
d0824ba
fix: 删除lockfile完全重新生成依赖
ZoruaFox May 8, 2024
37fd6e7
fix: lockfile
ZoruaFox May 8, 2024
6489a8e
Merge branch 'master' of https://github.com/AnYiEE/AwesomeGadgets int…
ZoruaFox May 8, 2024
81991f2
chore: dist
ZoruaFox May 8, 2024
62d6b39
Merge branch 'AnYiEE-master'
ZoruaFox May 8, 2024
3c1d87d
fix: update upstream
ZoruaFox May 12, 2024
76e9808
fix: remove unnecessary code in fix-site-icon.less
ZoruaFox May 12, 2024
008887e
fix: 防止背景图在移动设备上随viewport高度变化而跳动 (#17)
rpuboh May 15, 2024
94fe524
fix: 避免宽屏下的背景图重复
rpuboh May 16, 2024
85a83ea
Merge pull request #18 from rpuboh/master
ZoruaFox May 16, 2024
1d5cfed
fix: 弃用background-attachment: fixed
rpuboh May 16, 2024
d5b6baf
chore: update RollbackSummary to use updateLinks module
ZoruaFox May 16, 2024
69ed46f
Merge pull request #19 from rpuboh/master
ZoruaFox May 16, 2024
c3b5d00
feat: add alt attribute to user avatars in UserLinkAvatar
ZoruaFox May 16, 2024
6dc87cb
fix(UserLinkAvatar): remove unnecessary alt text for avatar images
rpuboh May 17, 2024
db7f886
chore: add auto asign
ZoruaFox May 18, 2024
3bc7223
Merge branch 'master' into master
ZoruaFox May 18, 2024
34154a9
Merge pull request #20 from rpuboh/master
ZoruaFox May 18, 2024
c62e5a7
chore: adjust reviewers
ZoruaFox May 18, 2024
2b03451
chore: bump version
ZoruaFox May 22, 2024
b7b1c61
chore: remove unused globals and update dependencies
ZoruaFox May 22, 2024
37c7fd2
Merge conflict (#21)
ZoruaFox May 22, 2024
d9e1e79
Merge branch 'master' into conflict
ZoruaFox May 22, 2024
a5a1007
Merge pull request #22 from TopRealm/conflict
ZoruaFox May 22, 2024
9fda721
Merge branch 'master' into conflicts
ZoruaFox May 27, 2024
214e1a4
Merge pull request #23 from TopRealm/conflicts
ZoruaFox May 27, 2024
0d85995
chore: remove default flag from Wikicache definition.json
ZoruaFox May 29, 2024
1668bfc
chore: regenerate dist
ZoruaFox May 29, 2024
eece96c
chore: increase MAX_CONCURRENCY to 16
ZoruaFox May 29, 2024
aaa0bdd
Merge branch 'master' of https://github.com/AnYiEE/AwesomeGadgets
ZoruaFox May 31, 2024
315405d
feat: sync upstream with Qiuwen
ZoruaFox May 31, 2024
d6f83aa
Merge pull request #25 from TopRealm/AnYiEEmaster
ZoruaFox May 31, 2024
b9a46d3
chore: update getDomains.ts for wiki-ysy
ZoruaFox Jun 1, 2024
56e3a46
fix(NavbarAvatar): add mediawiki.user as dependencies
ZoruaFox Jun 1, 2024
2039cb2
fix(PurgePageCache): herf
ZoruaFox Jun 2, 2024
54146cb
Merge branch 'master' of https://github.com/TopRealm/YsArchives-Gadgets
ZoruaFox Jun 2, 2024
ef300d9
chore: update NavbarAvatar dependencies
ZoruaFox Jun 2, 2024
87c55c5
test: remove tag
ZoruaFox Jun 2, 2024
3c9572a
chore(PurgePageCache): remove unused code and event listener
ZoruaFox Jun 2, 2024
9f56376
revert(ShowAvatar): invalid
ZoruaFox Jun 2, 2024
f43f551
revert(ShowAvatar): ?
ZoruaFox Jun 2, 2024
40b8a4b
Merge branch 'master' into merge-conflict
ZoruaFox Jun 4, 2024
ead4ff9
chore: dist
ZoruaFox Jun 4, 2024
21b7a7f
Merge pull request #26 from TopRealm/merge-conflict
ZoruaFox Jun 4, 2024
7fc8539
fix: replace wrong method in updateLinks module
ZoruaFox Jun 4, 2024
aabf099
feat: add sidebar icons
ZoruaFox Jun 8, 2024
39bbb94
build: disable some gadgets on default
ZoruaFox Jun 9, 2024
552e2bb
build(GeoLocationReader): remove hidden
ZoruaFox Jun 9, 2024
4994d4f
Merge branch 'AnYiEE:master' into master
ZoruaFox Jun 12, 2024
b89d9e9
fix: update rulesets in CSS files
ZoruaFox Jun 13, 2024
c5e9a92
build: dist
ZoruaFox Jun 13, 2024
f79dc7e
revert: error
ZoruaFox Jun 13, 2024
7fe64cb
refactor: css->less
ZoruaFox Jun 13, 2024
de276a3
refactor(mbox): css→less
ZoruaFox Jun 13, 2024
ad061b3
fix(toolbar): delete specific rules
ZoruaFox Jun 13, 2024
1fbca3e
build: dist
ZoruaFox Jun 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .browserslistrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# 注意:通常情况下不应修改此文件,如需修改,应先阅读 scripts/constant.ts 中`GLOBAL_REQUIRES_ES6`的相关说明
# Note: Refrain from modifying this file under normal circumstances. If modification becomes necessary, refer to the instructions in scripts/constant.ts regarding `GLOBAL_REQUIRES_ES6` before proceeding

fully supports es5 and not dead
# fully supports es5 and not dead
defaults
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ trim_trailing_whitespace = true
[*.{yml,yaml}]
indent_size = 2
indent_style = space

[src/**.svg]
insert_final_newline = false
8 changes: 8 additions & 0 deletions .github/auto_asign_configs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
addReviewers: true

addAssignees: false

numberOfReviewers: 0

reviewers:
- ZoruaFox
12 changes: 12 additions & 0 deletions .github/workflows/auto-assign-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'Auto Assign'
on:
pull_request_target:
types: [opened, synchronize, reopened]

jobs:
add-reviewers:
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/[email protected]
with:
configuration-path: '.github/auto_asign_configs.yml'
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 网站部署

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/[email protected]

- name: 配置 Node.js 环境
uses: actions/[email protected]
with:
node-version: '20'

- name: 安装 pnpm
run: npm install -g pnpm

- name: pnpm 依赖处理
run: pnpm install

- name: 构建dist
run: pnpm run build

- name: 部署
run: pnpm run deploy:directly
env:
CREDENTIALS_JSON: ${{ secrets.JSON_STRING }}
3 changes: 2 additions & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"*.{css,less}": ["prettier --write", "stylelint --allow-empty-input --fix"],
"*.{cjs,mjs,js,jsx,ts,tsx,vue}": ["prettier --write", "eslint --fix"],
"*.json": "tsx --no-deprecation scripts/run.ts --format-json - ",
"!*.{css,less,cjs,mjs,js,jsx,ts,tsx,vue,json}": "prettier --ignore-unknown --write"
"*.svg": "svgo --config=svgo.config.cjs --quiet --input",
"!*.{css,less,cjs,mjs,js,jsx,ts,tsx,vue,json,svg}": "prettier --ignore-unknown --write"
}
14 changes: 14 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#
# This list is used by git-shortlog to fix a few botched name translations
# in the git archive, either because the author's full name was messed up
# and/or not always written the same way, making contributions from the
# same person appearing not to be so or badly displayed. Also allows for
# old email addresses to map to new email addresses.
#
# For format details, see "MAPPING AUTHORS" in "man git-shortlog".
#

AnYi <[email protected]> <[email protected]> <[email protected]>
WaitSpring <[email protected]> <[email protected]> <[email protected]>
Zorua <[email protected]> <[email protected]> <[email protected]>
Blossomstripe <[email protected]>
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist/
*.yml
*.yaml
src/select2/select2.js
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.expand": false,
"explorer.fileNesting.patterns": {
"package.json": ".*cache, .*ignore, .*rc, .editorConfig, .git*, pnpm-lock.yaml, tsconfig.json, LICENSE",
"package.json": ".*cache, .*ignore, .*rc, .editorConfig, .git*, .mailmap, pnpm-lock.yaml, svgo.config.cjs, tsconfig.json, LICENSE",
"readme*": "*.md"
},
"json.schemas": [
Expand Down
39 changes: 19 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
[![NPM version](https://img.shields.io/npm/v/awesome-gadgets.svg)](https://www.npmjs.com/package/awesome-gadgets)
[![Linter](https://github.com/AnYiEE/AwesomeGadgets/actions/workflows/lint.yml/badge.svg)](https://github.com/AnYiEE/AwesomeGadgets/actions/workflows/lint.yml)
[![Linter](https://github.com/TopRealm/YsArchives-Gadgets/actions/workflows/lint.yml/badge.svg)](https://github.com/TopRealm/YsArchives-Gadgets/actions/workflows/lint.yml)

### 简介<br>Introduction
# 有兽档案馆代码库

Awesome Gadgets 是面向 MediaWiki 网站,用以统一存储、管理并编译全站小工具(Gadget)的工具。小工具开发者只需关心小工具本身的代码实现,无需关心其他方面。工具将自动检查语法、编译并部署到网站。<br>_Awesome Gadgets_ is a tool designed specifically for MediaWiki websites, with the goal of centralizing the storage, management, and compilation of all site-wide CSS/JavaScript and their peer pages. Developers of these gadgets can solely focus on implementing the code for their creations without the need to worry about other aspects. The tool will automatically check the syntax, compile, and deploy gadgets to the website.
## 概述 Brief

- 使用 esbuild 编译,通过 Babel 转译现代语法以获得良好的浏览器兼容性<br>Compile using esbuild and transpile modern syntax with Babel for good browser compatibility
- 可以编写 TypeScript 和 Less,支持 CSS 和 Less 模块,可以使用 [jsx-dom](https://www.npmjs.com/package/jsx-dom),可以使用 Vue 组件<br>Support writing files in TypeScript and Less, support CSS/Less modules, [jsx-dom](https://www.npmjs.com/package/jsx-dom) components and Vue components
- 见[文档](docs/how-to-use-jsx-and-tsx-with-jsxdom.md)。<br>See [documentation](docs/how-to-use-jsx-and-tsx-with-jsxdom.md)
- 见[文档](docs/how-to-use-vue.md)。<br>See [documentation](docs/how-to-use-vue.md)
- 支持引用 ResourceLoader 模块<br>Support requiring ResourceLoader built-in modules
- 见[文档](docs/how-to-use-exports-and-require-in-mediawiki.md)。<br>See [documentation](docs/how-to-use-exports-and-require-in-mediawiki.md)
- 支持向多个站点部署并独立控制启用与否<br>Support deploying to multiple sites and independently control whether to enable/disable them
- 自动部署<br>Automatic deployment
- `MediaWiki:Gadgets-definition`
- `MediaWiki:Gadget-section-*`(支持自动转换中文变体)/ (with automatic conversion of Chinese variations)
- `MediaWiki:Gadget-*`(支持自动转换中文变体)/ (with automatic conversion of Chinese variations)
- `MediaWiki:*.{js, css}`
- 自动从网站内删除曾经部署过但现在不再需要的页面<br>Automatically delete pages that have been deployed on the website but are no longer needed
本仓库为有兽档案馆的代码仓库,为网站小工具、用户js/css等核心代码提供协作与部署支持。

### 用法<br>Usage
## 如何贡献 Contributing

见[文档](docs/how-to-build-or-deploy.md)。<br>See [documentation](docs/how-to-build-or-deploy.md).
请阅读[**文档部分**](https://github.com/TopRealm/YsArchives-Gadgets/blob/master/docs/how-to-build-or-deploy.md) ,获取技术细节。

### 最佳实践<br>Best practices
> [!IMPORTANT]
> 开发者注意:
>
> 1. 本站已支持直接使用 ES6 语法,且所有小工具强制开启 ES6 语法检查。
> 2. 若小工具文件夹内同时包含 TS(JS)/LESS(CSS) ,请在对应 JS/TS 文件中声明对应样式表,否则样式表将不会加载。
> 3. 初次 Clone 请自行加载 Node.js, pnpm 等必备工具。
> 4. 请务必参照其他已有小工具格式添加LICENSE文件。
> 5. 请保留默认并发数,不要设置高并发,服务器受不了。

- [QiuwenGadgets](https://github.com/qiuwenbaike/QiuwenGadgets) ([@qiuwenbaike](https://github.com/qiuwenbaike))
## 底层支持 Powered By

本小工具库基于 [**AnYiEE/AwsomeGadgets**](https://github.com/AnYiEE/AwesomeGadgets) 。

> Awesome Gadgets 是面向 MediaWiki 网站,用以统一存储、管理并编译全站小工具(Gadget)的工具。小工具开发者只需关心小工具本身的代码实现,无需关心其他方面。工具将自动检查语法、编译并部署到网站。
218 changes: 218 additions & 0 deletions dist/AccessKeyCheatsheet/AccessKeyCheatsheet.js

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions dist/AddSectionPlus/AddSectionPlus.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

71 changes: 71 additions & 0 deletions dist/AddSectionPlus/AddSectionPlus.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading