diff --git a/backend/config/__init__.py b/backend/config/__init__.py
index 727caa6bb..7861145fe 100644
--- a/backend/config/__init__.py
+++ b/backend/config/__init__.py
@@ -8,6 +8,7 @@ load_dotenv()
# UVICORN
DEV_PORT: Final = int(os.environ.get("VITE_BACKEND_DEV_PORT", "5000"))
DEV_HOST: Final = "0.0.0.0"
+ROMM_HOST: Final = os.environ.get("ROMM_HOST", DEV_HOST)
# PATHS
ROMM_BASE_PATH: Final = os.environ.get("ROMM_BASE_PATH", "/romm")
diff --git a/backend/config/config_loader.py b/backend/config/config_loader.py
index 767fb828e..a39145763 100644
--- a/backend/config/config_loader.py
+++ b/backend/config/config_loader.py
@@ -21,6 +21,7 @@ from logger.logger import log
class ConfigLoader:
# Tests require custom config path
def __init__(self, config_path: str = ROMM_USER_CONFIG_PATH):
+ self.config_path = config_path
if os.path.isdir(config_path):
log.critical(f"Your config file {config_path} is a directory, not a file. Docker creates folders by default for binded files that doesn't exists in advance in the host system.")
raise FileNotFoundError()
@@ -76,6 +77,7 @@ class ConfigLoader:
self.config["PLATFORMS_BINDING"] = pydash.get(
self.config, "system.platforms", {}
)
+ log.info(f"Config loaded successfully from {self.config_path}")
config = ConfigLoader().config
diff --git a/backend/endpoints/platform.py b/backend/endpoints/platform.py
index 6bd83ae18..096fe62bd 100644
--- a/backend/endpoints/platform.py
+++ b/backend/endpoints/platform.py
@@ -4,9 +4,64 @@ from typing import Optional
from handler import dbh
from utils.oauth import protected_route
+from config import ROMM_HOST
router = APIRouter()
+WEBRCADE_SUPPORTED_PLATFORM_SLUGS = [
+ "3do",
+ "arcade",
+ "atari2600",
+ "atari5200",
+ "atari7800",
+ "lynx",
+ "wonderswan",
+ "wonderswan-color",
+ "colecovision",
+ "turbografx16--1",
+ "turbografx-16-slash-pc-engine-cd",
+ "supergrafx",
+ "pc-fx",
+ "nes",
+ "n64",
+ "snes",
+ "gb",
+ "gba",
+ "gbc",
+ "virtualboy",
+ "sg1000",
+ "sms",
+ "genesis-slash-megadrive",
+ "segacd",
+ "gamegear",
+ "neo-geo-cd",
+ "neogeoaes",
+ "neogeomvs",
+ "neo-geo-pocket",
+ "neo-geo-pocket-color",
+ "ps",
+]
+
+WEBRCADE_SLUG_TO_TYPE_MAP = {
+ "atari2600": "2600",
+ "atari5200": "5200",
+ "atari7800": "7800",
+ "lynx": "lnx",
+ "turbografx16--1": "pce",
+ "turbografx-16-slash-pc-engine-cd": "pce",
+ "supergrafx": "sgx",
+ "pc-fx": "pcfx",
+ "virtualboy": "vb",
+ "genesis-slash-megadrive": "genesis",
+ "gamegear": "gg",
+ "neogeoaes": "neogeo",
+ "neogeomvs": "neogeo",
+ "neo-geo-cd": "neogeocd",
+ "neo-geo-pocket": "ngp",
+ "neo-geo-pocket-color": "ngc",
+ "ps": "psx",
+}
+
class PlatformSchema(BaseModel):
slug: str
@@ -25,3 +80,40 @@ class PlatformSchema(BaseModel):
def platforms(request: Request) -> list[PlatformSchema]:
"""Returns platforms data"""
return dbh.get_platforms()
+
+
+@protected_route(router.get, "/platforms/webrcade/feed", [])
+def platforms_webrcade_feed(request: Request):
+ """Returns platforms data"""
+ platforms = dbh.get_platforms()
+
+ with dbh.session.begin() as session:
+ return {
+ "title": "RomM Feed",
+ "longTitle": "Custom RomM Feed",
+ "description": "Custom feed from your RomM library",
+ "thumbnail": "https://raw.githubusercontent.com/zurdi15/romm/f2dd425d87ad8e21bf47f8258ae5dcf90f56fbc2/frontend/assets/isotipo.svg",
+ "background": "https://raw.githubusercontent.com/zurdi15/romm/release/.github/screenshots/gallery.png",
+ "categories": [
+ {
+ "title": p.name,
+ "longTitle": f"{p.name} Games",
+ "background": f"{ROMM_HOST}/assets/webrcade/feed/{p.slug.lower()}-background.png",
+ "thumbnail": f"{ROMM_HOST}/assets/webrcade/feed/{p.slug.lower()}-thumb.png",
+ "description": "",
+ "items": [
+ {
+ "title": rom.name,
+ "description": rom.summary,
+ "type": WEBRCADE_SLUG_TO_TYPE_MAP.get(p.slug, p.slug),
+ "thumbnail": f"{ROMM_HOST}/assets/romm/resources/{rom.path_cover_s}",
+ "background": f"{ROMM_HOST}/assets/romm/resources/{rom.path_cover_l}",
+ "props": {"rom": f"{ROMM_HOST}{rom.download_path}"},
+ }
+ for rom in session.scalars(dbh.get_roms(p.slug)).all()
+ ],
+ }
+ for p in platforms
+ if p.slug in WEBRCADE_SUPPORTED_PLATFORM_SLUGS
+ ],
+ }
diff --git a/backend/endpoints/tests/test_heartbeat.py b/backend/endpoints/tests/test_heartbeat.py
index 77944604c..ab90d8a7a 100644
--- a/backend/endpoints/tests/test_heartbeat.py
+++ b/backend/endpoints/tests/test_heartbeat.py
@@ -9,32 +9,19 @@ client = TestClient(app)
def test_heartbeat():
response = client.get("/heartbeat")
assert response.status_code == 200
- assert response.json() == {
- "VERSION" : get_version(),
- "ROMM_AUTH_ENABLED": True,
- "WATCHER": {
- "ENABLED": True,
- "TITLE": "Rescan on filesystem change",
- "MESSAGE": "Runs a scan when a change is detected in the library path, with a 5 minute delay",
- },
- "SCHEDULER": {
- "RESCAN": {
- "ENABLED": True,
- "CRON": "0 3 * * *",
- "TITLE": "Scheduled rescan",
- "MESSAGE": "Rescans the entire library",
- },
- "SWITCH_TITLEDB": {
- "ENABLED": True,
- "CRON": "0 4 * * *",
- "TITLE": "Scheduled Switch TitleDB update",
- "MESSAGE": "Updates the Nintedo Switch TitleDB file",
- },
- "MAME_XML": {
- "ENABLED": True,
- "CRON": "0 5 * * *",
- "TITLE": "Scheduled MAME XML update",
- "MESSAGE": "Updates the MAME XML file",
- },
- },
- }
+ heartbeat = response.json()
+ assert heartbeat.get('VERSION') == get_version()
+ assert heartbeat.get('ROMM_AUTH_ENABLED') == True
+ assert heartbeat.get('WATCHER').get('ENABLED') == True
+ assert heartbeat.get('WATCHER').get('TITLE') == "Rescan on filesystem change"
+ assert heartbeat.get('SCHEDULER').get('RESCAN').get('ENABLED') == True
+ assert heartbeat.get('SCHEDULER').get('RESCAN').get('CRON') == "0 3 * * *"
+ assert heartbeat.get('SCHEDULER').get('RESCAN').get('TITLE') == "Scheduled rescan"
+ assert heartbeat.get('SCHEDULER').get('SWITCH_TITLEDB').get('ENABLED') == True
+ assert heartbeat.get('SCHEDULER').get('SWITCH_TITLEDB').get('CRON') == "0 4 * * *"
+ assert heartbeat.get('SCHEDULER').get('SWITCH_TITLEDB').get('TITLE') == "Scheduled Switch TitleDB update"
+ assert heartbeat.get('SCHEDULER').get('MAME_XML').get('ENABLED') == True
+ assert heartbeat.get('SCHEDULER').get('MAME_XML').get('CRON') == "0 5 * * *"
+ assert heartbeat.get('SCHEDULER').get('MAME_XML').get('TITLE') == "Scheduled MAME XML update"
+ assert heartbeat.get('CONFIG').get('EXCLUDED_MULTI_FILES') == []
+ assert heartbeat.get('CONFIG').get('EXCLUDED_SINGLE_EXT') == []
diff --git a/backend/handler/igdb_handler.py b/backend/handler/igdb_handler.py
index 11bd956aa..4c2c77b95 100644
--- a/backend/handler/igdb_handler.py
+++ b/backend/handler/igdb_handler.py
@@ -13,7 +13,7 @@ from typing import Final
from typing_extensions import TypedDict
from config import IGDB_CLIENT_ID, IGDB_CLIENT_SECRET, DEFAULT_URL_COVER_L
-from utils import get_file_name_with_no_tags as get_search_term
+from utils import get_file_name_with_no_tags as get_search_term, normalize_search_term
from logger.logger import log
from utils.cache import cache
from tasks.update_switch_titledb import update_switch_titledb_task
@@ -162,6 +162,85 @@ class IGDBHandler:
if "url" in r.keys()
]
+ @staticmethod
+ def _ps2_opl_format(match: re.Match[str]) -> str:
+ serial_code = match.group(1)
+ with open(PS2_OPL_INDEX_FILE, "r") as index_json:
+ opl_index = json.loads(index_json.read())
+ index_entry = opl_index.get(serial_code, None)
+ if index_entry:
+ search_term = index_entry["Name"] # type: ignore
+ return search_term
+
+ @staticmethod
+ async def _switch_titledb_format(match: re.Match[str]) -> str:
+ title_id = match.group(1)
+ titledb_index = {}
+ try:
+ with open(SWITCH_TITLEDB_INDEX_FILE, "r") as index_json:
+ titledb_index = json.loads(index_json.read())
+ except FileNotFoundError:
+ log.warning("Fetching the Switch titleDB index file...")
+ await update_switch_titledb_task.run(force=True)
+ try:
+ with open(SWITCH_TITLEDB_INDEX_FILE, "r") as index_json:
+ titledb_index = json.loads(index_json.read())
+ except FileNotFoundError:
+ log.error("Could not fetch the Switch titleDB index file")
+ finally:
+ index_entry = titledb_index.get(title_id, None)
+ if index_entry:
+ search_term = index_entry["name"] # type: ignore
+ return search_term
+
+ @staticmethod
+ async def _switch_productid_format(match: re.Match[str]) -> str:
+ product_id = match.group(1)
+ product_id_index = {}
+ try:
+ with open(SWITCH_PRODUCT_ID_FILE, "r") as index_json:
+ product_id_index = json.loads(index_json.read())
+ except FileNotFoundError:
+ log.warning("Fetching the Switch titleDB index file...")
+ await update_switch_titledb_task.run(force=True)
+ try:
+ with open(SWITCH_PRODUCT_ID_FILE, "r") as index_json:
+ product_id_index = json.loads(index_json.read())
+ except FileNotFoundError:
+ log.error("Could not fetch the Switch titleDB index file")
+ finally:
+ index_entry = product_id_index.get(product_id, None)
+ if index_entry:
+ search_term = index_entry["name"] # type: ignore
+ return search_term
+
+ @staticmethod
+ async def _mame_format(search_term: str) -> str:
+ mame_index = {"menu": {"game": []}}
+ try:
+ with open(MAME_XML_FILE, "r") as index_xml:
+ mame_index = xmltodict.parse(index_xml.read())
+ except FileNotFoundError:
+ log.warning("Fetching the MAME XML file from HyperspinFE...")
+ await update_mame_xml_task.run(force=True)
+ try:
+ with open(MAME_XML_FILE, "r") as index_xml:
+ mame_index = xmltodict.parse(index_xml.read())
+ except FileNotFoundError:
+ log.error("Could not fetch the MAME XML file from HyperspinFE")
+ finally:
+ index_entry = [
+ game
+ for game in mame_index["menu"]["game"]
+ if game["@name"] == search_term
+ ]
+ if index_entry:
+ # Run through get_search_term to remove tags
+ search_term = get_search_term(
+ index_entry[0].get("description", search_term)
+ )
+ return search_term
+
@check_twitch_token
def get_platform(self, slug: str) -> IGDBPlatformType:
platforms = self._request(
@@ -182,96 +261,26 @@ class IGDBHandler:
async def get_rom(self, file_name: str, platform_idgb_id: int) -> IGDBRomType:
search_term = get_search_term(file_name)
- # Patch support for PS2 OPL flename format
+ # Support for PS2 OPL filename format
match = re.match(PS2_OPL_REGEX, file_name)
if platform_idgb_id == PS2_IGDB_ID and match:
- serial_code = match.group(1)
+ self._ps2_opl_format(match)
- with open(PS2_OPL_INDEX_FILE, "r") as index_json:
- opl_index = json.loads(index_json.read())
- index_entry = opl_index.get(serial_code, None)
- if index_entry:
- search_term = index_entry["Name"] # type: ignore
-
- # Patch support for switch titleID filename format
+ # Support for switch titleID filename format
match = re.match(SWITCH_TITLEDB_REGEX, file_name)
if platform_idgb_id == SWITCH_IGDB_ID and match:
- title_id = match.group(1)
- titledb_index = {}
-
- try:
- with open(SWITCH_TITLEDB_INDEX_FILE, "r") as index_json:
- titledb_index = json.loads(index_json.read())
- except FileNotFoundError:
- log.warning("Fetching the Switch titleDB index file...")
- await update_switch_titledb_task.run(force=True)
-
- try:
- with open(SWITCH_TITLEDB_INDEX_FILE, "r") as index_json:
- titledb_index = json.loads(index_json.read())
- except FileNotFoundError:
- log.error("Could not fetch the Switch titleDB index file")
- finally:
- index_entry = titledb_index.get(title_id, None)
- if index_entry:
- search_term = index_entry["name"] # type: ignore
+ self._switch_titledb_format(match)
# Support for switch productID filename format
match = re.search(SWITCH_PRODUCT_ID_REGEX, file_name)
if platform_idgb_id == SWITCH_IGDB_ID and match:
- product_id = match.group(1)
- product_id_index = {}
-
- try:
- with open(SWITCH_PRODUCT_ID_FILE, "r") as index_json:
- product_id_index = json.loads(index_json.read())
- except FileNotFoundError:
- log.warning("Fetching the Switch titleDB index file...")
- await update_switch_titledb_task.run(force=True)
-
- try:
- with open(SWITCH_PRODUCT_ID_FILE, "r") as index_json:
- product_id_index = json.loads(index_json.read())
- except FileNotFoundError:
- log.error("Could not fetch the Switch titleDB index file")
- finally:
- index_entry = product_id_index.get(product_id, None)
- if index_entry:
- search_term = index_entry["name"] # type: ignore
+ self._switch_productid_format(match)
# Support for MAME arcade filename format
if platform_idgb_id in ARCADE_IGDB_IDS:
- mame_index = {"menu": {"game": []}}
+ self._mame_format(search_term)
- try:
- with open(MAME_XML_FILE, "r") as index_xml:
- mame_index = xmltodict.parse(index_xml.read())
- except FileNotFoundError:
- log.warning("Fetching the MAME XML file from HyperspinFE...")
- await update_mame_xml_task.run(force=True)
-
- try:
- with open(MAME_XML_FILE, "r") as index_xml:
- mame_index = xmltodict.parse(index_xml.read())
- except FileNotFoundError:
- log.error("Could not fetch the MAME XML file from HyperspinFE")
- finally:
- index_entry = [
- game
- for game in mame_index["menu"]["game"]
- if game["@name"] == search_term
- ]
- if index_entry:
- # Run through get_search_term to remove tags
- search_term = get_search_term(index_entry[0].get("description", search_term))
-
- search_term = (
- search_term.replace("\u2122", "") # Remove trademark symbol
- .replace("\u00ae", "") # Remove registered symbol
- .replace("\u00a9", "") # Remove copywrite symbol
- .replace("\u2120", "") # Remove service mark symbol
- .strip() # Remove leading and trailing spaces
- )
+ search_term = normalize_search_term(search_term)
res = (
self._search_rom(uc(search_term), platform_idgb_id, MAIN_GAME_CATEGORY)
diff --git a/backend/main.py b/backend/main.py
index 0de4b7d4b..d39b20c69 100644
--- a/backend/main.py
+++ b/backend/main.py
@@ -31,6 +31,7 @@ from utils.auth import (
create_default_admin_user,
)
from utils import get_version
+from config.config_loader import config
app = FastAPI(title="RomM API", version="0.1.0")
@@ -106,6 +107,7 @@ def heartbeat():
"MESSAGE": "Updates the MAME XML file",
},
},
+ "CONFIG": config
}
diff --git a/backend/utils/__init__.py b/backend/utils/__init__.py
index ad4f0c3bc..27bf5936d 100644
--- a/backend/utils/__init__.py
+++ b/backend/utils/__init__.py
@@ -114,6 +114,16 @@ def get_file_name_with_no_tags(file_name: str) -> str:
return re.sub(TAG_REGEX, "", file_name_no_extension).strip()
+def normalize_search_term(search_term: str) -> str:
+ return (
+ search_term.replace("\u2122", "") # Remove trademark symbol
+ .replace("\u00ae", "") # Remove registered symbol
+ .replace("\u00a9", "") # Remove copywrite symbol
+ .replace("\u2120", "") # Remove service mark symbol
+ .strip() # Remove leading and trailing spaces
+ )
+
+
def get_file_extension(rom: dict) -> str:
return (
re.search(EXTENSION_REGEX, rom["file_name"]).group(1)
diff --git a/backend/worker.py b/backend/worker.py
old mode 100755
new mode 100644
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 7d0ba83bf..ebcb28275 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -11,6 +11,7 @@ ARG WEBSERVER_FOLDER=/var/www/html
COPY --from=front-build-stage /front/dist ${WEBSERVER_FOLDER}
COPY ./frontend/assets/default_avatar.png ${WEBSERVER_FOLDER}/assets/
COPY ./frontend/assets/platforms ${WEBSERVER_FOLDER}/assets/platforms
+COPY ./frontend/assets/webrcade/feed ${WEBSERVER_FOLDER}/assets/webrcade/feed
RUN mkdir -p ${WEBSERVER_FOLDER}/assets/romm && \
ln -s /romm/library ${WEBSERVER_FOLDER}/assets/romm/library && \
ln -s /romm/resources ${WEBSERVER_FOLDER}/assets/romm/resources
diff --git a/docker/nginx/default.conf b/docker/nginx/default.conf
index 185683989..fdf1ce7d5 100644
--- a/docker/nginx/default.conf
+++ b/docker/nginx/default.conf
@@ -62,6 +62,9 @@ http {
location / {
try_files $uri $uri/ /index.html;
proxy_redirect off;
+ add_header Access-Control-Allow-Origin *;
+ add_header Access-Control-Allow-Methods *;
+ add_header Access-Control-Allow-Headers *;
}
# OpenAPI for swagger and redoc
diff --git a/env.template b/env.template
index 164923714..d55de9156 100644
--- a/env.template
+++ b/env.template
@@ -1,5 +1,6 @@
ROMM_BASE_PATH=/path/to/romm_mock
VITE_BACKEND_DEV_PORT=5000
+ROMM_HOST=localhost
# IGDB credentials
IGDB_CLIENT_ID=
diff --git a/frontend/assets/webrcade/feed/ATTRIBUTIONS b/frontend/assets/webrcade/feed/ATTRIBUTIONS
new file mode 100644
index 000000000..e59bcfa45
--- /dev/null
+++ b/frontend/assets/webrcade/feed/ATTRIBUTIONS
@@ -0,0 +1,8 @@
+### Attribution Information for Libretro icons
+
+The files found in this folder are sourced from the webRcade project, which is licensed under then Apache License 2.0
+The original license can be found at https://github.com/webrcade/webrcade/blob/master/LICENSE
+For more information about the Apache License 2.0, visit https://www.apache.org/licenses/LICENSE-2.0
+
+The RomM Project
+December 27th, 2023
diff --git a/frontend/assets/webrcade/feed/atari2600-background.png b/frontend/assets/webrcade/feed/atari2600-background.png
new file mode 100644
index 000000000..0eaca2945
Binary files /dev/null and b/frontend/assets/webrcade/feed/atari2600-background.png differ
diff --git a/frontend/assets/webrcade/feed/atari2600-thumb.png b/frontend/assets/webrcade/feed/atari2600-thumb.png
new file mode 100644
index 000000000..2097ad5e5
Binary files /dev/null and b/frontend/assets/webrcade/feed/atari2600-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/atari7800-background.png b/frontend/assets/webrcade/feed/atari7800-background.png
new file mode 100644
index 000000000..2deefc6b5
Binary files /dev/null and b/frontend/assets/webrcade/feed/atari7800-background.png differ
diff --git a/frontend/assets/webrcade/feed/atari7800-thumb.png b/frontend/assets/webrcade/feed/atari7800-thumb.png
new file mode 100644
index 000000000..ce114b480
Binary files /dev/null and b/frontend/assets/webrcade/feed/atari7800-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/default-background.png b/frontend/assets/webrcade/feed/default-background.png
new file mode 100644
index 000000000..b1b3fd47b
Binary files /dev/null and b/frontend/assets/webrcade/feed/default-background.png differ
diff --git a/frontend/assets/webrcade/feed/default-thumb.png b/frontend/assets/webrcade/feed/default-thumb.png
new file mode 100644
index 000000000..3ead9edbe
Binary files /dev/null and b/frontend/assets/webrcade/feed/default-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/doom-background.png b/frontend/assets/webrcade/feed/doom-background.png
new file mode 100644
index 000000000..fa987dbbd
Binary files /dev/null and b/frontend/assets/webrcade/feed/doom-background.png differ
diff --git a/frontend/assets/webrcade/feed/doom-thumb.png b/frontend/assets/webrcade/feed/doom-thumb.png
new file mode 100644
index 000000000..558c3983f
Binary files /dev/null and b/frontend/assets/webrcade/feed/doom-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/gamegear-background.png b/frontend/assets/webrcade/feed/gamegear-background.png
new file mode 100644
index 000000000..e8c497d79
Binary files /dev/null and b/frontend/assets/webrcade/feed/gamegear-background.png differ
diff --git a/frontend/assets/webrcade/feed/gamegear-thumb.png b/frontend/assets/webrcade/feed/gamegear-thumb.png
new file mode 100644
index 000000000..aba50f397
Binary files /dev/null and b/frontend/assets/webrcade/feed/gamegear-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/gb-background.png b/frontend/assets/webrcade/feed/gb-background.png
new file mode 100644
index 000000000..78ed6eabf
Binary files /dev/null and b/frontend/assets/webrcade/feed/gb-background.png differ
diff --git a/frontend/assets/webrcade/feed/gb-thumb.png b/frontend/assets/webrcade/feed/gb-thumb.png
new file mode 100644
index 000000000..8ff60b3fe
Binary files /dev/null and b/frontend/assets/webrcade/feed/gb-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/gba-background.png b/frontend/assets/webrcade/feed/gba-background.png
new file mode 100644
index 000000000..827d1d59e
Binary files /dev/null and b/frontend/assets/webrcade/feed/gba-background.png differ
diff --git a/frontend/assets/webrcade/feed/gba-thumb.png b/frontend/assets/webrcade/feed/gba-thumb.png
new file mode 100644
index 000000000..802ea1772
Binary files /dev/null and b/frontend/assets/webrcade/feed/gba-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/gbc-background.png b/frontend/assets/webrcade/feed/gbc-background.png
new file mode 100644
index 000000000..c12d0996c
Binary files /dev/null and b/frontend/assets/webrcade/feed/gbc-background.png differ
diff --git a/frontend/assets/webrcade/feed/gbc-thumb.png b/frontend/assets/webrcade/feed/gbc-thumb.png
new file mode 100644
index 000000000..a60674827
Binary files /dev/null and b/frontend/assets/webrcade/feed/gbc-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/genesis-slash-megadrive-background.png b/frontend/assets/webrcade/feed/genesis-slash-megadrive-background.png
new file mode 100644
index 000000000..06325696a
Binary files /dev/null and b/frontend/assets/webrcade/feed/genesis-slash-megadrive-background.png differ
diff --git a/frontend/assets/webrcade/feed/genesis-slash-megadrive-thumb.png b/frontend/assets/webrcade/feed/genesis-slash-megadrive-thumb.png
new file mode 100644
index 000000000..c8a484198
Binary files /dev/null and b/frontend/assets/webrcade/feed/genesis-slash-megadrive-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/lynx-thumb.png b/frontend/assets/webrcade/feed/lynx-thumb.png
new file mode 100644
index 000000000..cd5604cec
Binary files /dev/null and b/frontend/assets/webrcade/feed/lynx-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/n64-thumb.png b/frontend/assets/webrcade/feed/n64-thumb.png
new file mode 100644
index 000000000..c87fc163f
Binary files /dev/null and b/frontend/assets/webrcade/feed/n64-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/neo-geo-pocket-color-thumb.png b/frontend/assets/webrcade/feed/neo-geo-pocket-color-thumb.png
new file mode 100644
index 000000000..cb37438c6
Binary files /dev/null and b/frontend/assets/webrcade/feed/neo-geo-pocket-color-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/neo-geo-pocket-thumb.png b/frontend/assets/webrcade/feed/neo-geo-pocket-thumb.png
new file mode 100644
index 000000000..36bc9d6cb
Binary files /dev/null and b/frontend/assets/webrcade/feed/neo-geo-pocket-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/nes-background.png b/frontend/assets/webrcade/feed/nes-background.png
new file mode 100644
index 000000000..cf7a8f1e2
Binary files /dev/null and b/frontend/assets/webrcade/feed/nes-background.png differ
diff --git a/frontend/assets/webrcade/feed/nes-thumb.png b/frontend/assets/webrcade/feed/nes-thumb.png
new file mode 100644
index 000000000..a5b1e88f4
Binary files /dev/null and b/frontend/assets/webrcade/feed/nes-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/sms-background.png b/frontend/assets/webrcade/feed/sms-background.png
new file mode 100644
index 000000000..55e640c1a
Binary files /dev/null and b/frontend/assets/webrcade/feed/sms-background.png differ
diff --git a/frontend/assets/webrcade/feed/sms-thumb.png b/frontend/assets/webrcade/feed/sms-thumb.png
new file mode 100644
index 000000000..b117f0b68
Binary files /dev/null and b/frontend/assets/webrcade/feed/sms-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/snes-background.png b/frontend/assets/webrcade/feed/snes-background.png
new file mode 100644
index 000000000..cc1d586d5
Binary files /dev/null and b/frontend/assets/webrcade/feed/snes-background.png differ
diff --git a/frontend/assets/webrcade/feed/snes-thumb.png b/frontend/assets/webrcade/feed/snes-thumb.png
new file mode 100644
index 000000000..53426a362
Binary files /dev/null and b/frontend/assets/webrcade/feed/snes-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/supergrafx-thumb.png b/frontend/assets/webrcade/feed/supergrafx-thumb.png
new file mode 100644
index 000000000..cb5ad22c7
Binary files /dev/null and b/frontend/assets/webrcade/feed/supergrafx-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/turbografx16--1.png b/frontend/assets/webrcade/feed/turbografx16--1.png
new file mode 100644
index 000000000..6673c966f
Binary files /dev/null and b/frontend/assets/webrcade/feed/turbografx16--1.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/2600-background.png b/frontend/assets/webrcade/feed/uncompressed/2600-background.png
new file mode 100644
index 000000000..2f68caa3d
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/2600-background.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/2600-thumb.png b/frontend/assets/webrcade/feed/uncompressed/2600-thumb.png
new file mode 100644
index 000000000..15c42e617
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/2600-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/7800-background.png b/frontend/assets/webrcade/feed/uncompressed/7800-background.png
new file mode 100644
index 000000000..53d88de4e
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/7800-background.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/7800-thumb.png b/frontend/assets/webrcade/feed/uncompressed/7800-thumb.png
new file mode 100644
index 000000000..980ae19ef
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/7800-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/default-background.png b/frontend/assets/webrcade/feed/uncompressed/default-background.png
new file mode 100644
index 000000000..279b633b3
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/default-background.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/default-thumb.png b/frontend/assets/webrcade/feed/uncompressed/default-thumb.png
new file mode 100644
index 000000000..47d468150
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/default-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/doom-background.png b/frontend/assets/webrcade/feed/uncompressed/doom-background.png
new file mode 100644
index 000000000..4670565c3
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/doom-background.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/doom-thumb.png b/frontend/assets/webrcade/feed/uncompressed/doom-thumb.png
new file mode 100644
index 000000000..7cb0b9916
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/doom-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/gamegear-background.png b/frontend/assets/webrcade/feed/uncompressed/gamegear-background.png
new file mode 100644
index 000000000..088a0c211
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/gamegear-background.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/gamegear-thumb.png b/frontend/assets/webrcade/feed/uncompressed/gamegear-thumb.png
new file mode 100644
index 000000000..06ff81fec
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/gamegear-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/gb-background.png b/frontend/assets/webrcade/feed/uncompressed/gb-background.png
new file mode 100644
index 000000000..9b0683110
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/gb-background.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/gb-thumb.png b/frontend/assets/webrcade/feed/uncompressed/gb-thumb.png
new file mode 100644
index 000000000..7bfbec0ad
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/gb-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/gba-background.png b/frontend/assets/webrcade/feed/uncompressed/gba-background.png
new file mode 100644
index 000000000..9119ba10d
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/gba-background.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/gba-thumb.png b/frontend/assets/webrcade/feed/uncompressed/gba-thumb.png
new file mode 100644
index 000000000..733975041
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/gba-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/gbc-background.png b/frontend/assets/webrcade/feed/uncompressed/gbc-background.png
new file mode 100644
index 000000000..973d7ad48
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/gbc-background.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/gbc-thumb.png b/frontend/assets/webrcade/feed/uncompressed/gbc-thumb.png
new file mode 100644
index 000000000..629bea8be
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/gbc-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/genesis-background.png b/frontend/assets/webrcade/feed/uncompressed/genesis-background.png
new file mode 100644
index 000000000..bd7bad361
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/genesis-background.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/genesis-thumb.png b/frontend/assets/webrcade/feed/uncompressed/genesis-thumb.png
new file mode 100644
index 000000000..761fcb36b
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/genesis-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/lynx-thumb.png b/frontend/assets/webrcade/feed/uncompressed/lynx-thumb.png
new file mode 100644
index 000000000..109226de1
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/lynx-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/mastersystem-background.png b/frontend/assets/webrcade/feed/uncompressed/mastersystem-background.png
new file mode 100644
index 000000000..5cefb9160
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/mastersystem-background.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/mastersystem-thumb.png b/frontend/assets/webrcade/feed/uncompressed/mastersystem-thumb.png
new file mode 100644
index 000000000..37a4c8ba1
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/mastersystem-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/n64-thumb.png b/frontend/assets/webrcade/feed/uncompressed/n64-thumb.png
new file mode 100644
index 000000000..098df80a7
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/n64-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/nes-background.png b/frontend/assets/webrcade/feed/uncompressed/nes-background.png
new file mode 100644
index 000000000..b48f4b034
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/nes-background.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/nes-thumb.png b/frontend/assets/webrcade/feed/uncompressed/nes-thumb.png
new file mode 100644
index 000000000..d4b4d2327
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/nes-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/ngc-thumb.png b/frontend/assets/webrcade/feed/uncompressed/ngc-thumb.png
new file mode 100644
index 000000000..7d3a69400
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/ngc-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/ngp-thumb.png b/frontend/assets/webrcade/feed/uncompressed/ngp-thumb.png
new file mode 100644
index 000000000..2726fddc6
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/ngp-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/pce-thumb.png b/frontend/assets/webrcade/feed/uncompressed/pce-thumb.png
new file mode 100644
index 000000000..6ba6d5a3f
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/pce-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/sgx-thumb.png b/frontend/assets/webrcade/feed/uncompressed/sgx-thumb.png
new file mode 100644
index 000000000..7cbbf8c75
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/sgx-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/snes-background.png b/frontend/assets/webrcade/feed/uncompressed/snes-background.png
new file mode 100644
index 000000000..bfe3c6b66
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/snes-background.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/snes-thumb.png b/frontend/assets/webrcade/feed/uncompressed/snes-thumb.png
new file mode 100644
index 000000000..824f4bd8b
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/snes-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/vb-thumb.png b/frontend/assets/webrcade/feed/uncompressed/vb-thumb.png
new file mode 100644
index 000000000..82b8df6a9
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/vb-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/ws-thumb.png b/frontend/assets/webrcade/feed/uncompressed/ws-thumb.png
new file mode 100644
index 000000000..33266f1e5
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/ws-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/uncompressed/wsc-thumb.png b/frontend/assets/webrcade/feed/uncompressed/wsc-thumb.png
new file mode 100644
index 000000000..2148779ec
Binary files /dev/null and b/frontend/assets/webrcade/feed/uncompressed/wsc-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/virtualboy-thumb.png b/frontend/assets/webrcade/feed/virtualboy-thumb.png
new file mode 100644
index 000000000..4094cd056
Binary files /dev/null and b/frontend/assets/webrcade/feed/virtualboy-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/wonderswan-color-thumb.png b/frontend/assets/webrcade/feed/wonderswan-color-thumb.png
new file mode 100644
index 000000000..88f0182d6
Binary files /dev/null and b/frontend/assets/webrcade/feed/wonderswan-color-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/wonderswan-thumb.png b/frontend/assets/webrcade/feed/wonderswan-thumb.png
new file mode 100644
index 000000000..88f0182d6
Binary files /dev/null and b/frontend/assets/webrcade/feed/wonderswan-thumb.png differ
diff --git a/frontend/assets/webrcade/feed/wsc-thumb.png b/frontend/assets/webrcade/feed/wsc-thumb.png
new file mode 100644
index 000000000..5365d3629
Binary files /dev/null and b/frontend/assets/webrcade/feed/wsc-thumb.png differ
diff --git a/frontend/src/components/Details/Title.vue b/frontend/src/components/Details/Title.vue
index c7f4bddc5..3c10e6d9f 100644
--- a/frontend/src/components/Details/Title.vue
+++ b/frontend/src/components/Details/Title.vue
@@ -9,41 +9,41 @@ const { smAndUp } = useDisplay();
{{ rom.name }}
-
+
{{ rom.platform_name || rom.platform_slug }}
-
+
-
-
- {{ regionToEmoji(region) }}
-
-
- {{ languageToEmoji(language) }}
-
- Rev {{ rom.revision }}
-
+
+ {{
+ regionToEmoji(region)
+ }}
+
+
+ {{
+ languageToEmoji(language)
+ }}
+
+ Rev {{ rom.revision }}
diff --git a/frontend/src/components/Dialog/Platform/CreatePlatformBinding.vue b/frontend/src/components/Dialog/Platform/CreatePlatformBinding.vue
new file mode 100644
index 000000000..eb652f336
--- /dev/null
+++ b/frontend/src/components/Dialog/Platform/CreatePlatformBinding.vue
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Cancel
+
+ Create
+
+
+
+
+
+
diff --git a/frontend/src/components/Game/Card/Cover.vue b/frontend/src/components/Game/Card/Cover.vue
index 1ddcf1dc2..c8421bbfb 100644
--- a/frontend/src/components/Game/Card/Cover.vue
+++ b/frontend/src/components/Game/Card/Cover.vue
@@ -98,11 +98,11 @@ function onTouchEnd() {
{{ rom.name || rom.file_name }}
-
+
@@ -112,7 +112,7 @@ function onTouchEnd() {
diff --git a/frontend/src/components/Platform/PlatformListItem.vue b/frontend/src/components/Platform/PlatformListItem.vue
index d31d8425a..07827eaa4 100644
--- a/frontend/src/components/Platform/PlatformListItem.vue
+++ b/frontend/src/components/Platform/PlatformListItem.vue
@@ -15,7 +15,7 @@ const props = defineProps(["platform", "rail"]);
{{ platform.name }}
-
+
⚠️
diff --git a/frontend/src/components/Settings/Config/ExclusionsCard.vue b/frontend/src/components/Settings/Config/ExclusionsCard.vue
new file mode 100644
index 000000000..9ec8a953a
--- /dev/null
+++ b/frontend/src/components/Settings/Config/ExclusionsCard.vue
@@ -0,0 +1,150 @@
+
+
+
+
+
+ mdi-cancel
+ Excluded
+
+
+ Add
+
+
+
+
+
+
+
+
+ mdi-controller-off
+ Platforms
+
+
+
+
+ {{
+ excluded
+ }}
+
+
+
+
+
+
+ mdi-file-document-remove-outline
+ Single Roms Files
+
+
+
+
+ {{ excluded }}
+
+
+
+
+
+
+ mdi-file-document-remove-outline
+ Single Roms Extensions
+
+
+
+
+ {{ excluded }}
+
+
+
+
+
+
+ mdi-file-document-remove-outline
+ Multi Roms Files
+
+
+
+
+ {{ excluded }}
+
+
+
+
+
+
+ mdi-file-document-remove-outline
+ Multi Roms Parts Files
+
+
+
+
+ {{ excluded }}
+
+
+
+
+
+
+ mdi-file-document-remove-outline
+ Multi Roms Parts Extensions
+
+
+
+
+ {{ excluded }}
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/components/Settings/Config/PlatformBindingCard.vue b/frontend/src/components/Settings/Config/PlatformBindingCard.vue
new file mode 100644
index 000000000..7f703b52c
--- /dev/null
+++ b/frontend/src/components/Settings/Config/PlatformBindingCard.vue
@@ -0,0 +1,58 @@
+
+
+
+
+
+ mdi-controller
+ Platforms Bindings
+
+
+ Add
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ fs_platform }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/components/Settings/General/TaskStatus/TaskStatusCard.vue b/frontend/src/components/Settings/General/TaskStatus/TaskStatusCard.vue
index 567b3f5c8..6accbe035 100644
--- a/frontend/src/components/Settings/General/TaskStatus/TaskStatusCard.vue
+++ b/frontend/src/components/Settings/General/TaskStatus/TaskStatusCard.vue
@@ -1,6 +1,7 @@
-
+
-
+
-
+
diff --git a/frontend/src/views/Details/Base.vue b/frontend/src/views/Details/Base.vue
index 4b84c6f29..a28e3abbd 100644
--- a/frontend/src/views/Details/Base.vue
+++ b/frontend/src/views/Details/Base.vue
@@ -22,7 +22,7 @@ const romsStore = storeRoms();
const { allRoms } = storeToRefs(romsStore);
const rom = ref(allRoms.value.find((rom) => rom.id == route.params.rom));
const tab = ref("details");
-const { xs, sm, md, lgAndUp, name } = useDisplay();
+const { xs, sm, md, lgAndUp } = useDisplay();
// Event listeners bus
const emitter = inject("emitter");
@@ -148,7 +148,7 @@ onBeforeMount(async () => {
.content,
.content-tablet-md {
- margin-top: 82px;
+ margin-top: 86px;
margin-left: 100px;
}
diff --git a/frontend/src/views/Gallery/Base.vue b/frontend/src/views/Gallery/Base.vue
index e3ac4bef8..c212d8eba 100644
--- a/frontend/src/views/Gallery/Base.vue
+++ b/frontend/src/views/Gallery/Base.vue
@@ -184,7 +184,7 @@ onBeforeRouteUpdate((to, _) => {
-
+
{
-
+
diff --git a/frontend/src/views/Settings/ControlPanel/Base.vue b/frontend/src/views/Settings/ControlPanel/Base.vue
index 91883d118..b57c26434 100644
--- a/frontend/src/views/Settings/ControlPanel/Base.vue
+++ b/frontend/src/views/Settings/ControlPanel/Base.vue
@@ -2,6 +2,7 @@
import { ref } from "vue";
import storeAuth from "@/stores/auth";
import Settings from "@/views/Settings/ControlPanel/General/Base.vue";
+import Config from "@/views/Settings/ControlPanel/Config/Base.vue";
import Users from "@/views/Settings/ControlPanel/Users/Base.vue";
import storeHeartbeat from "@/stores/heartbeat";
@@ -15,6 +16,7 @@ const tab = ref("general");
General
+ Config
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/views/Settings/ControlPanel/Config/Base.vue b/frontend/src/views/Settings/ControlPanel/Config/Base.vue
new file mode 100644
index 000000000..79a639968
--- /dev/null
+++ b/frontend/src/views/Settings/ControlPanel/Config/Base.vue
@@ -0,0 +1,8 @@
+
+
+
+
+
diff --git a/frontend/src/views/Settings/ControlPanel/General/Base.vue b/frontend/src/views/Settings/ControlPanel/General/Base.vue
index 1622777b7..794c21c74 100644
--- a/frontend/src/views/Settings/ControlPanel/General/Base.vue
+++ b/frontend/src/views/Settings/ControlPanel/General/Base.vue
@@ -4,5 +4,5 @@ import TaskStatus from "@/components/Settings/General/TaskStatus/TaskStatusCard.
-
+
diff --git a/frontend/src/views/Settings/ControlPanel/Users/Base.vue b/frontend/src/views/Settings/ControlPanel/Users/Base.vue
index 0b327c593..e2783199a 100644
--- a/frontend/src/views/Settings/ControlPanel/Users/Base.vue
+++ b/frontend/src/views/Settings/ControlPanel/Users/Base.vue
@@ -87,7 +87,7 @@ onMounted(() => {
class="text-romm-accent-1"
@click="emitter.emit('showCreateUserDialog')"
>
- Add user
+ Add