Skip to content

Commit 0cca402

Browse files
authored
chore: [CU-86b6ng13t] setup nightwatch and update footer (#396)
1 parent e19d221 commit 0cca402

File tree

33 files changed

+1674
-1431
lines changed

33 files changed

+1674
-1431
lines changed

.claude/settings.local.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ README.md
2727
.idea
2828
.vscode
2929
.junie
30+
.claude
3031

3132
# Git
3233
.gitignore
3334
.gitattributes
3435
.github
36+
.gitkeep
3537

3638
# Others
3739
art

.env.example

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ APP_SERVICE=laravelcm
99
FILAMENT_PATH=cp
1010

1111
LOG_CHANNEL=stack
12+
LOG_STACK=single,nightwatch
1213
LOG_LEVEL=debug
1314

1415
DB_CONNECTION=mysql
@@ -71,9 +72,6 @@ TELEGRAM_CHANNEL=
7172
MEDIA_DISK=media
7273
FILAMENT_FILESYSTEM_DISK=${MEDIA_DISK}
7374

74-
SENTRY_LARAVEL_DSN=
75-
SENTRY_TRACES_SAMPLE_RATE=1.0
76-
7775
NOTCHPAY_PUBLIC_KEY=
7876

7977
TWITTER_CONSUMER_KEY=your-consumer-key
@@ -85,3 +83,12 @@ GOOGLE_RECAPTCHA_SITE_KEY=your-recaptcha-site-key
8583
GOOGLE_RECAPTCHA_SECRET_KEY=your-secret-key
8684

8785
GITHUB_FINE_GRAINED_TOKEN=
86+
87+
SCOUT_DRIVER=typesense
88+
TYPESENSE_HOST=typesense
89+
TYPESENSE_PORT=8108
90+
TYPESENSE_PROTOCOL=http
91+
TYPESENSE_API_KEY=xyz
92+
93+
NIGHTWATCH_TOKEN=
94+
NIGHTWATCH_REQUEST_SAMPLE_RATE=0.1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pnpm-lock.yml
77
/vendor
88
composer.phar
99
/.junie
10+
/.claude
1011
/.idea
1112
/.vscode
1213
.phpunit.cache

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,5 @@ COPY --from=frontend --chown=www-data:www-data /app/public/build ./public/build
137137
# Application source
138138
COPY --chown=www-data:www-data . /var/www/html
139139

140-
# Install Octane with FrankenPHP
140+
# Start Octane with FrankenPHP
141141
RUN php artisan octane:start --server=frankenphp -n

app-modules/gamify/composer.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
{
2-
"name": "laravelcm/gamify",
3-
"description": "Module laravelcm/gamify for Laravel.cm",
4-
"type": "library",
5-
"version": "1.1.0",
6-
"license": "proprietary",
7-
"require": {
8-
"filament/filament": "^3.2"
9-
},
10-
"require-dev": {
11-
"pestphp/pest": "^2.32",
12-
"pestphp/pest-plugin-laravel": "^2.1"
13-
},
14-
"autoload": {
15-
"psr-4": {
16-
"Laravelcm\\Gamify\\": "src/",
17-
"Laravelcm\\Gamify\\Database\\Factories\\": "database/factories/",
18-
"Laravelcm\\Gamify\\Database\\Seeders\\": "database/seeders/"
19-
},
20-
"files": [
21-
"src/helpers.php"
22-
]
2+
"name": "laravelcm/gamify",
3+
"description": "Module laravelcm/gamify for Laravel.cm",
4+
"type": "library",
5+
"version": "1.1.0",
6+
"license": "proprietary",
7+
"require": {
8+
"filament/filament": "^3.2"
9+
},
10+
"require-dev": {
11+
"pestphp/pest": "^2.32",
12+
"pestphp/pest-plugin-laravel": "^2.1"
13+
},
14+
"autoload": {
15+
"psr-4": {
16+
"Laravelcm\\Gamify\\": "src/",
17+
"Laravelcm\\Gamify\\Database\\Factories\\": "database/factories/",
18+
"Laravelcm\\Gamify\\Database\\Seeders\\": "database/seeders/"
2319
},
20+
"files": [
21+
"src/helpers.php"
22+
]
23+
},
2424
"autoload-dev": {
2525
"psr-4": {
2626
"Laravelcm\\Gamify\\Tests\\": "tests/"
2727
}
2828
},
29-
"minimum-stability": "stable",
30-
"extra": {
31-
"laravel": {
32-
"providers": [
33-
"Laravelcm\\Gamify\\Providers\\GamifyServiceProvider"
34-
]
35-
}
29+
"minimum-stability": "stable",
30+
"extra": {
31+
"laravel": {
32+
"providers": [
33+
"Laravelcm\\Gamify\\Providers\\GamifyServiceProvider"
34+
]
3635
}
36+
}
3737
}

app-modules/gamify/tests/Feature/PointTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct($subject = null)
5050
$this->subject = $subject;
5151
}
5252

53-
public function payee(): ?User
53+
public function payee(): User
5454
{
5555
return new User;
5656
}

app/Filament/Resources/ArticleResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public static function table(Table $table): Table
147147
}),
148148
Tables\Actions\Action::make('show')
149149
->icon('untitledui-eye')
150-
->url(fn (Article $record) => route('articles.show', $record))
150+
->url(fn (Article $record): string => route('articles.show', $record))
151151
->openUrlInNewTab()
152152
->label('Afficher'),
153153
Tables\Actions\DeleteAction::make(),

app/Filament/Resources/DiscussionResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static function table(Table $table): Table
5858
->icon('untitledui-eye')
5959
->iconButton()
6060
->color('gray')
61-
->url(fn (Discussion $record) => route('discussions.show', $record))
61+
->url(fn (Discussion $record): string => route('discussions.show', $record))
6262
->openUrlInNewTab(),
6363
Tables\Actions\DeleteAction::make()
6464
->iconButton(),

app/Models/Enterprise.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ public function registerMediaCollections(): void
4848
->singleFile()
4949
->acceptsMimeTypes([
5050
'image/jpg',
51-
'image/jpeg',
5251
'image/png',
5352
'image/svg',
5453
'image/gif',
54+
'image/webp',
5555
]);
5656

5757
$this->addMediaCollection('cover')
5858
->singleFile()
5959
->acceptsMimeTypes([
6060
'image/jpg',
61-
'image/jpeg',
6261
'image/png',
62+
'image/webp',
6363
]);
6464
}
6565

@@ -95,7 +95,7 @@ protected function public(Builder $query): void
9595
* @param string[] $filters
9696
*/
9797
#[Scope]
98-
public function filters(Builder $query, Request $request, array $filters = []): Builder
98+
protected function filters(Builder $query, Request $request, array $filters = []): Builder
9999
{
100100
return new EnterpriseFilters($request)->add($filters)->filter($query);
101101
}

0 commit comments

Comments
 (0)