Skip to content

Commit

Permalink
fix(sidebar): missing Users page icon
Browse files Browse the repository at this point in the history
  • Loading branch information
mezzLMC committed Sep 20, 2023
1 parent ef7777c commit b797558
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI/CD Pipeline
on:
push:
branches: [ staging ]

jobs:
continuous-deployment:
runs-on: ubuntu-latest
steps:
- name: Executing remote ssh commands using ssh key
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST_DNS }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.EC2_SSH_KEY }}
script: |
cd /home/ubuntu/dist
git pull origin staging
yarn
yarn build
sudo pm2 restart all
4 changes: 2 additions & 2 deletions patches/@strapi+admin+4.12.5.patch
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ index c259beb..db90060 100644

return (
diff --git a/node_modules/@strapi/admin/admin/src/content-manager/pages/App/index.js b/node_modules/@strapi/admin/admin/src/content-manager/pages/App/index.js
index cfbc1cd..34ec16c 100644
index cfbc1cd..59ee539 100644
--- a/node_modules/@strapi/admin/admin/src/content-manager/pages/App/index.js
+++ b/node_modules/@strapi/admin/admin/src/content-manager/pages/App/index.js
@@ -122,7 +122,9 @@ const App = () => {
Expand All @@ -114,7 +114,7 @@ index cfbc1cd..34ec16c 100644
return (
- <Layout sideNav={<LeftMenu />}>
+ <Layout
+ // sideNav={<LeftMenu />}
+ //sideNav={<LeftMenu />}
+ >
<DragLayer renderItem={renderDraglayerItem} />
<ModelsContext.Provider value={{ refetchData }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"x-generation-date": "2023-09-13T12:38:57.633Z"
"x-generation-date": "2023-09-19T15:23:32.163Z"
},
"x-strapi-config": {
"path": "/documentation",
Expand All @@ -25,7 +25,7 @@
},
"servers": [
{
"url": "http://localhost:1337/api",
"url": "http://localhost:80/api",
"description": "Development server"
}
],
Expand Down
19 changes: 19 additions & 0 deletions src/plugins/cloudfront-metrics/admin/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { RiClapperboardFill } from 'react-icons/ri';
import { VscGraph } from 'react-icons/vsc'
import {BsBroadcastPin} from 'react-icons/bs'
import {CgWebsite} from 'react-icons/cg'
import {HiMiniUsers} from 'react-icons/hi2'

const name = pluginPkg.strapi.name;

Expand Down Expand Up @@ -110,6 +111,24 @@ export default {
permissions: [],
});

app.addMenuLink({
to: `/content-manager/collectionType/plugin::users-permissions.user?page=1&pageSize=10&sort=username:ASC`,
icon: HiMiniUsers,
category: "Admin",
intlLabel: {
id: `${pluginId}.plugin.name`,
defaultMessage: "Users",
},
Component: async () => {
const component = await import(/* webpackChunkName: "[request]" */ './pages/App');

return component;
},
permissions: [],
});




const plugin = {
id: pluginId,
Expand Down

0 comments on commit b797558

Please sign in to comment.