Code Monkey home page Code Monkey logo

luogu-drawer's Introduction

luogu-drawer

基于 Node.js,实现自动维护您的图片

Usage

yarn install

## 开发版本,支持热重载
yarn run dev

## 通过 PM2 防止意外崩溃
## 不要在非服务器上运行该命令
yarn run start

Doc

users.json

id 仅仅是为了方便出错时候显示

cookie 必填, 用户的Cookie

[
  {
    "id": "xxx",
    "cookie": "__client_id=xxx; _uid=xxx;"
  },
  {
    "id": "xxx",
    "cookie": "__client_id=xxx; _uid=xxx;"
  }
]

config.json

  • data 数据数组,加载 data 文件夹对应的 json 文件

    • name 必填 json 文件名字

    • x x轴偏移量

    • y y轴偏移量

  • checkDuration 重新加载地图时间间隔,推荐 20s

  • postDuration 每次post时间间隔,推荐 15s

{
  "data": [
    {
      "name": "bread",
      "x": 736,
      "y": 336
    }
  ],
  "checkDuration": 500,
  "postDuration": 30
}

Scripts

scripts 文件夹下提供了基本的 python 脚本

  • main.py 将图片根据洛谷提供的键值,根据最小色差进行转换

lib

src 文件夹下有几个基本的功能

  • corstodo 将前端支持跨域

  • drawertodo 提供登陆和提交cookie

  • posterfinished 维护您洛谷绘板的图片

LICENSE

this project follow MIT LICENSE

luogu-drawer's People

Contributors

himself65 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.