Skip to content

Commit 60b02ca

Browse files
CH-45 Fix linting errors in webapp template
1 parent 1efc7c0 commit 60b02ca

2 files changed

Lines changed: 26 additions & 24 deletions

File tree

application-templates/webapp/frontend/src/App.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import Version from './components/Version';
33

44

55
const Main = () => (
6-
<>
7-
<img src="/logo.png" width="800" />
8-
<h1>__APP_NAME__ React application is working!</h1>
9-
<Version />
10-
<RestTest />
11-
<p>See api documentation <a href="/api/ui/">here</a></p>
12-
</>
13-
)
6+
<>
7+
<img src="/logo.png" width="800" />
8+
<h1>__APP_NAME__ React application is working!</h1>
9+
<Version />
10+
<RestTest />
11+
<p>See api documentation <a href="/api/ui/">here</a></p>
12+
</>
13+
)
1414

1515

1616
export default Main;

application-templates/webapp/frontend/vite.config.ts

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default defineConfig(({ mode }) => {
1010
const env = loadEnv(mode, process.cwd(), '')
1111

1212
const theDomain = env && env.DOMAIN ? env.DOMAIN : 'localhost:5000';
13-
13+
1414
console.log('Dev server address: ', theDomain);
1515

1616
const proxyTarget = theDomain;
@@ -22,21 +22,23 @@ export default defineConfig(({ mode }) => {
2222

2323

2424
return {
25-
plugins: [react()],
26-
server: {
27-
port: 9000,
28-
proxy: {
29-
'/api/': {
30-
target: replaceHost( proxyTarget, 'samples'),
31-
secure: false,
32-
changeOrigin: true,
33-
},
34-
'/proxy/common/api': {
35-
target: replaceHost( proxyTarget, 'common'),
36-
secure: false,
37-
changeOrigin: true,
38-
rewrite: (path) => path.replace(/^\/proxy\/common\/api/, '/api')
25+
plugins: [react()],
26+
server: {
27+
port: 9000,
28+
proxy: {
29+
'/api/': {
30+
target: replaceHost(proxyTarget, 'samples'),
31+
secure: false,
32+
changeOrigin: true,
33+
},
34+
'/proxy/common/api': {
35+
target: replaceHost(proxyTarget, 'common'),
36+
secure: false,
37+
changeOrigin: true,
38+
rewrite: (path) => path.replace(/^\/proxy\/common\/api/, '/api')
39+
}
3940
}
41+
}
4042
}
41-
}}}
43+
}
4244
)

0 commit comments

Comments
 (0)