Skip to content

Commit

Permalink
updated files and paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiktor-Wojciechowski committed Jul 2, 2024
1 parent c08fc38 commit eab59af
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/ColorsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/LogsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
13 changes: 13 additions & 0 deletions resources/data/colors.json
Original file line number Diff line number Diff line change
@@ -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"
]
}

3 changes: 3 additions & 0 deletions resources/data/sampleLogs.json
Original file line number Diff line number Diff line change
@@ -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,"
}

0 comments on commit eab59af

Please sign in to comment.