Skip to content

Commit

Permalink
Merge pull request #254 from hivemq/refactor/18350/theme-structure
Browse files Browse the repository at this point in the history
refactor(18350): Refactor the theme structure
  • Loading branch information
simon622 authored Jan 5, 2024
2 parents 605eafc + 579187e commit 76a98c8
Show file tree
Hide file tree
Showing 67 changed files with 335 additions and 1,355 deletions.
5 changes: 4 additions & 1 deletion hivemq-edge/src/frontend/cypress/support/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ import { ChakraProvider, VisuallyHidden } from '@chakra-ui/react'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'

import { AuthProvider } from '@/modules/Auth/AuthProvider.tsx'
import { themeHiveMQ } from '@/modules/Theme/themeHiveMQ.ts'
import themeHiveMQ from '@/modules/Theme/themeHiveMQ.ts'
import '@/config/i18n.config.ts'
import '@fontsource/roboto/400.css'
import '@fontsource/roboto/700.css'

// Augment the Cypress namespace to include type definitions for
// your custom command.
Expand All @@ -39,6 +41,7 @@ declare global {
namespace Cypress {
interface Chainable {
mount: typeof mount

mountWithProviders(
component: React.ReactNode,
options?: MountOptions & { routerProps?: MemoryRouterProps }
Expand Down
2 changes: 2 additions & 0 deletions hivemq-edge/src/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"lint:stylelint": "stylelint './src/**/*.css'",
"lint:all": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0 && prettier --check .",
"dev:openAPI": "openapi --input '../../../../hivemq-edge/ext/hivemq-edge-openapi-2023.8.yaml' -o ./src/api/__generated__ -c axios --name HiveMqClient --exportSchemas true",
"dev:chakra:types": "chakra-cli tokens './src/modules/Theme/themeHiveMQ.ts' --out 'node_modules/.pnpm/@chakra-ui+styled-system@2.9.1/node_modules/@chakra-ui/styled-system/dist/theming.types.d.ts'",
"cypress:open": "cypress open",
"cypress:open:component": "cypress open --component --browser chrome",
"cypress:open:e2e": "cypress open --e2e --browser chrome",
Expand Down Expand Up @@ -67,6 +68,7 @@
"zustand": "^4.4.7"
},
"devDependencies": {
"@chakra-ui/cli": "^2.4.1",
"@percy/cli": "^1.24.2",
"@percy/cypress": "^3.1.2",
"@testing-library/jest-dom": "^5.16.5",
Expand Down
60 changes: 60 additions & 0 deletions hivemq-edge/src/frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 76a98c8

Please sign in to comment.