Skip to content

有兽档案馆小工具代码库,由AwsomeGadgets提供重构框架

License

Notifications You must be signed in to change notification settings

BaigeiGu/YsArxiv-Gadgets

 
 

Repository files navigation

NPM version Linter

有兽档案馆代码库

概述 Brief

本仓库为有兽档案馆的代码仓库,为网站小工具、用户js/css等核心代码提供协作与部署支持。

底层支持 Base

本小工具库是 AnYiEE/AwsomeGadgets 的分支。

简介 / Introduction

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

About

有兽档案馆小工具代码库,由AwsomeGadgets提供重构框架

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.0%
  • TypeScript 26.6%
  • Less 2.3%
  • CSS 0.1%