Skip to content

Commit

Permalink
fix: fixed localized sdk/web
Browse files Browse the repository at this point in the history
  • Loading branch information
bzavhorodskyi committed Jan 16, 2025
1 parent 76706a3 commit ca68d05
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 537 deletions.
183 changes: 4 additions & 179 deletions src/content/docs/ja/sdk/web/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,97 +33,10 @@ SDKのファイルは、迅速なサービスを実現するためにキャッ

CDNを利用してSDKを読み込むには、Webアプリの`<head>`タグ間に次のスニペットを追加します。

\{/\* prettier\-ignore \*/\}

{/* prettier-ignore */}
```html
<script type="application/javascript">
!(function (t, r, e, a, n, o, i, l, c, s, d, h, u) {
var f = i + "_q",
m = i + "_c";
(t[i] = t[i] || {}), (t[f] = t[f] || []), (t[m] = t[m] || []);
for (let r = 0; r < l.length; r++) d(t[i], t[f], l[r]);
for (let r = 0; r < c.length; r++) {
var g,
b = c[r][0],
p = c[r][1];
t[i][b] = function (...r) {
return (
(g = this),
t[m].push(function () {
g[s] = new t[i][b](...r);
}),
g
);
};
for (let r = 0; r < p.length; r++) {
const e = p[r];
t[i][b].prototype[e] = function (...r) {
t[m].push(function () {
g[s][e](...r);
});
};
}
}
(h = r.createElement(e)),
(u = r.getElementsByTagName(e)[0]),
(h.async = !0),
(h.src = "https://cdn.adjust.com/adjust-latest.min.js"),
(h.onload = function () {
for (var r = 0; r < t[m].length; r++) t[m][r]();
t[m] = [];
for (r = 0; r < t[f].length; r++)
t[f][r][1][0][s]
? t[i][t[f][r][0]](t[f][r][1][0][s])
: t[i][t[f][r][0]].apply(t[i], t[f][r][1]);
t[f] = [];
}),
u.parentNode.insertBefore(h, u);
})(
window,
document,
"script",
0,
0,
0,
"Adjust",
[
"initSdk",
"getAttribution",
"getWebUUID",
"waitForAttribution",
"waitForWebUUID",
"setReferrer",
"trackEvent",
"addGlobalCallbackParameters",
"addGlobalPartnerParameters",
"removeGlobalCallbackParameter",
"removeGlobalPartnerParameter",
"clearGlobalCallbackParameters",
"clearGlobalPartnerParameters",
"switchToOfflineMode",
"switchBackToOnlineMode",
"stop",
"restart",
"gdprForgetMe",
"disableThirdPartySharing",
"trackThirdPartySharing",
"initSmartBanner",
"showSmartBanner",
"hideSmartBanner",
],
[
[
"ThirdPartySharing",
["addGranularOption", "addPartnerSharingSetting"],
],
],
"__realObj",
function (t, r, e) {
t[e] = function () {
r.push([e, arguments]);
};
},
);
!function(t,r,e,a,n,o,i,l,c,s,d,h,u){var f=i+"_q",m=i+"_c";t[i]=t[i]||{},t[f]=t[f]||[],t[m]=t[m]||[];for(let r=0;r<l.length;r++)d(t[i],t[f],l[r]);for(let r=0;r<c.length;r++){var g,b=c[r][0],p=c[r][1];t[i][b]=function(...r){return g=this,t[m].push((function(){g[s]=new t[i][b](...r)})),g};for(let r=0;r<p.length;r++){const e=p[r];t[i][b].prototype[e]=function(...r){t[m].push((function(){g[s][e](...r)}))}}}h=r.createElement(e),u=r.getElementsByTagName(e)[0],h.async=!0,h.src="https://cdn.adjust.com/adjust-latest.min.js",h.onload=function(){for(var r=0;r<t[m].length;r++)t[m][r]();t[m]=[];for(r=0;r<t[f].length;r++)t[f][r][1][0][s]?t[i][t[f][r][0]](t[f][r][1][0][s]):t[i][t[f][r][0]].apply(t[i],t[f][r][1]);t[f]=[]},u.parentNode.insertBefore(h,u)}(window,document,"script",0,0,0,"Adjust",["initSdk","getAttribution","getWebUUID","waitForAttribution","waitForWebUUID","setReferrer","trackEvent","addGlobalCallbackParameters","addGlobalPartnerParameters","removeGlobalCallbackParameter","removeGlobalPartnerParameter","clearGlobalCallbackParameters","clearGlobalPartnerParameters","switchToOfflineMode","switchBackToOnlineMode","stop","restart","gdprForgetMe","disableThirdPartySharing","trackThirdPartySharing","initSmartBanner","showSmartBanner","hideSmartBanner"],[["ThirdPartySharing",["addGranularOption","addPartnerSharingSetting"]]],"__realObj",(function(t,r,e){t[e]=function(){r.push([e,arguments])}}));
</script>
```

Expand All @@ -133,98 +46,10 @@ Adjust SDKはページごとに読み込まれ、ページの読み込みごと

