diff --git a/fxmanifest.lua b/fxmanifest.lua
index 8cf45c4..ce3c352 100644
--- a/fxmanifest.lua
+++ b/fxmanifest.lua
@@ -6,7 +6,8 @@ author { "chip", "BTNGaming", "ROCKY_southpaw" }
client_script {
'@es_extended/locale.lua',
'resources/locales/*.lua',
- 'resources/client/*lua'
+ 'resources/client/*lua',
+ 'resources/dist/client/*.client.js'
}
shared_script {
@@ -17,7 +18,8 @@ server_script {
"@mysql-async/lib/MySQL.lua",
'@es_extended/locale.lua',
'resources/locales/*.lua',
- 'resources/server/*.lua'
+ 'resources/server/*.lua',
+ 'resources/dist/server/*.server.js'
}
ui_page 'resources/html/index.html'
diff --git a/phone/.babelrc b/phone/.babelrc
index 3d4e1f6..58c3cd4 100644
--- a/phone/.babelrc
+++ b/phone/.babelrc
@@ -1,15 +1,15 @@
{
"presets": [
- [
- "@babel/preset-env",
- {
- "modules": false
- }
- ],
- "@babel/preset-react"
+ [
+ "@babel/preset-env",
+ {
+ "modules": false
+ }
+ ],
+ "@babel/preset-react"
],
"plugins": [
- "@babel/plugin-proposal-class-properties",
- "@babel/plugin-syntax-dynamic-import"
+ "@babel/plugin-proposal-class-properties",
+ "@babel/plugin-syntax-dynamic-import"
]
-}
\ No newline at end of file
+}
diff --git a/phone/.env b/phone/.env
new file mode 100644
index 0000000..7512f11
--- /dev/null
+++ b/phone/.env
@@ -0,0 +1 @@
+TSC_COMPILE_ON_ERROR=true
\ No newline at end of file
diff --git a/phone/package.json b/phone/package.json
index 713d394..9010876 100644
--- a/phone/package.json
+++ b/phone/package.json
@@ -4,6 +4,10 @@
"private": true,
"dependencies": {
"@babel/polyfill": "^7.4.4",
+ "@fortawesome/fontawesome-free": "^5.15.1",
+ "@fortawesome/fontawesome-svg-core": "^1.2.32",
+ "@fortawesome/free-solid-svg-icons": "^5.15.1",
+ "@fortawesome/react-fontawesome": "^0.1.11",
"@material-ui/core": "^4.11.0",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.56",
@@ -15,7 +19,7 @@
"emoji-mart": "^3.0.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.5",
- "husky": "^4.2.5",
+ "husky": "4.2.5",
"i18next": "^19.7.0",
"prettier": "^2.0.5",
"react": "^16.13.1",
@@ -35,6 +39,9 @@
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/preset-env": "^7.4.5",
"@babel/preset-react": "^7.0.0",
+ "@types/node": "^14.11.5",
+ "@types/react": "^16.9.51",
+ "@types/react-dom": "^16.9.8",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.1.0",
"babel-plugin-styled-components": "^1.10.0",
@@ -50,6 +57,8 @@
"style-loader": "^0.23.1",
"svg-url-loader": "^2.3.2",
"terser-webpack-plugin": "^1.3.0",
+ "ts-loader": "^8.0.4",
+ "typescript": "3.9.7",
"url-loader": "^1.1.2",
"webpack-cli": "^3.3.12"
},
@@ -58,8 +67,8 @@
"watch": "cra-build-watch --disable-chunks --build-path ../resources/html --output-filename dev.js",
"build": "react-scripts build",
"build:resources": "cross-env NODE_ENV=production webpack --config webpack/webpack.resources.js --color -p --progress --hide-modules --display-optimization-bailout",
- "test": "react-scripts test --watchAll=false --testMatch **/src/**/*.test.js",
- "test:watch": "react-scripts test --watchAll --testMatch **/src/**/*.test.js",
+ "test": "react-scripts test --watchAll=false --testMatch **/src/**/*.test.[jt]s?(x)",
+ "test:watch": "react-scripts test --watchAll --testMatch **/src/**/*.test.[jt]s?(x)",
"eject": "react-scripts eject"
},
"eslintConfig": {
diff --git a/phone/react-app-env.d.ts b/phone/react-app-env.d.ts
new file mode 100644
index 0000000..6431bc5
--- /dev/null
+++ b/phone/react-app-env.d.ts
@@ -0,0 +1 @@
+///
+ {listings.map((listing) => (
+
+ );
+};
diff --git a/phone/src/apps/sellout/components/SelloutList/SelloutListContainer.tsx b/phone/src/apps/sellout/components/SelloutList/SelloutListContainer.tsx
new file mode 100644
index 0000000..4117b89
--- /dev/null
+++ b/phone/src/apps/sellout/components/SelloutList/SelloutListContainer.tsx
@@ -0,0 +1,8 @@
+import React from "react";
+import { useListing } from "../../hooks/useListing";
+import { SelloutList } from "./SelloutList";
+
+export const SelloutListContainer = () => {
+ const { listing } = useListing();
+ return