mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
update interface
This commit is contained in:
1 parent
03d199fe9d
commit
aa93512298
3 files changed
+6
-10
No files matched your search
+2
-6
@@ -64,10 +64,6 @@ fs.writeFileSync(path.resolve(process.cwd(), 'tsconfig.json'), JSON.stringify(co
|
||||
if (argv.watch) {
|
||||
child.execSync('./node_modules/.bin/tsc -b --watch', { stdio: 'inherit' });
|
||||
} else {
|
||||
let result;
|
||||
try {
|
||||
result = child.execSync('./node_modules/.bin/tsc -b', { stdio: 'inherit' });
|
||||
} catch (e) {
|
||||
result = child.execSync('./node_modules/.bin/tsc -b', { stdio: 'inherit' });
|
||||
}
|
||||
child.execSync('cd packages/hydrooj && yarn build', { stdio: 'inherit' });
|
||||
child.execSync('./node_modules/.bin/tsc -b', { stdio: 'inherit' });
|
||||
}
|
||||
+2
-2
@@ -12,7 +12,7 @@
|
||||
"jest": "node build/jest",
|
||||
"debug": "node --async-stack-traces --trace-deprecation --enable-source-maps build/start --debug",
|
||||
"start": "node build/start",
|
||||
"clean": "zsh -c \"rm -r tsconfig.build.tsbuildinfo ./packages/*/tsconfig.tsbuildinfo ./packages/*/dist ./.coverage\""
|
||||
"clean": "zsh -c \"rm -rf tsconfig.build.tsbuildinfo ./packages/*/tsconfig.tsbuildinfo ./packages/*/dist ./.coverage\""
|
||||
},
|
||||
"version": "1.0.0",
|
||||
"license": "AGPL-3.0-only",
|
||||
@@ -41,4 +41,4 @@
|
||||
"fs-extra": "^9.0.1",
|
||||
"yargs": "^16.0.3"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -76,8 +76,8 @@ export interface User extends Dictionary<any> {
|
||||
role: string,
|
||||
regip: () => string,
|
||||
loginip: () => string,
|
||||
hasPerm: (perm: bigint) => boolean,
|
||||
hasPriv: (priv: number) => boolean,
|
||||
hasPerm: (...perm: bigint[]) => boolean,
|
||||
hasPriv: (...priv: number[]) => boolean,
|
||||
checkPassword: (password: string) => void,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user