Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(examples): redesign Strapi Multi Tenancy example #6032

Merged
merged 25 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
441748d
feat(multi-tenancy-strapi): redesign the app
alicanerdurmaz Jun 10, 2024
778d45b
feat(multi-tenancy-strapi): improve filters
alicanerdurmaz Jun 11, 2024
40f147c
feat(multi-tenancy-strapi): improve loading states
alicanerdurmaz Jun 11, 2024
78b833f
Merge branch 'master' into RK-690-strapi-multi-tenancy-app
alicanerdurmaz Jun 11, 2024
20fe401
chore: update pnpm lock
alicanerdurmaz Jun 11, 2024
8aa9ec7
Optimised images with calibre/image-actions
refine-bot Jun 11, 2024
1578dfd
fix(multi-tenancy-strapi): remove unused files
alicanerdurmaz Jun 11, 2024
3f665bb
feat(multi-tenancy-strapi): add github banner
alicanerdurmaz Jun 11, 2024
7db2764
fix(multi-tenancy-strapi): import order
alicanerdurmaz Jun 11, 2024
2150a10
fix(multi-tenancy-strapi): remove unused files
alicanerdurmaz Jun 11, 2024
72fa17f
feat(multi-tenancy-strapi): ui improvements
alicanerdurmaz Jun 11, 2024
2ba32a7
feat(multi-tenancy-strapi): use better field value
alicanerdurmaz Jun 11, 2024
b8fba1f
feat(multi-tenancy-strapi): ui improvement
alicanerdurmaz Jun 11, 2024
3ea326c
fix(multi-tenancy-strapi): remount when tenant id change
alicanerdurmaz Jun 11, 2024
9af6338
fix(multi-tenancy-strapi): undefined category id
alicanerdurmaz Jun 11, 2024
fa041e4
fix(multi-tenancy-strapi): ui improvements
alicanerdurmaz Jun 11, 2024
907716b
fix(multi-tenancy-strapi): github banner
alicanerdurmaz Jun 11, 2024
f72b59b
fix(multi-tenancy-strapi): set current page to 1 when filters changed
alicanerdurmaz Jun 11, 2024
6bf7c1b
fix(multi-tenancy-strapi): use axios interceptor for headers instead …
alicanerdurmaz Jun 11, 2024
c830b3f
fix(multi-tenancy-strapi): heading overflow on mobile screens
alicanerdurmaz Jun 11, 2024
667e13b
fix(multi-tenancy-strapi): heading overflow on mobile screens
alicanerdurmaz Jun 11, 2024
70159c0
fix(multi-tenancy-strapi): layout width
alicanerdurmaz Jun 12, 2024
c5dcb45
Merge branch 'master' into RK-690-strapi-multi-tenancy-app
alicanerdurmaz Jun 12, 2024
6d44ff5
fix(multi-tenancy-strapi): remove unused variables
alicanerdurmaz Jun 12, 2024
4aab30a
Merge branch 'master' into RK-690-strapi-multi-tenancy-app
BatuhanW Jun 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 25 additions & 18 deletions examples/multi-tenancy-strapi/index.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web site created using refine" />
<!--
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web site created using refine" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet"
/>
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<title>
refine - A React-based framework for building data-intensive
applications in no time.
</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
<title>
refine - A React-based framework for building data-intensive applications
in no time.
</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>

<!--
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

Expand All @@ -29,5 +35,6 @@

To begin the development, run `npm run dev` or `yarn dev`.
To create a production bundle, use `npm run build` or `yarn build`.
--></body>
-->
</body>
</html>
5 changes: 4 additions & 1 deletion examples/multi-tenancy-strapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
"@refinedev/react-router-v6": "^4.5.11",
"@refinedev/strapi-v4": "^6.0.8",
"antd": "^5.17.0",
"antd-style": "^3.6.1",
"axios": "^1.6.2",
"lucide-react": "^0.336.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "^6.8.1"
Expand All @@ -40,6 +42,7 @@
"@types/react-dom": "^18.0.0",
"@vitejs/plugin-react": "^4.2.1",
"typescript": "^5.4.2",
"vite": "^5.1.6"
"vite": "^5.1.6",
"vite-tsconfig-paths": "^4.2.1"
}
}
55 changes: 55 additions & 0 deletions examples/multi-tenancy-strapi/src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
.ant-pagination-item {
border-radius: 100% !important;
font-weight: 400 !important;
}

.ant-pagination-item-active {
border-radius: 100% !important;
color: var(--ant-color-primary-text-active) !important;
background: var(--ant-color-primary-bg) !important;
border: 1px solid var(--ant-color-primary-bg-hover);
}

.ant-table-content {
border: 1px solid var(--ant-color-border);
border-radius: 24px;
}

.ant-pagination-total-text {
margin-right: auto;
margin-inline-end: auto !important;
}

.ant-table-cell {
white-space: nowrap;
}

.ant-btn {
border-radius: 80px;
}

.ant-form-item-horizontal {
.ant-form-item-row {
align-items: center;
}
}

.ant-table-filter-dropdown > div > div {
width: 100%;
}

.ant-select {
width: 100%;
}

.ant-select-selector {
width: 100%;
}

.ant-page-header-heading {
height: 56px;

@media screen and (max-width: 768px) {
height: max-content;
}
}
Loading
Loading