Skip to content

Commit 4605116

Browse files
polish and test
Signed-off-by: Carlos Feria <2582866+carlosthe19916@users.noreply.github.com>
1 parent 1f4bff7 commit 4605116

File tree

5 files changed

+128
-102
lines changed

5 files changed

+128
-102
lines changed

.github/workflows/ci-repo.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
run: npm run build-storybook
3535
- name: Test
3636
run: npm run test -- --coverage --watchAll=false
37-
- name: Format check
38-
run: npm run format:check
37+
- name: Check
38+
run: npm run check
3939

4040
- name: Crate Format
4141
working-directory: ./crate

client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"preview": "rsbuild preview"
1818
},
1919
"dependencies": {
20-
"@hey-api/client-axios": "0.2.7",
20+
"@hey-api/client-axios": "^0.6.1",
2121
"@hookform/resolvers": "^2.9.11",
2222
"@patternfly/patternfly": "^5.4.0",
2323
"@patternfly/react-charts": "^7.4.0",
@@ -49,7 +49,7 @@
4949
"yup": "^0.32.11"
5050
},
5151
"devDependencies": {
52-
"@hey-api/openapi-ts": "0.53.5",
52+
"@hey-api/openapi-ts": "^0.64.5",
5353
"@testing-library/jest-dom": "^6.4.6",
5454
"@testing-library/react": "^16.0.0",
5555
"@rsbuild/core": "^1.2.8",

client/rsbuild.config.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import * as path from "node:path";
21
import * as fs from "node:fs";
2+
import * as path from "node:path";
33

44
import { defineConfig } from "@rsbuild/core";
55
import { pluginReact } from "@rsbuild/plugin-react";
66

77
import type { RsbuildPlugin } from "@rsbuild/core";
88

99
import {
10+
SERVER_ENV_KEYS,
11+
TRUSTIFICATION_ENV,
1012
brandingStrings,
1113
encodeEnv,
1214
proxyMap,
13-
SERVER_ENV_KEYS,
14-
TRUSTIFICATION_ENV,
1515
} from "@trustify-ui/common";
1616

1717
/**
@@ -26,7 +26,7 @@ const brandingPath: string = brandingAssetPath();
2626
const manifestPath = path.resolve(brandingPath, "manifest.json");
2727
const faviconPath = path.resolve(brandingPath, "favicon.ico");
2828

29-
export const copyIndex = (): RsbuildPlugin => ({
29+
export const renameIndex = (): RsbuildPlugin => ({
3030
name: "CopyIndex",
3131
setup(api) {
3232
if (process.env.NODE_ENV === "production") {
@@ -83,7 +83,7 @@ export const ignoreProcessEnv = (): RsbuildPlugin => ({
8383
});
8484

8585
export default defineConfig({
86-
plugins: [pluginReact(), copyIndex(), ignoreProcessEnv()],
86+
plugins: [pluginReact(), renameIndex(), ignoreProcessEnv()],
8787
html: {
8888
template: path.join(__dirname, "index.html"),
8989
templateParameters: {
@@ -114,12 +114,12 @@ export default defineConfig({
114114
to: ".",
115115
},
116116
{
117-
from: brandingPath,
117+
from: faviconPath,
118118
to: ".",
119119
},
120120
{
121-
from: faviconPath,
122-
to: ".",
121+
from: brandingPath,
122+
to: "branding",
123123
},
124124
],
125125
},

0 commit comments

Comments
 (0)