Skip to content

Commit b9a4ffe

Browse files
committed
feat: Applicants page use built in strapi styling
1 parent 752f882 commit b9a4ffe

18 files changed

Lines changed: 2905 additions & 543 deletions

File tree

package-lock.json

Lines changed: 2116 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,32 @@
1515
"upgrade:dry": "npx @strapi/upgrade latest --dry"
1616
},
1717
"dependencies": {
18+
"@radix-ui/react-avatar": "^1.1.11",
19+
"@radix-ui/react-label": "^2.1.8",
20+
"@radix-ui/react-select": "^2.2.6",
21+
"@radix-ui/react-separator": "^1.1.8",
22+
"@radix-ui/react-slot": "^1.2.4",
1823
"@strapi/design-system": "^2.1.2",
1924
"@strapi/icons": "^2.1.2",
2025
"@strapi/plugin-cloud": "5.33.2",
2126
"@strapi/plugin-documentation": "^5.33.2",
2227
"@strapi/plugin-users-permissions": "5.33.2",
2328
"@strapi/strapi": "5.33.2",
29+
"@tailwindcss/postcss": "^4.1.18",
30+
"autoprefixer": "^10.4.23",
31+
"chart.js": "^4.5.1",
32+
"class-variance-authority": "^0.7.1",
33+
"clsx": "^2.1.1",
34+
"lucide-react": "^0.562.0",
2435
"mysql2": "3.9.8",
36+
"postcss": "^8.5.6",
2537
"react": "^18.3.1",
2638
"react-chartjs-2": "^5.3.1",
2739
"react-dom": "^18.3.1",
2840
"react-router-dom": "^6.0.0",
29-
"styled-components": "^6.3.6"
41+
"styled-components": "^6.3.6",
42+
"tailwind-merge": "^3.4.0",
43+
"tailwindcss": "^4.1.18"
3044
},
3145
"devDependencies": {
3246
"@types/node": "^20",

postcss.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
"@tailwindcss/postcss": {},
4+
"autoprefixer": {},
5+
},
6+
}

src/admin/app.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import type { StrapiApp } from '@strapi/strapi/admin';
22
import favicon from "./extensions/favicon.png";
3-
import { ChartPie, User } from '@strapi/icons'
3+
import { ChartPie, User, Pencil } from '@strapi/icons'
44
import ViewerWidget from './widgets/ViewerWidget';
55
import ApplicantManager from './pages/ApplicantManager';
66
import ProfileWidget from './widgets/ProfileWidget';
7-
// import ApplicantManager from './pages/ApplicantManager';
7+
import ProfileEditPage from './pages/ProfileEditPage';
88

99
export default {
1010
config: {
@@ -54,5 +54,18 @@ export default {
5454
},
5555
permissions: [],
5656
});
57+
58+
app.addMenuLink({
59+
to: '/plugins/profile-edit',
60+
icon: Pencil,
61+
intlLabel: {
62+
id: 'profile-edit.link',
63+
defaultMessage: 'Edit Profile',
64+
},
65+
Component: async () => {
66+
return ProfileEditPage
67+
},
68+
permissions: [],
69+
});
5770
},
5871
};

0 commit comments

Comments
 (0)