From 2a09213f5db12f54f033248872bdfe33a6ce56c3 Mon Sep 17 00:00:00 2001 From: undefined Date: Sun, 9 Aug 2020 11:41:51 +0800 Subject: [PATCH] login-with-osu --- packages/login-with-osu/README.md | 1 + packages/login-with-osu/package.json | 21 +++++++++++++++++++++ packages/login-with-osu/setting.yaml | 15 +++++++++++++++ packages/login-with-osu/tsconfig.json | 19 +++++++++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 packages/login-with-osu/README.md create mode 100644 packages/login-with-osu/package.json create mode 100644 packages/login-with-osu/setting.yaml create mode 100644 packages/login-with-osu/tsconfig.json diff --git a/packages/login-with-osu/README.md b/packages/login-with-osu/README.md new file mode 100644 index 000000000..795f2ffad --- /dev/null +++ b/packages/login-with-osu/README.md @@ -0,0 +1 @@ +# Login-With-Osu diff --git a/packages/login-with-osu/package.json b/packages/login-with-osu/package.json new file mode 100644 index 000000000..110532027 --- /dev/null +++ b/packages/login-with-osu/package.json @@ -0,0 +1,21 @@ +{ + "name": "@hydrooj/login-with-osu", + "version": "0.0.1", + "main": "package.json", + "repository": "git@github.com:hydro-dev/Hydro.git", + "author": "undefined ", + "license": "MIT", + "scripts": { + "lint": "eslint lib.ts --fix", + "build": "tsc" + }, + "devDependencies": { + "@types/superagent": "^4.1.8", + "@types/superagent-proxy": "^2.0.0" + }, + "dependencies": { + "hydrooj": "^2.12.1", + "superagent": "^5.3.1", + "superagent-proxy": "^2.0.0" + } +} \ No newline at end of file diff --git a/packages/login-with-osu/setting.yaml b/packages/login-with-osu/setting.yaml new file mode 100644 index 000000000..025648eee --- /dev/null +++ b/packages/login-with-osu/setting.yaml @@ -0,0 +1,15 @@ +id: + type: text + category: system + desc: Osu OAuth AppID + name: id +secret: + type: text + category: system + desc: Osu OAuth Secret + name: secret +proxy: + type: text + category: system + desc: Osu OAuth Proxy + name: proxy \ No newline at end of file diff --git a/packages/login-with-osu/tsconfig.json b/packages/login-with-osu/tsconfig.json new file mode 100644 index 000000000..aa7d73857 --- /dev/null +++ b/packages/login-with-osu/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "target": "es2019", + "module": "commonjs", + "esModuleInterop": true, + "moduleResolution": "node", + "declaration": true, + "sourceMap": true, + "composite": true, + "strictBindCallApply": true, + "experimentalDecorators": true, + "outDir": ".", + "rootDir": "." + }, + "include": [ + "*.ts" + ], + "exclude": [] +} \ No newline at end of file