mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
feat(#129): add iCal response parser
This commit is contained in:
parent
838db288e7
commit
60f2a38169
12 changed files with 513 additions and 49 deletions
|
|
@ -144,5 +144,42 @@ class ExampleRecipesSeeder extends Seeder
|
|||
'flux_icon_name' => 'flower',
|
||||
]
|
||||
);
|
||||
|
||||
Plugin::updateOrCreate(
|
||||
[
|
||||
'uuid' => '1d98bca4-837d-4b01-b1a1-e3b6e56eca90',
|
||||
'name' => 'Holidays (iCal)',
|
||||
'user_id' => $user_id,
|
||||
'data_payload' => null,
|
||||
'data_stale_minutes' => 720,
|
||||
'data_strategy' => 'polling',
|
||||
'configuration_template' => [
|
||||
'custom_fields' => [
|
||||
[
|
||||
'keyname' => 'calendar',
|
||||
'field_type' => 'select',
|
||||
'name' => 'Public Holidays Calendar',
|
||||
'options' => [
|
||||
['USA' => 'usa'],
|
||||
['Austria' => 'austria'],
|
||||
['Australia' => 'australia'],
|
||||
['Canada' => 'canada'],
|
||||
['Germany' => 'germany'],
|
||||
['UK' => 'united-kingdom'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'configuration' => ['calendar' => 'usa'],
|
||||
'polling_url' => 'https://www.officeholidays.com/ics-clean/{{calendar}}',
|
||||
'polling_verb' => 'get',
|
||||
'polling_header' => null,
|
||||
'render_markup' => null,
|
||||
'render_markup_view' => 'recipes.holidays-ical',
|
||||
'detail_view_route' => null,
|
||||
'icon_url' => null,
|
||||
'flux_icon_name' => 'calendar',
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue