Skip to content

Commit

Permalink
cms config
Browse files Browse the repository at this point in the history
  • Loading branch information
agnlez committed Nov 7, 2023
1 parent f6e8c41 commit 6ee40d4
Show file tree
Hide file tree
Showing 13 changed files with 110 additions and 136 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@
}
},
"layouts": {
"list": [
"id",
"slug",
"content",
"createdAt"
],
"edit": [
[
{
Expand All @@ -140,12 +146,6 @@
"size": 6
}
]
],
"list": [
"id",
"slug",
"content",
"data_sources"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,24 +127,24 @@
"list": [
"id",
"location",
"area",
"fishing_protection_level"
"fishing_protection_level",
"area"
],
"edit": [
[
{
"name": "location",
"size": 6
},
{
"name": "fishing_protection_level",
"size": 6
}
],
[
{
"name": "area",
"size": 4
},
{
"name": "fishing_protection_level",
"size": 6
}
]
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@
}
},
"layouts": {
"list": [
"id",
"location",
"habitat",
"year"
],
"edit": [
[
{
Expand All @@ -177,14 +183,6 @@
"size": 4
}
]
],
"list": [
"id",
"location",
"habitat",
"year",
"protectedArea",
"totalArea"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,7 @@
"id",
"code",
"name",
"type",
"totalMarineArea",
"groups"
"totalMarineArea"
],
"edit": [
[
Expand All @@ -245,36 +243,36 @@
}
],
[
{
"name": "totalMarineArea",
"size": 4
},
{
"name": "type",
"size": 6
}
],
[
{
"name": "totalMarineArea",
"size": 4
"name": "groups",
"size": 6
},
{
"name": "groups",
"name": "members",
"size": 6
}
],
[
{
"name": "members",
"name": "fishing_protection_level_stats",
"size": 6
},
{
"name": "fishing_protection_level_stats",
"name": "mpaa_protection_level_stats",
"size": 6
}
],
[
{
"name": "mpaa_protection_level_stats",
"size": 6
},
{
"name": "protection_coverage_stats",
"size": 6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@
}
},
"layouts": {
"list": [
"id",
"mpa",
"fishing_protection_level",
"mpaa_protection_level"
],
"edit": [
[
{
Expand Down Expand Up @@ -181,13 +187,6 @@
"size": 4
}
]
],
"list": [
"id",
"mpa",
"fishing_protection_level",
"mpaa_protection_level",
"location"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@
}
},
"layouts": {
"list": [
"id",
"wdpaid",
"name",
"year"
],
"edit": [
[
{
Expand Down Expand Up @@ -220,15 +226,6 @@
"size": 6
}
]
],
"list": [
"id",
"wdpaid",
"name",
"year",
"protection_status",
"mpaa_establishment_stage",
"area"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@
}
},
"layouts": {
"list": [
"id",
"location",
"mpaa_establishment_stage",
"protection_status"
],
"edit": [
[
{
Expand Down Expand Up @@ -180,14 +186,6 @@
"size": 4
}
]
],
"list": [
"id",
"location",
"mpaa_establishment_stage",
"protection_status",
"year",
"area"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@
}
},
"layouts": {
"list": [
"id",
"location",
"protection_status",
"year"
],
"edit": [
[
{
Expand Down Expand Up @@ -197,14 +203,6 @@
"size": 4
}
]
],
"list": [
"id",
"location",
"protection_status",
"year",
"cumSumProtectedArea",
"protectedAreasCount"
]
}
},
Expand Down
60 changes: 0 additions & 60 deletions cms/config/sync/user-role.public.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,12 @@
{
"action": "api::data-info.data-info.findOne"
},
{
"action": "api::data-source.data-source.find"
},
{
"action": "api::data-source.data-source.findOne"
},
{
"action": "api::fishing-protection-level-stat.fishing-protection-level-stat.find"
},
{
"action": "api::fishing-protection-level-stat.fishing-protection-level-stat.findOne"
},
{
"action": "api::fishing-protection-level.fishing-protection-level.find"
},
{
"action": "api::fishing-protection-level.fishing-protection-level.findOne"
},
{
"action": "api::habitat-stat.habitat-stat.find"
},
{
"action": "api::habitat-stat.habitat-stat.findOne"
},
{
"action": "api::habitat.habitat.find"
},
{
"action": "api::habitat.habitat.findOne"
},
{
"action": "api::layer.layer.find"
},
Expand All @@ -57,48 +33,12 @@
{
"action": "api::mpa-protection-coverage-stat.mpa-protection-coverage-stat.findOne"
},
{
"action": "api::mpa.mpa.find"
},
{
"action": "api::mpa.mpa.findOne"
},
{
"action": "api::mpaa-establishment-stage-stat.mpaa-establishment-stage-stat.find"
},
{
"action": "api::mpaa-establishment-stage-stat.mpaa-establishment-stage-stat.findOne"
},
{
"action": "api::mpaa-establishment-stage.mpaa-establishment-stage.find"
},
{
"action": "api::mpaa-establishment-stage.mpaa-establishment-stage.findOne"
},
{
"action": "api::mpaa-protection-level-stat.mpaa-protection-level-stat.find"
},
{
"action": "api::mpaa-protection-level-stat.mpaa-protection-level-stat.findOne"
},
{
"action": "api::mpaa-protection-level.mpaa-protection-level.find"
},
{
"action": "api::mpaa-protection-level.mpaa-protection-level.findOne"
},
{
"action": "api::protection-coverage-stat.protection-coverage-stat.find"
},
{
"action": "api::protection-coverage-stat.protection-coverage-stat.findOne"
},
{
"action": "api::protection-status.protection-status.find"
},
{
"action": "api::protection-status.protection-status.findOne"
},
{
"action": "plugin::users-permissions.auth.callback"
},
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const Header: React.FC = () => (
<SheetDescription>
<div className="mt-6 flow-root">
<div className="-my-6 divide-y divide-gray-500/10">
{/* <div className="space-y-2 py-6 font-mono text-sm">
<div className="space-y-2 py-6 font-mono text-sm">
{navigation.map(({ name, href, colorClassName }) => (
<ActiveLink
key={href}
Expand All @@ -69,7 +69,7 @@ const Header: React.FC = () => (
{name}
</ActiveLink>
))}
</div> */}
</div>
</div>
</div>
</SheetDescription>
Expand Down
Loading

0 comments on commit 6ee40d4

Please sign in to comment.