Giter Club home page Giter Club logo

checheyun's Introduction

👋 Hi there~

I'm Lionad, a new kind.

  • ⚒️ Langs: Vue Stack & TypeScript(main)
  • ✏️ OS: MacOS + Windows
  • ⚖️ Belief: Web + Broswer > App
  • 🎨 Hobbies: Reading(42) & Guitar(fingerstyle)
  • 👾 Games: Rougeli*e & Escape From Tarkov

lionad-art 1806234223 132yse yisar

checheyun's People

Contributors

dependabot[bot] avatar lionad-morotar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

guanrui1 tz61

checheyun's Issues

自动化日推收录

自动爬取一定时段内QQ群里的音乐分享链接(主要用来实现推荐自动化爬取和收录)时段一般是一天

歌单内歌曲排序功能

需求:歌单内歌曲排序功能
来源:Fox
流程:Fork 项目 -> 填写 Secret -> 编辑配置文件,填写歌单 ID 和排序方式 -> Run Github Action
问题:项目目前依赖本地数据库作为查询结果缓存...
其它:关于排序方法,不同方法之间没有覆盖关系,可能交叉,

  1. 按专辑时间顺序
  2. 专辑内歌曲顺序
  3. 歌手字母顺序

【增订:2021年1月7日】

进度:重写排序函数,以支持更高级的配置项,比方说,这个歌单的排序规则如下:

  1. 按专辑的歌手名称排序,由于专辑歌手可能有多个,如果有歌手叫"CLOCKWORKS TRACER"则优先以此歌手排序
  2. 保证上一条顺序不变的情况下,继续按专辑发布日期排序
  3. 保证上一条顺序不变的情况下,继续按歌曲在对应专辑中的顺序排序

配置项如下:

[
  'albumauthor-has(CLOCKWORKS TRACER)',
  'albumpubtime',
  'albumsongs'
],

此外,配置项的参数“-has()”做了一些限制,比方说没有办法同时使用两个"-has()",因为"-has()"会将排序函数的入参转换成布尔类型,连续转换两次是没有必要的。不过其它的参数仍然可以任意随意组合,如"name-dec-has(Lionad)-dec",两个"-dec"会"负负得正"。

完整的配置项,及配置项说明,见 sort.config.js


【增订:2021年1月6日】

进度:重写排序函数,支持多种排序方法并易于扩展,比方说,这个歌单的排序规则如下:

  1. 先按曲子别名排序(有别名的往下放)
  2. 保证上一条顺序不变的情况下,继续按专辑发布日期排序
  3. 保证上一条顺序不变的情况下,继续按歌曲时长排序

最重要的是,配置十分简单,以下简要说明,详情见 sort.config.js 文件:

[
  'alia',
  'translate',
  'publishtime',
  'time'
]

其它:

  1. 代码运行起来有点麻烦,看看能不能改为无需依赖缓存运行的版本
  2. 通过 Github Action 运行不太好,如果跑的人多容易封 IP
  3. 可暴露更多元数据排序方法,以达成如“按照歌曲名称长度排序”这种排序方法

【增订:2021年1月5日】

进度:按照歌曲名排序
其它:测试按照歌曲名排序,其它排序方式(和可能交叉的排序方式)待补充

【功能】歌单排序

需求:歌单排序功能
来源:Fox
背景:每创建一个新类型的歌单,就需要重新拖拽确认顺序。如果账号内几百个歌单,那这手动排序过程属实难过。
目标:可以先按歌单内歌曲排序实现一个简单的排序功能,至于怎么交互,待定...

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.