clock-work

This commit is contained in:
noor
2023-04-24 17:39:09 +05:30
committed by RafficMohammed
parent cf4bec91a6
commit 1eea7ff15e
178 changed files with 13169 additions and 123 deletions

View File

@@ -0,0 +1,36 @@
<?php namespace Clockwork\Web;
// Helper class for serving app assets
class Web
{
// Return the absolute path and a mime type of an asset, protects from accessing files outside Clockwork public dir
public function asset($path)
{
$path = $this->resolveAssetPath($path);
if (! $path) return;
switch (pathinfo($path, PATHINFO_EXTENSION)) {
case 'css': $mime = 'text/css'; break;
case 'js': $mime = 'application/javascript'; break;
case 'json': $mime = 'application/json'; break;
case 'png': $mime = 'image/png'; break;
default: $mime = 'text/html'; break;
}
return [
'path' => $path,
'mime' => $mime
];
}
// Resolves absolute path of the asset, protects from accessing files outside Clockwork public dir
protected function resolveAssetPath($path)
{
$publicPath = realpath(__DIR__ . '/public');
$path = realpath("$publicPath/{$path}");
return strpos($path, $publicPath) === 0 ? $path : false;
}
}

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 964 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 975 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 918 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 694 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 KiB

View File

@@ -0,0 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><!--[if IE]><link rel="icon" href="img/icons/favicon-32x32.png"><![endif]--><title>Clockwork</title><link href="css/app.515e4027.css" rel="preload" as="style"><link href="js/app.1b17e5e6.js" rel="preload" as="script"><link href="js/chunk-vendors.a7f629a4.js" rel="preload" as="script"><link href="css/app.515e4027.css" rel="stylesheet"><link rel="icon" type="image/png" sizes="32x32" href="img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="img/icons/favicon-16x16.png"><link rel="manifest" href="manifest.json"><meta name="theme-color" content="#4DBA87"><meta name="apple-mobile-web-app-capable" content="no"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="apple-mobile-web-app-title" content="Clockwork"><link rel="apple-touch-icon" href="img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="img/icons/safari-pinned-tab.svg" color="#4DBA87"><meta name="msapplication-TileImage" content="img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#000000"></head><body><div id="app"></div><script src="js/chunk-vendors.a7f629a4.js"></script><script src="js/app.1b17e5e6.js"></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"name":"Clockwork","short_name":"Clockwork","theme_color":"#2786f3","icons":[{"src":"img/icons/apple-touch-icon-180x180.png","sizes":"180x180","type":"image/png"}],"start_url":"/","display":"standalone","background_color":"#fff"}

View File

@@ -0,0 +1,62 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "8d099129fa5ea5174496",
"url": "css/app.515e4027.css"
},
{
"revision": "611a8f3ac0aa856f4018f676d719c67f",
"url": "img/appearance-auto-icon.png"
},
{
"revision": "4a9a5b7dee3fc2c7d2a684e63c447b55",
"url": "img/appearance-dark-icon.png"
},
{
"revision": "2439692fa652a49e5c3d820fd67cdc27",
"url": "img/appearance-light-icon.png"
},
{
"revision": "bb5196d7b075e39fd6a661ba44aa6a92",
"url": "img/whats-new/5.0/client-metrics.png"
},
{
"revision": "d78cafd4b6be96deda3eb2e9954b77ab",
"url": "img/whats-new/5.0/clockwork-5.png"
},
{
"revision": "81a43ef164ad401de937091824436e75",
"url": "img/whats-new/5.0/models-tab.png"
},
{
"revision": "8289742997480ce6748e3f819b68ca0e",
"url": "img/whats-new/5.0/notifications-tab.png"
},
{
"revision": "942ad4031f62aac1061c257428b9ad40",
"url": "img/whats-new/5.0/timeline.png"
},
{
"revision": "6c9e98b21595855028a29014642fee4c",
"url": "img/whats-new/5.0/toolbar.png"
},
{
"revision": "a403ddd6fac00289df60a70163f8aca5",
"url": "img/whats-new/5.1/database-queries.png"
},
{
"revision": "5f78ccbaa09abbd6ce825683b6950605",
"url": "index.html"
},
{
"revision": "8d099129fa5ea5174496",
"url": "js/app.1b17e5e6.js"
},
{
"revision": "70804b62af80bfb6fd7b",
"url": "js/chunk-vendors.a7f629a4.js"
},
{
"revision": "7bcaca7d628e3fabb246a02425e072dd",
"url": "manifest.json"
}
]);

View File

@@ -0,0 +1,34 @@
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Workbox build configuration
* and re-run your build process.
* See https://goo.gl/2aRDsh
*/
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts(
"precache-manifest.84f394233edb6bbf15637db0e9e4acd5.js"
);
workbox.core.setCacheNameDetails({prefix: "Clockwork"});
self.addEventListener('message', (event) => {
if (event.data && event.data.type === 'SKIP_WAITING') {
self.skipWaiting();
}
});
/**
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
* requests for URLs in the manifest.
* See https://goo.gl/S9QRab
*/
self.__precacheManifest = [].concat(self.__precacheManifest || []);
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});