mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-06 16:04:20 +00:00
deploy: 12d0789fe5bc061d8758c4386609d551d70ed53c
This commit is contained in:
1 parent
226ca07f1c
commit
b87cd5111c
6 files changed
+98
-6
No files matched your search
@@ -39,6 +39,6 @@ _flutter.buildConfig = {"engineRevision":"ef0cd000916d64fa0c5d09cc809fa7ad244a57
|
||||
|
||||
_flutter.loader.load({
|
||||
serviceWorkerSettings: {
|
||||
serviceWorkerVersion: "681360732"
|
||||
serviceWorkerVersion: "1071606764"
|
||||
}
|
||||
});
|
||||
@@ -371,8 +371,8 @@ const RESOURCES = {"main.dart.js_1.part.js": "1eb7ac0090b04785dd2225cfa9e300c2",
|
||||
"favicon.svg": "1734d2c8d930abd57ebba9c158506714",
|
||||
"main.dart.js_10.part.js": "18a93c79d961455bc8ba9b5a8c03af1d",
|
||||
"main.dart.js_12.part.js": "61a404b532bdab11fb23322826b14170",
|
||||
"index.html": "40756393c4eb9888c10f8c98f7c514e7",
|
||||
"/": "40756393c4eb9888c10f8c98f7c514e7",
|
||||
"index.html": "10420080dbeaab4399b17f890baa5d38",
|
||||
"/": "10420080dbeaab4399b17f890baa5d38",
|
||||
"splash/style.css": "dc719418d219d54d42bb83c80f79bf00",
|
||||
"splash/lottie-tmail.json": "4f3017c057a283625277ae0c7d10e64d",
|
||||
"splash/img/icon_twp.png": "5f3bf8fc4a58850bf5dae7b6f33043fc",
|
||||
@@ -396,7 +396,7 @@ const RESOURCES = {"main.dart.js_1.part.js": "1eb7ac0090b04785dd2225cfa9e300c2",
|
||||
"main.dart.js_8.part.js": "688bafbc610b9ac4d695dfc3510d118a",
|
||||
"main.dart.js_2.part.js": "f75293baf9c566b466164b746cf90cc9",
|
||||
"main.dart.js_5.part.js": "d8063c130a62270306a576d6a971a665",
|
||||
"flutter_bootstrap.js": "c7e2ff9c1572bfd3ae43baf92c4ea4fa",
|
||||
"flutter_bootstrap.js": "5d6763425f5987a0d88920006e3ba54c",
|
||||
"main.dart.js_11.part.js": "9fba9fcaf9dab58ed0c12a275f494baa",
|
||||
"main.dart.js_9.part.js": "14dbcc380bf2cb3775eeef97d19965dc",
|
||||
"logout-callback.html": "cf4eb9df559c8357b8eec78d68fd7d85",
|
||||
@@ -411,12 +411,14 @@ const RESOURCES = {"main.dart.js_1.part.js": "1eb7ac0090b04785dd2225cfa9e300c2",
|
||||
"worker_service/img/tmail-4x.png": "4ef7579b5e45c9cd9cf93eca17c6a598",
|
||||
"worker_service/worker_service.js": "48182760870bbd3669b6bf8df1e4d97e",
|
||||
"main.dart.js": "05bd1739cd6b37f1b147f6fd6311ccfe",
|
||||
"version.json": "c920b0e34a594926957eb247483bdb45",
|
||||
"version.json": "8f8fd376e525c2144ec7213e480290a2",
|
||||
"icons/Icon-maskable-512.png": "3a55e614a03964225fd5b8ca94384524",
|
||||
"icons/Icon-maskable-192.png": "009a8eae32218365ab20cce81aa896c3",
|
||||
"icons/Icon-512.png": "3a55e614a03964225fd5b8ca94384524",
|
||||
"icons/Icon-192.png": "009a8eae32218365ab20cce81aa896c3",
|
||||
"main.dart.js_3.part.js": "ca65ab338418625c47f9610228bc65aa",
|
||||
"js/sentry-tracing.min.js": "4c3761aae8334da7f24727796d090923",
|
||||
"js/sentry-interceptor.js": "62fa5846f936a2714c6d22d150a725f6",
|
||||
"main.dart.js_4.part.js": "cabfe2c9ac2d9c1535ac7c918ababa19",
|
||||
"main.dart.js_6.part.js": "2ecabe126ae378b75b75883f249f17e7"};
|
||||
// The application shell files that are downloaded before a service worker can
|
||||
|
||||
@@ -41,6 +41,10 @@
|
||||
<script src="worker_service/worker_service.js"></script>
|
||||
<script src="i18n/translater.js"></script>
|
||||
<script src="https://unpkg.com/@dotlottie/player-component@2.7.12/dist/dotlottie-player.mjs" type="module"></script>
|
||||
<!-- Load Sentry SDK first (self-hosted bundle), then interceptor to block any subsequent CDN injection.
|
||||
Order matters: the interceptor must activate after the SDK is ready so it can patch document.createElement. -->
|
||||
<script src="js/sentry-tracing.min.js?v=1.0.0" integrity="sha384-SFODEb3T2QkMjTr3S1it5zIK0cIW7jsComFUkmJ9nU9uaWs3AzA6cubt8xn0zW7A" crossorigin="anonymous"></script>
|
||||
<script src="js/sentry-interceptor.js?v=1.0.0" integrity="sha384-uThyomTT1K0+gzqsKuq4UoZXu3SABtbtP7Y3NXFyvabuIQPGYszSO41UBrcs5czI" crossorigin="anonymous"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
(function() {
|
||||
const originalCreateElement = document.createElement;
|
||||
|
||||
// Only block the specific tracing bundle we self-host. Narrowing to this pathname
|
||||
// prevents silently swallowing future CDN assets that have no local replacement.
|
||||
const BLOCKED_PATHNAME = '/bundle.tracing.min.js';
|
||||
|
||||
function isSentryCdnHostname(hostname) {
|
||||
return hostname === 'sentry-cdn.com' || hostname.endsWith('.sentry-cdn.com');
|
||||
}
|
||||
|
||||
function shouldBlockSentryUrl(urlString) {
|
||||
if (!urlString) return false;
|
||||
try {
|
||||
const parsed = new URL(urlString, document.baseURI);
|
||||
const hostname = parsed.hostname.toLowerCase();
|
||||
const pathname = parsed.pathname.toLowerCase();
|
||||
return isSentryCdnHostname(hostname) && pathname.endsWith(BLOCKED_PATHNAME);
|
||||
} catch (e) {
|
||||
// Fallback for non-parseable URLs: check if it looks like a plain hostname
|
||||
// (no whitespace, no path/query/fragment separators).
|
||||
const str = String(urlString).trim().toLowerCase();
|
||||
const isHostLike = str.length > 0 && !/[\s/?#]/.test(str);
|
||||
return isHostLike && isSentryCdnHostname(str);
|
||||
}
|
||||
}
|
||||
|
||||
function blockAndNotify(element, channel, urlString) {
|
||||
console.log('[Sentry Interceptor] 🛑 Blocked CDN request (' + channel + '):', urlString);
|
||||
// Fire a synthetic 'load' event so the Sentry SDK's internal Promise resolves
|
||||
// cleanly instead of hanging indefinitely waiting for a CDN script we blocked.
|
||||
setTimeout(() => element.dispatchEvent(new Event('load')), 10);
|
||||
}
|
||||
|
||||
function makeSrcSetter(nativeSrcDescriptor) {
|
||||
return function(val) {
|
||||
const urlString = val ? String(val) : '';
|
||||
if (shouldBlockSentryUrl(urlString)) {
|
||||
blockAndNotify(this, 'Property', urlString);
|
||||
} else {
|
||||
nativeSrcDescriptor?.set?.call(this, val);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function makeSrcGetter(nativeSrcDescriptor) {
|
||||
return function() {
|
||||
return nativeSrcDescriptor?.get?.call(this) ?? '';
|
||||
};
|
||||
}
|
||||
|
||||
function makeSetAttribute(originalSetAttribute) {
|
||||
return function(name, value) {
|
||||
const urlString = value ? String(value) : '';
|
||||
if (String(name).toLowerCase() === 'src' && shouldBlockSentryUrl(urlString)) {
|
||||
blockAndNotify(this, 'Attribute', urlString);
|
||||
return;
|
||||
}
|
||||
originalSetAttribute.call(this, name, value);
|
||||
};
|
||||
}
|
||||
|
||||
function patchScriptElement(element) {
|
||||
const nativeSrcDescriptor = Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype, 'src');
|
||||
Object.defineProperty(element, 'src', {
|
||||
configurable: true,
|
||||
set: makeSrcSetter(nativeSrcDescriptor),
|
||||
get: makeSrcGetter(nativeSrcDescriptor),
|
||||
});
|
||||
element.setAttribute = makeSetAttribute(element.setAttribute);
|
||||
}
|
||||
|
||||
// Load order: sentry-tracing.min.js (self-hosted SDK) must run before this interceptor.
|
||||
// This interceptor patches document.createElement to block any subsequent CDN injection
|
||||
// the SDK may attempt at runtime.
|
||||
document.createElement = function(tagName, options) {
|
||||
const element = originalCreateElement.call(document, tagName, options);
|
||||
if (String(tagName).toLowerCase() === 'script') {
|
||||
patchScriptElement(element);
|
||||
}
|
||||
return element;
|
||||
};
|
||||
})();
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
/*! @sentry/browser (Performance Monitoring) 10.6.0 (059aab3) | https://github.com/getsentry/sentry-javascript */
|
||||
var Sentry=function(t){t=window.Sentry||{};const n=globalThis,e="10.6.0";function r(){return o(n),n}function o(t){const n=t.__SENTRY__=t.__SENTRY__||{};return n.version=n.version||e,n[e]=n[e]||{}}function i(t,r,o=n){const i=o.__SENTRY__=o.__SENTRY__||{},s=i[e]=i[e]||{};return s[t]||(s[t]=r())}const s=["debug","info","warn","error","log","assert","trace"],c={};function a(t){if(!("console"in n))return t();const e=n.console,r={},o=Object.keys(c);o.forEach(t=>{const n=c[t];r[t]=e[t],e[t]=n});try{return t()}finally{o.forEach(t=>{e[t]=r[t]})}}const u="?",f=/\(error: (.*)\)/,d=/captureMessage|captureException/;function l(...t){const n=t.sort((t,n)=>t[0]-n[0]).map(t=>t[1]);return(t,e=0,r=0)=>{const o=[],i=t.split("\n");for(let t=e;t<i.length;t++){let e=i[t];e.length>1024&&(e=e.slice(0,1024));const s=f.test(e)?e.replace(f,"$1"):e;if(!s.match(/\S*Error: /)){for(const t of n){const n=t(s);if(n){o.push(n);break}}if(o.length>=50+r)break}}return function(t){if(!t.length)return[];const n=Array.from(t);/sentryWrapped/.test(p(n).function||"")&&n.pop();n.reverse(),d.test(p(n).function||"")&&(n.pop(),d.test(p(n).function||"")&&n.pop());return n.slice(0,50).map(t=>({...t,filename:t.filename||p(n).filename,function:t.function||u}))}(o.slice(r))}}function p(t){return t[t.length-1]||{}}const h="<anonymous>";function m(t){try{return t&&"function"==typeof t&&t.name||h}catch{return h}}function g(t){const n=t.exception;if(n){const t=[];try{return n.values.forEach(n=>{n.stacktrace.frames&&t.push(...n.stacktrace.frames)}),t}catch{return}}}const y={},v={};function b(t,n){y[t]=y[t]||[],y[t].push(n)}function _(t,n){if(!v[t]){v[t]=!0;try{n()}catch(t){}}}function S(t,n){const e=t&&y[t];if(e)for(const t of e)try{t(n)}catch(t){}}let w=null;function E(t){const n="error";b(n,t),_(n,T)}function T(){w=n.onerror,n.onerror=function(t,n,e,r,o){return S("error",{column:r,error:o,line:e,msg:t,url:n}),!!w&&w.apply(this,arguments)},n.onerror.__SENTRY_INSTRUMENTED__=!0}let k=null;function $(t){const n="unhandledrejection";b(n,t),_(n,x)}function x(){k=n.onunhandledrejection,n.onunhandledrejection=function(t){return S("unhandledrejection",t),!k||k.apply(this,arguments)},n.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const I=Object.prototype.toString;function R(t){switch(I.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return q(t,Error)}}function L(t,n){return I.call(t)===`[object ${n}]`}function O(t){return L(t,"ErrorEvent")}function j(t){return L(t,"DOMError")}function C(t){return L(t,"String")}function M(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function P(t){return null===t||M(t)||"object"!=typeof t&&"function"!=typeof t}function A(t){return L(t,"Object")}function N(t){return"undefined"!=typeof Event&&q(t,Event)}function D(t){return Boolean(t?.then&&"function"==typeof t.then)}function q(t,n){try{return t instanceof n}catch{return!1}}function F(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t.t)}function U(t){return"undefined"!=typeof Request&&q(t,Request)}const H=n;function B(t,n={}){if(!t)return"<unknown>";try{let e=t;const r=5,o=[];let i=0,s=0;const c=" > ",a=c.length;let u;const f=Array.isArray(n)?n:n.keyAttrs,d=!Array.isArray(n)&&n.maxStringLength||80;for(;e&&i++<r&&(u=z(e,f),!("html"===u||i>1&&s+o.length*a+u.length>=d));)o.push(u),s+=u.length,e=e.parentNode;return o.reverse().join(c)}catch{return"<unknown>"}}function z(t,n){const e=t,r=[];if(!e?.tagName)return"";if(H.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}r.push(e.tagName.toLowerCase());const o=n?.length?n.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(o?.length)o.forEach(t=>{r.push(`[${t[0]}="${t[1]}"]`)});else{e.id&&r.push(`#${e.id}`);const t=e.className;if(t&&C(t)){const n=t.split(/\s+/);for(const t of n)r.push(`.${t}`)}}const i=["aria-label","type","name","title","alt"];for(const t of i){const n=e.getAttribute(t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}function W(){try{return H.document.location.href}catch{return""}}function J(t){if(!H.HTMLElement)return null;let n=t;for(let t=0;t<5;t++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}function X(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function G(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;n<t.length;n++){const r=t[n];try{F(r)?e.push("[VueViewModel]"):e.push(String(r))}catch{e.push("[value cannot be serialized]")}}return e.join(n)}function K(t,n,e=!1){return!!C(t)&&(L(n,"RegExp")?n.test(t):!!C(n)&&(e?t===n:t.includes(n)))}function Y(t,n=[],e=!1){return n.some(n=>K(t,n,e))}function V(t,n,e){if(!(n in t))return;const r=t[n];if("function"!=tyLine truncated
|
||||
//# sourceMappingURL=bundle.tracing.min.js.map
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"app_name":"tmail_ui_user","version":"0.27.2","package_name":"tmail_ui_user"}
|
||||
{"app_name":"tmail_ui_user","version":"0.28.2-rc01","package_name":"tmail_ui_user"}
|
||||
Reference in new issue
Block a user