Ver código fonte

Rename core app to emus_web

Colin Powell 2 anos atrás
pai
commit
0aa5c74489
100 arquivos alterados com 12 adições e 10 exclusões
  1. 1 0
      .gitignore
  2. 0 0
      emus_web/__init__.py
  3. 0 0
      emus_web/apps/activitypub/__init__.py
  4. 0 0
      emus_web/apps/activitypub/exceptions.py
  5. 0 0
      emus_web/apps/activitypub/models.py
  6. 0 0
      emus_web/apps/activitypub/signatures.py
  7. 0 0
      emus_web/apps/activitypub/utils.py
  8. 0 0
      emus_web/apps/activitypub/views.py
  9. 0 0
      emus_web/apps/games/__init__.py
  10. 0 0
      emus_web/apps/games/admin.py
  11. 0 0
      emus_web/apps/games/api/__init__.py
  12. 0 0
      emus_web/apps/games/api/serializers.py
  13. 0 0
      emus_web/apps/games/api/views.py
  14. 0 0
      emus_web/apps/games/apps.py
  15. 0 0
      emus_web/apps/games/constants.py
  16. 0 0
      emus_web/apps/games/context_processors.py
  17. 0 0
      emus_web/apps/games/management/__init__.py
  18. 0 0
      emus_web/apps/games/management/commands/__init__.py
  19. 0 0
      emus_web/apps/games/management/commands/export_collections.py
  20. 0 0
      emus_web/apps/games/management/commands/export_gamelist_xml_file.py
  21. 0 0
      emus_web/apps/games/management/commands/import_gamelist_xml_file.py
  22. 0 0
      emus_web/apps/games/management/commands/scrape_roms.py
  23. 0 0
      emus_web/apps/games/management/commands/update_roms.py
  24. 0 0
      emus_web/apps/games/migrations/0001_initial.py
  25. 0 0
      emus_web/apps/games/migrations/0002_alter_game_players.py
  26. 0 0
      emus_web/apps/games/migrations/0003_alter_game_developer_alter_game_publisher.py
  27. 0 0
      emus_web/apps/games/migrations/0004_game_english_patched_game_english_patched_version_and_more.py
  28. 0 0
      emus_web/apps/games/migrations/0005_game_region_game_undub.py
  29. 0 0
      emus_web/apps/games/migrations/0006_alter_game_region.py
  30. 0 0
      emus_web/apps/games/migrations/0007_alter_game_marquee_alter_game_region_and_more.py
  31. 0 0
      emus_web/apps/games/migrations/0008_game_featured.py
  32. 0 0
      emus_web/apps/games/migrations/0009_developer_created_developer_modified_game_created_and_more.py
  33. 0 0
      emus_web/apps/games/migrations/0010_alter_game_release_date.py
  34. 0 0
      emus_web/apps/games/migrations/0011_alter_game_region.py
  35. 0 0
      emus_web/apps/games/migrations/0012_alter_game_marquee_alter_game_rom_file_and_more.py
  36. 0 0
      emus_web/apps/games/migrations/0013_alter_game_screenshot.py
  37. 0 0
      emus_web/apps/games/migrations/0014_alter_developer_options_alter_game_options_and_more.py
  38. 0 0
      emus_web/apps/games/migrations/0015_gamecollection.py
  39. 0 0
      emus_web/apps/games/migrations/0016_game_source_game_tags_and_more.py
  40. 0 0
      emus_web/apps/games/migrations/0017_game_featured_on.py
  41. 0 0
      emus_web/apps/games/migrations/0018_remove_game_featured_alter_game_tags.py
  42. 0 0
      emus_web/apps/games/migrations/0019_game_finished_on_game_started_on.py
  43. 0 0
      emus_web/apps/games/migrations/0020_developer_uuid_game_uuid_gamecollection_uuid_and_more.py
  44. 0 0
      emus_web/apps/games/migrations/0021_remove_game_finished_on_remove_game_started_on.py
  45. 0 0
      emus_web/apps/games/migrations/__init__.py
  46. 4 2
      emus_web/apps/games/models.py
  47. 0 0
      emus_web/apps/games/tasks.py
  48. 0 0
      emus_web/apps/games/tests.py
  49. 0 0
      emus_web/apps/games/urls.py
  50. 0 0
      emus_web/apps/games/utils.py
  51. 0 0
      emus_web/apps/games/views.py
  52. 0 0
      emus_web/apps/profiles/__init__.py
  53. 0 0
      emus_web/apps/profiles/admin.py
  54. 0 0
      emus_web/apps/profiles/apps.py
  55. 0 0
      emus_web/apps/profiles/migrations/0001_initial.py
  56. 0 0
      emus_web/apps/profiles/migrations/0002_usergameprogress_finished_ts_and_more.py
  57. 0 0
      emus_web/apps/profiles/migrations/0003_alter_usergameprogress_user.py
  58. 0 0
      emus_web/apps/profiles/migrations/0004_alter_userprofile_user_historicalusergameprogress.py
  59. 0 0
      emus_web/apps/profiles/migrations/0005_historicalusergameplaythrough_usergameplaythrough_and_more.py
  60. 0 0
      emus_web/apps/profiles/migrations/__init__.py
  61. 0 0
      emus_web/apps/profiles/models.py
  62. 0 0
      emus_web/apps/scraper/main.py
  63. 0 0
      emus_web/apps/search/__init__.py
  64. 0 0
      emus_web/apps/search/urls.py
  65. 0 0
      emus_web/apps/search/views.py
  66. 1 1
      emus_web/asgi.py
  67. 1 1
      emus_web/celery.py
  68. 2 2
      emus_web/cli.py
  69. 3 4
      emus_web/settings.py
  70. 0 0
      emus_web/static/css/style.css
  71. 0 0
      emus_web/static/img/spinner.gif
  72. 0 0
      emus_web/static/js/webretro/.gitattributes
  73. 0 0
      emus_web/static/js/webretro/.gitignore
  74. 0 0
      emus_web/static/js/webretro/LICENSE
  75. 0 0
      emus_web/static/js/webretro/assets/bar.png
  76. 0 0
      emus_web/static/js/webretro/assets/base.css
  77. 0 0
      emus_web/static/js/webretro/assets/base.js
  78. 0 0
      emus_web/static/js/webretro/assets/charToCodeMap.js
  79. 0 0
      emus_web/static/js/webretro/assets/controller_layout.png
  80. 0 0
      emus_web/static/js/webretro/assets/controller_layout.xcf
  81. 0 0
      emus_web/static/js/webretro/assets/dropbox.png
  82. 0 0
      emus_web/static/js/webretro/assets/googledrive.png
  83. 0 0
      emus_web/static/js/webretro/assets/icon102.png
  84. 0 0
      emus_web/static/js/webretro/assets/icon204.png
  85. 0 0
      emus_web/static/js/webretro/assets/info.json
  86. 0 0
      emus_web/static/js/webretro/assets/jswindow.css
  87. 0 0
      emus_web/static/js/webretro/assets/jswindow.js
  88. 0 0
      emus_web/static/js/webretro/assets/md5.min.js
  89. 0 0
      emus_web/static/js/webretro/assets/onedrive.png
  90. 0 0
      emus_web/static/js/webretro/assets/terminal.svg
  91. 0 0
      emus_web/static/js/webretro/assets/zip-2.2.26.min.js
  92. 0 0
      emus_web/static/js/webretro/bundle/assets/menu_widgets/msg_queue_icon.png
  93. 0 0
      emus_web/static/js/webretro/bundle/assets/menu_widgets/msg_queue_icon_outline.png
  94. 0 0
      emus_web/static/js/webretro/bundle/assets/menu_widgets/msg_queue_icon_rect.png
  95. 0 0
      emus_web/static/js/webretro/bundle/assets/ozone/bold.ttf
  96. 0 0
      emus_web/static/js/webretro/bundle/assets/ozone/png/cursor_border.png
  97. 0 0
      emus_web/static/js/webretro/bundle/assets/ozone/png/dark/check.png
  98. 0 0
      emus_web/static/js/webretro/bundle/assets/ozone/png/dark/cursor_noborder.png
  99. 0 0
      emus_web/static/js/webretro/bundle/assets/ozone/png/dark/cursor_static.png
  100. 0 0
      emus_web/static/js/webretro/bundle/assets/ozone/png/dark/switch.png

