Skip to content

Commit 2d83444

Browse files
authored
Remove abandoned react-app (#4617)
The experimental react-app has been abandoned. Remove the code to avoid continued maintence. Signed-off-by: SuperQ <[email protected]>
1 parent bd139df commit 2d83444

36 files changed

+2
-17217
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,3 @@ updates:
1818
directory: "/"
1919
schedule:
2020
interval: "monthly"
21-
- package-ecosystem: "npm"
22-
directory: "/ui/react-app"
23-
open-pull-requests-limit: 20
24-
schedule:
25-
interval: "monthly"

Makefile

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,10 @@ STATICCHECK_IGNORE =
2727
build-all: assets apiv2 build
2828

2929
.PHONY: build
30-
build: build-react-app assets-compress common-build
30+
build: common-build
3131

3232
.PHONY: lint
33-
lint: assets-compress common-lint
34-
35-
.PHONY: build-react-app
36-
build-react-app:
37-
cd ui/react-app && npm install && npm run build
38-
39-
.PHONY: assets-compress
40-
assets-compress: build-react-app
41-
@echo '>> compressing assets'
42-
scripts/compress_assets.sh
33+
lint: common-lint
4334

4435
.PHONY: assets
4536
assets: asset/assets_vfsdata.go

cmd/alertmanager/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ import (
6060
"github.com/prometheus/alertmanager/timeinterval"
6161
"github.com/prometheus/alertmanager/types"
6262
"github.com/prometheus/alertmanager/ui"
63-
reactapp "github.com/prometheus/alertmanager/ui/react-app"
6463
)
6564

6665
var (
@@ -549,7 +548,6 @@ func run() int {
549548
webReload := make(chan chan error)
550549

551550
ui.Register(router, webReload, logger)
552-
reactapp.Register(router, logger)
553551

554552
mux := api.Register(router, *routePrefix)
555553

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ require (
3636
github.com/oklog/ulid v1.3.1
3737
github.com/prometheus/client_golang v1.23.2
3838
github.com/prometheus/common v0.67.1
39-
github.com/prometheus/common/assets v0.2.0
4039
github.com/prometheus/exporter-toolkit v0.14.1
4140
github.com/prometheus/sigv4 v0.2.1
4241
github.com/rs/cors v1.11.1

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,6 @@ github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB8
487487
github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc=
488488
github.com/prometheus/common v0.67.1 h1:OTSON1P4DNxzTg4hmKCc37o4ZAZDv0cfXLkOt0oEowI=
489489
github.com/prometheus/common v0.67.1/go.mod h1:RpmT9v35q2Y+lsieQsdOh5sXZ6ajUGC8NjZAmr8vb0Q=
490-
github.com/prometheus/common/assets v0.2.0 h1:0P5OrzoHrYBOSM1OigWL3mY8ZvV2N4zIE/5AahrSrfM=
491-
github.com/prometheus/common/assets v0.2.0/go.mod h1:D17UVUE12bHbim7HzwUvtqm6gwBEaDQ0F+hIGbFbccI=
492490
github.com/prometheus/exporter-toolkit v0.14.1 h1:uKPE4ewweVRWFainwvAcHs3uw15pjw2dk3I7b+aNo9o=
493491
github.com/prometheus/exporter-toolkit v0.14.1/go.mod h1:di7yaAJiaMkcjcz48f/u4yRPwtyuxTU5Jr4EnM2mhtQ=
494492
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=

scripts/compress_assets.sh

Lines changed: 0 additions & 37 deletions
This file was deleted.

ui/react-app/.eslintrc.js

Lines changed: 0 additions & 83 deletions
This file was deleted.

ui/react-app/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

ui/react-app/.prettierignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

ui/react-app/.prettierrc.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)