From f54554cf1a36d54aaf5dcf64f9c43b0a8c3f1d77 Mon Sep 17 00:00:00 2001 From: PedroGSantos Date: Sun, 28 Apr 2024 22:33:38 -0300 Subject: [PATCH 01/27] Fix: removing process env Process.env is a variable in Node.js that invokes all enviroment variable from the host, including sensitive variables, exposing them in build files --- vite.config.mjs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/vite.config.mjs b/vite.config.mjs index 66ffff2cf..5e6b42c81 100644 --- a/vite.config.mjs +++ b/vite.config.mjs @@ -4,10 +4,6 @@ import path from 'node:path' import autoprefixer from 'autoprefixer' export default defineConfig(({ mode }) => { - // Load .env - const env = loadEnv(mode, process.cwd(), '') - process.env = { ...process.env, ...env } - return { base: './', build: { @@ -20,10 +16,6 @@ export default defineConfig(({ mode }) => { ], }, }, - define: { - // vitejs does not support process.env so we have to redefine it - 'process.env': process.env, - }, esbuild: { loader: 'jsx', include: /src\/.*\.jsx?$/, From 9406f8d524e277340ab3cf23c31ff267270f5f14 Mon Sep 17 00:00:00 2001 From: mrholek Date: Fri, 7 Jun 2024 10:32:35 +0200 Subject: [PATCH 02/27] docs: update links to PRO versions --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 101aa0a32..958c98430 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ CoreUI is meant to be the UX game changer. Pure & transparent code is devoid of * πŸ’ͺ [CoreUI PRO Angular Admin Template](https://coreui.io/product/angular-dashboard-template/) * πŸ’ͺ [CoreUI PRO Bootstrap Admin Template](https://coreui.io/product/bootstrap-dashboard-template/) +* πŸ’ͺ [CoreUI PRO Next.js Admin Template](https://coreui.io/product/next-js-dashboard-template/) * πŸ’ͺ [CoreUI PRO React Admin Template](https://coreui.io/product/react-dashboard-template/) * πŸ’ͺ [CoreUI PRO Vue Admin Template](https://coreui.io/product/vue-dashboard-template/) @@ -57,9 +58,9 @@ CoreUI is meant to be the UX game changer. Pure & transparent code is devoid of | --- | --- | | [![CoreUI PRO React Admin Template](https://coreui.io/images/templates/coreui_pro_default_light_dark.webp)](https://coreui.io/product/react-dashboard-template/?theme=default) | [![CoreUI PRO React Admin Template](https://coreui.io/images/templates/coreui_pro_light_light_dark.webp)](https://coreui.io/product/react-dashboard-template/?theme=light)| -| Default Theme v3 | Light Theme v3 | +| Modern Theme | Bright Theme | | --- | --- | -| [![CoreUI PRO React Admin Template](https://coreui.io/images/templates/coreui_pro_default_v3_light_dark.webp)](https://coreui.io/product/react-dashboard-template/?theme=default-v3) | [![CoreUI PRO React Admin Template](https://coreui.io/images/templates/coreui_pro_light_v3_light_dark.webp)](https://coreui.io/product/react-dashboard-template/?theme=light)| +| [![CoreUI PRO React Admin Template](https://coreui.io/images/templates/coreui_pro_default_v3_light_dark.webp)](https://coreui.io/product/react-dashboard-template/?theme=modern) | [![CoreUI PRO React Admin Template](https://coreui.io/images/templates/coreui_pro_light_v3_light_dark.webp)](https://coreui.io/product/react-dashboard-template/?theme=bright)| ## Quick Start From cf5398357ddde507323b7d93ace81f53aeb48627 Mon Sep 17 00:00:00 2001 From: mrholek Date: Wed, 12 Jun 2024 11:43:04 +0200 Subject: [PATCH 03/27] chore: clean-up --- vite.config.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vite.config.mjs b/vite.config.mjs index 5e6b42c81..f0b45c375 100644 --- a/vite.config.mjs +++ b/vite.config.mjs @@ -1,9 +1,9 @@ -import { defineConfig, loadEnv } from 'vite' +import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import path from 'node:path' import autoprefixer from 'autoprefixer' -export default defineConfig(({ mode }) => { +export default defineConfig(() => { return { base: './', build: { From ceedef22778da108ec685d36ae045b2aa98a4d9c Mon Sep 17 00:00:00 2001 From: mrholek Date: Wed, 12 Jun 2024 11:47:28 +0200 Subject: [PATCH 04/27] chore: update dependencies and devDependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @coreui/coreui ^5.0.0 β†’ ^5.0.2 @coreui/react ^5.0.0 β†’ ^5.1.0 @vitejs/plugin-react ^4.2.1 β†’ ^4.3.1 chart.js ^4.4.2 β†’ ^4.4.3 core-js ^3.36.1 β†’ ^3.37.1 eslint-plugin-react ^7.34.1 β†’ ^7.34.2 eslint-plugin-react-hooks ^4.6.0 β†’ ^4.6.2 prettier 3.2.5 β†’ 3.3.2 react ^18.2.0 β†’ ^18.3.1 react-dom ^18.2.0 β†’ ^18.3.1 react-redux ^9.1.0 β†’ ^9.1.2 react-router-dom ^6.22.3 β†’ ^6.23.1 sass ^1.72.0 β†’ ^1.77.5 simplebar-react ^3.2.4 β†’ ^3.2.5 vite ^5.2.6 β†’ ^5.2.13 --- package.json | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 31b7c3fff..4def3a849 100644 --- a/package.json +++ b/package.json @@ -20,35 +20,35 @@ }, "dependencies": { "@coreui/chartjs": "^4.0.0", - "@coreui/coreui": "^5.0.0", + "@coreui/coreui": "^5.0.2", "@coreui/icons": "^3.0.1", "@coreui/icons-react": "^2.2.1", - "@coreui/react": "^5.0.0", + "@coreui/react": "^5.1.0", "@coreui/react-chartjs": "^3.0.0", "@coreui/utils": "^2.0.2", "@popperjs/core": "^2.11.8", - "chart.js": "^4.4.2", + "chart.js": "^4.4.3", "classnames": "^2.5.1", - "core-js": "^3.36.1", + "core-js": "^3.37.1", "prop-types": "^15.8.1", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "react-redux": "^9.1.0", - "react-router-dom": "^6.22.3", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "react-redux": "^9.1.2", + "react-router-dom": "^6.23.1", "redux": "5.0.1", - "simplebar-react": "^3.2.4" + "simplebar-react": "^3.2.5" }, "devDependencies": { - "@vitejs/plugin-react": "^4.2.1", + "@vitejs/plugin-react": "^4.3.1", "autoprefixer": "^10.4.19", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-react": "^7.34.1", - "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-react": "^7.34.2", + "eslint-plugin-react-hooks": "^4.6.2", "postcss": "^8.4.38", - "prettier": "3.2.5", - "sass": "^1.72.0", - "vite": "^5.2.6" + "prettier": "3.3.2", + "sass": "^1.77.5", + "vite": "^5.2.13" } } From 33ed3770364980c966bc3d3412d6decb89af713c Mon Sep 17 00:00:00 2001 From: mrholek Date: Wed, 12 Jun 2024 13:12:42 +0200 Subject: [PATCH 05/27] feat: add new tabs component --- src/_nav.js | 5 + src/routes.js | 2 + src/views/base/tabs/Tabs.js | 233 ++++++++++++++++++++++++++++++++++++ 3 files changed, 240 insertions(+) create mode 100644 src/views/base/tabs/Tabs.js diff --git a/src/_nav.js b/src/_nav.js index 8f3d730db..db78c49bd 100644 --- a/src/_nav.js +++ b/src/_nav.js @@ -117,6 +117,11 @@ const _nav = [ name: 'Tables', to: '/base/tables', }, + { + component: CNavItem, + name: 'Tabs', + to: '/base/tabs', + }, { component: CNavItem, name: 'Tooltips', diff --git a/src/routes.js b/src/routes.js index d168b1ca4..d2e9d6479 100644 --- a/src/routes.js +++ b/src/routes.js @@ -17,6 +17,7 @@ const Placeholders = React.lazy(() => import('./views/base/placeholders/Placehol const Popovers = React.lazy(() => import('./views/base/popovers/Popovers')) const Progress = React.lazy(() => import('./views/base/progress/Progress')) const Spinners = React.lazy(() => import('./views/base/spinners/Spinners')) +const Tabs = React.lazy(() => import('./views/base/tabs/Tabs')) const Tables = React.lazy(() => import('./views/base/tables/Tables')) const Tooltips = React.lazy(() => import('./views/base/tooltips/Tooltips')) @@ -69,6 +70,7 @@ const routes = [ { path: '/base/popovers', name: 'Popovers', element: Popovers }, { path: '/base/progress', name: 'Progress', element: Progress }, { path: '/base/spinners', name: 'Spinners', element: Spinners }, + { path: '/base/tabs', name: 'Tabs', element: Tabs }, { path: '/base/tables', name: 'Tables', element: Tables }, { path: '/base/tooltips', name: 'Tooltips', element: Tooltips }, { path: '/buttons', name: 'Buttons', element: Buttons, exact: true }, diff --git a/src/views/base/tabs/Tabs.js b/src/views/base/tabs/Tabs.js new file mode 100644 index 000000000..ccdf25343 --- /dev/null +++ b/src/views/base/tabs/Tabs.js @@ -0,0 +1,233 @@ +import React from 'react' +import { + CRow, + CCol, + CCard, + CCardBody, + CCardHeader, + CTab, + CTabContent, + CTabList, + CTabPanel, + CTabs, +} from '@coreui/react' +import { DocsExample } from 'src/components' + +const Navs = () => { + return ( + + + + + React Tabs + + +

+ The basic React tabs example uses the variant="tabs" props to + generate a tabbed interface. +

+ + + + Home + Profile + Contact + + Disabled + + + + + Home tab content + + + Profile tab content + + + Contact tab content + + + Disabled tab content + + + + +
+
+
+ + + + React Tabs Unstyled + + +

+ If you don’t provide the variant prop, the component will default to a + basic style. +

+ + + + Home + Profile + Contact + + Disabled + + + + + Home tab content + + + Profile tab content + + + Contact tab content + + + Disabled tab content + + + + +
+
+
+ + + + React Tabs Pills + + +

+ Take that same code, but use variant="pills" instead: +

+ + + + + Home + + + Profile + + + Contact + + + Disabled + + + + + Home tab content + + + Profile tab content + + + Contact tab content + + + Disabled tab content + + + + +
+
+
+ + + + React Tabs Underline + + +

+ Take that same code, but use variant="underline" instead: +

+ + + + + Home + + + Profile + + + Contact + + + Disabled + + + + + Home tab content + + + Profile tab content + + + Contact tab content + + + Disabled tab content + + + + +
+
+
+ + + + React Tabs Underline border + + +

+ Take that same code, but use variant="underline-border" instead: +

+ + + + + Home + + + Profile + + + Contact + + + Disabled + + + + + Home tab content + + + Profile tab content + + + Contact tab content + + + Disabled tab content + + + + +
+
+
+
+ ) +} + +export default Navs From 09f012bc9b07882ee76c5965601e44da449717a0 Mon Sep 17 00:00:00 2001 From: mrholek Date: Wed, 12 Jun 2024 13:13:34 +0200 Subject: [PATCH 06/27] release: v5.1.0 --- index.html | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index e958fb959..02f04b387 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ diff --git a/src/components/AppFooter.js b/src/components/AppFooter.js index fd126f460..217c5a04c 100644 --- a/src/components/AppFooter.js +++ b/src/components/AppFooter.js @@ -8,7 +8,7 @@ const AppFooter = () => { CoreUI - © 2024 creativeLabs. + © 2025 creativeLabs.
Powered by From 74b0aaf708de9b9a417c9b9f0236a8febdac2da3 Mon Sep 17 00:00:00 2001 From: mrholek Date: Tue, 4 Feb 2025 14:37:27 +0100 Subject: [PATCH 23/27] refactor: migrate to CSS logical properties and values --- src/scss/_theme.scss | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/scss/_theme.scss b/src/scss/_theme.scss index 49e1c79e6..b014421f2 100644 --- a/src/scss/_theme.scss +++ b/src/scss/_theme.scss @@ -4,8 +4,7 @@ body { .wrapper { width: 100%; - @include ltr-rtl("padding-left", var(--cui-sidebar-occupy-start, 0)); - @include ltr-rtl("padding-right", var(--cui-sidebar-occupy-end, 0)); + padding-inline: var(--cui-sidebar-occupy-start, 0) var(--cui-sidebar-occupy-end, 0); will-change: auto; @include transition(padding .15s); } @@ -33,13 +32,13 @@ body { } .sidebar-toggler { - @include ltr-rtl("margin-left", auto); + margin-inline-start: auto; } .sidebar-narrow, .sidebar-narrow-unfoldable:not(:hover) { .sidebar-toggler { - @include ltr-rtl("margin-right", auto); + margin-inline-end: auto } } From 69269e8e347d023d20a1b1dc8a27df9bdc5acfff Mon Sep 17 00:00:00 2001 From: mrholek Date: Fri, 7 Feb 2025 13:22:45 +0100 Subject: [PATCH 24/27] chore: update dependencies and devDependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @coreui/react ^5.4.1 β†’ ^5.5.0 sass ^1.83.4 β†’ ^1.84.0 vite ^6.0.11 β†’ ^6.1.0 --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d2476e36e..fd106e849 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "@coreui/coreui": "^5.2.0", "@coreui/icons": "^3.0.1", "@coreui/icons-react": "^2.3.0", - "@coreui/react": "^5.4.1", + "@coreui/react": "^5.5.0", "@coreui/react-chartjs": "^3.0.0", "@coreui/utils": "^2.0.2", "@popperjs/core": "^2.11.8", @@ -49,7 +49,7 @@ "globals": "^15.14.0", "postcss": "^8.5.1", "prettier": "3.4.2", - "sass": "^1.83.4", - "vite": "^6.0.11" + "sass": "^1.84.0", + "vite": "^6.1.0" } } From b78e444d202979e41b4f26388b548c9d642aa692 Mon Sep 17 00:00:00 2001 From: mrholek Date: Fri, 7 Feb 2025 13:27:12 +0100 Subject: [PATCH 25/27] release: v5.3.0 --- index.html | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index e2b715c93..84b9a228b 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@