Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Agrim/DPROD-4138/deleting party town integration #7720

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
a50e61d
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 5, 2024
dc734e8
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 5, 2024
62ae536
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 15, 2024
5d79702
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 15, 2024
e8dab66
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 16, 2024
5918fd4
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 17, 2024
b14ad9d
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 17, 2024
40b977d
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 18, 2024
cbbafd3
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 18, 2024
f72449b
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 18, 2024
46509c8
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 18, 2024
c7ac35a
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 19, 2024
1fc906a
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 22, 2024
9a01a9a
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 22, 2024
e81d677
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 22, 2024
8dd6aad
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 24, 2024
6726235
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 30, 2024
d56486a
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 30, 2024
3a1bd42
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 30, 2024
bf14262
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 1, 2024
0629804
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 1, 2024
82c5022
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 3, 2024
659e984
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 3, 2024
9e6c3c4
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 6, 2024
d3df2f2
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 6, 2024
c50d111
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 6, 2024
3c7d485
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 8, 2024
2f3dba6
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 9, 2024
d19c142
fix: deleting third party proxy and partytown
May 14, 2024
4cd9cea
fix: removal of builderpartytown
May 14, 2024
08abc9b
fix: remove type partytown
May 14, 2024
13cc34e
fix: remove type partytown
May 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@
"build:row": "npm run build --workspace @deriv/row && node scripts/copy-htaccess.js row",
"build:eu": "npm run build --workspace @deriv/eu && node scripts/copy-htaccess.js eu",
"update:deriv-com-libs": "npm i @deriv-com/blocks@latest @deriv-com/components@latest @deriv-com/hooks@latest @deriv-com/providers@latest --workspace gatsby-theme-deriv",
"partytown:row": "partytown copylib sites/row/public/~partytown",
"partytown:eu": "partytown copylib sites/eu/public/~partytown",
"develop:row": "npm run develop --workspace @deriv/row",
"clean:row": "npm run clean --workspace @deriv/row",
"develop:eu": "npm run develop --workspace @deriv/eu",
Expand Down
6 changes: 0 additions & 6 deletions themes/gatsby-theme-deriv/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ module.exports = {
author: 'Deriv.com',
siteUrl: site_url,
},
partytownProxiedURLs: [
`https://assets.customer.io/assets/track-eu.js`,
`https://assets.customer.io/assets/track.js`,
`https://static.deriv.com/scripts/cookie.js`,
`https://widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js`,
],
plugins: [
'gatsby-plugin-postcss',
{
Expand Down
4 changes: 0 additions & 4 deletions themes/gatsby-theme-deriv/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
const language_config = require(`./i18n-config.js`)
const language_config_en = require(`./i18n-config-en.js`)
const path = require('path')
const { copyLibFiles } = require('@builder.io/partytown/utils')
const { exec } = require('child_process')
const StylelintPlugin = require('stylelint-webpack-plugin')
const TerserPlugin = require('terser-webpack-plugin')
Expand Down Expand Up @@ -33,9 +32,6 @@ const fetchTrustpilotData = () => {
})
}

exports.onPreBuild = async () => {
await copyLibFiles(path.join(__dirname, 'static', '~partytown'))
}
exports.onPreInit = () => {
// Update truspilot.json file with latest data
fetchTrustpilotData()
Expand Down
21 changes: 0 additions & 21 deletions themes/gatsby-theme-deriv/gatsby-ssr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react'
import { Partytown } from '@builder.io/partytown/react'
import { WrapPagesWithLocaleContext } from './src/components/localization'
import './src/components/localization/config'
import GlobalProvider from './src/store/global-provider'
Expand All @@ -17,31 +16,11 @@ export const onRenderBody = ({ setHeadComponents }) => {
setHeadComponents([
<link key="preconnect-gstatic" rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="true" />,
<link key="preload-font" rel="preload" href="https://fonts.gstatic.com/s/ibmplexsans/v19/zYX9KVElMYYaJe8bpLHnCwDKjWr7AIFsdP3pBms.woff2" as="font" type="font/woff2" crossOrigin="true" />,
// Partytown setup
<Partytown key="partytown" />,
<script
key="partytown-vanilla-config"
dangerouslySetInnerHTML={{
__html: `partytown = {
resolveUrl(url, location) {
// Use a secure connection
if (url?.protocol === 'http:') {
url = new URL(url.href.replace('http', 'https'))
}
// Point to our proxied URL
const proxyUrl = new URL(location.origin + '/__third-party-proxy')
proxyUrl.searchParams.append('url', url)
return proxyUrl
}
}`,
}}
/>,

// GTM setup
(gtmTrackingId && (
<script
key="gtm-script"
type="text/partytown"
async
src={`https://www.googletagmanager.com/gtm.js?id=${gtmTrackingId}`}
></script>
Expand Down
1 change: 0 additions & 1 deletion themes/gatsby-theme-deriv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"license": "ISC",
"dependencies": {
"@artsy/fresnel": "^6.2.1",
"@builder.io/partytown": "^0.8.1",
"@deriv-com/analytics": "^1.5.0",
"@deriv-com/blocks": "^0.118.0",
"@deriv-com/components": "^0.59.0",
Expand Down
Loading