mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-07-30 09:39:30 +00:00
typo fix: instace -> instance
This commit is contained in:
committed by
MathMan05
parent
a00435c9f6
commit
ae81c4ed55
+2
-2
@@ -130,7 +130,7 @@ const app = http.createServer(async (req, res) => {
|
||||
sendFile(filePath);
|
||||
});
|
||||
|
||||
export type instace = {
|
||||
export type instance = {
|
||||
name: string;
|
||||
description?: string;
|
||||
descriptionLong?: string;
|
||||
@@ -157,7 +157,7 @@ export type instace = {
|
||||
};
|
||||
const instances = JSON.parse(
|
||||
readFileSync(process.env.JANK_INSTANCES_PATH || __dirname + "/webpage/instances.json").toString(),
|
||||
) as instace[];
|
||||
) as instance[];
|
||||
|
||||
const instanceNames = new Map<string, Instance>();
|
||||
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
import {instace} from "./index.js";
|
||||
import {instance} from "./index.js";
|
||||
|
||||
interface ApiUrls {
|
||||
api: string;
|
||||
@@ -9,7 +9,7 @@ interface ApiUrls {
|
||||
|
||||
export async function getApiUrls(
|
||||
url: string,
|
||||
instances: instace[],
|
||||
instances: instance[],
|
||||
check = true,
|
||||
): Promise<ApiUrls | null> {
|
||||
if (!url.endsWith("/")) {
|
||||
|
||||
@@ -1142,10 +1142,10 @@ class Options implements OptionsElement<void> {
|
||||
onchange?: InstancePicker["onchange"],
|
||||
{button, instance}: {button?: HTMLButtonElement; instance?: string} = {},
|
||||
) {
|
||||
const instacePicker = new InstancePicker(this, onchange, button, instance);
|
||||
this.options.push(instacePicker);
|
||||
this.generate(instacePicker);
|
||||
return instacePicker;
|
||||
const instancePicker = new InstancePicker(this, onchange, button, instance);
|
||||
this.options.push(instancePicker);
|
||||
this.generate(instancePicker);
|
||||
return instancePicker;
|
||||
}
|
||||
returnFromSub() {
|
||||
this.subOptions = undefined;
|
||||
|
||||
Reference in New Issue
Block a user