File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change
1
+ const tunasync = require ( "./tunasync" ) ;
2
+
3
+ module . exports = async function ( siteUrl ) {
4
+ const site = await ( await fetch ( siteUrl ) ) . json ( ) ;
5
+ const mirrors = await tunasync ( "https://mirrors.nwafu.edu.cn/api/mirrorz/jobs" ) ;
6
+
7
+ return {
8
+ site,
9
+ info : [ ] ,
10
+ mirrors,
11
+ }
12
+ } ;
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ const geekpie = require("./geekpie");
29
29
const qlut = require ( "./qlut" ) ;
30
30
const nyist = require ( "./nyist" ) ;
31
31
const jcut = require ( "./jcut" ) ;
32
+ const nwafu = require ( "./nwafu" ) ;
32
33
33
34
const config = require ( './config.json' )
34
35
@@ -68,4 +69,5 @@ module.exports = {
68
69
"qlut" : async ( ) => lint ( await qlut ( site ( "qlut" ) ) ) ,
69
70
"nyist" : async ( ) => lint ( await nyist ( ) ) ,
70
71
"jcut" : async ( ) => lint ( await jcut ( site ( "jcut" ) ) ) ,
72
+ "nwafu" : async ( ) => lint ( await nwafu ( site ( "nwafu" ) ) ) ,
71
73
} ;
You can’t perform that action at this time.
0 commit comments