Skip to content

Commit

Permalink
chore(ui): fix formatting errors in config (#11629)
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
  • Loading branch information
Anton Gilgur authored Aug 28, 2023
1 parent d99efa7 commit 8e26eb4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
16 changes: 8 additions & 8 deletions ui/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = {
preset: 'ts-jest',
"transformIgnorePatterns": [
"node_modules/(?!(argo-ui)/)"
],
"moduleNameMapper": {
"\\.(css|scss)$": "<rootDir>/__mocks__/styleMock.js"
},
};
preset: "ts-jest",
transformIgnorePatterns: [
"node_modules/(?!(argo-ui)/)"
],
moduleNameMapper: {
"\\.(css|scss)$": "<rootDir>/__mocks__/styleMock.js"
},
};
11 changes: 6 additions & 5 deletions ui/src/app/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict;";

const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const webpack = require("webpack");
Expand All @@ -12,7 +12,7 @@ const proxyConf = {
secure: false
};

console.log(`Bundling for ${isProd ? 'production' : 'development'}...`);
console.log(`Bundling for ${isProd ? "production" : "development"}...`);

const config = {
mode: isProd ? "production" : "development",
Expand Down Expand Up @@ -61,11 +61,11 @@ const config = {
},
plugins: [
new webpack.DefinePlugin({
"process.env.DEFAULT_TZ": JSON.stringify("UTC"),
"process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV || "development"),
SYSTEM_INFO: JSON.stringify({
"SYSTEM_INFO": JSON.stringify({
version: process.env.VERSION || "latest"
}),
"process.env.DEFAULT_TZ": JSON.stringify("UTC"),
}),
new HtmlWebpackPlugin({ template: "src/app/index.html" }),
new CopyWebpackPlugin({
Expand All @@ -88,14 +88,15 @@ const config = {
}),
new MonacoWebpackPlugin({ languages: ["json", "yaml"] })
],

devServer: {
// this needs to be disable to allow EventSource to work
compress: false,
historyApiFallback: {
disableDotRule: true
},
headers: {
'X-Frame-Options': 'SAMEORIGIN'
"X-Frame-Options": "SAMEORIGIN"
},
proxy: {
"/api/v1": proxyConf,
Expand Down

0 comments on commit 8e26eb4

Please sign in to comment.