Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hermes console vue #1697

Merged
merged 39 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
9ffa1df
Setup Hermes console in Vue. Subscription view (#1657) (#5)
kszapsza Mar 8, 2023
2f9468c
Admin tools (#7)
szczygiel-m Apr 5, 2023
2b96917
Merge branch 'master' into hermes_console_vue
szczygiel-m Jul 18, 2023
8148d84
Topic view in new hermes console (#8) (#1698)
Ejden Jul 19, 2023
4b3fb45
Merge branch 'master' into hermes_console_vue
Ejden Aug 10, 2023
6e514ef
Added fetching application configuration in new hermes console (#1700)
Ejden Aug 10, 2023
ec27914
Feature/groups topics (#1702)
szczygiel-m Aug 10, 2023
9ff4ae7
Hermes console vue stats (#1703)
moscicky Aug 17, 2023
bbb89bf
Feature/auth (#1707)
szczygiel-m Aug 18, 2023
3f8eeff
Hermes console vue search (#1704)
moscicky Aug 22, 2023
2a0e636
Feature/roles (#1709)
szczygiel-m Aug 24, 2023
febcfb5
extract notification store (#1714)
moscicky Aug 24, 2023
42ff22d
fix roles (#1715)
moscicky Aug 24, 2023
5c6c9ae
Hermes console vue consistency (#1710)
moscicky Aug 25, 2023
0d705a1
Hermes console vue move offsets (#1708)
moscicky Aug 28, 2023
6d945b5
add helpers for notification store (#1716)
moscicky Aug 28, 2023
efc6bd2
Feature/actions (#1712)
szczygiel-m Aug 29, 2023
d336d83
Hermes console vue constraints form (#1713)
moscicky Aug 29, 2023
780e1f2
add actions for group form (#1717)
moscicky Aug 30, 2023
278516b
Feature/favorite entities (#1718)
szczygiel-m Sep 4, 2023
0847758
Offline retransmission (#1725)
moscicky Sep 7, 2023
2358f11
add actions for managing subscription messages (#1726)
moscicky Sep 7, 2023
ba94bdc
New subscription form (#1719)
szczygiel-m Sep 15, 2023
bd82501
Merge branch 'master' into hermes_console_vue
szczygiel-m Sep 19, 2023
d7575b8
fix retransmission result not displaying (#1731)
moscicky Sep 22, 2023
ac4323e
Hermes console vue bugfixes (#1732)
moscicky Sep 22, 2023
98e41b6
add filters debug (#1729)
moscicky Sep 26, 2023
70f03de
Topic form (#1728)
szczygiel-m Sep 28, 2023
6ed7198
Merge branch 'master' into hermes_console_vue
szczygiel-m Sep 28, 2023
e648059
Fixed issue with subscription filters (#1741)
szczygiel-m Sep 28, 2023
8471613
Fixed some minor issues with new hermes console (#1744)
szczygiel-m Oct 3, 2023
41a3269
Hermes console 2 | JSON auto formatting with code highlighting for AV…
straburzynski Oct 4, 2023
da96772
Hermes console vue subscription filters debug (#1745)
straburzynski Oct 6, 2023
38fab5a
filtering subscription list in topic view (#1746)
carlosfrodrigues Oct 9, 2023
221f7a3
Added url to metrics dashboard (#1750)
szczygiel-m Oct 13, 2023
4cb1922
Hermes console vue issue1751 (#1753)
arrekb Oct 18, 2023
f1125c8
Avro pretty format view component. (#1757)
straburzynski Oct 19, 2023
880ea3c
support for editing boolean endpoint address resolver metadata proper…
moscicky Oct 25, 2023
ba2e4b4
Merge branch 'master' into hermes_console_vue
szczygiel-m Oct 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
23 changes: 23 additions & 0 deletions .github/workflows/ci-console.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Console CI

# Configured for all pushes and PRs for the sake of new console development on dev branches.
# Later it could be changed to pushes and PRs only to master branch to match main CI config.
on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./hermes-console-vue
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Run linter
run: yarn && yarn lint
- name: Run frontend tests
run: yarn test:unit
46 changes: 46 additions & 0 deletions hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package pl.allegro.tech.hermes.api;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Objects;

public class Stats {
private final TopicStats topicStats;
private final SubscriptionStats subscriptionStats;

@JsonCreator
public Stats(@JsonProperty("topicStats") TopicStats topicStats, @JsonProperty("subscriptionStats") SubscriptionStats subscriptionStats) {

Check warning on line 13 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java#L13 <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck>

Line is longer than 140 characters (found 141).
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java:13:0: warning: Line is longer than 140 characters (found 141). (com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck)
this.topicStats = topicStats;
this.subscriptionStats = subscriptionStats;
}

public TopicStats getTopicStats() {
return topicStats;
}

public SubscriptionStats getSubscriptionStats() {
return subscriptionStats;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;

Check warning on line 28 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java#L28 <com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck>

'if' construct must use '{}'s.
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java:28:9: warning: 'if' construct must use '{}'s. (com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck)
if (o == null || getClass() != o.getClass()) return false;

Check warning on line 29 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java#L29 <com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck>

'if' construct must use '{}'s.
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java:29:9: warning: 'if' construct must use '{}'s. (com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck)
Stats stats = (Stats) o;
return Objects.equals(topicStats, stats.topicStats) && Objects.equals(subscriptionStats, stats.subscriptionStats);
}

@Override
public int hashCode() {
return Objects.hash(topicStats, subscriptionStats);
}

@Override
public String toString() {
return "Stats{" +

Check warning on line 41 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java#L41 <com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck>

'+' should be on a new line.
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java:41:25: warning: '+' should be on a new line. (com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck)
"topicStats=" + topicStats +

Check warning on line 42 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java#L42 <com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck>

'+' should be on a new line.
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java:42:44: warning: '+' should be on a new line. (com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck)
", subscriptionStats=" + subscriptionStats +

Check warning on line 43 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java#L43 <com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck>

'+' should be on a new line.
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/Stats.java:43:60: warning: '+' should be on a new line. (com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck)
'}';
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
package pl.allegro.tech.hermes.api;


import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Objects;

public class SubscriptionStats {
private final long subscriptionCount;
private final long trackingEnabledSubscriptionCount;
private final long avroSubscriptionCount;

@JsonCreator
public SubscriptionStats(
@JsonProperty("subscriptionCount") long subscriptionCount,
@JsonProperty("trackingEnabledSubscriptionCount") long trackingEnabledSubscriptionCount,
@JsonProperty("avroSubscriptionCount") long avroSubscriptionCount) {
this.subscriptionCount = subscriptionCount;
this.trackingEnabledSubscriptionCount = trackingEnabledSubscriptionCount;
this.avroSubscriptionCount = avroSubscriptionCount;
}

public long getSubscriptionCount() {
return subscriptionCount;
}

public long getTrackingEnabledSubscriptionCount() {
return trackingEnabledSubscriptionCount;
}

public long getAvroSubscriptionCount() {
return avroSubscriptionCount;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;

Check warning on line 38 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java#L38 <com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck>

'if' construct must use '{}'s.
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java:38:9: warning: 'if' construct must use '{}'s. (com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck)
if (o == null || getClass() != o.getClass()) return false;

Check warning on line 39 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java#L39 <com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck>

'if' construct must use '{}'s.
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java:39:9: warning: 'if' construct must use '{}'s. (com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck)
SubscriptionStats that = (SubscriptionStats) o;
return subscriptionCount == that.subscriptionCount && trackingEnabledSubscriptionCount == that.trackingEnabledSubscriptionCount && avroSubscriptionCount == that.avroSubscriptionCount;

Check warning on line 41 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java#L41 <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck>

Line is longer than 140 characters (found 191).
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java:41:0: warning: Line is longer than 140 characters (found 191). (com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck)
}

@Override
public int hashCode() {
return Objects.hash(subscriptionCount, trackingEnabledSubscriptionCount, avroSubscriptionCount);
}

@Override
public String toString() {
return "SubscriptionStats{" +

Check warning on line 51 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java#L51 <com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck>

'+' should be on a new line.
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java:51:37: warning: '+' should be on a new line. (com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck)
"subscriptionCount=" + subscriptionCount +

Check warning on line 52 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java#L52 <com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck>

'+' should be on a new line.
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java:52:58: warning: '+' should be on a new line. (com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck)
", trackingEnabledSubscriptionCount=" + trackingEnabledSubscriptionCount +

Check warning on line 53 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java#L53 <com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck>

'+' should be on a new line.
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java:53:90: warning: '+' should be on a new line. (com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck)
", avroSubscriptionCount=" + avroSubscriptionCount +

Check warning on line 54 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java#L54 <com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck>

'+' should be on a new line.
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/SubscriptionStats.java:54:68: warning: '+' should be on a new line. (com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck)
'}';
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
package pl.allegro.tech.hermes.api;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Objects;

public class TopicStats {
private final long topicCount;
private final long ackAllTopicCount;
private final long trackingEnabledTopicCount;
private final long avroTopicCount;

@JsonCreator
public TopicStats(@JsonProperty("topicCount") long topicCount,
@JsonProperty("ackAllTopicCount") long ackAllTopicCount,
@JsonProperty("trackingEnabledTopicCount") long trackingEnabledTopicCount,
@JsonProperty("avroTopicCount") long avroTopicCount) {
this.topicCount = topicCount;
this.ackAllTopicCount = ackAllTopicCount;
this.trackingEnabledTopicCount = trackingEnabledTopicCount;
this.avroTopicCount = avroTopicCount;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;

Check warning on line 27 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java#L27 <com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck>

'if' construct must use '{}'s.
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java:27:9: warning: 'if' construct must use '{}'s. (com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck)
if (o == null || getClass() != o.getClass()) return false;

Check warning on line 28 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java#L28 <com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck>

'if' construct must use '{}'s.
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java:28:9: warning: 'if' construct must use '{}'s. (com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck)
TopicStats that = (TopicStats) o;
return topicCount == that.topicCount && ackAllTopicCount == that.ackAllTopicCount && trackingEnabledTopicCount == that.trackingEnabledTopicCount && avroTopicCount == that.avroTopicCount;

Check warning on line 30 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java#L30 <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck>

Line is longer than 140 characters (found 194).
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java:30:0: warning: Line is longer than 140 characters (found 194). (com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck)
}

@Override
public int hashCode() {
return Objects.hash(topicCount, ackAllTopicCount, trackingEnabledTopicCount, avroTopicCount);
}

@Override
public String toString() {
return "TopicStats{" +

Check warning on line 40 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java#L40 <com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck>

'+' should be on a new line.
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java:40:30: warning: '+' should be on a new line. (com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck)
"topicCount=" + topicCount +

Check warning on line 41 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java#L41 <com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck>

'+' should be on a new line.
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java:41:44: warning: '+' should be on a new line. (com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck)
", ackAllTopicCount=" + ackAllTopicCount +

Check warning on line 42 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java#L42 <com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck>

'+' should be on a new line.
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java:42:58: warning: '+' should be on a new line. (com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck)
", trackingEnabledTopicCount=" + trackingEnabledTopicCount +

Check warning on line 43 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java#L43 <com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck>

'+' should be on a new line.
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java:43:76: warning: '+' should be on a new line. (com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck)
", avroTopicCount=" + avroTopicCount +

Check warning on line 44 in hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java

View workflow job for this annotation

GitHub Actions / checkstyle-hermes-api

[checkstyle-hermes-api] hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java#L44 <com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck>

'+' should be on a new line.
Raw output
/home/runner/work/hermes/hermes/hermes-api/src/main/java/pl/allegro/tech/hermes/api/TopicStats.java:44:54: warning: '+' should be on a new line. (com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck)
'}';
}

public long getTopicCount() {
return topicCount;
}

public long getAckAllTopicCount() {
return ackAllTopicCount;
}

public long getTrackingEnabledTopicCount() {
return trackingEnabledTopicCount;
}

public long getAvroTopicCount() {
return avroTopicCount;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package pl.allegro.tech.hermes.api.endpoints;

import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import pl.allegro.tech.hermes.api.Stats;

import static jakarta.ws.rs.core.MediaType.APPLICATION_JSON;

@Path("stats")
public interface StatsEndpoint {
@GET
@Produces(APPLICATION_JSON)
Stats getStats();
}
52 changes: 52 additions & 0 deletions hermes-console-vue/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution');

module.exports = {
env: {
browser: true,
node: true,
},
root: true,
extends: [
'@vue/eslint-config-prettier',
'@vue/eslint-config-typescript',
'eslint:recommended',
'plugin:prettier/recommended',
'plugin:vue/vue3-essential',
],
globals: {
afterAll: true,
afterEach: true,
assert: true,
assertType: true,
beforeAll: true,
beforeEach: true,
describe: true,
expect: true,
expectTypeOf: true,
it: true,
suite: true,
test: true,
vi: true,
vitest: true,
},
parserOptions: {
ecmaVersion: 'latest',
ecmaFeatures: {
jsx: false,
},
},
plugins: ['prettier', 'vue', 'sort-imports-es6-autofix'],
rules: {
'sort-imports-es6-autofix/sort-imports-es6': [
'warn',
{
ignoreCase: true,
ignoreMemberSort: false,
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
},
],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
},
};
28 changes: 28 additions & 0 deletions hermes-console-vue/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
7 changes: 7 additions & 0 deletions hermes-console-vue/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false,
"vueIndentScriptAndStyle": true
}
3 changes: 3 additions & 0 deletions hermes-console-vue/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
}
50 changes: 50 additions & 0 deletions hermes-console-vue/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# hermes-console-vue

Hermes console migrated from AngularJS to Vue 3.

## Requirements

* node >=18.0.0
* yarn

## Project Setup

```sh
yarn
```

### Run mocked backend server

```sh
yarn dev-server
```

### Compile and Hot-Reload for Development

```sh
yarn dev
```

### Type-Check, Compile and Minify for Production

```sh
yarn build
```

### Run Unit Tests with [Vitest](https://vitest.dev/)

```sh
yarn test:unit
```

### Lint with [ESLint](https://eslint.org/)

```sh
yarn lint
```

### Lint with [ESLint](https://eslint.org/) and fix

```sh
yarn lint:fix
```
1 change: 1 addition & 0 deletions hermes-console-vue/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
13 changes: 13 additions & 0 deletions hermes-console-vue/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hermes Console</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading
Loading