This commit is contained in:
Alexander Zinchuk 2021-06-18 01:00:02 +03:00
parent 966a049743
commit 1b60f1f43d
44 changed files with 41 additions and 22159 deletions

View File

@ -1 +1 @@
15
16

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/0.21ca60653ccd8108472e.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/0.21ca60653ccd8108472e.js.map vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/1.6e0d9af6c6bece6b9cdc.js.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"sources":[],"names":[],"mappings":"","file":"1.6e0d9af6c6bece6b9cdc.js","sourceRoot":""}

View File

@ -1 +0,0 @@
{"version":3,"sources":[],"names":[],"mappings":"","file":"1.fb539fa72ec126e2a2cc.js","sourceRoot":""}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/3.e4377d3a1cfc9dfc19d1.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/3.e4377d3a1cfc9dfc19d1.js.map vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,2 @@
!function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=0)}([function(e,r,t){"use strict";t.r(r);new Set(["newMessage","newScheduledMessage","deleteMessages","deleteScheduledMessages","deleteHistory"]),"undefined"!=typeof window&&window.innerHeight;self.onerror=e=>{console.error(e),o({type:"unhandledError",error:{message:e.error.message||"Uncaught exception in worker"}})},self.addEventListener("unhandledrejection",e=>{console.error(e),o({type:"unhandledError",error:{message:e.reason.message||"Uncaught rejection in worker"}})});const n=new Map;function o(e,r){r?postMessage(e,r):postMessage(e)}let s;self.importScripts("rlottie-wasm.js");const a=new Promise(e=>{Module.onRuntimeInitialized=()=>{s={init:Module.cwrap("lottie_init","",[]),destroy:Module.cwrap("lottie_destroy","",["number"]),resize:Module.cwrap("lottie_resize","",["number","number","number"]),buffer:Module.cwrap("lottie_buffer","number",["number"]),render:Module.cwrap("lottie_render","",["number","number"]),loadFromData:Module.cwrap("lottie_load_from_data","number",["number","number"])},e()}}),i=new Map;var c;c={init:async function(e,r,t,n,o,c){s||await a;const u=JSON.stringify(r),d=allocate(intArrayFromString(u),"i8",0),l=s.init(),f=s.loadFromData(l,d);s.resize(l,t,t),i.set(e,{imgSize:t,reduceFactor:o,handle:l}),c(Math.ceil(f/o))},renderFrames:async function(e,r,t,n){s||await a;const{imgSize:o,reduceFactor:c,handle:u}=i.get(e);for(let e=r;e<=t;e++){const r=e*c;s.render(u,r);const t=s.buffer(u),a=Module.HEAPU8.subarray(t,t+o*o*4);n(e,new Uint8ClampedArray(a).buffer)}},destroy:function(e){const r=i.get(e);s.destroy(r.handle),i.delete(e)}},onmessage=async e=>{const{data:r}=e;switch(r.type){case"callMethod":{const{messageId:e,name:t,args:s}=r;try{if(e){const r=(...r)=>{const t=r[r.length-1];o({type:"methodCallback",messageId:e,callbackArgs:r},t instanceof ArrayBuffer?[t]:void 0)};n.set(e,r),s.push(r)}const[r,a]=await c[t](...s)||[];e&&o({type:"methodResponse",messageId:e,response:r},a)}catch(r){e&&o({type:"methodResponse",messageId:e,error:{message:r.message}})}e&&n.delete(e);break}case"cancelProgress":{const e=n.get(r.messageId);e&&(e.isCanceled=!0);break}}}}]);
//# sourceMappingURL=30698ade0df9ca0b7d51.worker.js.map
//# sourceMappingURL=35d6878a15bb47505e36.worker.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/8.0f335b3262096195e347.js vendored Normal file
View File

@ -0,0 +1,2 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{316:function(n,w,a){"use strict";a.r(w);var o=a(311),p=a.n(o);a(314);w.default=p.a}}]);
//# sourceMappingURL=8.0f335b3262096195e347.js.map

View File

