0ad/binaries/data/mods/public/gui/pregame/ProjectInformation.js
Dunedan 93ce94655d
Use @stylistic/brace-style for eslint
Up to now `eslint-plugin-brace-rules` was used to enforce a common brace
style for JavaScript code. This plugin was however updated the last time
over 9 years ago and will be incompatible with ESLint v10, as that
[removes `context.getSourceCode()`][1], the plugin relies on.

To keep the eslint config working with ESLint v10, this replaces
`eslint-plugin-brace-rules` with the [`@stylistic/brace-style`][2] rule
from `@stylistic/eslint-plugin`, a package we already use.

While `@stylistic/brace-style` doesn't offer an option to format braces
in exactly the same way as before, the "allman" style seems to be the
one closest to the existing code.

[1]: https://eslint.org/blog/2025/11/eslint-v10.0.0-alpha.0-released/#removed-deprecated-rule-context-members
[2]: https://eslint.style/rules/brace-style
2026-01-12 21:33:52 +01:00

78 lines
2.3 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* IMPORTANT: Remember to update session/top_panel/BuildLabel.xml in sync with this.
*/
export const projectInformation = {
"organizationName": {
"caption": translate("WILDFIRE GAMES")
},
"organizationLogo": {
"sprite": "WildfireGamesLogo"
},
"productLogo": {
"sprite": "0ADLogo"
},
"productBuild": {
"caption": getBuildString()
},
"productDescription": {
"caption": setStringTags(translate("Release XXIX: C--"), { "font": "sans-bold-16" }) + "\n\n" +
translate("Notice: This game is under development and many features have not been added yet.")
}
};
export const communityButtons = [
{
"caption": translate("Website"),
"tooltip": translate("Click to open play0ad.com in your web browser."),
"size": "8 100%-148 50%-4 100%-116",
"onPress": () =>
{
openURL("https://play0ad.com/");
}
},
{
"caption": translate("Chat"),
"tooltip": translate("Click to open the 0 A.D. IRC chat in your browser (#0ad on webchat.quakenet.org). It is run by volunteers who do all sorts of tasks, it may take a while to get your question answered. Alternatively, you can use the forum (see Website)."),
"size": "50%+4 100%-148 100%-8 100%-116",
"onPress": () =>
{
openURL("https://webchat.quakenet.org/?channels=0ad");
}
},
{
"caption": translate("Report a Bug"),
"tooltip": translate("Click to visit the 0 A.D. issue tracker to report a bug, crash, or error."),
"size": "8 100%-112 50%-4 100%-80",
"onPress": () =>
{
openURL("https://gitea.wildfiregames.com/0ad/0ad/issues");
}
},
{
"caption": translateWithContext("Frequently Asked Questions", "FAQ"),
"tooltip": translate("Click to visit the Frequently Asked Questions page in your browser."),
"size": "50%+4 100%-112 100%-8 100%-80",
"onPress": () =>
{
openURL("https://gitea.wildfiregames.com/0ad/0ad/wiki/FAQ");
}
},
{
"caption": translate("Translate the Game"),
"tooltip": translate("Click to open the 0 A.D. translate page in your browser."),
"size": "8 100%-76 100%-8 100%-44",
"onPress": () =>
{
openURL("https://gitea.wildfiregames.com/0ad/0ad/wiki/Localization");
}
},
{
"caption": translate("Donate"),
"tooltip": translate("Help with the project expenses by donating."),
"size": "8 100%-40 100%-8 100%-8",
"onPress": () =>
{
openURL("https://play0ad.com/community/donate/");
}
}
];