Downloads
Stars
Version
A Laravel Nova card to display world clock.
You can install the package in to a Laravel app that uses Nova via composer:
composer require idf/nova-worldclock-card
use IDF\WorldClockCard\WorldClock;
public function cards()
{
return [
(new WorldClock())
->timezones([
'Asia/Tokyo',
'Asia/Dubai',
'America/New_York',
'America/Los_Angeles',
])
->timeFormat('h:i') // Optional, time format. Default is: 'h:i:s'
->updatePeriod(1000) // Optional, to set updating time period in millisecond. Default is 1000 ms (1sec)
->nightRange(22, 6) // Optional, to set range of night hours. Default is [19; 6).
->hideContinents() // Optional, hide continents from timezone-names.
->timezoneDescriptions([ // Optional, add text description to timezones.
'Asia/Tokyo' => 'Yuto, Hana',
'Asia/Dubai' => 'Alya, Omar, Ibrahim',
])
];
}
Please see Releases for more information on what has changed recently.
Please see CONTRIBUTING for details.
# Compile and minify your assets:
npm run prod
# Compile your assets for local development:
npm run dev
# Run the NPM "watch" command to auto-compile your assets when they are changed:
npm run watch
The MIT License (MIT). Please see License File for more information.