Public repository containing the source code for the nibblepoker.lu & nibblepoker.com websites.
This repository is only a mirror and should never be cloned and served as-is since it's missing some key components.
The .htaccess files have been made public on purpose since they don't contain any
private information and because they could also be used by other people to create their website more easily.
This website includes a simple and effective L10N system in ~150 lines of readable code without any external dependencies.
This system simply takes advantage of the HTTP_ACCEPT_LANGUAGE
request header to determine the
user's preferred language and can be overridden by specific URL prefixes.
See .htaccess and commons/langs.php.
TODO
This website uses a few in-house tools to improve and fix issues encountered during development such as L10N bundling and fixing TypeScript's horrendous imports.
The l10n strings compiler is a Python script that takes in a bunch of .json
files and bundles them all
in a single file that can be used by the L10N PHP utility.
It works by listing all subfolders in a location as language keys and assigning the content of each .json
file to that language key.
See compile_strings.py and compile.cmd.
This utility simply fixes the munted import paths that Typescript produces by replacing a given import name by another one with the proper extensions.
While not perfect, it works.
That's still better than Typescript could ever do with a maintainable tsconfig file...
See fix-import-path.js and compile.bat.
Unfinished utility that will be used to change import paths in minified PHP files.
The main goal here is to fix some weird and unfixable text-spacing issues with line returns in the generated HTML document.
See php-relinker.js.
These files are required and need to be installed manually for the website to work properly !
- Apache 2.4 & PHP 8.1 or newer
- Font Awesome Pro v5.15.3 & v6.5.1
/resources/FontAwesomePro/
Here is a list of the licenses for any third-party thing included in this repository.
- Quantum Font by sesohq
- Free font with no apparent usage restrictions.
- CSSnowflakes by PavelTheCoder
- MIT licensed snowflake effects used on certain days of the year.
- Can be found in resources/NibblePoker/scss/snowflakes.scss
All licenses are also included as-is in their project's respective folder.
All the code, stylesheets, and configs that are not covered by the External licenses are all licensed under the Unlicense license.
The articles present in this repository aren't currently licensed.
The images and sounds present in this repository aren't currently licensed.