Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
473 commits
Select commit Hold shift + click to select a range
1d4d6de
Move the media files
May 3, 2022
4a45ace
Configure webpack
May 3, 2022
b72b067
Move the CSS media to assets folder
May 3, 2022
de363ed
Remove duplicated media files
May 3, 2022
80596aa
Remove legacy stylesheet
May 4, 2022
d7d91c6
Implement LESS compilation and building of JS and style assets throug…
May 4, 2022
7e562db
Add Node and NPM to the app Docker container
May 5, 2022
1d12668
Fix homepage style
May 5, 2022
c6d46b8
Use the webpack compiled images
May 5, 2022
2ceaa1c
Merge pull request #40 from Kern046/task/remove-legacy-assets
Kern046 May 5, 2022
9b1eb66
Require tailwind as a front dependency
May 6, 2022
8baadc7
Refactor login screen with tailwind
May 6, 2022
ccf023d
Merge pull request #41 from Kern046/task/tailwind
Kern046 May 6, 2022
5618ef7
Hotfix webpack compilation
May 6, 2022
1ab80ef
Migrate navbar and toolbar to Tailwind header
May 15, 2022
7d6a232
Require VueJS as a project dependency
May 20, 2022
0db75c9
Configure Webpack to support VueJS and implement ToolbarPicto component
May 20, 2022
bcbc2fd
Implement ToolbarToggler component
Jun 5, 2022
24c3633
Refactor action-box with Tailwind
Jun 6, 2022
f3c1400
Fix commander ships table with Tailwind
Jun 6, 2022
a536bed
Fix the column movers
Jun 6, 2022
f63e0fd
Merge pull request #43 from Kern046/task/toolbars
Kern046 Jun 6, 2022
1d2deca
Require Doctrine ORM pack as a project dependency
Apr 4, 2022
b791d9e
Configure Player and Color mappings
Apr 4, 2022
dc7d138
Move most of the project under Doctrine ORM
Jun 25, 2022
5c1b204
Fix Webpack config
TefDesign Jun 6, 2023
1aefe2a
Fix de l'affichage dans dock des vaisseaux
TefDesign Jun 7, 2023
162d3e8
Merge pull request #49 from Kern046/fix/docks
Kern046 Jun 7, 2023
94a1f28
Fix front dependencies
Kern046 Jun 7, 2023
2ab1de7
Fix du scroll dans la colonne
TefDesign Jun 8, 2023
325acaa
Merge pull request #50 from Kern046/fix/scroll-colonne
Kern046 Jun 10, 2023
2ef91ab
Implement Symfony Validator constraints for building orders
Kern046 Jun 13, 2023
4024e35
Implement constraints with selector behavior for data matching
Kern046 Jun 19, 2023
da4e009
Require Foundry as a dev dependency
Kern046 Jun 19, 2023
6c183d7
Implement tests for repository retrieval method with specification
Kern046 Jun 20, 2023
035b88f
Refactor rankings processing
Kern046 Aug 6, 2023
5b4eeaf
Fix appearance of map action-box when a place is selected
Kern046 Aug 11, 2023
3efe0ab
Fix faction data views
Kern046 Aug 11, 2023
017b1fa
Fix link to financial interface from university investment update not…
Kern046 Aug 11, 2023
9e45b7d
Register Dotenv Dump command
Kern046 Aug 12, 2023
e744769
Clear old classes and environment variables
Kern046 Aug 12, 2023
a4dac6c
Upgrade dependencies and Symfony to 6.3
Kern046 Aug 12, 2023
50ac93c
Add Dotenv dump command to Composer auto scripts
Kern046 Aug 12, 2023
84f0d3f
Remove dump tags
Kern046 Aug 12, 2023
8c3d110
Fix ranking behavior and displays then begin to work on conversations
Kern046 Aug 19, 2023
0383319
Fix planet transformation to gas reserve after conquest
Aug 23, 2023
42d2ab4
Fix colonization duration
Aug 23, 2023
b8337b6
Debug colonization (credit cost, duration, sector ownership) and impr…
Aug 24, 2023
e3709e5
Add future Doctrine configuration for XSD validation
Aug 24, 2023
0a9f5c6
Fix Senate update and Ballot Handling for coups and elections
Aug 25, 2023
3c35dbc
Migrate putsches to Doctrine ORM
Aug 25, 2023
a287211
Migrate government actions and elections, along with recycling missio…
Kern046 Aug 26, 2023
6ccfa00
Fix HTTP method for notification read endpoint
Kern046 Aug 27, 2023
ff5e72d
FIx antispy circle radius calculation method
Kern046 Aug 27, 2023
5c90ce8
Fix conquest range validation
Kern046 Aug 27, 2023
0ced347
Fix fleet movement duration for Move, Loot and ComeBack
Kern046 Aug 27, 2023
d93ee4b
Refactor AntiSpy, Distance, Fleet speed and Travel time game methods …
Kern046 Aug 27, 2023
dad3eaf
Fix travelType argument type for fleet movements and commander rank f…
Kern046 Aug 27, 2023
1f3104a
Fix base fast views in base overview and profile page
Kern046 Aug 28, 2023
3a61a99
Refonte du tutoriel
TefDesign Sep 7, 2023
1663134
Add new CSS class for faction colored buttons and badges texts
Kern046 Sep 9, 2023
c9d20fd
Merge pull request #53 from Kern046/fix/tutoriel
Kern046 Sep 9, 2023
ab7c5b7
Fix de la popin choix de ses planètes
TefDesign Sep 7, 2023
635ae69
Merge pull request #54 from Kern046/fix/choice-planets
Kern046 Sep 9, 2023
f20a6c2
fix popin header
TefDesign Nov 4, 2023
ab3b97c
Migrate commercial routes management
Kern046 Dec 15, 2023
4bcc140
Upgrade Symfony to 6.4
Kern046 Dec 23, 2023
e5eeec7
Replace Docker image cron with Symfony Scheduler component
Kern046 Dec 24, 2023
76076fe
Fix commercial shipping delivery and coming back
Kern046 Dec 27, 2023
bef5399
Move law effectiveness scheduling to a dedicated handler
Kern046 Dec 27, 2023
6ab9fbe
Add missing save method for delivered commercial shippings
Kern046 Dec 27, 2023
ba7efb5
Remove entrypoint instruction from PHPFPM Dockerfile
Kern046 Dec 28, 2023
3b48c7a
Stbilize the test suite and remove all obsolete tests
Kern046 Dec 28, 2023
f84e003
Fix Place entity properties and mapping types
Kern046 Dec 28, 2023
7869a04
Add custom exceptions when current player or base is not set
Kern046 Dec 28, 2023
fef8d6c
Fix GetTravelTime service return type for commercial ships
Kern046 Dec 28, 2023
dd7cdd2
Add a failsafe to PlayerBonusManager to return current player bonus i…
Kern046 Dec 28, 2023
daaa660
Change random pick to randomOrCreate for Foundry Factory association …
Kern046 Dec 28, 2023
e522d6b
Set a more precise version of server version in the DATABASE_URL envi…
Kern046 Dec 28, 2023
e6ee0f3
Add Make shortcut commands to consume async and scheduler messages
Kern046 Dec 28, 2023
b9b2a02
Start to refactor Trade controllers into dedicated services
Kern046 Dec 28, 2023
9157bee
Fix notifications cleaning query builder
Kern046 Dec 30, 2023
3c2204b
Fix various deprecations about precision loss in number casting
Kern046 Dec 30, 2023
fb3a76b
Fix queues cancellation
Kern046 Dec 30, 2023
240825e
Fix supervisord configuration of second worker to make them both work…
Kern046 Dec 30, 2023
b075929
Fix commercial shipping data and card templates
Kern046 Dec 30, 2023
146055d
Fix usage of native SQL TIMESTAMPDIFF function by replacing it with D…
Kern046 Dec 31, 2023
6ae3dec
Fix postulate action for elections
Kern046 Jan 1, 2024
26ceaee
Add selector specifications to ensure that killed players are not use…
Kern046 Jan 4, 2024
f6a7e44
Fix campaign handler when not found faction ID is sent
Kern046 Jan 12, 2024
03a44a8
Fix erreur 500 sur la messagerie.
TefDesign Jun 20, 2024
be533f9
Fix gestion de l'erreur si déjà existant
TefDesign Jun 20, 2024
658d580
update installation project
TefDesign Jun 19, 2024
c4131c6
fixing color popin tuto
TefDesign Jun 22, 2024
6391353
Merge pull request #62 from Kern046/fix/gestion-erreur-same-user
Kern046 Jun 24, 2024
e0805e8
Merge pull request #59 from Kern046/feat/update-readme-installation
Kern046 Jun 24, 2024
94a3d70
Merge pull request #61 from Kern046/fix/messagerie-500
Kern046 Jun 24, 2024
381a641
Merge pull request #57 from Kern046/fix/popin-ressources
Kern046 Jun 24, 2024
2c6461f
Update caniuse database
Kern046 Jun 24, 2024
60cf04c
Fix scroll de la page principal sur le choix des users
TefDesign Jul 10, 2024
cda6e3c
Merge pull request #63 from Kern046/fix/scroll-main-user-choice
Kern046 Jul 12, 2024
b512c95
Require Symfony Expression Language component as a project dependency
Kern046 Apr 17, 2024
dd279d7
Refactor Fleet movement system
Kern046 Apr 17, 2024
eadd351
Refactor basic messages workflow
Kern046 Jun 24, 2024
5b27625
Refactor production time management for buildings, ships and technolo…
Kern046 Jul 2, 2024
ccbdc78
Apply some fixes on trade and implement fast mode for elections
Kern046 Jul 5, 2024
ab23d1b
Make high level mode configurable with env var
Kern046 Jul 5, 2024
fbbfb4a
Remove dump statements
Kern046 Jul 5, 2024
edf2af9
Turn Place population field from int to float
Kern046 Jul 5, 2024
f7773d3
Enable verbose mode for supervisord consumers
Kern046 Jul 5, 2024
daa2c73
Try to fix supervisord consumers
Kern046 Jul 5, 2024
3d5c72d
Fix daily routine rythm in Fast mode
Kern046 Jul 5, 2024
206e305
Adapt update check for Fast Mode in Player and Place update handlers
Kern046 Jul 5, 2024
1f4391d
FIx memorial route generation in PlaceManager notifications
Kern046 Jul 5, 2024
62b0b0c
Fix TravelType const and replace it with enum
Kern046 Jul 5, 2024
ab925cd
Factorize missing system updates count in a dedicated and tested service
Kern046 Jul 5, 2024
6fd8295
Adapt BasesUpdateHandler to use the new CountMissingUpdates service
Kern046 Jul 5, 2024
badd024
Adapt CommandersSchoolExperienceHandler to use the new CountMissingUp…
Kern046 Jul 5, 2024
9838cef
Multiple fixes:
Kern046 Jul 7, 2024
206bfd3
Fix technology requirement check for buildings
Kern046 Jul 8, 2024
418a335
Fix access to missing buildings UI and actions
Kern046 Jul 8, 2024
3e896bc
Fix financial reports inconsistencies
Kern046 Jul 8, 2024
3990679
Refactor travel time calculation in a separate service from travel du…
Kern046 Jul 10, 2024
35af980
Patch recycling mission handler to adapt the recycling time in case o…
Kern046 Jul 10, 2024
c37256a
Fix condition in system action box to send recycling missions in uncl…
Kern046 Jul 10, 2024
740c36f
Remove dump statement in financial reports
Kern046 Jul 10, 2024
42f24c0
Prevent Format::plural method to return null values
Kern046 Jul 11, 2024
4825de6
Fix looted resources type cast in CommanderManager
Kern046 Jul 12, 2024
142a21a
Fix type cast in PopulationTaxHandler
Kern046 Jul 12, 2024
3cef49b
Use faction identifier instead of id for embassy links
Kern046 Jul 13, 2024
3056edf
Fix default favicon when not logged in
Kern046 Jul 13, 2024
dd81b0f
Fix faction news view and edition
Kern046 Jul 13, 2024
a3163e1
Fix pin feature and icon
Kern046 Jul 13, 2024
83f8672
FIx type cast for stats and damages in ShipFightHandler
Kern046 Jul 13, 2024
4df6dd6
FIx missing schedule of recycling mission at their creation
Kern046 Jul 13, 2024
b165803
Fix recycling mission logs display
Kern046 Jul 13, 2024
2965490
Add nullsafe operator to nullable sector when looting
Kern046 Jul 13, 2024
37c85aa
Remove dump statement in recycling missions log list
Kern046 Jul 13, 2024
f3adc0c
Fix recycler ships addition to existing missions
Kern046 Jul 13, 2024
b30dad0
Fix access to embassy when no faction is specified
Kern046 Jul 13, 2024
c9cc69a
Fix second line commanders selection in base type changing controller
Kern046 Jul 13, 2024
9efeec2
Fix notifications clean query and add a command to trigger it manually
Kern046 Jul 13, 2024
2eeae6b
Merge pull request #58 from Kern046/feature/time-coefficients
Kern046 Jul 13, 2024
ff2143e
Fix base leaving procedure
Kern046 Jul 15, 2024
04e35dc
Plug rankings back into the scheduler system and fix case when no ran…
Kern046 Jul 15, 2024
c26371b
Fix recycling missions renewal in neutral sectors
Kern046 Jul 15, 2024
380cac9
Increase storage size for player ranking fields
Kern046 Jul 15, 2024
27142b8
Fix embassy faction links in some places
Kern046 Jul 15, 2024
8f0edac
Fix generator building cards when they reach max level
Kern046 Jul 15, 2024
d5b061d
Fix missing cooldown constant in planet overview template
Kern046 Jul 15, 2024
06879c6
Fix ship recycling in shipyard
Kern046 Jul 15, 2024
931079d
Fix ships transfer from commander to base when he is moved from the o…
Kern046 Jul 15, 2024
a59948d
Upgrade JS dependencies and mark map nodes as ignored for VueJS compi…
Kern046 Jul 15, 2024
41df45c
Configure general field in player ranking to integer type
Kern046 Jul 16, 2024
91f9746
Fix checks and ship transfer when giving ships or resources from the …
Kern046 Jul 16, 2024
227bca4
Fix distance calculation between places
Kern046 Jul 16, 2024
ff2a5a1
Cast produced resources to int in PlayerRankingRoutine
Kern046 Jul 17, 2024
4575c22
Fix player rankings pagination
Kern046 Jul 17, 2024
5ddd40b
Fix best player query
Kern046 Jul 17, 2024
2c97f7d
Fix missing ship fees when assigned to commanders in financial section
Kern046 Jul 17, 2024
7a86748
Migrate laws to Symfony and Doctrine
Kern046 Jul 28, 2024
59f29ad
Fix diplomatic laws
Kern046 Jul 28, 2024
cfd2cfd
Refactor UUID comparisons to use equals method (and fix report archiv…
Kern046 Jul 28, 2024
a86d91e
Allow to put 0 in university investments
Kern046 Jul 28, 2024
59b9b19
Fix sector ownership calculation by fixing sector bases retrieval fro…
Kern046 Jul 28, 2024
a749b76
Improve sector ownership calculation command to process all sectors a…
Kern046 Jul 28, 2024
4065d2f
Fix sector tax result handler sector retrieval
Kern046 Jul 28, 2024
c2665e7
Specify max log file size for app and worker containers
Kern046 Jul 28, 2024
a27f2cc
Remove deprecated version configuration from Docker Compose files
Kern046 Jul 28, 2024
2f43a74
Fix end of recycling mission for abandoned bases
Kern046 Jul 28, 2024
111a1c9
Fix commercial route proposal
Kern046 Jul 28, 2024
c2d4d06
Various fixes to conversations :
Kern046 Jul 29, 2024
b3cfe81
Fix commander sale in trading platform
Kern046 Jul 29, 2024
be24f52
Migrate Credit Transactions to a valid Doctrine model
Kern046 Jul 31, 2024
dd01fc7
Fix tutorial completion
Kern046 Aug 2, 2024
e9bcda3
Migrate the forum to Symfony and Doctrine
Kern046 Aug 2, 2024
133060f
Merge pull request #32 from Kern046/feature/doctrine-orm
Kern046 Aug 3, 2024
5914358
Fix Player financial report initial wallet field size
Kern046 Aug 5, 2024
4083fe9
Update dependencies and fix PHPStan hints until level 4
Kern046 Aug 7, 2024
ac99088
Implement exception listener to set error flash message and redirect …
Kern046 Aug 7, 2024
8a17fb5
Fix return type conversion of commercial route repository methods
Kern046 Aug 7, 2024
0896301
Fix registration type cast
Kern046 Aug 20, 2024
cb94348
Implement Player financial report visualization with ChartJS library
Kern046 Aug 12, 2024
798cbb0
Fix system panel indications about last looting and spy missions
Kern046 Aug 13, 2024
8f9d0d7
Fix ship wages in player update handler and financial report
Kern046 Aug 13, 2024
f91a24a
Apply the same environment architecture in dev and prod environment
Kern046 Aug 15, 2024
776b148
Implements player financial reports vizualisation
Kern046 Aug 21, 2024
d73dee9
Merge pull request #65 from Kern046/feature/financial-reports
Kern046 Aug 24, 2024
207454f
Fix orbital base ship storage data corruption when removing ships
Kern046 Aug 24, 2024
f6de251
Fix officers max squadrons count
Kern046 Aug 24, 2024
23901c1
Fix labels order in player financial report charts
Kern046 Aug 24, 2024
eb70d6d
Set an update limit for commander school experience and base update h…
Kern046 Aug 26, 2024
5fb106a
Require Symfony security component
Kern046 Aug 26, 2024
50c06b0
Login the player using Player entity and remove use of player bind key
Kern046 Aug 26, 2024
bfd9779
Merge pull request #35 from Kern046/feature/security-component
Kern046 Aug 26, 2024
e8ed108
Fix earned experience type cast in Commander school experience handler
Kern046 Aug 26, 2024
6782e4a
Remove remnants of bind keys code
Kern046 Aug 27, 2024
bc1d181
Hotfix first player financial report creation
Kern046 Dec 11, 2024
704cee5
- Remove all previous graphic assets
Kern046 Oct 2, 2024
440efa9
Fix creation of player financial report for new players
Kern046 Jan 10, 2025
85a4535
Implement Twig components for generator and docks pages :
Kern046 Jan 22, 2025
b17f9b0
Improve ship cards for manufacture ships production
Kern046 Jan 22, 2025
39c1926
Update dependencies and lock Tailwind binary version to 3.4
Kern046 Jan 23, 2025
841af6d
Remove VueJS Toolbar components
Kern046 Feb 17, 2025
eae3c27
Prevent ExceptionListener to respond with a Redirection when encounte…
Kern046 Feb 18, 2025
af702d4
Try to migrate and upgrade map interface using custom Stimulus contro…
Kern046 Mar 4, 2025
8cb0850
Upgrade project dependencies to PHP 8.4 and Symfony 7.2, Require Symf…
Kern046 Mar 4, 2025
8430d99
Implement proper zoom control on map thanks to Liador and Drake <3
Kern046 Mar 5, 2025
ceb1ea0
Implement new desktop style for action box with selectable places and…
Kern046 Mar 13, 2025
d40aaee
Implement action detail components for action box
Kern046 Mar 19, 2025
d2fc288
Implement new UI for fleet squadron management with associated Stimul…
Kern046 Mar 25, 2025
a0dd66c
Migrate UI for spy reports
Kern046 Mar 26, 2025
0bacd4c
Require Rector as a project dev dependency and run it against the cur…
Kern046 Mar 26, 2025
b74ece8
Give minimum UI style to combat reports
Kern046 Mar 27, 2025
624ba10
- Implement Title components, one per hierarchy level
Kern046 Mar 29, 2025
0011ebe
Migrate Rankings UI
Kern046 Mar 31, 2025
f7399a5
Migrate embassy UI
Kern046 Mar 31, 2025
4015e69
Migrate University UI
Kern046 Mar 31, 2025
048114e
Migrate UI for faction overview, registers and members list
Kern046 Apr 5, 2025
3d0afff
Migrate forum and democratic election campaign UI
Kern046 Apr 6, 2025
960d6b8
Migrate communication center UI without message view
Kern046 Apr 7, 2025
7687431
Migrate Current base toolbar UI
Kern046 Apr 7, 2025
4508929
- Require Symfony UX Live Components as a project dependency
Kern046 Apr 7, 2025
8fdc702
Remove old Frontend dependencies: Webpack, Babel, Vue, Less
Kern046 Apr 7, 2025
12fe3da
Migrate base overview UI
Kern046 Apr 8, 2025
62c440c
Migrate commanders school UI
Kern046 Apr 9, 2025
7d653c9
Migrate UI for storage and technosphere buildings
Kern046 Apr 10, 2025
756a02f
Add a name attribute to toolbar dropdowns to make only one open at a …
Kern046 Apr 10, 2025
b68a9bd
Upgrade Turbo and disable auto-prefetch on links, set a favicon on bo…
Kern046 Apr 10, 2025
3baeb2d
Hotfix notifications toolbar and resource gauge component
Kern046 Apr 10, 2025
6ccf211
Try to fix financial report recycled credits field size
Kern046 Apr 10, 2025
ae803b2
Fix Senate and government pages and improve financial reports UI
Kern046 Apr 11, 2025
4584db1
Update and simplify README and CONTRIBUTING docs
Kern046 Apr 14, 2025
4ca060b
Migrate UI for spatioport
Kern046 Apr 14, 2025
450f3a7
Migrate commercial platform UI and implement real-time reactivity via…
Kern046 Apr 25, 2025
a3b75ea
Configure Mercure container for production environment and remove mer…
Kern046 Apr 25, 2025
031ea2a
Set authorization for trade-offers Mercure topic subscription and upg…
Kern046 Apr 26, 2025
b1674e5
Fix FastView component building resource refund missing variable
Kern046 Apr 27, 2025
1119b16
Migrate refinery UI
Kern046 Apr 27, 2025
e48c48a
Migrate recycling building without the mission component
Kern046 Apr 27, 2025
6c1f3e6
Update recycling PlaceAction template and migrate recycling mission c…
Kern046 Apr 27, 2025
289f078
Limit the number of displayed notifications in header toolbar
Kern046 Apr 28, 2025
eab3baa
Implement a Stimulus controller to mark opened notifications as read
Kern046 Apr 28, 2025
634a8dd
Remove legacy PHP views
Kern046 Apr 28, 2025
b5e84b8
Merge pull request #66 from Kern046/feature/interactive-commercial-pl…
Kern046 Apr 28, 2025
19a06b7
Implement new landing page for the portal and a User entity
Kern046 May 12, 2025
e1cc528
Implement registration and login form
Kern046 May 19, 2025
aeaaef3
Plug portal user to game players and redirect to player choice after …
Kern046 May 19, 2025
36c4a05
Merge pull request #71 from Kern046/feature/portal
Kern046 May 19, 2025
8e5dd93
Add kalaxia.com as a production domain in Caddy configuration
Kern046 May 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
68 changes: 49 additions & 19 deletions .env
Original file line number Diff line number Diff line change
@@ -1,46 +1,76 @@
APP_ENV=dev

SERVER_ID=0
SERVER_HOST=127.0.0.1
SERVER_PORT=9999
SERVER_CYCLE_TIMEOUT=20
SERVER_COLLECTION_CYCLES_NUMBER=25
SERVER_START_TIME='2021-12-01 20:00:00'
SERVER_SEGMENT_SHIFT=650
SERVER_TIME_MODE='standard'

SEGMENT_SHIFT=650

DATABASE_HOST=127.0.0.1
DATABASE_HOST=asylamba_mariadb
DATABASE_NAME=asylamba_game
DATABASE_USER=asylamba
DATABASE_PASSWORD=asylamba
DATABASE_ADMIN_USER=root
DATABASE_ADMIN_PASSWORD=asylamba

SECURITY_IV=abcdefghijklmnop
SECURITY_BUFFER_KEY=123456
SECURITY_SERVER_KEY=123456
SECURITY_SCRIPT_KEY=123456
SECURITY_API_KEY=123456

ENVIRONMENT=dev

APIMODE=disabled

APP_ROOT=/

GETOUT_ROOT=/buffer/
# Redis
REDIS_TIMEOUT=1.5

STRIPE_PUBLIC_KEY=key
STRIPE_API_KEY=key

DEPLOY_SOURCES=false

CHICKENBOT_LOGIN_EMAIL=email
CHICKENBOT_LOGIN_PASSWORD=password
CHICKENBOT_DISCORD_TOKEN=token

MONGO_DBNAME=asylamba_feedbacks
MONGO_HOST=asylamba_mongodb
MONGO_PORT=27017

###> symfony/messenger ###
# Choose one of the transports below
# MESSENGER_TRANSPORT_DSN=doctrine://default
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
###< symfony/messenger ###

###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=da5a5677b6c493354372096ff690766a
###< symfony/framework-bundle ###

###> sentry/sentry-symfony ###
SENTRY_DSN=
###< sentry/sentry-symfony ###

REDIS_HOST=asylamba_redis
REDIS_PORT=6379

###> mixpanel/mixpanel-php ###
MIXPANEL_PROJECT_TOKEN=
###< mixpanel/mixpanel-php ###

###> doctrine/doctrine-bundle ###
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
#
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
DATABASE_URL="mysql://asylamba:asylamba@asylamba_mariadb:3306/asylamba_game?serverVersion=5.7.40&charset=utf8mb4"
# DATABASE_URL="postgresql://symfony:ChangeMe@127.0.0.1:5432/app?serverVersion=13&charset=utf8"
###< doctrine/doctrine-bundle ###

RABBITMQ_DSN=amqp://guest:guest@asylamba_rabbitmq:5672

HIGH_LEVEL_MODE=true

###> symfony/mercure-bundle ###
# See https://symfony.com/doc/current/mercure.html#configuration
# The URL of the Mercure hub, used by the app to publish updates (can be a local URL)
MERCURE_URL=http://kalaxia_mercure/.well-known/mercure
# The public URL of the Mercure hub, used by the browser to connect
MERCURE_PUBLIC_URL=https://kalaxia.local/.well-known/mercure
# The secret used to sign the JWTs
MERCURE_JWT_SECRET="!ChangeThisMercureHubJWTSecretKey!"
###< symfony/mercure-bundle ###
8 changes: 8 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# define your env variables for the test env here
KERNEL_CLASS='App\Kernel'
APP_SECRET='$ecretf0rt3st'
SYMFONY_DEPRECATIONS_HELPER=999999
PANTHER_APP_ENV=panther
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots

DATABASE_URL="mysql://root:asylamba@asylamba_mariadb:3306/asylamba_game?serverVersion=5.7.40&charset=utf8mb4"
42 changes: 40 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,50 @@
*.psd

/nbproject/
/vendor/
/node_modules/

/var/logs
/var/data

.idea
.phpunit.result.cache
.env.local
.env.prod

supervisord.pid

###> symfony/framework-bundle ###
/.env.local
/.env.local.php
/.env.*.local
/config/secrets/prod/prod.decrypt.private.php
/public/bundles/
/var/
/vendor/
###< symfony/framework-bundle ###

###> phpunit/phpunit ###
/phpunit.xml
/.phpunit.cache/
###< phpunit/phpunit ###

###> squizlabs/php_codesniffer ###
/.phpcs-cache
/phpcs.xml
###< squizlabs/php_codesniffer ###

###> friendsofphp/php-cs-fixer ###
/.php-cs-fixer.php
/.php-cs-fixer.cache
###< friendsofphp/php-cs-fixer ###

###> symfony/webpack-encore-bundle ###
/node_modules/
/public/build/
npm-debug.log
yarn-error.log
###< symfony/webpack-encore-bundle ###

###> symfony/asset-mapper ###
/public/assets/
/assets/vendor/
###< symfony/asset-mapper ###
17 changes: 17 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude('var')
;

return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'@PSR2' => true,
'indentation_type' => true,
])
->setIndent("\t")
->setLineEnding("\n")
->setFinder($finder)
;
2 changes: 1 addition & 1 deletion .php-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.1
8.4
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
67 changes: 0 additions & 67 deletions CONTRIBUTING.en.md