+ 1 - 0
.gitignore

@@ -2,3 +2,4 @@ db.sqlite3
 emus.conf
 /media/
 skyscraper.ini
+/dist/

+ 0 - 0
emus/__init__.py → emus_web/__init__.py


+ 0 - 0
emus/apps/activitypub/__init__.py → emus_web/apps/activitypub/__init__.py


+ 0 - 0
emus/apps/activitypub/exceptions.py → emus_web/apps/activitypub/exceptions.py


+ 0 - 0
emus/apps/activitypub/models.py → emus_web/apps/activitypub/models.py


+ 0 - 0
emus/apps/activitypub/signatures.py → emus_web/apps/activitypub/signatures.py


+ 0 - 0
emus/apps/activitypub/utils.py → emus_web/apps/activitypub/utils.py


+ 0 - 0
emus/apps/activitypub/views.py → emus_web/apps/activitypub/views.py


+ 0 - 0
emus/apps/games/__init__.py → emus_web/apps/games/__init__.py


+ 0 - 0
emus/apps/games/admin.py → emus_web/apps/games/admin.py


+ 0 - 0
emus/apps/games/api/__init__.py → emus_web/apps/games/api/__init__.py


+ 0 - 0
emus/apps/games/api/serializers.py → emus_web/apps/games/api/serializers.py


