Browse Source

Fix admin.config error

master
Menci 6 years ago
parent
commit
dddc8426cc
  1. 19
      modules/admin.js

19
modules/admin.js

@ -60,24 +60,7 @@ let configItems = {
'page.ranklist': { name: '排行榜', type: Number }, 'page.ranklist': { name: '排行榜', type: Number },
'page.discussion': { name: '讨论', type: Number }, 'page.discussion': { name: '讨论', type: Number },
'page.article_comment': { name: '评论', type: Number }, 'page.article_comment': { name: '评论', type: Number },
'page.contest': { name: '比赛', type: Number }, 'page.contest': { name: '比赛', type: Number }
'编译器版本': null,
'languages.cpp.version': { name: 'C++', type: String },
'languages.cpp11.version': { name: 'C++11', type: String },
'languages.csharp.version': { name: 'C#', type: String },
'languages.c.version': { name: 'C', type: String },
'languages.vala.version': { name: 'Vala', type: String },
'languages.java.version': { name: 'Java', type: String },
'languages.pascal.version': { name: 'Pascal', type: String },
'languages.lua.version': { name: 'Lua', type: String },
'languages.luajit.version': { name: 'LuaJIT', type: String },
'languages.python2.version': { name: 'Python 2', type: String },
'languages.python3.version': { name: 'Python 3', type: String },
'languages.nodejs.version': { name: 'Node.js', type: String },
'languages.ruby.version': { name: 'Ruby', type: String },
'languages.haskell.version': { name: 'Haskell', type: String },
'languages.ocaml.version': { name: 'OCaml', type: String },
'languages.vbnet.version': { name: 'Visual Basic', type: String }
}; };
app.get('/admin/config', async (req, res) => { app.get('/admin/config', async (req, res) => {

Loading…
Cancel
Save