Skip to content

Commit

Permalink
Merge pull request #1697 from allegro/hermes_console_vue
Browse files Browse the repository at this point in the history
Hermes console vue
  • Loading branch information
szczygiel-m authored Oct 26, 2023
2 parents 97a54ab + ba2e4b4 commit 9c4a7c1
Show file tree
Hide file tree
Showing 325 changed files with 30,966 additions and 51 deletions.
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

0 comments on commit 9c4a7c1

Please sign in to comment.