Commit Graph

166 Commits

Author SHA1 Message Date
Evan fbfc46f2cb remove 0. prefix for version number 2025-04-03 16:24:02 -07:00
Aotumuri 607e5b5ff0 MLS-PACK (#355)
## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

This is commit pack
This PR refactors and improves the language selection experience:
• Centralizes all language-related logic in LangSelector.ts &
LanguageModal.ts
	•	Redesigns the language selection UI for better UX across devices
	•	Adds new translations and supports more languages
Changes .w.
• Language selection is now handled entirely inside LangSelector.ts &
LanguageModal.ts
	•	Prevents background scrolling when open
	•	Highlights the current language at the top
	•	Always shows English second
	•	Shows browser language third (if different from current)
	•	All other languages are sorted alphabetically by English name
	•	Debug option is shown at the end when pressing D
	•	The language list is scrollable when it exceeds screen height
	
Supported Languages
["en", "ja", "fr", "bg", "nl", "ru", "ua", "de"]

Added Translation Keys
```
"lang": {
  "en": "English",
  "native": "English",
  "svg": "xx"
},
"map": {
  "map": "Map"
},
"game_starting_modal": {
  "title": "Game is Starting...",
  "desc": "Preparing for the lobby to start. Please wait."
},
"difficulty": {
  "difficulty": "Difficulty"
}
```

## Please put your Discord username so you can be contacted if a bug or
regression is found:
MLS Representative
- aotumuri 

Translation collaborator
- Nikola123 (He was a very big help from setting up the translation site
to adding the json. Thank you so much!)
I don't have permission from my collaborators to display their names
here, so I'll put the discord link here

https://discord.com/channels/1284581928254701718/1352553113612980224/1352553113612980224
- tryout33

Collaborators from other servers.
- CCC Group (This is not Culture Convenience Club. Think of it like a
server where developers of various games are playing.)
- People who fixed the UI and found bugs.
meow02952 (discord id) <- This person also gave me a code suggestion.
Thanks!
moon_spear (discord id)
ww_what_ww (discord id)
Azuna (he doesn't have discord account)
- People who corrected translations, etc.
_kyoyume_ (discord id)
_ultrasuper_ (discord id)
grueg (he doesn't have discord account)

# If I forgot to include your name, or if you’d like your name to be
added, please let me know via Gmail or Discord.

---------

Co-authored-by: Duwibi <86431918+Duwibi@users.noreply.github.com>
2025-04-02 20:37:36 -07:00
Duwibi 79516e84d4 Update index.html (#386)
## Description:

I changed the discord link to be the updated one

<Nikola123>
2025-03-31 13:11:12 -07:00
Evan 5c258bfca6 Move lang-selector into a lit element. This is required so we can import the lang json files using webpack file hashing. We need file hashing to bust the cache. 2025-03-28 10:57:30 -07:00
Guzmán 1551f7b646 Add Spanish translation (#356)
Basic Spanish translation.
2025-03-27 16:42:53 -07:00
PilkeySEK baeb04da20 Add German translation (#348)
I did it 100% by myself so it might not be perfect
2025-03-26 11:11:02 -07:00
Mittanicz 6678d6e36e Image optimalization (#343)
I have minify images and convert them to webp format that reduce size
and keep quality.
Reduce size of bg image since its already blured by css so no need to
have it that big.

Reduce size of thumbs and helper images in helper modals should be fine
since they will not exceed the container size. Even that make them
larger than containter just to be safe
2025-03-26 10:05:45 -07:00
Mittanicz ebe142a62a Layout setup (#338)
Create css strucure, clean up the index html and use proper tags.
Visualy minor changes, but this allow us maint better visuals and start
the css standards that will help us future
2025-03-25 08:11:58 -07:00
Evan 4849da4fa6 update version 2025-03-24 21:37:03 -07:00
Aotumuri 9088adeb7a Translate all out-of-game UI (start screen, lobbies, etc.) (#316)
This PR adds full translation support for all out-of-game UI elements,
including the start screen, public/private lobby modals, and other
pre-game interfaces.

All static text has been externalized to en.json and ja.json for future
language support.
If you find any spots that are not yet translated (missing from the
JSON), please let me know.
Thanks a lot!

This is a follow-up to PR
[#305](https://github.com/openfrontio/OpenFrontIO/pull/305).

---------

Co-authored-by: Cldprv <dubois.cnm@tutanota.com>
Co-authored-by: jacks0n <rosty.west89@gmail.com>
2025-03-24 17:12:04 -07:00
MRH 5a1451b430 Improved options panel (#328)
Minor improvements to options-panel and player info panel.

- Improved time display
- Added margin to align with leaderboard
- Better option button layout
- Added flag to player info


![image](https://github.com/user-attachments/assets/b51c8239-caf5-4526-97ac-a33a9d22eff2)
2025-03-24 10:42:49 -07:00
Mittanicz 166ef92970 Create base components button, modal .. (#331)
Create base components with shared styles, as start of make ui better.
For now shoul look same but underhood new copoments are used.

This should be first PR that handle this and many more comes. I am in
rush due conflict with other ppl, but should work as i tested.

Testing again and look at structure

Main goal i have global css not scope in component die loading times and
size of elements. (Modal due nature of lit and shadow dom is exception,
maybe later find better way).

Documenting the components will happen later as base components
establish their usage.
2025-03-24 10:34:27 -07:00
Aotumuri c4614fe0ba Add multi-language support to the start screen and help-modal (#305)
This pull request adds multi-language support to the start screen.
Languages are managed via JSON files, making it easy to add new
languages in the future.

I added a basic language selection button for switching between
languages.
However, I believe it would benefit from a better design — my design
skills are limited, so I apologize in advance.

Looking forward to your feedback and possible design improvements.
2025-03-21 13:51:04 -07:00
Evan 021b40207e update version 0.20.0 2025-03-19 10:50:13 -07:00
Evan c7259bc0d9 update version 0.19.1 2025-03-15 18:22:44 -07:00
PilkeySEK fe9a73c967 Update wiki link to Miraheze (#190) 2025-03-09 13:25:36 -07:00
evanpelle de584329b8 remove ad background (#185) 2025-03-08 12:38:19 -08:00
evanpelle bfbb2ac011 update version to 0.19.0 (#182) 2025-03-08 11:05:20 -08:00
Evan 444e1dfbb5 add google ads to homepage 2025-03-07 21:27:49 -08:00
evanpelle 191a12a40d Merge pull request #155 from Readixyee/game-starting-modal
showing modal when the game is loading
2025-03-06 16:06:15 -08:00
Readixyee 48ae8cad33 showing modal when the game is loading 2025-03-06 17:34:12 +01:00
Maeght Loan 647a2966b2 Open discord in new page 2025-03-06 12:57:17 +01:00
Evan ab918e5a34 update version 2025-03-04 05:35:00 -08:00
Evan cc89d157d6 add google ad to home page 2025-03-02 09:39:54 -08:00
Evan 3b492df56b set trust proxy to 3 2025-03-02 09:39:54 -08:00
NewHappyRabbit 9b85651ad8 Fixed dark mode class being added in different places (body and html elements).
Fixed flag "None" (xx.svg) being able to be set and used ingame.

All menu modals will now close if you click outside of them.

Fixed info icon in instructions.

Added an icon to show the number of new events that happened while the events panel is hidden.

Removed opacity from the svg icons files and added it to the player-icons div, making them have the same opacity and being more visible.
2025-03-02 09:39:36 -08:00
NewHappyRabbit c057f70c45 UI fixes 2025-03-02 09:29:10 -08:00
Evan d92a68e958 update version 2025-03-02 09:29:10 -08:00
Evan 808107c9c3 don't log zod validation errors 2025-03-02 09:29:10 -08:00
NewHappyRabbit aa24d317c8 Added PWA and mobile improvements to the UI 2025-02-24 11:49:58 +02:00
Evan df88cf461e update version 2025-02-20 15:36:25 -08:00
evanpelle 2969098b6f Merge pull request #63 from NewHappyRabbit/instructions
Added instructions in modal in main menu
2025-02-20 15:33:28 -08:00
Evan 8f8fbf6be6 make join discord button more prominent 2025-02-20 15:31:38 -08:00
NewHappyRabbit 1e38e5565c Added instructions in modal in main menu 2025-02-21 00:58:07 +02:00
NewHappyRabbit e9eb006cea Added dark mode 2025-02-20 00:48:45 +02:00
NewHappyRabbit 9565a0cffa Added map image preview for public lobby 2025-02-18 14:52:09 +02:00
Evan 969886331c create discord login button & flow 2025-02-16 12:18:50 -08:00
NewHappyRabbit f44fd79568 Player can now disable emojis 2025-02-16 12:18:50 -08:00
Evan d9f2b683d7 add eq for zoom, chagne meta give more bonus large players, don't throw exception when attack self 2025-02-15 14:31:18 -08:00
NewHappyRabbit aab9c05865 Merge remote-tracking branch 'upstream/main' 2025-02-12 22:55:46 +02:00
NewHappyRabbit 9de6f6d1e2 Forgot to prettier... 2025-02-12 22:54:59 +02:00
NewHappyRabbit 27173092cf Changed the flags to a more cartoony/emojiy? version (Thanks Nour!).
Removed coalitions from the countries.json file.
Seperated the flag from the name input.
2025-02-12 22:53:33 +02:00
Evan a478e305d1 fix right click bringing up context menu instead of radial menu on bottom of screen 2025-02-12 10:33:08 -08:00
Evan 00102972e6 fix index.html from bad merge 2025-02-12 08:55:26 -08:00
evanpelle bcc9e57b13 Merge branch 'main' into svg-logo 2025-02-12 08:18:31 -08:00
q8gazy 88f960b4a5 add svg logo with styling 2025-02-12 17:17:42 +03:00
q8gazy fc6cd43ed6 fix control-panel size 2025-02-12 10:42:14 +03:00
Hristiyan Simeonov e37382bfc1 Merge branch 'openfrontio:main' into main 2025-02-11 20:53:33 +02:00
NewHappyRabbit 6677936f97 All files from resources directory are now copied to build folder so they can be used directly without importing them in files.
Added flag selection.
2025-02-11 20:51:40 +02:00
PilkeySEK 137953a7e4 Add wiki link in the main menu 2025-02-11 17:55:46 +01:00