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
const preLoad = function () { | |
/** Open a cache with a name offline*/ | |
return caches.open("offline").then(function (cache) { | |
/** add the all the files in the array to the cache called offline*/ | |
return cache.addAll(filesToCache); | |
}); | |
}; |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="title" content="InfyBonus"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style> | |
.error_body { |
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
{ | |
"name": "Laravel Pwa Package Tutorial", | |
"short_name": "LPT", | |
"start_url": "/index.php", | |
"background_color": "#6777ef", | |
"description": "Tutorial of Laravel Package", | |
"display": "fullscreen", | |
"theme_color": "#6777ef", | |
"icons": [ | |
{ |
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
<?php | |
namespace LdTalent\Pwa; | |
use Illuminate\Support\Facades\Facade; | |
class PwaFacade extends Facade | |
{ | |
/** |
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
<?php | |
namespace LdTalent\Pwa; | |
use Illuminate\Support\ServiceProvider; | |
use LdTalent\Pwa\Commands\PublishPwaAssets; | |
class PwaServiceProvider extends ServiceProvider | |
{ |
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
/vendor |
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
{ | |
"name": "ldtalent/pwa-laravel", | |
"description": "A laravel package for publishing essential assets for making a laravel app a pwa", | |
"type": "composer-package", | |
"license": "MIT", | |
"authors": [ | |
{ | |
"name": "Emmanuel Obua", | |
"email": "eobua6882@gmail.com" | |
} |
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
"autoload": { | |
"psr-4": { | |
"LdTalent\\Pwa\\": "src/" | |
} | |
}, | |
"extra": { | |
"laravel": { | |
"providers": [ | |
"\\LdTalent\\Pwa\\PwaServiceProvider" | |
], |
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
"require": { | |
"php": ">=5.6", | |
"illuminate/support": ">=5.4" | |
} |
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
css | |
images | |
js | |
index.html |