This file was deleted.

79 changes: 29 additions & 50 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,67 +1,46 @@
Guide du contributeur
=====================
Guide for the contributor
=========================

Il y a plusieurs moyens de contribuer :
You can contribute in two different ways :

- Si vous trouvez un problème dans le jeu, vous pouvez ouvrir une [*issue*](https://github.com/rtfmcorp/asylamba-game/issues) en décrivant le problème, directement dans l'interface de Github.
- Si vous voulez directement corriger un problème, vous pouvez le faire, pour cela merci de suivre la procédure ci-dessous.
- Open an issue : If you find something wrong or something that can be done better, just open an [*issue*](https://github.com/rtfmcorp/asylamba-game/issues) and describe as good as you can the problem.
- Propose a PR : If you want to resolve something, you can do it, just follow the precedure down below.


Quel type de problème régler ?
------------------------------
What type of problem can I solve ?
----------------------------------

Il est possible de trouver une *issue* que vous souhaitez régler. Dans ce cas, mettez un commentaire dans l'issue, ainsi on saura que vous bossez dessus. S'il n'y a pas d'issues, vous pouvez soit la créer, soit directement faire le correctif.
You can search for an issue you want to solve. In this case, please comment the issue so that we know you're working on it. If there's no issues you can create it.

Voici les différentes choses que vous pouvez faire :
Here are the things you can do :

- corriger des fautes d'orthographe ou fautes de frappe
- faire du refactoring, optimisation
- optimiser l'interface (reponsive design par exemple)
- créer de la documentation (dans ce cas, il serait mieux de discuter en premier lieu de la technique utilisée, ainsi d'autres personnes pourront vous aider, et vous aurez plus de chance que ça soit accepté)
- correct orthograph or typing errors
- make refactoring, optimizations
- work on the interface (make it responsive for example)
- create documentation
- optimize the installation process

En ce qui concerne l'ajout ou la modification de fonctionnalités, il est fort probable que ça soit refusé. Si vous souhaitez vous lancer là-dedans, il faut en discuter au préalable avec l'équipe de développement, directement sur le forum du jeu ou sur le serveur Discord d'Asylamba. Cela permettra de ne pas sortir de la ligne directrice.
If you want to add or modify game features, it's likely that the PR will be rejected.
If you want to do it, please start a discussion with the dev team first, we'll talk together about what you want to do (open an issue).


Comment contribuer ?
--------------------
How to contribute ?
-------------------

En premier lieu, vous devez *forker* le dépôt sur votre compte. A partir de là, vous pouvez faire divers *commit* pour arriver à votre but. Quand tout fonctionne vous pouvez soumettre une *pull request* sur la branche *dev* du dépôt principal.
First you need to fork the repo. Then you can work on your version of the game and make commits. When it's done you can submit a pull request on the *dev* branch of the main repo.

La branche principale est *master*, la branche *dev* sert au développement. Nous n'accepterons donc des PR que sur cette dernière.
The main branch is *master*, the *dev* branch is used for development. We'll not accept PRs on the *master* branch.

*Conseil : Nous vous conseillons de faire une branche sur votre fork pour faire vos modifications. Ainsi le temps que votre PR soit acceptée ou refusée, vous pouvez faire d'autres branches pour bosser sur d'autres issues. Pensez que tous les commits faits après une PR sur la même branche sont ajouté à la PR.*
*Hint : Make a branch on your fork to do modifications so that you can work on another issue while waiting for the approval/rejection of your PR. Don't forget that all the commits you do on the same branch after the PR will be added to the PR.*

Un guide de contribution officiel est disponible [ici](https://guides.github.com/activities/contributing-to-open-source/#contributing). Nous sommes également disponible si vous avez des questions sur la façon de faire. Vous pouvez nous contacter sur Asylamba, par mail ou sur Discord.
An official guide for the contributions is available [here](https://guides.github.com/activities/contributing-to-open-source/#contributing).
If you have any question, don't hesitate to open an issue !


Les bonnes pratiques
--------------------
Good practices
--------------

- respecter les conventions au niveau du code (espacement, retour à la ligne, tabulations, nommage)
- le code (nom de variables, etc.) doit être en anglais
- les commentaires sont en anglais ou en français
- les commits doivent avoir un nom clair (soit en français soit en anglais)
- un commit modifie/améliore une chose, ça doit être clair et concis
- chaque modification/ajout doit être accompagné de tests unitaires pertinents assurant le bon fonctionnement du code


Modifier l'interface
--------------------

Si vous souhaitez modifier le CSS, il faudra éditer les fichiers au format [LESS](http://lesscss.org) se trouvant dans `public/css/less/`. Afin de compiler ces fichiers en CSS, il faut utiliser [Gulp](http://gulpjs.com). Vous devez d'abord installer NPM puis GULP sur votre système, ensuite il faut installer les dépendances du projet en tapant :

npm install

Les dépendances s'installeront dans le dossier `node_modules/`. Pour compiler le CSS, il suffit de taper :

gulp less


Tester l'application
---------------------

Pour lancer les tests automatisés de l'application, vous pouvez lancer la commande suivante :

```sh
make test
```
- respect the code conventions (spacing, new lines, tabs, naming)
- the code must be in english (variables names, comments, ...)
- the commits names must be clear (in english), it modifies/improves one thing, it must be clear and concise
- each modification must be unit tested to ensure the safety of the code
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
cli:
docker exec -it kalaxia_app sh

test:
php vendor/phpunit/phpunit/phpunit
php vendor/bin/phpunit

consume_game_scheduler:
php bin/console messenger:consume scheduler_game -vv

consume_async:
php bin/console messenger:consume async -vv

restart_worker:
docker compose restart supervisord
Loading