+ 0 - 0
emus/apps/games/api/views.py → emus_web/apps/games/api/views.py


+ 0 - 0
emus/apps/games/apps.py → emus_web/apps/games/apps.py


+ 0 - 0
emus/apps/games/constants.py → emus_web/apps/games/constants.py


+ 0 - 0
emus/apps/games/context_processors.py → emus_web/apps/games/context_processors.py


+ 0 - 0
emus/apps/games/management/__init__.py → emus_web/apps/games/management/__init__.py


+ 0 - 0
emus/apps/games/management/commands/__init__.py → emus_web/apps/games/management/commands/__init__.py


+ 0 - 0
emus/apps/games/management/commands/export_collections.py → emus_web/apps/games/management/commands/export_collections.py


+ 0 - 0
emus/apps/games/management/commands/export_gamelist_xml_file.py → emus_web/apps/games/management/commands/export_gamelist_xml_file.py


+ 0 - 0
emus/apps/games/management/commands/import_gamelist_xml_file.py → emus_web/apps/games/management/commands/import_gamelist_xml_file.py


+ 0 - 0
emus/apps/games/management/commands/scrape_roms.py → emus_web/apps/games/management/commands/scrape_roms.py


+ 0 - 0
emus/apps/games/management/commands/update_roms.py → emus_web/apps/games/management/commands/update_roms.py


+ 0 - 0
emus/apps/games/migrations/0001_initial.py → emus_web/apps/games/migrations/0001_initial.py


+ 0 - 0
emus/apps/games/migrations/0002_alter_game_players.py → emus_web/apps/games/migrations/0002_alter_game_players.py


+ 0 - 0
emus/apps/games/migrations/0003_alter_game_developer_alter_game_publisher.py → emus_web/apps/games/migrations/0003_alter_game_developer_alter_game_publisher.py


+ 0 - 0
emus/apps/games/migrations/0004_game_english_patched_game_english_patched_version_and_more.py → emus_web/apps/games/migrations/0004_game_english_patched_game_english_patched_version_and_more.py


+ 0 - 0
emus/apps/games/migrations/0005_game_region_game_undub.py → emus_web/apps/games/migrations/0005_game_region_game_undub.py


+ 0 - 0
emus/apps/games/migrations/0006_alter_game_region.py → emus_web/apps/games/migrations/0006_alter_game_region.py


+ 0 - 0
emus/apps/games/migrations/0007_alter_game_marquee_alter_game_region_and_more.py → emus_web/apps/games/migrations/0007_alter_game_marquee_alter_game_region_and_more.py


+ 0 - 0
emus/apps/games/migrations/0008_game_featured.py → emus_web/apps/games/migrations/0008_game_featured.py


+ 0 - 0
emus/apps/games/migrations/0009_developer_created_developer_modified_game_created_and_more.py → emus_web/apps/games/migrations/0009_developer_created_developer_modified_game_created_and_more.py


+ 0 - 0
emus/apps/games/migrations/0010_alter_game_release_date.py → emus_web/apps/games/migrations/0010_alter_game_release_date.py


+ 0 - 0
emus/apps/games/migrations/0011_alter_game_region.py → emus_web/apps/games/migrations/0011_alter_game_region.py


+ 0 - 0
emus/apps/games/migrations/0012_alter_game_marquee_alter_game_rom_file_and_more.py → emus_web/apps/games/migrations/0012_alter_game_marquee_alter_game_rom_file_and_more.py


+ 0 - 0
emus/apps/games/migrations/0013_alter_game_screenshot.py → emus_web/apps/games/migrations/0013_alter_game_screenshot.py


+ 0 - 0
emus/apps/games/migrations/0014_alter_developer_options_alter_game_options_and_more.py → emus_web/apps/games/migrations/0014_alter_developer_options_alter_game_options_and_more.py


+ 0 - 0
emus/apps/games/migrations/0015_gamecollection.py → emus_web/apps/games/migrations/0015_gamecollection.py


+ 0 - 0
emus/apps/games/migrations/0016_game_source_game_tags_and_more.py → emus_web/apps/games/migrations/0016_game_source_game_tags_and_more.py


+ 0 - 0
emus/apps/games/migrations/0017_game_featured_on.py → emus_web/apps/games/migrations/0017_game_featured_on.py


+ 0 - 0
emus/apps/games/migrations/0018_remove_game_featured_alter_game_tags.py → emus_web/apps/games/migrations/0018_remove_game_featured_alter_game_tags.py


+ 0 - 0
emus/apps/games/migrations/0019_game_finished_on_game_started_on.py → emus_web/apps/games/migrations/0019_game_finished_on_game_started_on.py


+ 0 - 0
emus/apps/games/migrations/0020_developer_uuid_game_uuid_gamecollection_uuid_and_more.py → emus_web/apps/games/migrations/0020_developer_uuid_game_uuid_gamecollection_uuid_and_more.py


+ 0 - 0
emus/apps/games/migrations/0021_remove_game_finished_on_remove_game_started_on.py → emus_web/apps/games/migrations/0021_remove_game_finished_on_remove_game_started_on.py


+ 0 - 0
emus/apps/games/migrations/__init__.py → emus_web/apps/games/migrations/__init__.py


+ 4 - 2
emus/apps/games/models.py → emus_web/apps/games/models.py

@@ -9,7 +9,7 @@ from django.db import models
 from django.urls import reverse
 from django_extensions.db.fields import AutoSlugField
 from django_extensions.db.models import TimeStampedModel
-from emus.utils import ChoiceEnum
+from emus_web.utils import ChoiceEnum
 from taggit.managers import TaggableManager
 
 logger = logging.getLogger(__name__)
@@ -289,7 +289,9 @@ class Game(BaseModel):
             if new_path:
                 rom_file = quote("/".join(new_path))
         if not os.path.exists(self.retroarch_core_path):
-            logger.info(f"Missing libretro core file at {self.retroarch_core_path}")
+            logger.info(
+                f"Missing libretro core file at {self.retroarch_core_path}"
+            )
             return f"Libretro core not found at {self.retroarch_core_path}"
 
         return f"retroarch -L {self.retroarch_core_path} {rom_file} -v"

+ 0 - 0
emus/apps/games/tasks.py → emus_web/apps/games/tasks.py


+ 0 - 0
emus/apps/games/tests.py → emus_web/apps/games/tests.py


+ 0 - 0
emus/apps/games/urls.py → emus_web/apps/games/urls.py


+ 0 - 0
emus/apps/games/utils.py → emus_web/apps/games/utils.py


+ 0 - 0
emus/apps/games/views.py → emus_web/apps/games/views.py


+ 0 - 0
emus/apps/profiles/__init__.py → emus_web/apps/profiles/__init__.py


+ 0 - 0
emus/apps/profiles/admin.py → emus_web/apps/profiles/admin.py


+ 0 - 0
emus/apps/profiles/apps.py → emus_web/apps/profiles/apps.py


+ 0 - 0
emus/apps/profiles/migrations/0001_initial.py → emus_web/apps/profiles/migrations/0001_initial.py


+ 0 - 0
emus/apps/profiles/migrations/0002_usergameprogress_finished_ts_and_more.py → emus_web/apps/profiles/migrations/0002_usergameprogress_finished_ts_and_more.py


+ 0 - 0
emus/apps/profiles/migrations/0003_alter_usergameprogress_user.py → emus_web/apps/profiles/migrations/0003_alter_usergameprogress_user.py


+ 0 - 0
emus/apps/profiles/migrations/0004_alter_userprofile_user_historicalusergameprogress.py → emus_web/apps/profiles/migrations/0004_alter_userprofile_user_historicalusergameprogress.py


+ 0 - 0
emus/apps/profiles/migrations/0005_historicalusergameplaythrough_usergameplaythrough_and_more.py → emus_web/apps/profiles/migrations/0005_historicalusergameplaythrough_usergameplaythrough_and_more.py


+ 0 - 0
emus/apps/profiles/migrations/__init__.py → emus_web/apps/profiles/migrations/__init__.py


+ 0 - 0
emus/apps/profiles/models.py → emus_web/apps/profiles/models.py


+ 0 - 0
emus/apps/scraper/main.py → emus_web/apps/scraper/main.py


+ 0 - 0
emus/apps/search/__init__.py → emus_web/apps/search/__init__.py


+ 0 - 0
emus/apps/search/urls.py → emus_web/apps/search/urls.py


+ 0 - 0
emus/apps/search/views.py → emus_web/apps/search/views.py


+ 1 - 1
emus/asgi.py → emus_web/asgi.py

@@ -11,6 +11,6 @@ import os
 
 from django.core.asgi import get_asgi_application
 
-os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'emus.settings')
+os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'emus_web.settings')
 
 application = get_asgi_application()

+ 1 - 1
emus/celery.py → emus_web/celery.py

@@ -2,7 +2,7 @@ import os
 
 from celery import Celery
 
-os.environ.setdefault("DJANGO_SETTINGS_MODULE", "emus.settings")
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "emus_web.settings")
 app = Celery()
 app.config_from_object("django.conf:settings", namespace="CELERY")
 app.autodiscover_tasks()

+ 2 - 2
emus/cli.py → emus_web/cli.py

@@ -4,7 +4,7 @@ from os import environ as env
 
 
 if not 'DJANGO_SETTINGS_MODULE' in env:
-    from emus import settings
+    from emus_web import settings
 
     env.setdefault('DJANGO_SETTINGS_MODULE', settings.__name__)
 
@@ -14,7 +14,7 @@ import django
 django.setup()
 
 # this line must be after django.setup() for logging configure
-logger = logging.getLogger('emus')
+logger = logging.getLogger('emus_web')
 
 
 def main():

+ 3 - 4
emus/settings.py → emus_web/settings.py

