3risian 9af55d2f72 Calculate menu and pagination without missing addons (#160) | пре 1 година | |
---|---|---|
api | пре 1 година | |
assets | пре 3 година | |
bugs | пре 7 година | |
cron | пре 4 година | |
dl | пре 10 година | |
docker-tools | пре 6 година | |
include | пре 1 година | |
install | пре 1 година | |
json | пре 6 година | |
locale | пре 8 година | |
phpcs | пре 5 година | |
phpstan | пре 5 година | |
stats | пре 7 година | |
tests | пре 6 година | |
tools | пре 3 година | |
tpl | пре 1 година | |
.dockerignore | пре 5 година | |
.gitattributes | пре 6 година | |
.gitignore | пре 5 година | |
.travis.yml | пре 5 година | |
.yarnrc | пре 6 година | |
COPYING | пре 15 година | |
CREDITS | пре 10 година | |
Dockerfile | пре 5 година | |
Dockerfile-db-init | пре 5 година | |
INSTALL.md | пре 5 година | |
README.md | пре 5 година | |
about.php | пре 7 година | |
addons-menu.php | пре 1 година | |
addons-panel.php | пре 8 година | |
addons.php | пре 8 година | |
composer.json | пре 3 година | |
composer.lock | пре 1 година | |
docker-compose.dev.yml | пре 5 година | |
docker-compose.yml | пре 5 година | |
download.php | пре 4 година | |
downloads | пре 10 година | |
error.php | пре 8 година | |
favicon.ico | пре 9 година | |
image.php | пре 7 година | |
index.php | пре 6 година | |
login.php | пре 7 година | |
manage-panel.php | пре 6 година | |
manage.php | пре 8 година | |
music.php | пре 8 година | |
package.json | пре 3 година | |
password-reset.php | пре 8 година | |
phpunit.xml | пре 10 година | |
privacy.php | пре 8 година | |
rankings.php | пре 4 година | |
register.php | пре 8 година | |
upload.php | пре 6 година | |
users-menu.php | пре 8 година | |
users-panel.php | пре 6 година | |
users.php | пре 8 година | |
yarn.lock | пре 3 година |
This is the source code for the SuperTuxKart asset sharing and distribution platform. The official location of the production website is https://online.supertuxkart.net/.
The master branch contains the latest code, not stable or production ready.
The production branch contains stable code that is ready for production (the live addons server is based on this branch).
The whole installation procedure can be seen in the INSTALL.md file.
A common problem on Linux are the permissions for the assets/cache
and dl
directories.
There are several ways to solve this problem:
chmod 775
(not recommended)sudo chown -R www-data:www-data <directory>
Example:
Error: Class 'Debug' not found in /stk-addons/index.php on line 0
This is due to composer not knowing about it. To fix it update composer with composer dump-autoload
.
The project uses PHPUnit for unit testing (it's installed automatically by composer if you have enabled the developer dependencies)
Run tests from the root of the project with (it will use the default phpunit.xml
found in the root directory):
./vendor/bin/phpunit
If you want to give it a custom configuration use the --configuration
flag, like this:
./vendor/bin/phpunit --configuration custom.xml
To generate all locales supported (system wide), run the script in locale/locale-gen.sh.
After that, update the translations.pot files by running the locale/update-pot.sh script.
Then after getting the updated translate po
files from https://www.transifex.com/supertuxkart/supertuxkart/ run the
locale/generate-mo.sh script.
All contributions are welcome: ideas, patches, documentation, bug reports, complaints, etc!
Some messages include the prefix [tag]
at the beginning of the commit message, if present these mean
that you need to make manual modifications to your code/infrastructure for it to work with that commit.
[C]
- modified the config file, update your config.php
file accordingly[D]
- updated the composer/yarn dependencies, run the appropriate yarn/composer update commands[S]
- updated the SQL schema, modify your SQL schema accordinglyThe PHP coding standard is heavily based on PSR-2, with some modifications:
php
if ($a === 42)
{
bar();
}
else
{
foo();
}
For JavaScript, CSS, and SQL you should use 4 spaces, not tabs. The JavaScript coding standard is based on http://javascript.crockford.com/code.html and the CSS coding standard is based on http://make.wordpress.org/core/handbook/coding-standards/css/.
The JavaScript and CSS coding standards are modified to use the same line limit as PHP.
STK Addons Website is licensed under GPL version 3. See COPYING for the full license text.