From 70052d83df755083c4110e0fad5c4b2b5f6080c3 Mon Sep 17 00:00:00 2001 From: Anton-rock Date: Wed, 12 Mar 2025 15:09:59 +0300 Subject: [PATCH 1/5] feat: fix orders --- src/stores/SettingsStore.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/stores/SettingsStore.ts b/src/stores/SettingsStore.ts index dcdb57c6..a5c7feef 100644 --- a/src/stores/SettingsStore.ts +++ b/src/stores/SettingsStore.ts @@ -37,7 +37,6 @@ class SettingsStore { this.setIsCompletedOnboardingProcess(initState.isCompleteOnboardingProcess ?? false); this.setIsInfoDashboardPerHours(initState.isInfoDashboardPerHours ?? false); this.setTradeTableSize(initState.tradeTableSize ?? TRADE_TABLE_SIZE.S); - this.setOrderType(initState.orderType ?? ORDER_TYPE.Limit); this.setIsShowDepositInfo(initState.isShowDepositInfo ?? []); } } @@ -60,7 +59,7 @@ class SettingsStore { tradeTableSize: TRADE_TABLE_SIZE = TRADE_TABLE_SIZE.S; setTradeTableSize = (v: TRADE_TABLE_SIZE) => (this.tradeTableSize = v); - orderType: ORDER_TYPE = ORDER_TYPE.Limit; + orderType: ORDER_TYPE = ORDER_TYPE.Market; setOrderType = (v: ORDER_TYPE) => (this.orderType = v); timeInForce: LimitType = LimitType.MKT; From 2af261b127f45e7d62e93c2325acfcd277c4d88a Mon Sep 17 00:00:00 2001 From: Anton-rock Date: Thu, 13 Mar 2025 14:58:31 +0300 Subject: [PATCH 2/5] feat: add rules csp --- helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/values.yaml b/helm/values.yaml index ecb9f8e2..2fe09ef6 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -26,7 +26,7 @@ ingress: annotations: kubernetes.io/tls-acme: "true" nginx.ingress.kubernetes.io/configuration-snippet: | - more_set_headers "Content-Security-Policy: default-src 'self'; script-src 'self' https://www.googletagmanager.com https://cdn.jsdelivr.net https://widget.intercom.io; object-src 'none'; frame-ancestors 'none'; base-uri 'self'; form-action 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: https://static.intercomassets.com; connect-src 'self' https://www.google-analytics.com https://nexus-websocket-a.intercom.io https://api-iam.intercom.io https://api.bako.global/socket.io; font-src 'self' https://fonts.gstatic.com data:; frame-src 'self' https://widgetbot.io https://intercom.io https://widget.intercom.io; media-src 'self'; manifest-src 'self'; worker-src 'self'; child-src 'self'; block-all-mixed-content; upgrade-insecure-requests;"; + more_set_headers "Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval' https://www.googletagmanager.com https://cdn.jsdelivr.net https://widget.intercom.io; object-src 'none'; frame-ancestors 'none'; base-uri 'self'; form-action 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: https://static.intercomassets.com; connect-src 'self' https://www.google-analytics.com https://nexus-websocket-a.intercom.io https://api-iam.intercom.io https://api.bako.global/socket.io https://testnet.fuel.network; font-src 'self' https://fonts.gstatic.com data:; frame-src 'self' https://widgetbot.io https://intercom.io https://widget.intercom.io; media-src 'self'; manifest-src 'self'; worker-src 'self'; child-src 'self'; block-all-mixed-content; upgrade-insecure-requests;"; resources: requests: From 2bbbfeae52af049fe4692329df035d225ebfdc4b Mon Sep 17 00:00:00 2001 From: Anton-rock Date: Thu, 13 Mar 2025 16:03:19 +0300 Subject: [PATCH 3/5] feat: add rules csp --- helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/values.yaml b/helm/values.yaml index 2fe09ef6..667e6a1a 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -26,7 +26,7 @@ ingress: annotations: kubernetes.io/tls-acme: "true" nginx.ingress.kubernetes.io/configuration-snippet: | - more_set_headers "Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval' https://www.googletagmanager.com https://cdn.jsdelivr.net https://widget.intercom.io; object-src 'none'; frame-ancestors 'none'; base-uri 'self'; form-action 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: https://static.intercomassets.com; connect-src 'self' https://www.google-analytics.com https://nexus-websocket-a.intercom.io https://api-iam.intercom.io https://api.bako.global/socket.io https://testnet.fuel.network; font-src 'self' https://fonts.gstatic.com data:; frame-src 'self' https://widgetbot.io https://intercom.io https://widget.intercom.io; media-src 'self'; manifest-src 'self'; worker-src 'self'; child-src 'self'; block-all-mixed-content; upgrade-insecure-requests;"; + more_set_headers "Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.googletagmanager.com https://cdn.jsdelivr.net https://widget.intercom.io; object-src 'none'; frame-ancestors 'none'; base-uri 'self'; form-action 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: https://static.intercomassets.com; connect-src 'self' https://www.google-analytics.com https://nexus-websocket-a.intercom.io https://api-iam.intercom.io https://api.bako.global/socket.io https://testnet.fuel.network https://api.web3modal.org; font-src 'self' https://fonts.gstatic.com data:; frame-src 'self' https://widgetbot.io https://intercom.io https://widget.intercom.io; media-src 'self'; manifest-src 'self'; worker-src 'self'; child-src 'self'; block-all-mixed-content; upgrade-insecure-requests;"; resources: requests: From f8395c8e797f447edc735d1a780d4ea588b52f06 Mon Sep 17 00:00:00 2001 From: Anton-rock Date: Mon, 17 Mar 2025 03:03:55 +0300 Subject: [PATCH 4/5] feat: fix values v9 --- helm/values.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helm/values.yaml b/helm/values.yaml index c77d7cdd..81419ed0 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -28,13 +28,13 @@ ingress: nginx.ingress.kubernetes.io/configuration-snippet: | more_set_headers "Content-Security-Policy: default-src 'self'; - script-src 'self' 'unsafe-inline' 'unsafe-eval' https://js.intercomcdn.com https://www.googletagmanager.com https://cdn.jsdelivr.net https://widget.intercom.io https://s3.tradingview.com; + script-src 'self' 'unsafe-inline' 'unsafe-eval' https://js.intercomcdn.com https://www.googletagmanager.com https://cdn.jsdelivr.net https://widget.intercom.io https://s3.tradingview.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; style-src-elem 'self' 'unsafe-inline' https://fonts.googleapis.com; - connect-src 'self' https://www.google-analytics.com https://region1.google-analytics.com https://nexus-websocket-a.intercom.io https://api-iam.intercom.io https://api.bako.global/socket.io wss://api.bako.global/socket.io https://testnet.fuel.network https://mainnet.fuel.network https://relay.walletconnect.org wss://relay.walletconnect.org https://hermes.pyth.network https://indexer.hyperindex.xyz wss://indexer.hyperindex.xyz https://app.sentio.xyz https://api.web3modal.org wss://relay.walletconnect.com https://api.bako.global https://unleash.v12.trade wss://nexus-websocket-a.intercom.io https://spark-candles.v12.trade wss://api.bako.global/socket.io; + connect-src 'self' https://www.google-analytics.com https://region1.google-analytics.com https://nexus-websocket-a.intercom.io https://api-iam.intercom.io https://api.bako.global/socket.io wss://api.bako.global/socket.io https://testnet.fuel.network https://mainnet.fuel.network https://relay.walletconnect.org wss://relay.walletconnect.org https://hermes.pyth.network https://indexer.hyperindex.xyz wss://indexer.hyperindex.xyz https://app.sentio.xyz https://api.web3modal.org wss://relay.walletconnect.com https://api.bako.global https://unleash.v12.trade wss://nexus-websocket-a.intercom.io https://spark-candles.v12.trade wss://api.bako.global/socket.io https://api-js.mixpanel.com; img-src 'self' data:; font-src 'self' https://fonts.gstatic.com data:; - frame-src 'self' https://widgetbot.io https://intercom.io https://widget.intercom.io https://verify.walletconnect.com; + frame-src 'self' https://widgetbot.io https://intercom.io https://widget.intercom.io https://verify.walletconnect.com https://e.widgetbot.io https://s.tradingview.com blob:; media-src 'self'; manifest-src 'self'; worker-src 'self'; From 39b334b62ec19f7e652d210b03bf7da0383d2f50 Mon Sep 17 00:00:00 2001 From: Anton-rock Date: Mon, 17 Mar 2025 03:13:48 +0300 Subject: [PATCH 5/5] feat: fix values v11 --- helm/values.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/helm/values.yaml b/helm/values.yaml index 36e9acf4..81419ed0 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -25,6 +25,22 @@ ingress: className: cilium annotations: kubernetes.io/tls-acme: "true" + nginx.ingress.kubernetes.io/configuration-snippet: | + more_set_headers "Content-Security-Policy: + default-src 'self'; + script-src 'self' 'unsafe-inline' 'unsafe-eval' https://js.intercomcdn.com https://www.googletagmanager.com https://cdn.jsdelivr.net https://widget.intercom.io https://s3.tradingview.com; + style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; + style-src-elem 'self' 'unsafe-inline' https://fonts.googleapis.com; + connect-src 'self' https://www.google-analytics.com https://region1.google-analytics.com https://nexus-websocket-a.intercom.io https://api-iam.intercom.io https://api.bako.global/socket.io wss://api.bako.global/socket.io https://testnet.fuel.network https://mainnet.fuel.network https://relay.walletconnect.org wss://relay.walletconnect.org https://hermes.pyth.network https://indexer.hyperindex.xyz wss://indexer.hyperindex.xyz https://app.sentio.xyz https://api.web3modal.org wss://relay.walletconnect.com https://api.bako.global https://unleash.v12.trade wss://nexus-websocket-a.intercom.io https://spark-candles.v12.trade wss://api.bako.global/socket.io https://api-js.mixpanel.com; + img-src 'self' data:; + font-src 'self' https://fonts.gstatic.com data:; + frame-src 'self' https://widgetbot.io https://intercom.io https://widget.intercom.io https://verify.walletconnect.com https://e.widgetbot.io https://s.tradingview.com blob:; + media-src 'self'; + manifest-src 'self'; + worker-src 'self'; + child-src 'self'; + block-all-mixed-content; + upgrade-insecure-requests;"; resources: requests: