Update default initialization and script import paths

Changed the default initialization of Accepter, GameId, and Game properties in Challenge model. Also modified how the 'autodark.js' and 'player.js' scripts are imported in 'layout.js' to use relative paths for better compatibility.
This commit is contained in:
Anduin
2024-05-19 16:28:52 +00:00
parent ab1fbea2c7
commit 038124e7db
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -7,10 +7,10 @@ public class Challenge(Player creator)
public Player Creator { get; set; } = creator;
public string Message { get; set; } = "A chess room.";
public Player? Accepter { get; set; } = null;
public Player? Accepter { get; set; }
public int? GameId { get; set; } = null;
public Game? Game { get; set; } = null;
public int? GameId { get; set; }
public Game? Game { get; set; }
public RoleRule RoleRule { get; set; } = RoleRule.Random;
@@ -1,5 +1,5 @@
import { autoTheme } from "/node_modules/@aiursoft/autodark.js/dist/esm/autodark.js";
import { getUserName, changeName } from "/scripts/player.js";
import { autoTheme } from "../node_modules/@aiursoft/autodark.js/dist/esm/autodark.js";
import { getUserName, changeName } from "./player.js";
autoTheme();
async function loadName() {