Skip to content

Commit

Permalink
remove resource/pages/widgets from json
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed May 15, 2024
1 parent 25df41d commit ca164dc
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/Models/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ class Plugin extends Model
'github' => 'string',
'active' => 'boolean',
'providers' => 'json',
'pages' => 'json',
'resources' => 'json',
'widgets' => 'json',
'type' => 'string',
];

Expand Down Expand Up @@ -58,10 +55,7 @@ public function getRows()
"github" => isset($info->github)?$info->github:null,
"docs" => isset($info->docs)?$info->docs:null,
"active" => Module::find($info->name)->isEnabled(),
"providers" => json_encode($info->providers),
"resources" => json_encode($info->resources),
"pages" => json_encode($info->pages),
"widgets" => json_encode($info->widgets),
"providers" => json_encode($info->providers)
];
});
}
Expand All @@ -88,10 +82,7 @@ public function getRows()
"github" => isset($info->github)?$info->github:null,
"docs" => isset($info->docs)?$info->docs:null,
"active" => false,
"providers" => json_encode($info->providers),
"resources" => json_encode($info->resources),
"pages" => json_encode($info->pages),
"widgets" => json_encode($info->widgets),
"providers" => json_encode($info->providers)
];
}
}
Expand Down

0 comments on commit ca164dc

Please sign in to comment.