Skip to content

Commit

Permalink
Update: New Gaming SSO
Browse files Browse the repository at this point in the history
Co-authored-by: Kokko904 <[email protected]>
  • Loading branch information
Hayao0819 and DaiChi904 committed Apr 4, 2024
1 parent 3b9c16f commit bbb1c50
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
18 changes: 13 additions & 5 deletions lib/class/SSO/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,21 @@ export const SSO = new GundaiWebSite<{
export default SSO;

SSO.rainbow.enable = function () {
this.bg.apply(".input_form");
//this.text.apply("#login_button"); // ログインボタン
this.text.apply("a"); // リンク
this.text.apply(".product"); // タイトル
//this.text.apply(".login_comment");

this.bg.apply(".login__main"); // ログイン画面

this.bg.apply("#login_button");

changeQueryInnerHTML(".product", "群馬大学ゲーミングサインオンシステム");
changeQueryInnerHTML("#login_button", "→ ログイン ←");
};
SSO.options.isAuto2FAEnabled = async (): Promise<boolean> => {
const isAuto2FAEnabled = await SSO.storage.get("auto-2fa");
return isAuto2FAEnabled;
};

SSO.options.isAuto2FAEnabled = () => SSO.storage.get("auto-2fa");

SSO.options.enableAuto2FA = () => {
SSO.storage.getBool("auto-2fa").then((isAuto2FAEnabled) => {
if (isAuto2FAEnabled) {
Expand Down
21 changes: 10 additions & 11 deletions src/styles/sso.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
[data-gaming_gundai="true"] {
.header_column,
.input_column,
.input_form th,
#username_id_input,
#password_input {
background: transparent !important;
#login_button {
color: black;
}

#username_id_input,
#password_input {
border: 1px solid #ccc !important;
border-radius: 5px !important;
padding: 5px !important;
.login__main,
.login__back {
background-color: #e6e6e6;
}

.login__main {
border-radius: 20px;
box-shadow: 10px 5px 5px gray;
}
}

0 comments on commit bbb1c50

Please sign in to comment.