Skip to content

Commit 7f398d1

Browse files
authored
[Chore] Hint links (alexjustesen#759)
1 parent 24513fc commit 7f398d1

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
/docker/*
66
!/docker/deploy
77
/node_modules
8-
/public/build
98
/public/hot
109
/public/storage
1110
/storage/*.key

app/Filament/Pages/Settings/GeneralPage.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Filament\Forms\Form;
99
use Filament\Pages\SettingsPage;
1010
use Illuminate\Support\Facades\Http;
11+
use Illuminate\Support\HtmlString;
1112
use Squire\Models\Timezone;
1213

1314
class GeneralPage extends SettingsPage
@@ -44,7 +45,8 @@ public function form(Form $form): Form
4445
->searchable()
4546
->required(),
4647
Forms\Components\TextInput::make('time_format')
47-
->helperText('Use [DateTime Format](https://www.php.net/manual/en/datetime.format.php) options to change the format of the datetime in views.')
48+
->hint(new HtmlString('<a href="https://www.php.net/manual/en/datetime.format.php" target="_blank" rel="nofollow">DateTime Format</a>'))
49+
->hintIcon('heroicon-o-book-open')
4850
->placeholder('M j, Y G:i:s')
4951
->maxLength(25)
5052
->required(),
@@ -59,7 +61,9 @@ public function form(Form $form): Form
5961
->schema([
6062
Forms\Components\TextInput::make('speedtest_schedule')
6163
->rules([new Cron()])
62-
->helperText('Leave empty to disable the schedule. You can also use the cron expression generator [HERE](https://crontab.cronhub.io/) to help you make schedules.')
64+
->helperText('Leave empty to disable scheduled tests.')
65+
->hint(new HtmlString('<a href="https://crontab.cronhub.io/" target="_blank" rel="nofollow">Cron Generator</a>'))
66+
->hintIcon('heroicon-o-book-open')
6367
->nullable()
6468
->columnSpan(1),
6569
Forms\Components\Select::make('speedtest_server')

public/build/assets/theme-2f6feb94.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/build/assets/theme-acd38621.css

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

public/build/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resources/css/filament/admin/theme.css": {
3-
"file": "assets/theme-2f6feb94.css",
3+
"file": "assets/theme-acd38621.css",
44
"isEntry": true,
55
"src": "resources/css/filament/admin/theme.css"
66
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
@import '../../../../vendor/filament/filament/resources/css/theme.css';
22

33
@config './tailwind.config.js';
4+
5+
@layer base {
6+
.fi-fo-field-wrp-helper-text a,
7+
.fi-fo-field-wrp-hint a {
8+
@apply font-bold underline;
9+
}
10+
}

0 commit comments

Comments
 (0)