From 70052d83df755083c4110e0fad5c4b2b5f6080c3 Mon Sep 17 00:00:00 2001 From: Anton-rock Date: Wed, 12 Mar 2025 15:09:59 +0300 Subject: [PATCH 1/4] 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/4] 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/4] 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 a3f17cad4fd4d65cab2043cbc04abeba10a5c3cb Mon Sep 17 00:00:00 2001 From: Anton-rock Date: Mon, 17 Mar 2025 02:56:15 +0300 Subject: [PATCH 4/4] feat: fix values v8 --- helm/values.yaml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/helm/values.yaml b/helm/values.yaml index 9d3b641c..c77d7cdd 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -26,10 +26,23 @@ 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-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; 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; 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://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; + 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; + media-src 'self'; + manifest-src 'self'; + worker-src 'self'; + child-src 'self'; + block-all-mixed-content; + upgrade-insecure-requests;"; + resources: requests: cpu: 1 memory: 512Mi -