转到文件
WaitSpring e2153ac0cd
fix(RightTopicons): remove (#1337)
* fix(RightTopicons): remove
2024-05-04 19:02:13 +08:00
.github/workflows ci: update dependencies 2024-02-20 22:36:23 +08:00
.husky build: automatically install dependencies after merging branches 2024-04-30 13:36:47 +08:00
.vscode Merge branch 'master' of https://github.com/AnYiEE/AwesomeGadgets 2024-03-02 06:15:58 +00:00
dist fix(RightTopicons): remove (#1337) 2024-05-04 19:02:13 +08:00
docs docs: fix typo 2024-04-08 19:13:48 +08:00
patches build: update dependencies 2024-04-30 13:23:38 +08:00
scripts chore: merge branch from AnYiEE/AwesomeGadgets 2024-04-30 13:45:54 +08:00
src fix(RightTopicons): remove (#1337) 2024-05-04 19:02:13 +08:00
.browserslistrc chore: merge branch from AnYiEE/AwesomeGadgets 2023-12-01 00:39:20 +08:00
.commitlintrc chore: merge branch from AnYiEE/AwesomeGadgets 2023-10-29 17:56:45 +08:00
.editorconfig chore: merge branch from AnYiEE/AwesomeGadgets 2024-02-20 23:55:22 +08:00
.eslintignore build: remove unnecessary ignore rules (#177) 2023-11-07 00:38:20 +08:00
.eslintrc build: update eslint rules 2024-02-22 12:36:54 +08:00
.gitattributes build: ensure that text files have lf line endings 2023-11-07 02:21:32 +08:00
.gitignore fix(deploy): fail to generate deployment targets 2024-01-13 23:12:20 +08:00
.lintstagedrc chore: merge branch from AnYiEE/AwesomeGadgets 2024-02-20 13:37:38 +08:00
.mailmap refactor(ShortURL): use i18n (#604) 2023-12-03 16:52:06 +08:00
.postcssrc build: add esbuild/postcss plugins 2023-11-11 04:24:35 +08:00
.prettierignore Revert "refactor(select2): use select2 from npm package instead of source code (#857)" (#991) 2024-02-05 20:25:06 +08:00
.prettierrc build: update prettier rules 2024-01-18 15:12:45 +08:00
.stylelintignore build: update stylelint rules 2024-01-13 23:28:59 +08:00
.stylelintrc build: update stylelint rules 2024-02-21 19:29:32 +08:00
CODE_OF_CONDUCT.md docs: add CoC notice and Security Policy 2023-10-26 19:24:33 +08:00
LICENSE fix: spelling errors 2024-02-07 12:25:46 +08:00
README.md chore: merge branch from AnYiEE/AwesomeGadgets 2024-02-20 23:55:22 +08:00
SECURITY.md docs: add CoC notice and Security Policy 2023-10-26 19:24:33 +08:00
package.json chore: merge branch from AnYiEE/AwesomeGadgets 2024-04-30 13:45:54 +08:00
pnpm-lock.yaml chore: merge branch from AnYiEE/AwesomeGadgets 2024-04-30 13:45:54 +08:00
svgo.config.cjs chore: update svgo.config.cjs; add SVGO to `format` script; optimize SVG (#193) 2023-11-07 17:08:36 +08:00
tsconfig.json feat: support for using Vue components 2024-02-20 12:51:53 +08:00

README.md

NPM version Linter

Qiuwen Gadgets

简介
Introduction

本代码库为求闻百科界面样式界面脚本小工具代码库。相关样式表及 JavaScript 优化了求闻百科访客及编者的用户体验,并且为求闻百科用户提供了大量执行常见维护任务的方法。

致谢
Acknowledgement

求闻百科小工具库是基于 Awesome Gadgets 打造的。

Awesome Gadgets 是面向 MediaWiki 网站,用以统一存储、管理并编译全站小工具Gadget的工具。小工具开发者只需关心小工具本身的代码实现,无需关心其他方面。工具将自动检查语法、编译并部署到网站。
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.

  • 使用 esbuild 编译,通过 Babel 转译现代语法以获得良好的浏览器兼容性
    Compile using esbuild and transpile modern syntax with Babel for good browser compatibility
  • 可以编写 TypeScript 和 Less,支持 CSS 和 Less 模块,可以使用 jsx-dom,可以使用 Vue 组件
    Support writing files in TypeScript and Less, support CSS/Less modules, jsx-dom components and Vue components
  • 支持引用 ResourceLoader 模块
    Support requiring ResourceLoader built-in modules
  • 支持向多个站点部署并独立控制启用与否
    Support deploying to multiple sites and independently control whether to enable/disable them
  • 自动部署
    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}
  • 自动从网站内删除曾经部署过但现在不再需要的页面
    Automatically delete pages that have been deployed on the website but are no longer needed

用法
Usage

文档
See documentation.

最佳实践
Best practices