File tree Expand file tree Collapse file tree 6 files changed +9
-8
lines changed
Expand file tree Collapse file tree 6 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 2727 "branches" : [" main" , " master" ]
2828 },
2929 "files" : [
30- " dist" ,
31- " types" ,
30+ " dist" ,
3231 " public" ,
3332 " README.md"
3433 ],
Original file line number Diff line number Diff line change 1+ import Mustache from 'https://cdn.jsdelivr.net/npm/mustache@4.2.0/+esm' ;
2+
13// Function to retrieve the list of maps from the API
24async function getMapsList ( ) {
35 try {
@@ -103,7 +105,6 @@ const CARD_TEMPLATE = `
103105// Load maps from API and render map cards with Mustache
104106async function loadTMJ ( ) {
105107 try {
106- const Mustache = ( await import ( 'https://cdn.jsdelivr.net/npm/mustache@4.2.0/+esm' ) ) . default ;
107108 const maps = await getMapsList ( ) ;
108109
109110 const mapImages = maps
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import express from 'express';
22import * as fs from "node:fs" ;
33import * as path from "node:path" ;
44import Mustache from 'mustache' ;
5- import { getCoreRoot } from '../getCoreRoot.js ' ;
5+ import { getCoreRoot } from '../utils/ getCoreRoot.ts ' ;
66
77export class FrontController {
88 private app : express . Application ;
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ import express from 'express';
22import * as path from "node:path" ;
33import * as fs from "node:fs" ;
44import cors from 'cors' ;
5- import { getCoreRoot } from './getCoreRoot.js ' ;
6- import { FrontController } from './controllers/FrontController.js ' ;
7- import { MapController } from './controllers/MapController.js ' ;
8- import { UploaderController } from './controllers/UploaderController.js ' ;
5+ import { getCoreRoot } from './utils/ getCoreRoot.ts ' ;
6+ import { FrontController } from './controllers/FrontController.ts ' ;
7+ import { MapController } from './controllers/MapController.ts ' ;
8+ import { UploaderController } from './controllers/UploaderController.ts ' ;
99
1010const app = express ( ) ;
1111
File renamed without changes.
Original file line number Diff line number Diff line change 99 " DOM"
1010 ],
1111 "allowJs" : true ,
12+ "allowImportingTsExtensions" : true ,
1213 "moduleResolution" : " Node" ,
1314 "strict" : true ,
1415 "noImplicitAny" : true ,
You can’t perform that action at this time.
0 commit comments