Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"c":["pages/_app","pages/devices","webpack"],"r":[],"m":[]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"c":["pages/_app","pages/devices","webpack"],"r":[],"m":[]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"c":["webpack"],"r":[],"m":[]}
22 changes: 22 additions & 0 deletions .next/static/webpack/pages/_app.59226532fff3e3ef.hot-update.js

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions .next/static/webpack/pages/_app.5c234a8203a9e847.hot-update.js

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions .next/static/webpack/pages/devices.59226532fff3e3ef.hot-update.js

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions .next/static/webpack/pages/devices.5c234a8203a9e847.hot-update.js

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions .next/static/webpack/webpack.59226532fff3e3ef.hot-update.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"use strict";
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
self["webpackHotUpdate_N_E"]("webpack",{},
/******/ function(__webpack_require__) { // webpackRuntimeModules
/******/ /* webpack/runtime/getFullHash */
/******/ !function() {
/******/ __webpack_require__.h = function() { return "05ae2c6153436095"; }
/******/ }();
/******/
/******/ }
);
18 changes: 18 additions & 0 deletions .next/static/webpack/webpack.5c234a8203a9e847.hot-update.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"use strict";
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
self["webpackHotUpdate_N_E"]("webpack",{},
/******/ function(__webpack_require__) { // webpackRuntimeModules
/******/ /* webpack/runtime/getFullHash */
/******/ !function() {
/******/ __webpack_require__.h = function() { return "59226532fff3e3ef"; }
/******/ }();
/******/
/******/ }
);
31 changes: 31 additions & 0 deletions .next/static/webpack/webpack.fc35f88fce4515c8.hot-update.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
"use strict";
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
self["webpackHotUpdate_N_E"]("webpack",{},
/******/ function(__webpack_require__) { // webpackRuntimeModules
/******/ /* webpack/runtime/getFullHash */
/******/ !function() {
/******/ __webpack_require__.h = function() { return "5c234a8203a9e847"; }
/******/ }();
/******/
/******/ /* webpack/runtime/compat */
/******/
/******/
/******/ // noop fns to prevent runtime errors during initialization
/******/ if (typeof self !== "undefined") {
/******/ self.$RefreshReg$ = function () {};
/******/ self.$RefreshSig$ = function () {
/******/ return function (type) {
/******/ return type;
/******/ };
/******/ };
/******/ }
/******/
/******/ }
);
15 changes: 0 additions & 15 deletions Dockerfile

This file was deleted.

29 changes: 0 additions & 29 deletions data/nginx/app.conf

This file was deleted.

20 changes: 0 additions & 20 deletions docker-compose.uat.yml

This file was deleted.

41 changes: 5 additions & 36 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,13 @@
version: "3.0"
services:
server:
build: .
restart: unless-stopped
depends_on:
- db
volumes:
- retropilot-realdata:/realdata
ports:
- "3000:3000"
- "4040:4040"
env_file:
- .env
environment:
- STORAGE_PATH=/realdata
worker:
build: .
command: npm run worker
restart: unless-stopped
depends_on:
- db
volumes:
- retropilot-realdata:/realdata
env_file:
- .env
environment:
- STORAGE_PATH=/realdata
db:
image: postgres:14-bullseye
image: postgres
restart: always
ports:
- '5438:5432'
volumes:
- ./sql/create_tables.sql:/docker-entrypoint-initdb.d/create_tables.sql
- retropilot-db:/var/lib/postgresql/data
- ./sql/schema.sql:/docker-entrypoint-initdb.d/create_tables.sql
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
POSTGRES_DB: ${DB_NAME}

volumes:
retropilot-realdata:
retropilot-db:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: retropilot
9 changes: 0 additions & 9 deletions ecosystem.config.js

This file was deleted.

15 changes: 15 additions & 0 deletions lib/jwt.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { verify as verifyToken } from 'jsonwebtoken';

export type Secret =
| string
| Buffer
| { key: string | Buffer; passphrase: string };

export async function verify(token: any, key: Secret) {
try {
const result = verifyToken(token.replace('JWT ', ''), key, { algorithms: ['RS256'], ignoreNotBefore: true });
return result;
} catch(error) {
throw new Error('Failed to verify JWT');
}
}
5 changes: 5 additions & 0 deletions lib/prisma.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { PrismaClient } from '@prisma/client'

const prisma: PrismaClient = new PrismaClient();

export default prisma
5 changes: 5 additions & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
6 changes: 6 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
}

module.exports = nextConfig
Loading