mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-09-12 10:35:41 -05:00
Use strict equality in TricolorBox, add async keyword to CoopUpdater/GearUpdater getData() for consistency, and add missing HMR accept for useCoopGearStore. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
29 lines
458 B
JavaScript
29 lines
458 B
JavaScript
import DataUpdater from './DataUpdater.mjs';
|
|
|
|
export default class CoopUpdater extends DataUpdater
|
|
{
|
|
name = 'Co-Op';
|
|
filename = 'coop';
|
|
|
|
imagePaths = [
|
|
'$..image.url',
|
|
];
|
|
|
|
derivedIds = [
|
|
'$..monthlyGear',
|
|
];
|
|
|
|
localizations = [
|
|
{
|
|
key: 'gear',
|
|
nodes: '$..monthlyGear',
|
|
id: '__splatoon3ink_id',
|
|
values: 'name',
|
|
},
|
|
];
|
|
|
|
async getData(locale) {
|
|
return this.splatnet(locale).getCoopHistoryData();
|
|
}
|
|
}
|