From ddbf7a026c0c46b8c18c6858ed91008bc76ee4f6 Mon Sep 17 00:00:00 2001 From: ajuvercr Date: Sat, 18 Apr 2020 11:41:07 +0200 Subject: [PATCH] refactor to src folder --- frontend/www/bootstrap.js | 2 +- frontend/www/{ => src}/games.ts | 0 frontend/www/{ => src}/index.js | 0 frontend/www/{ => src}/index.ts | 1 + frontend/www/{ => src}/webgl/buffer.ts | 0 frontend/www/{ => src}/webgl/index.ts | 0 frontend/www/{ => src}/webgl/instance.ts | 0 frontend/www/{ => src}/webgl/renderer.ts | 0 frontend/www/{ => src}/webgl/shader.ts | 0 frontend/www/{ => src}/webgl/text.ts | 0 frontend/www/{ => src}/webgl/texture.ts | 0 frontend/www/{ => src}/webgl/util.ts | 0 frontend/www/{ => src}/webgl/vertexArray.ts | 0 frontend/www/{ => src}/webgl/vertexBufferLayout.ts | 0 frontend/www/{ => src}/webgl/webgl-utils.d.ts | 0 frontend/www/{ => src}/webgl/webgl-utils.js | 0 16 files changed, 2 insertions(+), 1 deletion(-) rename frontend/www/{ => src}/games.ts (100%) rename frontend/www/{ => src}/index.js (100%) rename frontend/www/{ => src}/index.ts (99%) rename frontend/www/{ => src}/webgl/buffer.ts (100%) rename frontend/www/{ => src}/webgl/index.ts (100%) rename frontend/www/{ => src}/webgl/instance.ts (100%) rename frontend/www/{ => src}/webgl/renderer.ts (100%) rename frontend/www/{ => src}/webgl/shader.ts (100%) rename frontend/www/{ => src}/webgl/text.ts (100%) rename frontend/www/{ => src}/webgl/texture.ts (100%) rename frontend/www/{ => src}/webgl/util.ts (100%) rename frontend/www/{ => src}/webgl/vertexArray.ts (100%) rename frontend/www/{ => src}/webgl/vertexBufferLayout.ts (100%) rename frontend/www/{ => src}/webgl/webgl-utils.d.ts (100%) rename frontend/www/{ => src}/webgl/webgl-utils.js (100%) diff --git a/frontend/www/bootstrap.js b/frontend/www/bootstrap.js index 3a4b1f6..08004fe 100644 --- a/frontend/www/bootstrap.js +++ b/frontend/www/bootstrap.js @@ -14,7 +14,7 @@ if (typeof mergeInto !== 'undefined') mergeInto(LibraryManager.library, { } }); -import ("./index.js") +import ("./src/index.js") .then(e => { h = e.handle; }) diff --git a/frontend/www/games.ts b/frontend/www/src/games.ts similarity index 100% rename from frontend/www/games.ts rename to frontend/www/src/games.ts diff --git a/frontend/www/index.js b/frontend/www/src/index.js similarity index 100% rename from frontend/www/index.js rename to frontend/www/src/index.js diff --git a/frontend/www/index.ts b/frontend/www/src/index.ts similarity index 99% rename from frontend/www/index.ts rename to frontend/www/src/index.ts index f02ccbd..7a823ef 100644 --- a/frontend/www/index.ts +++ b/frontend/www/src/index.ts @@ -141,6 +141,7 @@ class GameInstance { // Setup key handling document.addEventListener('keydown', this.handleKey.bind(this)); + // List of [(x, y, r)] for all planets const planets = f32v(game.get_planets(), this.planet_count * 3); for (let i = 0; i < this.planet_count; i++) { diff --git a/frontend/www/webgl/buffer.ts b/frontend/www/src/webgl/buffer.ts similarity index 100% rename from frontend/www/webgl/buffer.ts rename to frontend/www/src/webgl/buffer.ts diff --git a/frontend/www/webgl/index.ts b/frontend/www/src/webgl/index.ts similarity index 100% rename from frontend/www/webgl/index.ts rename to frontend/www/src/webgl/index.ts diff --git a/frontend/www/webgl/instance.ts b/frontend/www/src/webgl/instance.ts similarity index 100% rename from frontend/www/webgl/instance.ts rename to frontend/www/src/webgl/instance.ts diff --git a/frontend/www/webgl/renderer.ts b/frontend/www/src/webgl/renderer.ts similarity index 100% rename from frontend/www/webgl/renderer.ts rename to frontend/www/src/webgl/renderer.ts diff --git a/frontend/www/webgl/shader.ts b/frontend/www/src/webgl/shader.ts similarity index 100% rename from frontend/www/webgl/shader.ts rename to frontend/www/src/webgl/shader.ts diff --git a/frontend/www/webgl/text.ts b/frontend/www/src/webgl/text.ts similarity index 100% rename from frontend/www/webgl/text.ts rename to frontend/www/src/webgl/text.ts diff --git a/frontend/www/webgl/texture.ts b/frontend/www/src/webgl/texture.ts similarity index 100% rename from frontend/www/webgl/texture.ts rename to frontend/www/src/webgl/texture.ts diff --git a/frontend/www/webgl/util.ts b/frontend/www/src/webgl/util.ts similarity index 100% rename from frontend/www/webgl/util.ts rename to frontend/www/src/webgl/util.ts diff --git a/frontend/www/webgl/vertexArray.ts b/frontend/www/src/webgl/vertexArray.ts similarity index 100% rename from frontend/www/webgl/vertexArray.ts rename to frontend/www/src/webgl/vertexArray.ts diff --git a/frontend/www/webgl/vertexBufferLayout.ts b/frontend/www/src/webgl/vertexBufferLayout.ts similarity index 100% rename from frontend/www/webgl/vertexBufferLayout.ts rename to frontend/www/src/webgl/vertexBufferLayout.ts diff --git a/frontend/www/webgl/webgl-utils.d.ts b/frontend/www/src/webgl/webgl-utils.d.ts similarity index 100% rename from frontend/www/webgl/webgl-utils.d.ts rename to frontend/www/src/webgl/webgl-utils.d.ts diff --git a/frontend/www/webgl/webgl-utils.js b/frontend/www/src/webgl/webgl-utils.js similarity index 100% rename from frontend/www/webgl/webgl-utils.js rename to frontend/www/src/webgl/webgl-utils.js