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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user