Skip to content

Commit 1416301

Browse files
Update vendor packages part 3
1 parent bace0de commit 1416301

File tree

27 files changed

+231
-33
lines changed

27 files changed

+231
-33
lines changed

composer.lock

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/reference.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,17 @@
10981098
* doctrine?: DoctrineConfig,
10991099
* doctrine_migrations?: DoctrineMigrationsConfig,
11001100
* twig?: TwigConfig,
1101+
* "when@dev"?: array{
1102+
* imports?: ImportsConfig,
1103+
* parameters?: ParametersConfig,
1104+
* services?: ServicesConfig,
1105+
* framework?: FrameworkConfig,
1106+
* flysystem?: FlysystemConfig,
1107+
* monolog?: MonologConfig,
1108+
* doctrine?: DoctrineConfig,
1109+
* doctrine_migrations?: DoctrineMigrationsConfig,
1110+
* twig?: TwigConfig,
1111+
* },
11011112
* "when@prod"?: array{
11021113
* imports?: ImportsConfig,
11031114
* parameters?: ParametersConfig,
@@ -1203,6 +1214,7 @@ public static function config(array $config): array
12031214
* deprecated?: array{package:string, version:string, message?:string},
12041215
* }
12051216
* @psalm-type RoutesConfig = array{
1217+
* "when@dev"?: array<string, RouteConfig|ImportConfig|AliasConfig>,
12061218
* "when@prod"?: array<string, RouteConfig|ImportConfig|AliasConfig>,
12071219
* "when@test"?: array<string, RouteConfig|ImportConfig|AliasConfig>,
12081220
* ...<string, RouteConfig|ImportConfig|AliasConfig>

public/css/dist/tailwind.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/css/tailwind.output.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@
191191
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
192192
--animate-spin: spin 1s linear infinite;
193193
--animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
194+
--animate-bounce: bounce 1s infinite;
194195
--blur-xs: 4px;
195196
--default-transition-duration: 150ms;
196197
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -1724,6 +1725,9 @@
17241725
.min-h-80 {
17251726
min-height: calc(var(--spacing) * 80);
17261727
}
1728+
.min-h-\[80vh\] {
1729+
min-height: 80vh;
1730+
}
17271731
.min-h-\[350px\] {
17281732
min-height: 350px;
17291733
}
@@ -1927,6 +1931,9 @@
19271931
.max-w-full {
19281932
max-width: 100%;
19291933
}
1934+
.max-w-md {
1935+
max-width: var(--container-md);
1936+
}
19301937
.datatable-input {
19311938
.datatable-wrapper .datatable-search & {
19321939
color: var(--color-gray-900);
@@ -2057,6 +2064,9 @@
20572064
.animate-\[bounce_1s_infinite_400ms\] {
20582065
animation: bounce 1s infinite 400ms;
20592066
}
2067+
.animate-bounce {
2068+
animation: var(--animate-bounce);
2069+
}
20602070
.animate-pulse {
20612071
animation: var(--animate-pulse);
20622072
}

src/Application/Build/BuildIndexHtml/BuildIndexHtmlCommandHandler.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
namespace App\Application\Build\BuildIndexHtml;
66

77
use App\Application\Router;
8+
use App\Domain\Athlete\Athlete;
89
use App\Infrastructure\CQRS\Command\Command;
910
use App\Infrastructure\CQRS\Command\CommandHandler;
1011
use League\Flysystem\FilesystemOperator;
12+
use Ramsey\Uuid\Uuid;
1113
use Twig\Environment;
1214

1315
final readonly class BuildIndexHtmlCommandHandler implements CommandHandler
@@ -23,12 +25,23 @@ public function handle(Command $command): void
2325
{
2426
assert($command instanceof BuildIndexHtml);
2527

28+
$context = $this->indexHtml->getContext($command->getCurrentDateTime());
29+
$athlete = $context['athlete'];
30+
assert($athlete instanceof Athlete);
31+
32+
$easterEggPageUrl = Uuid::uuid5(Uuid::NAMESPACE_DNS, $athlete->getAthleteId());
2633
$this->buildStorage->write(
2734
'index.html',
2835
$this->twig->load('html/index.html.twig')->render([
2936
'router' => Router::SINGLE_PAGE,
30-
...$this->indexHtml->getContext($command->getCurrentDateTime()),
37+
'easterEggPageUrl' => $easterEggPageUrl,
38+
...$context,
3139
]),
3240
);
41+
42+
$this->buildStorage->write(
43+
sprintf('%s.html', $easterEggPageUrl),
44+
$this->twig->load('html/easter-egg.html.twig')->render(),
45+
);
3346
}
3447
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<div class="flex items-center justify-center min-h-[80vh]">
2+
<div class="text-center px-6">
3+
<div class="text-7xl mb-6 animate-bounce">🥚</div>
4+
<h1 class="text-2xl font-extrabold text-strava-orange mb-3">You found the easter egg!</h1>
5+
<p class="leading-relaxed max-w-md mx-auto">
6+
No extra stats here. No secret dashboard.<br>
7+
Just the knowledge that you cared enough<br>
8+
to dig through the source code.<br><br>
9+
Now close this tab and go break a sweat.
10+
</p>
11+
</div>
12+
</div>

templates/html/index.html.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<link rel="preload" href="{{ relativeUrl(asset('libraries/clusterize/clusterize.min.css')) }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
2424
<link rel="preload" href="{{ relativeUrl(asset('libraries/lightgallery/lightgallery-bundle.min.css')) }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
2525
</head>
26-
<body class="bg-gray-50">
26+
<body class="bg-gray-50" data-easter-egg="{{ easterEggPageUrl }}">
2727
<div class="antialiased">
2828
<!-- NAVIGATION -->
2929
{% autoescape false %}
@@ -269,5 +269,6 @@
269269
<script src="{{ relativeUrl(asset('js/dist/app.min.js')) }}" type="module"></script>
270270
{% block customScripts %}
271271
{% endblock customScripts %}
272+
<!-- {{ easterEggPageUrl }} -->
272273
</body>
273274
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<html><body>
2+
<div class="flex items-center justify-center min-h-[80vh]">
3+
<div class="text-center px-6">
4+
<div class="text-7xl mb-6 animate-bounce">&eth;&#159;&yen;&#154;</div>
5+
<h1 class="text-2xl font-extrabold text-strava-orange mb-3">You found the easter egg!</h1>
6+
<p class="leading-relaxed max-w-md mx-auto">
7+
No extra stats here. No secret dashboard.<br>
8+
Just the knowledge that you cared enough<br>
9+
to dig through the source code.<br><br>
10+
Now close this tab and go break a sweat.
11+
</p>
12+
</div>
13+
</div>
14+
</body></html>

tests/Application/Build/BuildIndexHtml/__snapshots__/BuildIndexHtmlCommandHandlerTest--testHandle--index-html.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<link rel="preload" href="/libraries/clusterize/clusterize.min.css?0025176c-5652-11ee-923d-02424dd627d5" as="style" onload="this.onload=null;this.rel='stylesheet'">
2424
<link rel="preload" href="/libraries/lightgallery/lightgallery-bundle.min.css?0025176c-5652-11ee-923d-02424dd627d5" as="style" onload="this.onload=null;this.rel='stylesheet'">
2525
</head>
26-
<body class="bg-gray-50">
26+
<body class="bg-gray-50" data-easter-egg="3c64bce0-4f00-54bc-a9fb-a2402a364b87">
2727
<div class="antialiased">
2828
<!-- NAVIGATION -->
2929
<nav class="text-gray-900 bg-white border-b border-gray-200 px-4 py-2.5 fixed left-0 right-0 top-0 z-1100 group">
@@ -340,5 +340,6 @@
340340
<script src="/libraries/leaflet/leaflet.js?0025176c-5652-11ee-923d-02424dd627d5"></script>
341341
<script src="/js/dist/leaflet.controls.min.js?0025176c-5652-11ee-923d-02424dd627d5"></script>
342342
<script src="/js/dist/app.min.js?0025176c-5652-11ee-923d-02424dd627d5" type="module"></script>
343+
<!-- 3c64bce0-4f00-54bc-a9fb-a2402a364b87 -->
343344
</body>
344345
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<html><body>
2+
<div class="flex items-center justify-center min-h-[80vh]">
3+
<div class="text-center px-6">
4+
<div class="text-7xl mb-6 animate-bounce">&eth;&#159;&yen;&#154;</div>
5+
<h1 class="text-2xl font-extrabold text-strava-orange mb-3">You found the easter egg!</h1>
6+
<p class="leading-relaxed max-w-md mx-auto">
7+
No extra stats here. No secret dashboard.<br>
8+
Just the knowledge that you cared enough<br>
9+
to dig through the source code.<br><br>
10+
Now close this tab and go break a sweat.
11+
</p>
12+
</div>
13+
</div>
14+
</body></html>

0 commit comments

Comments
 (0)