@@ -63,7 +63,6 @@ INSTALLED_APPS = [
     "django_extensions",
     "markdownify.apps.MarkdownifyConfig",
     "taggit",
-    "emus",
     "profiles",
     "mathfilters",
     "search",
@@ -89,7 +88,7 @@ MIDDLEWARE = [
     "simple_history.middleware.HistoryRequestMiddleware",
 ]
 
-ROOT_URLCONF = "emus.urls"
+ROOT_URLCONF = "emus_web.urls"
 
 TEMPLATES = [
     {
@@ -108,7 +107,7 @@ TEMPLATES = [
     },
 ]
 
-WSGI_APPLICATION = "emus.wsgi.application"
+WSGI_APPLICATION = "emus_web.wsgi.application"
 
 DATABASES = {
     "default": dj_database_url.config(
@@ -269,7 +268,7 @@ LOGGING = {
             "propagate": True,
         },
         "django.db.backends": {"handlers": ["null"]},
-        "emus": {
+        "emus_web": {
             "handlers": ["console", "file"],
             "propagate": True,
         },

+ 0 - 0
emus/static/css/style.css → emus_web/static/css/style.css


+ 0 - 0
emus/static/img/spinner.gif → emus_web/static/img/spinner.gif


+ 0 - 0
emus/static/js/webretro/.gitattributes → emus_web/static/js/webretro/.gitattributes


+ 0 - 0
emus/static/js/webretro/.gitignore → emus_web/static/js/webretro/.gitignore


+ 0 - 0
emus/static/js/webretro/LICENSE → emus_web/static/js/webretro/LICENSE


+ 0 - 0
emus/static/js/webretro/assets/bar.png → emus_web/static/js/webretro/assets/bar.png


+ 0 - 0
emus/static/js/webretro/assets/base.css → emus_web/static/js/webretro/assets/base.css


+ 0 - 0
emus/static/js/webretro/assets/base.js → emus_web/static/js/webretro/assets/base.js


+ 0 - 0
emus/static/js/webretro/assets/charToCodeMap.js → emus_web/static/js/webretro/assets/charToCodeMap.js


+ 0 - 0
emus/static/js/webretro/assets/controller_layout.png → emus_web/static/js/webretro/assets/controller_layout.png


+ 0 - 0
emus/static/js/webretro/assets/controller_layout.xcf → emus_web/static/js/webretro/assets/controller_layout.xcf


+ 0 - 0
emus/static/js/webretro/assets/dropbox.png → emus_web/static/js/webretro/assets/dropbox.png


+ 0 - 0
emus/static/js/webretro/assets/googledrive.png → emus_web/static/js/webretro/assets/googledrive.png


+ 0 - 0
emus/static/js/webretro/assets/icon102.png → emus_web/static/js/webretro/assets/icon102.png


+ 0 - 0
emus/static/js/webretro/assets/icon204.png → emus_web/static/js/webretro/assets/icon204.png


+ 0 - 0
emus/static/js/webretro/assets/info.json → emus_web/static/js/webretro/assets/info.json


+ 0 - 0
emus/static/js/webretro/assets/jswindow.css → emus_web/static/js/webretro/assets/jswindow.css


+ 0 - 0
emus/static/js/webretro/assets/jswindow.js → emus_web/static/js/webretro/assets/jswindow.js


+ 0 - 0
emus/static/js/webretro/assets/md5.min.js → emus_web/static/js/webretro/assets/md5.min.js


+ 0 - 0
emus/static/js/webretro/assets/onedrive.png → emus_web/static/js/webretro/assets/onedrive.png


+ 0 - 0
emus/static/js/webretro/assets/terminal.svg → emus_web/static/js/webretro/assets/terminal.svg


+ 0 - 0
emus/static/js/webretro/assets/zip-2.2.26.min.js → emus_web/static/js/webretro/assets/zip-2.2.26.min.js


+ 0 - 0
emus/static/js/webretro/bundle/assets/menu_widgets/msg_queue_icon.png → emus_web/static/js/webretro/bundle/assets/menu_widgets/msg_queue_icon.png


+ 0 - 0
emus/static/js/webretro/bundle/assets/menu_widgets/msg_queue_icon_outline.png → emus_web/static/js/webretro/bundle/assets/menu_widgets/msg_queue_icon_outline.png


+ 0 - 0
emus/static/js/webretro/bundle/assets/menu_widgets/msg_queue_icon_rect.png → emus_web/static/js/webretro/bundle/assets/menu_widgets/msg_queue_icon_rect.png


+ 0 - 0
emus/static/js/webretro/bundle/assets/ozone/bold.ttf → emus_web/static/js/webretro/bundle/assets/ozone/bold.ttf


+ 0 - 0
emus/static/js/webretro/bundle/assets/ozone/png/cursor_border.png → emus_web/static/js/webretro/bundle/assets/ozone/png/cursor_border.png


+ 0 - 0
emus/static/js/webretro/bundle/assets/ozone/png/dark/check.png → emus_web/static/js/webretro/bundle/assets/ozone/png/dark/check.png


+ 0 - 0
emus/static/js/webretro/bundle/assets/ozone/png/dark/cursor_noborder.png → emus_web/static/js/webretro/bundle/assets/ozone/png/dark/cursor_noborder.png


+ 0 - 0
emus/static/js/webretro/bundle/assets/ozone/png/dark/cursor_static.png → emus_web/static/js/webretro/bundle/assets/ozone/png/dark/cursor_static.png


+ 0 - 0
emus/static/js/webretro/bundle/assets/ozone/png/dark/switch.png → emus_web/static/js/webretro/bundle/assets/ozone/png/dark/switch.png


Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff