Skip to content

Commit

Permalink
better settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandawg93 committed Jan 5, 2025
1 parent 9c8e070 commit d434e38
Show file tree
Hide file tree
Showing 5 changed files with 606 additions and 65 deletions.
6 changes: 3 additions & 3 deletions __tests__/unit/client/components/settings-wrapper.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe('SettingsWrapper', () => {
renderComponent()

await waitFor(() => {
expect(screen.getByText('Manage Servers')).toBeInTheDocument()
expect(screen.getByText('settings.manageServers')).toBeInTheDocument()
})
})

Expand All @@ -78,7 +78,7 @@ describe('SettingsWrapper', () => {
renderComponent()

await waitFor(() => {
expect(screen.getByText('Manage Servers')).toBeInTheDocument()
expect(screen.getByText('settings.manageServers')).toBeInTheDocument()
})

fireEvent.click(screen.getByTitle('settings.addServer'))
Expand All @@ -95,7 +95,7 @@ describe('SettingsWrapper', () => {
renderComponent()

await waitFor(() => {
expect(screen.getByText('Manage Servers')).toBeInTheDocument()
expect(screen.getByText('settings.manageServers')).toBeInTheDocument()
})

const serverInput = screen.getByDisplayValue('localhost')
Expand Down
8 changes: 6 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
/* eslint-disable @typescript-eslint/no-require-imports */
/** @type {import('next').NextConfig} */

// eslint-disable-next-line @typescript-eslint/no-require-imports
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
})

const removeImports = require('next-remove-imports')()

const nextConfig = {
output: 'standalone',
basePath: process.env.BASE_PATH,
images: {
unoptimized: true,
},
experimental: { esmExternals: true },
}

module.exports = process.env.ANALYZE === 'true' ? withBundleAnalyzer(nextConfig) : nextConfig
module.exports =
process.env.ANALYZE === 'true' ? withBundleAnalyzer(removeImports(nextConfig)) : removeImports(nextConfig)
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"js-yaml": "^4.1.0",
"ldrs": "^1.0.2",
"next": "^15.1.3",
"next-remove-imports": "^1.0.12",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-i18next": "^15.4.0",
Expand Down
Loading

0 comments on commit d434e38

Please sign in to comment.