diff --git a/resources/data/README.md b/resources/data/README.md deleted file mode 100644 index 9185a513..00000000 --- a/resources/data/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# @deprecated v0.20.0-dev, see https://github.com/hydephp/framework/issues/243 - -Info for Hyde Framework package developers: - -As of now, this data directory only stores one data file, the filecache.json which contains an index of the default files and their checksums. This file is used as per https://github.com/hydephp/framework/issues/67 to let Hyde know if a default file has been modified by the user or if it is safe to overwrite. Note that the checksums use the md5 hash algorithm which is not cryptographically secure and should not be used for anything other than checking if a file has been modified. - -When changing the default files, please make sure to update the checksums in the filecache.json file. -The file is generated automatically by running the filecacheGenerator.php script from the command line in the data directory. - -```bash -php filecacheGenerator.php -``` \ No newline at end of file diff --git a/resources/data/filecache.json b/resources/data/filecache.json deleted file mode 100644 index 75093ec1..00000000 --- a/resources/data/filecache.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "resources\/views\/components\/article-excerpt.blade.php": { - "unixsum": "cf447fa39d3ecf8a6c6a211c385f9293" - }, - "resources\/views\/homepages\/blank.blade.php": { - "unixsum": "48b54c9a6a43fd8fd7f9a4520c26924a" - }, - "resources\/views\/homepages\/post-feed.blade.php": { - "unixsum": "3c31b8b10138078198b031f892f0748a" - }, - "resources\/views\/homepages\/welcome.blade.php": { - "unixsum": "5fdda0edeeea0d3605136f6d418e109a" - }, - "resources\/views\/layouts\/app.blade.php": { - "unixsum": "e656ac71e4596c3249785233b8119f92" - }, - "resources\/views\/layouts\/docs.blade.php": { - "unixsum": "26ea6aff24f8118ef354ffcc51edf34a" - }, - "resources\/views\/layouts\/footer.blade.php": { - "unixsum": "82399b4f05eee0bf5fd9f428fbc3d695" - }, - "resources\/views\/layouts\/meta.blade.php": { - "unixsum": "854fba51dfc472084fbf5ff90a52e663" - }, - "resources\/views\/layouts\/navigation.blade.php": { - "unixsum": "ef7085fe7d0cae13f3fe3d64f7254bde" - }, - "resources\/views\/layouts\/page.blade.php": { - "unixsum": "c3247c476faa57c84f57923dd6ae09aa" - }, - "resources\/views\/layouts\/post.blade.php": { - "unixsum": "b89b239a21a1727ab33df9b9d9f7cfbc" - }, - "resources\/views\/layouts\/scripts.blade.php": { - "unixsum": "7f2a15f1c7168392cf88a2d0195294cc" - }, - "resources\/views\/layouts\/styles.blade.php": { - "unixsum": "f8ed96a46a7e4af75d3815045ec24999" - }, - "resources\/views\/pages\/404.blade.php": { - "unixsum": "e548c77fb247e918b61b448dd1d91971" - } -} \ No newline at end of file diff --git a/resources/data/filecacheGenerator.php b/resources/data/filecacheGenerator.php deleted file mode 100644 index a83da976..00000000 --- a/resources/data/filecacheGenerator.php +++ /dev/null @@ -1,49 +0,0 @@ - unixsum(file_get_contents($file)), - ]; -} - -function unixsum(string $string): string -{ - // Replace all end of line characters with a unix line ending - $string = str_replace(["\r\n", "\r"], "\n", $string); - - return md5($string); -} - -file_put_contents('filecache.json', json_encode($filecache, JSON_PRETTY_PRINT)); - -$execution_time = (microtime(true) - $time_start); -echo sprintf( - 'Saved checksums for %s files in %s seconds (%sms)', - sizeof($files), - number_format( - $execution_time, - 8 - ), - number_format($execution_time * 1000, 2) -); - -exit(0);