diff --git a/typescript/lunargame/client/babel.config.js b/typescript/lunargame/client/babel.config.js
index 620e090..5cf5c00 100644
--- a/typescript/lunargame/client/babel.config.js
+++ b/typescript/lunargame/client/babel.config.js
@@ -1,17 +1,17 @@
module.exports = {
- presets: [
- "@babel/preset-env",
- "@babel/preset-react",
- "@babel/preset-typescript"
- ],
- plugins: [
- "@babel/plugin-syntax-dynamic-import",
- ["@babel/plugin-proposal-decorators", { legacy: true }],
- ["@babel/plugin-proposal-class-properties", { loose: true }],
- ],
- env: {
- test: {
- presets: [["@babel/preset-env", { targets: { node: "current" } }]],
- },
- },
+ presets: [
+ '@babel/preset-env',
+ '@babel/preset-react',
+ '@babel/preset-typescript'
+ ],
+ plugins: [
+ '@babel/plugin-syntax-dynamic-import',
+ ['@babel/plugin-proposal-decorators', { legacy: true }],
+ ['@babel/plugin-proposal-class-properties', { loose: true }]
+ ],
+ env: {
+ test: {
+ presets: [['@babel/preset-env', { targets: { node: 'current' } }]]
+ }
+ }
}
diff --git a/typescript/lunargame/client/package-lock.json b/typescript/lunargame/client/package-lock.json
index cd8aadc..f8b6c64 100644
--- a/typescript/lunargame/client/package-lock.json
+++ b/typescript/lunargame/client/package-lock.json
@@ -736,18 +736,6 @@
"@babel/helper-plugin-utils": "^7.0.0"
}
},
- "@babel/plugin-transform-runtime": {
- "version": "7.5.0",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.5.0.tgz",
- "integrity": "sha512-LmPIZOAgTLl+86gR9KjLXex6P/lRz1fWEjTz6V6QZMmKie51ja3tvzdwORqhHc4RWR8TcZ5pClpRWs0mlaA2ng==",
- "dev": true,
- "requires": {
- "@babel/helper-module-imports": "^7.0.0",
- "@babel/helper-plugin-utils": "^7.0.0",
- "resolve": "^1.8.1",
- "semver": "^5.5.1"
- }
- },
"@babel/plugin-transform-shorthand-properties": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.2.0.tgz",
@@ -1638,6 +1626,39 @@
"object.assign": "^4.1.0"
}
},
+ "babel-plugin-transform-runtime": {
+ "version": "6.23.0",
+ "resolved": "https://registry.npmjs.org/babel-plugin-transform-runtime/-/babel-plugin-transform-runtime-6.23.0.tgz",
+ "integrity": "sha1-iEkNRGUC6puOfvsP4J7E2ZR5se4=",
+ "dev": true,
+ "requires": {
+ "babel-runtime": "^6.22.0"
+ }
+ },
+ "babel-regenerator-runtime": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/babel-regenerator-runtime/-/babel-regenerator-runtime-6.5.0.tgz",
+ "integrity": "sha1-DkHNHJ+ARCRm8BXHSf/4upj44RA=",
+ "dev": true
+ },
+ "babel-runtime": {
+ "version": "6.26.0",
+ "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz",
+ "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=",
+ "dev": true,
+ "requires": {
+ "core-js": "^2.4.0",
+ "regenerator-runtime": "^0.11.0"
+ },
+ "dependencies": {
+ "regenerator-runtime": {
+ "version": "0.11.1",
+ "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz",
+ "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==",
+ "dev": true
+ }
+ }
+ },
"balanced-match": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
@@ -2489,6 +2510,12 @@
"integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=",
"dev": true
},
+ "core-js": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.9.tgz",
+ "integrity": "sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A==",
+ "dev": true
+ },
"core-js-compat": {
"version": "3.1.4",
"resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.1.4.tgz",
diff --git a/typescript/lunargame/client/package.json b/typescript/lunargame/client/package.json
index 43eae6b..6e9fa65 100644
--- a/typescript/lunargame/client/package.json
+++ b/typescript/lunargame/client/package.json
@@ -12,12 +12,13 @@
"@babel/plugin-proposal-class-properties": "^7.5.0",
"@babel/plugin-proposal-decorators": "^7.4.4",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
- "@babel/plugin-transform-runtime": "^7.5.0",
"@babel/preset-env": "^7.5.0",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.3.3",
"@types/react-router-dom": "^4.3.4",
"babel-loader": "^8.0.6",
+ "babel-plugin-transform-runtime": "^6.23.0",
+ "babel-regenerator-runtime": "^6.5.0",
"css-loader": "^3.0.0",
"html-webpack-inline-source-plugin": "0.0.10",
"html-webpack-plugin": "^3.2.0",
diff --git a/typescript/lunargame/client/src/common/account/components/Login.tsx b/typescript/lunargame/client/src/common/account/components/Login.tsx
deleted file mode 100644
index 6a79d1b..0000000
--- a/typescript/lunargame/client/src/common/account/components/Login.tsx
+++ /dev/null
@@ -1,5 +0,0 @@
-import React from 'react'
-
-export const Login = () => {
- return
This is the login component
-}
diff --git a/typescript/lunargame/client/src/common/account/components/Signup.tsx b/typescript/lunargame/client/src/common/account/components/Signup.tsx
deleted file mode 100644
index 0560fc0..0000000
--- a/typescript/lunargame/client/src/common/account/components/Signup.tsx
+++ /dev/null
@@ -1,5 +0,0 @@
-import React from 'react'
-
-export const Signup = () => {
- return This is the signup component
-}
diff --git a/typescript/lunargame/client/src/common/dom/dialogs/classes/DialogManager.ts b/typescript/lunargame/client/src/common/dom/dialogs/classes/DialogManager.ts
new file mode 100644
index 0000000..be91c7e
--- /dev/null
+++ b/typescript/lunargame/client/src/common/dom/dialogs/classes/DialogManager.ts
@@ -0,0 +1,45 @@
+import { Singleton } from '@eix/utils'
+import { BehaviorSubject } from 'rxjs'
+
+export interface DialogAction {
+ name: string
+ variant: 'standard' | 'contained' | 'outlined'
+ callback: Function
+}
+
+export interface Dialog {
+ title: string
+ message: string
+ actions: DialogAction[]
+ onClose: (event: unknown) => void
+}
+
+@Singleton
+export class DialogManager {
+ public active = new BehaviorSubject