@ -1 +1 @@
{"version":3,"sources":["webpack:///./src/lib/croppie.ts"],"names":["Croppie"],"mappings":"0FAAA,oCAGeA,YAAf","file":"8.75df16efec295d79dd82.js","sourcesContent":["import Croppie from 'croppie';\nimport 'croppie/croppie.css';\n\nexport default Croppie;\n"],"sourceRoot":""}
{"version":3,"sources":["webpack:///./src/lib/croppie.ts"],"names":["Croppie"],"mappings":"0FAAA,oCAGeA,YAAf","file":"8.0f335b3262096195e347.js","sourcesContent":["import Croppie from 'croppie';\nimport 'croppie/croppie.css';\n\nexport default Croppie;\n"],"sourceRoot":""}

View File

@ -1,2 +0,0 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{315:function(n,w,a){"use strict";a.r(w);var o=a(310),p=a.n(o);a(313);w.default=p.a}}]);
//# sourceMappingURL=8.75df16efec295d79dd82.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/index.html vendored
View File

@ -1 +1 @@
<!doctype html><html lang="en" translate="no"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="apple-mobile-web-app-capable" content="yes"><link rel="apple-touch-icon" sizes="180x180" href="./apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="./favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="./favicon-16x16.png"><link rel="manifest" href="./site.webmanifest"><link rel="mask-icon" href="./safari-pinned-tab.svg" color="#3a8bf5"><meta name="apple-mobile-web-app-title" content="Telegram T"><meta name="application-name" content="Telegram T"><meta name="msapplication-TileColor" content="#2b5797"><meta name="msapplication-config" content="./browserconfig.xml"><meta name="theme-color" content="#ffffff"><title>Telegram</title><link href="main.c449f9f996c8001abf26.css" rel="stylesheet"></head><body><div id="root"></div><div id="portals"></div><script src="main.06f68f8f23df64b5d8e1.js"></script></body></html>
<!doctype html><html lang="en" translate="no"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="apple-mobile-web-app-capable" content="yes"><link rel="apple-touch-icon" sizes="180x180" href="./apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="./favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="./favicon-16x16.png"><link rel="manifest" href="./site.webmanifest"><link rel="mask-icon" href="./safari-pinned-tab.svg" color="#3a8bf5"><meta name="apple-mobile-web-app-title" content="Telegram T"><meta name="application-name" content="Telegram T"><meta name="msapplication-TileColor" content="#2b5797"><meta name="msapplication-config" content="./browserconfig.xml"><meta name="theme-color" content="#ffffff"><title>Telegram</title><link href="main.c449f9f996c8001abf26.css" rel="stylesheet"></head><body><div id="root"></div><div id="portals"></div><script src="main.30f39d7692fbe2ac267b.js"></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/main.30f39d7692fbe2ac267b.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/main.30f39d7692fbe2ac267b.js.map vendored Normal file

File diff suppressed because one or more lines are too long

4
dist/report.html vendored

File diff suppressed because one or more lines are too long

View File

@ -1,29 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="apple-touch-icon" sizes="180x180" href="../public/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="../public/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="../public/favicon-16x16.png">
<link rel="manifest" href="../public/site.webmanifest">
<link rel="mask-icon" href="../public/safari-pinned-tab.svg" color="#3a8bf5">
<meta name="apple-mobile-web-app-title" content="Telegram T">
<meta name="application-name" content="Telegram T">
<meta name="msapplication-TileColor" content="#2b5797">
<meta name="msapplication-config" content="../public/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<title>Telegram</title>
</head>
<body>
<div id="root"></div>
<script src="./index-perf.tsx"></script>
<!--<script src="./pages/test/testTick.tsx"></script>-->
</body>
</html>

View File

@ -1,38 +0,0 @@
import React, { getGlobal, setGlobal } from './lib/teact/teactn';
import TeactDOM from './lib/teact/teact-dom';
// import './store';
import { Bundles, loadModule } from './util/moduleLoader';
import App from './App';
import './styles/index.scss';
function renderApp() {
return TeactDOM.render(
<App />,
document.getElementById('root'),
);
}
function renderNothing() {
TeactDOM.render(
<div />,
document.getElementById('root'),
);
}
function preloadMainBundle() {
return loadModule(Bundles.Main, 'Main');
}
// getDispatch().init();
// renderApp();
(window as any).perf = {
getGlobal,
setGlobal,
renderApp,
renderNothing,
preloadMainBundle,
};