Skip to content
Merged

Next #298

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 7 additions & 5 deletions public/oauth-popup-complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ <h1 id="oauth-title">Completing sign-in</h1>
}
}

const encodedResult = new URL(window.location.href).searchParams.get(resultParam);
const completionUrl = new URL(window.location.href);
const hashParams = new URLSearchParams(completionUrl.hash.startsWith('#') ? completionUrl.hash.slice(1) : completionUrl.hash);
const encodedResult = completionUrl.searchParams.get(resultParam) || hashParams.get(resultParam);
let result = null;

if (encodedResult) {
Expand Down Expand Up @@ -97,12 +99,12 @@ <h1 id="oauth-title">Completing sign-in</h1>
setText(messageEl, errorMessage);
}

if (window.opener && !window.opener.closed) {
try {
try {
if (window.opener) {
window.opener.postMessage(result, window.location.origin);
} catch {
// Ignore postMessage failures and leave the manual close fallback visible.
}
} catch {
// Ignore postMessage failures and leave the manual close fallback visible.
}

window.setTimeout(function () {
Expand Down
35 changes: 3 additions & 32 deletions scripts/benchmark-entity-load.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,6 @@
/*
* Copyright (C) 2026 The MegaMek Team. All Rights Reserved.
*
* This file is part of MekBay.
*
* MekBay is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License (GPL),
* version 3 or (at your option) any later version,
* as published by the Free Software Foundation.
*
* MekBay is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* A copy of the GPL should have been included with this project;
* if not, see <https://www.gnu.org/licenses/>.
*
* NOTICE: The MegaMek organization is a non-profit group of volunteers
* creating free software for the BattleTech community.
*
* MechWarrior, BattleMech, `Mech and AeroTech are registered trademarks
* of The Topps Company, Inc. All Rights Reserved.
*
* Catalyst Game Labs and the Catalyst Game Labs logo are trademarks of
* InMediaRes Productions, LLC.
*
* MechWarrior Copyright Microsoft Corporation. MegaMek was created under
* Microsoft's "Game Content Usage Rules"
* <https://www.xbox.com/en-US/developers/rules> and it is not endorsed by or
* affiliated with Microsoft.
*/
// Copyright (C) 2026 The MegaMek Team
// SPDX-License-Identifier: GPL-3.0-or-later
// Author: Drake

/**
* Entity Load Benchmark Script
Expand Down
6 changes: 0 additions & 6 deletions scripts/bfs-generator.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/*
* Copyright (C) 2026 The MegaMek Team. All Rights Reserved.
*
* This file is part of MekBay.
*/

import assert from 'node:assert/strict';
import fs from 'node:fs';
import os from 'node:os';
Expand Down
35 changes: 3 additions & 32 deletions scripts/compare-entity-output.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,6 @@
/*
* Copyright (C) 2026 The MegaMek Team. All Rights Reserved.
*
* This file is part of MekBay.
*
* MekBay is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License (GPL),
* version 3 or (at your option) any later version,
* as published by the Free Software Foundation.
*
* MekBay is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* A copy of the GPL should have been included with this project;
* if not, see <https://www.gnu.org/licenses/>.
*
* NOTICE: The MegaMek organization is a non-profit group of volunteers
* creating free software for the BattleTech community.
*
* MechWarrior, BattleMech, `Mech and AeroTech are registered trademarks
* of The Topps Company, Inc. All Rights Reserved.
*
* Catalyst Game Labs and the Catalyst Game Labs logo are trademarks of
* InMediaRes Productions, LLC.
*
* MechWarrior Copyright Microsoft Corporation. MegaMek was created under
* Microsoft's "Game Content Usage Rules"
* <https://www.xbox.com/en-US/developers/rules> and it is not endorsed by or
* affiliated with Microsoft.
*/
// Copyright (C) 2026 The MegaMek Team
// SPDX-License-Identifier: GPL-3.0-or-later
// Author: Drake

/**
* Entity Output Comparison Script
Expand Down
18 changes: 3 additions & 15 deletions scripts/compare-unit-fixtures.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
/*
* Copyright (C) 2026 The MegaMek Team. All Rights Reserved.
*
* This file is part of MekBay.
*
* MekBay is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License (GPL),
* version 3 or (at your option) any later version,
* as published by the Free Software Foundation.
*
* MekBay is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*/
// Copyright (C) 2026 The MegaMek Team
// SPDX-License-Identifier: GPL-3.0-or-later
// Author: Drake

/**
* Compares Battle Value (BV) and Alpha Strike Point Value (PV) between two
Expand Down
35 changes: 3 additions & 32 deletions scripts/compare-unit-output.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,6 @@
/*
* Copyright (C) 2026 The MegaMek Team. All Rights Reserved.
*
* This file is part of MekBay.
*
* MekBay is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License (GPL),
* version 3 or (at your option) any later version,
* as published by the Free Software Foundation.
*
* MekBay is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* A copy of the GPL should have been included with this project;
* if not, see <https://www.gnu.org/licenses/>.
*
* NOTICE: The MegaMek organization is a non-profit group of volunteers
* creating free software for the BattleTech community.
*
* MechWarrior, BattleMech, `Mech and AeroTech are registered trademarks
* of The Topps Company, Inc. All Rights Reserved.
*
* Catalyst Game Labs and the Catalyst Game Labs logo are trademarks of
* InMediaRes Productions, LLC.
*
* MechWarrior Copyright Microsoft Corporation. MegaMek was created under
* Microsoft's "Game Content Usage Rules"
* <https://www.xbox.com/en-US/developers/rules> and it is not endorsed by or
* affiliated with Microsoft.
*/
// Copyright (C) 2026 The MegaMek Team
// SPDX-License-Identifier: GPL-3.0-or-later
// Author: Drake

/**
* Unit Metadata Comparison Script
Expand Down
6 changes: 0 additions & 6 deletions scripts/generate-force-name-words.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/*
* Copyright (C) 2026 The MegaMek Team. All Rights Reserved.
*
* This file is part of MekBay.
*/

import assert from 'node:assert/strict';
import * as fs from 'node:fs';
import * as os from 'node:os';
Expand Down
36 changes: 4 additions & 32 deletions scripts/generate-force-name-words.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,7 @@
/*
* Copyright (C) 2026 The MegaMek Team. All Rights Reserved.
*
* This file is part of MekBay.
*
* MekBay is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License (GPL),
* version 3 or (at your option) any later version,
* as published by the Free Software Foundation.
*
* MekBay is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* A copy of the GPL should have been included with this project;
* if not, see <https://www.gnu.org/licenses/>.
*
* NOTICE: The MegaMek organization is a non-profit group of volunteers
* creating free software for the BattleTech community.
*
* MechWarrior, BattleMech, `Mech and AeroTech are registered trademarks
* of The Topps Company, Inc. All Rights Reserved.
*
* Catalyst Game Labs and the Catalyst Game Labs logo are trademarks of
* InMediaRes Productions, LLC.
*
* MechWarrior Copyright Microsoft Corporation. MegaMek was created under
* Microsoft's "Game Content Usage Rules"
* <https://www.xbox.com/en-US/developers/rules> and it is not endorsed by or
* affiliated with Microsoft.
*/
// Copyright (C) 2026 The MegaMek Team
// SPDX-License-Identifier: GPL-3.0-or-later
// Author: Drake

import * as fs from 'node:fs';
import * as path from 'node:path';
import * as yaml from 'js-yaml';
Expand Down
35 changes: 3 additions & 32 deletions scripts/generate-megamek-rulesets.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,6 @@
/*
* Copyright (C) 2026 The MegaMek Team. All Rights Reserved.
*
* This file is part of MekBay.
*
* MekBay is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License (GPL),
* version 3 or (at your option) any later version,
* as published by the Free Software Foundation.
*
* MekBay is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* A copy of the GPL should have been included with this project;
* if not, see <https://www.gnu.org/licenses/>.
*
* NOTICE: The MegaMek organization is a non-profit group of volunteers
* creating free software for the BattleTech community.
*
* MechWarrior, BattleMech, `Mech and AeroTech are registered trademarks
* of The Topps Company, Inc. All Rights Reserved.
*
* Catalyst Game Labs and the Catalyst Game Labs logo are trademarks of
* InMediaRes Productions, LLC.
*
* MechWarrior Copyright Microsoft Corporation. MegaMek was created under
* Microsoft's "Game Content Usage Rules"
* <https://www.xbox.com/en-US/developers/rules> and it is not endorsed by or
* affiliated with Microsoft.
*/
// Copyright (C) 2026 The MegaMek Team
// SPDX-License-Identifier: GPL-3.0-or-later
// Author: Drake

import fs from 'node:fs';
import os from 'node:os';
Expand Down
35 changes: 3 additions & 32 deletions scripts/generate-sarna-page-titles.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,6 @@
/*
* Copyright (C) 2026 The MegaMek Team. All Rights Reserved.
*
* This file is part of MekBay.
*
* MekBay is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License (GPL),
* version 3 or (at your option) any later version,
* as published by the Free Software Foundation.
*
* MekBay is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* A copy of the GPL should have been included with this project;
* if not, see <https://www.gnu.org/licenses/>.
*
* NOTICE: The MegaMek organization is a non-profit group of volunteers
* creating free software for the BattleTech community.
*
* MechWarrior, BattleMech, `Mech and AeroTech are registered trademarks
* of The Topps Company, Inc. All Rights Reserved.
*
* Catalyst Game Labs and the Catalyst Game Labs logo are trademarks of
* InMediaRes Productions, LLC.
*
* MechWarrior Copyright Microsoft Corporation. MegaMek was created under
* Microsoft's "Game Content Usage Rules"
* <https://www.xbox.com/en-US/developers/rules> and it is not endorsed by or
* affiliated with Microsoft.
*/
// Copyright (C) 2026 The MegaMek Team
// SPDX-License-Identifier: GPL-3.0-or-later
// Author: Drake

import * as fs from 'fs';
import * as os from 'os';
Expand Down
12 changes: 3 additions & 9 deletions scripts/quirk-fixture.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
/*
* Copyright (C) 2026 The MegaMek Team. All Rights Reserved.
*
* This file is part of MekBay.
*
* MekBay is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License (GPL),
* version 3 or (at your option) any later version.
*/
// Copyright (C) 2026 The MegaMek Team
// SPDX-License-Identifier: GPL-3.0-or-later
// Author: Drake

import * as fs from 'fs';
import * as path from 'path';
Expand Down
8 changes: 3 additions & 5 deletions scripts/unit-report-oracles.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/*
* Copyright (C) 2026 The MegaMek Team. All Rights Reserved.
*
* This file is part of MekBay and is licensed under GPL-3.0-or-later.
*/
// Copyright (C) 2026 The MegaMek Team
// SPDX-License-Identifier: GPL-3.0-or-later
// Author: Drake

import * as fs from 'node:fs';
import * as path from 'node:path';
Expand Down
35 changes: 3 additions & 32 deletions scripts/verify-entity-roundtrip.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,6 @@
/*
* Copyright (C) 2026 The MegaMek Team. All Rights Reserved.
*
* This file is part of MekBay.
*
* MekBay is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License (GPL),
* version 3 or (at your option) any later version,
* as published by the Free Software Foundation.
*
* MekBay is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* A copy of the GPL should have been included with this project;
* if not, see <https://www.gnu.org/licenses/>.
*
* NOTICE: The MegaMek organization is a non-profit group of volunteers
* creating free software for the BattleTech community.
*
* MechWarrior, BattleMech, `Mech and AeroTech are registered trademarks
* of The Topps Company, Inc. All Rights Reserved.
*
* Catalyst Game Labs and the Catalyst Game Labs logo are trademarks of
* InMediaRes Productions, LLC.
*
* MechWarrior Copyright Microsoft Corporation. MegaMek was created under
* Microsoft's "Game Content Usage Rules"
* <https://www.xbox.com/en-US/developers/rules> and it is not endorsed by or
* affiliated with Microsoft.
*/
// Copyright (C) 2026 The MegaMek Team
// SPDX-License-Identifier: GPL-3.0-or-later
// Author: Drake

/**
* Entity System Generated-output Idempotence Verification Script
Expand Down
Loading
Loading