diff --git a/app/Http/Controllers/ColorsController.php b/app/Http/Controllers/ColorsController.php index 7d7a1142..f525165c 100644 --- a/app/Http/Controllers/ColorsController.php +++ b/app/Http/Controllers/ColorsController.php @@ -10,7 +10,7 @@ class ColorsController extends Controller { public function getData() { - $path = storage_path("/app/colors.json"); + $path = storage_path("../resources/data/colors.json"); $data = json_decode(File::get($path), true); return response()->json($data); diff --git a/app/Http/Controllers/LogsController.php b/app/Http/Controllers/LogsController.php index a417cbcb..f83a3799 100644 --- a/app/Http/Controllers/LogsController.php +++ b/app/Http/Controllers/LogsController.php @@ -10,7 +10,7 @@ class LogsController extends Controller { public function getSampleLogs() { - $path = storage_path("/app/sampleLogs.json"); + $path = storage_path("../resources/data/sampleLogs.json"); $data = json_decode(File::get($path), true); return response()->json($data); diff --git a/resources/data/colors.json b/resources/data/colors.json new file mode 100644 index 00000000..c29a2ec1 --- /dev/null +++ b/resources/data/colors.json @@ -0,0 +1,13 @@ +{ + "colors": [ + "bg-gray-400", + "bg-blue-400", + "bg-red-400", + "bg-green-400", + "bg-yellow-400", + "bg-indigo-400", + "bg-purple-400", + "bg-pink-400" + ] + } + \ No newline at end of file diff --git a/resources/data/sampleLogs.json b/resources/data/sampleLogs.json new file mode 100644 index 00000000..978deca8 --- /dev/null +++ b/resources/data/sampleLogs.json @@ -0,0 +1,3 @@ +{ + "sample": "Date,Product,SKU,Quantity,Unit Type,Price Per Unit ($),Multiplier,Owner,Repository Slug,Username,Actions Workflow,Notes\n2022-05-20,Actions,Compute - UBUNTU,2,minute,0.008,1.0,galaxy,trantor,octocat,.github/workflows/check-pr.yml,\n2022-05-20,Actions,Compute - UBUNTU,9,minute,0.008,1.0,galaxy,caprica,octocat,.github/workflows/check-pr.yml,\n2022-05-20,Actions,Compute - UBUNTU,8,minute,0.008,1.0,galaxy,mustafar,octocat,.github/workflows/test.yml,\n2022-05-20,Actions,Compute - UBUNTU,9,minute,0.008,1.0,galaxy,caprica,octocat,.github/workflows/lint.yml,\n2022-05-20,Actions,Compute - UBUNTU,3,minute,0.008,1.0,galaxy,trantor,octocat,.github/workflows/behat.yml,\n2022-05-20,Actions,Compute - UBUNTU,3,minute,0.008,1.0,galaxy,mustafar,octocat,.github/workflows/check-pr.yml,\n2022-05-20,Actions,Compute - UBUNTU,2,minute,0.008,1.0,galaxy,trantor,octocat,.github/workflows/behat.yml,\n2022-05-20,Actions,Compute - UBUNTU,15,minute,0.008,1.0,galaxy,caprica,octocat,.github/workflows/lint.yml,\n2022-05-20,Actions,Compute - WINDOWS,7,minute,0.016,1.0,galaxy,mustafar,octocat,.github/workflows/test-windows.yml,\n2022-05-20,Actions,Compute - UBUNTU,11,minute,0.008,1.0,galaxy,caprica,octocat,.github/workflows/check-pr.yml,\n2022-05-20,Actions,Compute - UBUNTU,2,minute,0.008,1.0,galaxy,mustafar,octocat,.github/workflows/test.yml,\n2022-05-20,Actions,Compute - UBUNTU,1,minute,0.008,1.0,galaxy,trantor,dependabot[bot],.github/workflows/check-pr.yml,\n2022-05-20,Actions,Compute - UBUNTU,7,minute,0.008,1.0,galaxy,trantor,octocat,.github/workflows/behat.yml," +}