XSS(クロスサイトスクリプティング)攻撃を緩和するために、[サブリソース完全性](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)チェックを使用します。実行前にパッケージを検証するには、次のコールを使用します(追加の`crossOrigin``integrity`、およびエンコードされたハッシュにご留意ください)。

\{/\* prettier\-ignore \*/\}

{/* prettier-ignore */}
```html
<script type="application/javascript">
!(function (t, r, e, a, n, o, i, l, s, c, d, h, u) {
var f = i + "_q",
g = i + "_c";
(t[i] = t[i] || {}), (t[f] = t[f] || []), (t[g] = t[g] || []);
for (let r = 0; r < l.length; r++) d(t[i], t[f], l[r]);
for (let r = 0; r < s.length; r++) {
var m,
b = s[r][0],
p = s[r][1];
t[i][b] = function (...r) {
return (
(m = this),
t[g].push(function () {
m[c] = new t[i][b](...r);
}),
m
);
};
for (let r = 0; r < p.length; r++) {
const e = p[r];
t[i][b].prototype[e] = function (...r) {
t[g].push(function () {
m[c][e](...r);
});
};
}
}
(h = r.createElement(e)),
(u = r.getElementsByTagName(e)[0]),
(h.async = !0),
(h.src = "https://cdn.adjust.com/adjust-latest.min.js"),
o && ((h.crossOrigin = "anonymous"), (h.integrity = o)),
(h.onload = function () {
for (var r = 0; r < t[g].length; r++) t[g][r]();
t[g] = [];
for (r = 0; r < t[f].length; r++)
t[f][r][1][0][c]
? t[i][t[f][r][0]](t[f][r][1][0][c])
: t[i][t[f][r][0]].apply(t[i], t[f][r][1]);
t[f] = [];
}),
u.parentNode.insertBefore(h, u);
})(
window,
document,
"script",
0,
0,
"sha384-WE6fJqvcE0mjcC/fPYooIQAOhsHpTDVYjC52i6Asn3LECEpjHyI5zUwD8/5esthg",
"Adjust",
[
"initSdk",
"getAttribution",
"getWebUUID",
"waitForAttribution",
"waitForWebUUID",
"setReferrer",
"trackEvent",
"addGlobalCallbackParameters",
"addGlobalPartnerParameters",
"removeGlobalCallbackParameter",
"removeGlobalPartnerParameter",
"clearGlobalCallbackParameters",
"clearGlobalPartnerParameters",
"switchToOfflineMode",
"switchBackToOnlineMode",
"stop",
"restart",
"gdprForgetMe",
"disableThirdPartySharing",
"trackThirdPartySharing",
"initSmartBanner",
"showSmartBanner",
"hideSmartBanner",
],
[
[
"ThirdPartySharing",
["addGranularOption", "addPartnerSharingSetting"],
],
],
"__realObj",
function (t, r, e) {
t[e] = function () {
r.push([e, arguments]);
};
},
);
!function(t,r,e,a,n,o,i,l,s,c,d,h,u){var f=i+"_q",g=i+"_c";t[i]=t[i]||{},t[f]=t[f]||[],t[g]=t[g]||[];for(let r=0;r<l.length;r++)d(t[i],t[f],l[r]);for(let r=0;r<s.length;r++){var m,b=s[r][0],p=s[r][1];t[i][b]=function(...r){return m=this,t[g].push((function(){m[c]=new t[i][b](...r)})),m};for(let r=0;r<p.length;r++){const e=p[r];t[i][b].prototype[e]=function(...r){t[g].push((function(){m[c][e](...r)}))}}}h=r.createElement(e),u=r.getElementsByTagName(e)[0],h.async=!0,h.src="https://cdn.adjust.com/adjust-latest.min.js",o&&(h.crossOrigin="anonymous",h.integrity=o),h.onload=function(){for(var r=0;r<t[g].length;r++)t[g][r]();t[g]=[];for(r=0;r<t[f].length;r++)t[f][r][1][0][c]?t[i][t[f][r][0]](t[f][r][1][0][c]):t[i][t[f][r][0]].apply(t[i],t[f][r][1]);t[f]=[]},u.parentNode.insertBefore(h,u)}(window,document,"script",0,0,"sha384-WE6fJqvcE0mjcC/fPYooIQAOhsHpTDVYjC52i6Asn3LECEpjHyI5zUwD8/5esthg","Adjust",["initSdk","getAttribution","getWebUUID","waitForAttribution","waitForWebUUID","setReferrer","trackEvent","addGlobalCallbackParameters","addGlobalPartnerParameters","removeGlobalCallbackParameter","removeGlobalPartnerParameter","clearGlobalCallbackParameters","clearGlobalPartnerParameters","switchToOfflineMode","switchBackToOnlineMode","stop","restart","gdprForgetMe","disableThirdPartySharing","trackThirdPartySharing","initSmartBanner","showSmartBanner","hideSmartBanner"],[["ThirdPartySharing",["addGranularOption","addPartnerSharingSetting"]]],"__realObj",(function(t,r,e){t[e]=function(){r.push([e,arguments])}}));
</script>
```

Expand Down
Loading

0 comments on commit ca68d05

Please sign in to comment.