-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from P3D-Legacy/develop
Release 4.0.0
- Loading branch information
Showing
622 changed files
with
36,316 additions
and
7,221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
labels: | ||
- "dependencies" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: dependabot-auto-merge | ||
on: pull_request_target | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
|
||
jobs: | ||
dependabot: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.actor == 'dependabot[bot]' }} | ||
steps: | ||
- name: Dependabot metadata | ||
id: metadata | ||
uses: dependabot/[email protected] | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- name: Auto-merge Dependabot PRs for semver-minor updates | ||
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}} | ||
run: gh pr merge --auto --merge "$PR_URL" | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
||
- name: Auto-merge Dependabot PRs for semver-patch updates | ||
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}} | ||
run: gh pr merge --auto --merge "$PR_URL" | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Check JSON syntax | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
jsoncheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: json-syntax-check | ||
uses: limitusus/json-syntax-check@v1 | ||
with: | ||
pattern: "\\.json$" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: Laravel | ||
on: [push, pull_request] | ||
on: [pull_request] | ||
jobs: | ||
laravel: | ||
name: Laravel (PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }}) | ||
|
@@ -8,7 +8,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
php-versions: ['8.0'] | ||
php-versions: ['8.1'] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
@@ -43,15 +43,9 @@ jobs: | |
run: | | ||
mkdir -p database | ||
touch database/database.sqlite | ||
- name: Test with phpunit | ||
- name: Test with pest | ||
env: | ||
DB_CONNECTION: sqlite | ||
DB_DATABASE: database/database.sqlite | ||
run: vendor/bin/phpunit --coverage-clover clover.xml | ||
- name: Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
file: ./clover.xml | ||
flags: unittests | ||
name: codecov-umbrella | ||
fail_ci_if_error: true | ||
MAIL_FROM_ADDRESS: [email protected] | ||
run: vendor/bin/pest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Prettier | ||
on: [push] | ||
|
||
jobs: | ||
Prettier: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- name: Install NPM dependencies | ||
run: npm install | ||
- name: Prettify code | ||
uses: creyD/[email protected] | ||
with: | ||
prettier_options: --write **/*.{php,js} --config .prettierrc --ignore-path .prettierignore | ||
prettier_plugins: '@prettier/plugin-php prettier-plugin-tailwindcss' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/vendor | ||
/storage | ||
/node_modules | ||
/.github | ||
/public | ||
README.md | ||
CHANGELOG.md | ||
LICENSE | ||
phpunit.xml | ||
/lang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"tabWidth": 4, | ||
"useTabs": false, | ||
"semi": true, | ||
"trailingComma": "all", | ||
"singleQuote": true, | ||
"printWidth": 125 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,61 @@ | |
|
||
<p align="center"> | ||
<img src="https://github.com/P3D-Legacy/pokemon3d.net/workflows/Laravel/badge.svg" alt="Test Status"> | ||
<img src="https://img.shields.io/github/license/P3D-Legacy/pokemon3d.net" alt="License"> | ||
<img src="https://img.shields.io/github/contributors/P3D-Legacy/pokemon3d.net" alt="Contributors"> | ||
<img src="https://img.shields.io/github/issues/P3D-Legacy/pokemon3d.net" alt="Issues"> | ||
<img src="https://img.shields.io/github/v/tag/P3D-Legacy/pokemon3d.net" alt="Tag"> | ||
<img src="https://img.shields.io/github/contributors/P3D-Legacy/pokemon3d.net" alt="Contributors"> | ||
<img src="https://img.shields.io/github/license/P3D-Legacy/pokemon3d.net" alt="License"> | ||
<a href="https://discordapp.com/invite/EUhwdrq" target="_blank"><img src="https://img.shields.io/discord/299181628188524544" alt="Discord"></a> | ||
<a href="https://skin.pokemon3d.net" target="_blank"><img src="https://img.shields.io/website?down_color=red&down_message=offline&up_color=green&up_message=online&url=https%3A%2F%pokemon3d.net%2F" alt="Website"></a> | ||
<a href="https://pokemon3d.net" target="_blank"><img src="https://img.shields.io/website?down_color=red&down_message=offline&up_color=green&up_message=online&url=https%3A%2F%2Fnext.pokemon3d.net" alt="Website"></a> | ||
</p> | ||
|
||
## About | ||
# About | ||
|
||
Our new website is built with Laravel and Tailwind CSS. This new website has replaced the old design from 2014. With the new design, we have a much cleaner and more modern website. And we will more easily be adding more features to the website in the future. | ||
|
||
# Contribute | ||
Want to contribute to the project? Check out [CONTRIBUTING.md](CONTRIBUTING.md) for more info. | ||
|
||
# Installation | ||
Want to install the project? Here is a quick guide to installing the project. | ||
|
||
Please check the official laravel installation guide for server requirements before you start, [official documentation](https://laravel.com/docs/8.x/installation). | ||
|
||
Clone the repository | ||
``` bash | ||
git clone [email protected]:P3D-Legacy/pokemon3d.net.git | ||
``` | ||
Switch to the repo folder | ||
``` bash | ||
cd pokemon3d.net | ||
``` | ||
Install all the dependencies using composer | ||
``` bash | ||
composer install | ||
``` | ||
Install all the dependencies using npm | ||
``` bash | ||
npm install | ||
``` | ||
Copy the example env file and make the required configuration changes in the .env file | ||
``` bash | ||
cp .env.example .env | ||
``` | ||
|
||
Generate a new application key | ||
``` bash | ||
php artisan key:generate | ||
``` | ||
We've made it easy for updating stuff for the application. Running this command will migrate the database, set settings, seed needed data, update API docs and more. | ||
``` bash | ||
php artisan p3d:update | ||
``` | ||
Start the local development server | ||
``` bash | ||
php artisan serve | ||
``` | ||
You can now access the server at http://localhost:8000 | ||
|
||
# Licence | ||
|
||
This site is a *work in progress* and but has been published under `skin.pokemon3d.net` until it is finished. It is built with Laravel and Tailwind CSS. This will be replacing the design from 2014. | ||
This software is licensed under the GPL-3.0 License. Check out [LICENSE](LICENSE) for more info. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Achievements\User; | ||
|
||
use Assada\Achievements\Achievement; | ||
|
||
/** | ||
* Class Registered | ||
*/ | ||
class AssociatedDiscord extends Achievement | ||
{ | ||
/* | ||
* The achievement name | ||
*/ | ||
public $name = 'AssociatedDiscord'; | ||
|
||
/* | ||
* A small description for the achievement | ||
*/ | ||
public $description = 'User associated their account with Discord'; | ||
|
||
/* | ||
* The amount of "points" this user need to obtain in order to complete this achievement | ||
*/ | ||
public $points = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Achievements\User; | ||
|
||
use Assada\Achievements\Achievement; | ||
|
||
/** | ||
* Class Registered | ||
*/ | ||
class AssociatedFacebook extends Achievement | ||
{ | ||
/* | ||
* The achievement name | ||
*/ | ||
public $name = 'AssociatedFacebook'; | ||
|
||
/* | ||
* A small description for the achievement | ||
*/ | ||
public $description = 'User associated their account with Facebook'; | ||
|
||
/* | ||
* The amount of "points" this user need to obtain in order to complete this achievement | ||
*/ | ||
public $points = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Achievements\User; | ||
|
||
use Assada\Achievements\Achievement; | ||
|
||
/** | ||
* Class Registered | ||
*/ | ||
class AssociatedGamejolt extends Achievement | ||
{ | ||
/* | ||
* The achievement name | ||
*/ | ||
public $name = 'AssociatedGamejolt'; | ||
|
||
/* | ||
* A small description for the achievement | ||
*/ | ||
public $description = 'User associated their account with Gamejolt'; | ||
|
||
/* | ||
* The amount of "points" this user need to obtain in order to complete this achievement | ||
*/ | ||
public $points = 1; | ||
} |
Oops, something went wrong.