change dir stucture

This commit is contained in:
Zutatensuppe 2021-05-01 00:16:08 +02:00
parent e18b8d3b98
commit 62f8991e11
26 changed files with 8718 additions and 804 deletions

View file

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 320 KiB

After

Width:  |  Height:  |  Size: 320 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 657 KiB

After

Width:  |  Height:  |  Size: 657 KiB

Before After
Before After

9496
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

Before

Width:  |  Height:  |  Size: 148 B

After

Width:  |  Height:  |  Size: 148 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 125 B

After

Width:  |  Height:  |  Size: 125 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 170 B

After

Width:  |  Height:  |  Size: 170 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 140 B

After

Width:  |  Height:  |  Size: 140 B

Before After
Before After

View file

@ -10,5 +10,5 @@ export const DATA_DIR = `${BASE_DIR}/data`
export const UPLOAD_DIR = `${BASE_DIR}/data/uploads`
export const UPLOAD_URL = `/uploads`
export const COMMON_DIR = `${BASE_DIR}/common/`
export const GAME_DIR = `${BASE_DIR}/game/`
export const TEMPLATE_DIR = `${BASE_DIR}/game/templates`
export const PUBLIC_DIR = `${BASE_DIR}/public/`
export const TEMPLATE_DIR = `${BASE_DIR}/templates`

View file

@ -17,7 +17,7 @@ import {
UPLOAD_DIR,
UPLOAD_URL,
COMMON_DIR,
GAME_DIR,
PUBLIC_DIR,
TEMPLATE_DIR,
} from './Dirs.js'
import GameCommon from '../common/GameCommon.js'
@ -37,7 +37,7 @@ const storage = multer.diskStorage({
})
const upload = multer({storage}).single('file');
const statics = express.static(GAME_DIR)
const statics = express.static(PUBLIC_DIR)
const render = async (template, data) => {
const loader = new twing.TwingLoaderFilesystem(TEMPLATE_DIR)