Skip to content

Commit

Permalink
feat(ui): upgrade to React 18 (#1678)
Browse files Browse the repository at this point in the history

---------
Co-authored-by: AlexisSouquiere <[email protected]>
Co-authored-by: Jonas Voelcker <[email protected]>
Co-authored-by: Jonas Voelcker <[email protected]>
  • Loading branch information
AlexisSouquiere committed Apr 4, 2024
1 parent 81933ca commit d58967a
Show file tree
Hide file tree
Showing 193 changed files with 8,348 additions and 39,025 deletions.
9 changes: 0 additions & 9 deletions application-dev.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
micronaut:
server:
cors:
enabled: true
configurations:
all:
allowedOrigins:
- http://localhost:3000

akhq:
connections:
local:
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ configurations.all {
force("org.apache.kafka:kafka_" + kafkaScalaVersion + ":" + kafkaVersion)

force("com.google.protobuf:protobuf-java:3.25.2")
force("com.fasterxml.jackson.core:jackson-databind:2.16.0")
}
}

Expand Down
1 change: 0 additions & 1 deletion client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ tasks.named('assembleFrontend') {
shouldRunAfter installFrontend

inputs.dir('src')
inputs.dir('public')
outputs.dir('build')
}

Expand Down
File renamed without changes.
22 changes: 12 additions & 10 deletions client/public/index.html → client/index.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<base href="%PUBLIC_URL%/">
<link rel="icon" href="%PUBLIC_URL%/favicon.ico">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#33b5e5">
<meta name="html-head" content="replace">
<meta charset="utf-8" />
<meta content="dark" name="color-scheme" />
<base href="/" />
<link rel="icon" href="favicon.ico" />
<link rel="manifest" href="manifest.json" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#33b5e5" />
<meta name="html-head" content="replace" />

<!--
The AKHQ_PREFIX_PATH placeholder magic value is replaced during serving by server
and set to ${micronaut.server.context-path:} external URL path. It gets prepended to all links back
to Prometheus, both for asset loading as well as API accesses.
-->
<script>
const AKHQ_PREFIX_UI = '%PUBLIC_URL%';
const AKHQ_PREFIX_UI = '%BASE_URL%';

const AKHQ_PREFIX_PATH = (function () {
const split = AKHQ_PREFIX_UI.split('/');
Expand All @@ -32,6 +33,7 @@
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<div id="root" data-bs-theme="dark"></div>
<script type="module" src="src/index.jsx"></script>
</body>
</html>
File renamed without changes.
Loading

0 comments on commit d58967a

Please sign in to comment.