-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93bab6b
commit cc00b97
Showing
29 changed files
with
301 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
/** | ||
* Calculate the time, local to the requested location from | ||
* the OpenWeather API, by passing in the number of seconds | ||
* that location has shifted from UTC based on the timezones. | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
/** | ||
* Calculate the time, local to the requested location from | ||
* the OpenWeather API, by passing in the number of seconds | ||
* that location has shifted from UTC based on the timezones. | ||
*/ | ||
export default class Clock { | ||
/** | ||
* Calculate the time shifted from UTC. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
/** | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
import Clock from "./Clock"; | ||
|
||
export default class Greeting { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
/** | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
import Clock from './Clock'; | ||
import EventEmitter from 'eventemitter3'; | ||
import Fuse from 'fuse.js'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
/** | ||
* Generate search suggestions. | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
/** | ||
* Generate search suggestions. | ||
*/ | ||
export default class SearchSuggestions { | ||
|
||
constructor(searchengines, inputelm, containerelm, eventemitter) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
/** | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
export default class Weather { | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
/** | ||
* Do some fancy UI stuff in a rather unfancy way. | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
/** | ||
* Do some fancy UI stuff in a rather unfancy way. | ||
*/ | ||
|
||
import Main from './classes/Main'; | ||
import version from '../../../.jump-version'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
<?php | ||
/** | ||
* Generate dynamic CSS for randomising the background image. | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
/** | ||
* Generate dynamic CSS for randomising the background image. | ||
*/ | ||
|
||
// Provided by composer for psr-4 style autoloading. | ||
require __DIR__ .'/vendor/autoload.php'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
<?php | ||
/** | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
namespace Jump\API; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
<?php | ||
/** | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
namespace Jump\API; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
<?php | ||
/** | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
namespace Jump\API; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
<?php | ||
/** | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
namespace Jump\API; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
<?php | ||
/** | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
namespace Jump; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
<?php | ||
/** | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
namespace Jump; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
<?php | ||
/** | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
namespace Jump; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
<?php | ||
/** | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
namespace Jump\Exceptions; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
<?php | ||
|
||
/** | ||
* TO DO: | ||
* - use CSRF token in weatherdata and icon api | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
namespace Jump; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
<?php | ||
/** | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
namespace Jump\Pages; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
<?php | ||
/** | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
namespace Jump\Pages; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
<?php | ||
/** | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
namespace Jump\Pages; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
<?php | ||
/** | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
namespace Jump\Pages; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
<?php | ||
/** | ||
* ██ ██ ██ ███ ███ ██████ | ||
* ██ ██ ██ ████ ████ ██ ██ | ||
* ██ ██ ██ ██ ████ ██ ██████ | ||
* ██ ██ ██ ██ ██ ██ ██ ██ | ||
* █████ ██████ ██ ██ ██ | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @copyright Copyright (c) 2022, Dale Davies | ||
* @license MIT | ||
*/ | ||
|
||
namespace Jump; | ||
|
||
use \Exception; | ||
|
||
/** | ||
* Loads and validates the search engines defined in searchengines.json. | ||
* | ||
* @author Dale Davies <[email protected]> | ||
* @license MIT | ||
*/ | ||
class SearchEngines { | ||
private array $default; | ||
|
Oops, something went wrong.