-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add RSS feeds and more * Update docker and add the ssh2 php package * PHP Linting (Pint) * Update the app a little * Add key generator * PHP Linting (Pint) * update routes * wip * Add new routes * PHP Linting (Pint) * CS fix * Fix silly little bug * wip * PHP Linting (Pint) * Update the design a little to better respect the color themeing I am trying to go for * Fix broken merge * PHP Linting (Pint) * maybe patch a bug I think * Add relation * Add feeds relation * Update the today controller to try and fix a difference in the mysql servers being used. * Add flare * wip * Update proxies * wip * update domain * Fix bug * Publish the route * disable registration * PHP Linting (Pint) * wip * PHP Linting (Pint) * Update method name * Rearrange the controllers * Update the views * Migrate the routes * Add casts * Add php8.2-ssh2 ext * PHP Linting (Pint) * Add spork pages * Update composer json * PHP Linting (Pint) * Remove new dep * boy this expanded beyond what I expected.... Add Protonmail client, and a matrix server client to pull in messages * Remove old files, roll keys * Wip * Update the design * Add dynamically created event generation, add bugsnag * CS fixes * Cs fixes * Fix minor bug in bugsnag * Add admin email? * Update the banking routes' * csfixes * Update tests * Add operations * Add additional workflows * register the thing we need for our tests * Add some conditional tests * Update env * Add .env to source * sourdce .env to bash.... * Remove and invalidate bugsnag * Use the password we set * Change order of imports * Change out the pipeline forthe containers.... Mayabe thatll work * Use sail bin script * swap out the image for sail * Update for the docker * Change install order * Add basic log files * I Need to know the user name * Rename the checks * Would a little npm stuff help at all * Maybe we can build after we sail up * Change the to the testing database * Change the host to mariadb * Update the dependencies for the containers to see if github would resolve the dns then... * Force uninstall the mysql * Ensure we run the create testing db bit before * Fix the tests * Try swapping out the cmd * Try Changing the username * Phpunit * CHmod the storage because omfg im about done * ug * Revert * Update the logic for applying tags and verify that the test actually works * Updategit ignore; * Ensure we create the keys directory if it doesnt already exist' * Add logfor empty user * Remove old legacy POC crap that was causing the tests to default to the user_id = 1 which was the fucking problem " --------- Co-authored-by: austinkregel <[email protected]>
- Loading branch information
1 parent
a41405e
commit 11751ac
Showing
707 changed files
with
42,100 additions
and
6,822 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
APP_NAME=Laravel | ||
APP_ENV=local | ||
APP_KEY= | ||
APP_DEBUG=true | ||
APP_URL=http://localhost | ||
|
||
LOG_CHANNEL=stack | ||
LOG_DEPRECATIONS_CHANNEL=null | ||
LOG_LEVEL=debug | ||
|
||
DB_CONNECTION=mysql | ||
DB_HOST=mariadb | ||
DB_PORT=3306 | ||
DB_DATABASE=testing | ||
DB_USERNAME=sail | ||
DB_PASSWORD=password | ||
|
||
BROADCAST_DRIVER=log | ||
CACHE_DRIVER=file | ||
FILESYSTEM_DISK=local | ||
QUEUE_CONNECTION=sync | ||
SESSION_DRIVER=database | ||
SESSION_LIFETIME=120 | ||
|
||
MEMCACHED_HOST=127.0.0.1 | ||
|
||
REDIS_HOST=127.0.0.1 | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
|
||
MAIL_MAILER=smtp | ||
MAIL_HOST=mailpit | ||
MAIL_PORT=1025 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
MAIL_FROM_ADDRESS="[email protected]" | ||
MAIL_FROM_NAME="${APP_NAME}" | ||
|
||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_DEFAULT_REGION=us-east-1 | ||
AWS_BUCKET= | ||
AWS_USE_PATH_STYLE_ENDPOINT=false | ||
|
||
PUSHER_APP_ID= | ||
PUSHER_APP_KEY= | ||
PUSHER_APP_SECRET= | ||
PUSHER_HOST= | ||
PUSHER_PORT=443 | ||
PUSHER_SCHEME=https | ||
PUSHER_APP_CLUSTER=mt1 | ||
|
||
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" | ||
VITE_PUSHER_HOST="${PUSHER_HOST}" | ||
VITE_PUSHER_PORT="${PUSHER_PORT}" | ||
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" | ||
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" | ||
|
||
|
||
PLAID_ENVIRONMENT=sandbox | ||
PLAID_CLIENT_ID= | ||
PLAID_DEVELOPMENT_SECRET= | ||
PLAID_PRODUCTION_SECRET=prod_super_secret | ||
PLAID_SANDBOX_SECRET= | ||
|
||
SCOUT_DRIVER=meilisearch | ||
MEILISEARCH_HOST=http://meilisearch:7700 | ||
|
||
WEATHER_API_KEY= | ||
OPEN_WEATHER_KEY= | ||
|
||
REDIS_QUEUE= | ||
|
||
FTP_HOST= | ||
FTP_USERNAME= | ||
FTP_PASSWORD= | ||
|
||
SPORK_ADMIN_EMAILS= | ||
|
||
MATRIX_USERNAME="" | ||
MATRIX_PASSWORD="" | ||
MATRIX_HOST="" | ||
MATRIX_ACCESS_TOKEN="" | ||
MATRIX_DEVICE="" | ||
MATRIX_JWT_TOKEN="" | ||
|
||
GITHUB_TOKEN="" | ||
|
||
SMTP_USERNAME=@proton.me | ||
IMAP_USERNAME=@proton.me | ||
SMTP_PASSWORD= | ||
IMAP_PASSWORD= | ||
SMTP_HOST=proton-bridge | ||
IMAP_HOST=proton-bridge | ||
IMAP_PORT=143 | ||
SMTP_PORT=1025 | ||
|
||
SPORK_DEFAULT_FILESYSTEM= | ||
LINK_SHORTENING_DOMAIN= | ||
RUST_BACKTRACE= | ||
|
||
FORGE_CLOUDFLARE_TOKEN= | ||
|
||
MATRIX_CLIENT_FOR_COMMUNICATION_VENTURES= | ||
ADMIN_MATRIX_CLIENT_FOR_COMMUNICATION_VENTURES= |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: PHP Linting (Pint) | ||
name: Linting (Pint) | ||
on: | ||
workflow_dispatch: | ||
push: | ||
|
@@ -15,9 +15,4 @@ jobs: | |
uses: aglipanci/[email protected] | ||
with: | ||
preset: laravel | ||
|
||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: PHP Linting (Pint) | ||
skip_fetch: true | ||
|
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 |
---|---|---|
|
@@ -19,3 +19,4 @@ yarn-error.log | |
/.vscode | ||
/*.log | ||
/*.pid | ||
storage/*.bin |
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,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Actions\Spork; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
/** | ||
* Actions are implemented as invokable controllers. | ||
* They should expect to be sent an array of ids that represent the main model. | ||
* public function __invoke(Dispatcher $dispatcher, Request $request) | ||
*/ | ||
abstract class CustomAction | ||
{ | ||
public function __construct( | ||
public string $name = 'Set Namecheap DNS', | ||
public string $slug = 'custom-action', | ||
public ?string $models = null, | ||
) { | ||
} | ||
} |
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,33 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Actions\Spork\Domains; | ||
|
||
use App\Contracts\ActionInterface; | ||
|
||
class SyncNamecheapDnsAction implements ActionInterface | ||
{ | ||
public function __invoke() | ||
{ | ||
request()->validate([ | ||
'domains' => 'required|array', | ||
'nameservers' => 'required', | ||
]); | ||
|
||
$domains = request()->get('domains'); | ||
|
||
$nameservers = explode(',', request()->get('nameservers', '')); | ||
|
||
foreach ($domains as $domain) { | ||
$this->service->updateDomainNs($domain, $nameservers); | ||
} | ||
|
||
return 'OK'; | ||
} | ||
|
||
public function show(): bool | ||
{ | ||
return auth()->check(); | ||
} | ||
} |
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,37 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Actions\Spork; | ||
|
||
use App\Jobs\FetchDomainsForCredential; | ||
use App\Jobs\FetchRegistrarForCredential; | ||
use App\Jobs\FetchServersForCredential; | ||
use App\Jobs\Finance\SyncPlaidTransactionsJob; | ||
use App\Jobs\Servers\LaravelForgeServersSyncJob; | ||
use App\Models\Credential; | ||
use Illuminate\Contracts\Bus\Dispatcher; | ||
use Illuminate\Http\Request; | ||
|
||
class SyncDataFromCredential extends CustomAction | ||
{ | ||
public function __construct($name = 'Sync Data From Credential', $slug = 'sync-data-from-credential') | ||
{ | ||
parent::__construct($name, $slug, models: Credential::class); | ||
} | ||
|
||
public function __invoke(Dispatcher $dispatcher, Request $request) | ||
{ | ||
$credentials = Credential::where('user_id', $request->user()->id)->whereIn('id', $request->get('items'))->get(); | ||
|
||
foreach ($credentials as $credential) { | ||
$dispatcher->dispatch(match ($credential->type) { | ||
Credential::TYPE_REGISTRAR => new FetchRegistrarForCredential($credential), | ||
Credential::TYPE_DOMAIN => new FetchDomainsForCredential($credential), | ||
Credential::TYPE_SERVER => new FetchServersForCredential($credential), | ||
Credential::TYPE_DEVELOPMENT, 'forge' => new LaravelForgeServersSyncJob($credential), | ||
Credential::TYPE_FINANCE => new SyncPlaidTransactionsJob($credential, now()->subWeek(), now(), false), | ||
}); | ||
} | ||
} | ||
} |
Oops, something went wrong.