Добавили динамический импорт Telegram Web App SDK с помощью import(), чтобы он загружался только на клиенте Добавили состояние загрузки и компонент Spinner для лучшего UX Исправили типы в компонентах: Используем IShopItem вместо собственного интерфейса ShopItem Создали тип SafeUser, который исключает свойства mongoose Document из типа пользователя Добавили безопасную проверку на наличие пользователя в данных Telegram WebApp
27 lines
1.2 KiB
JavaScript
27 lines
1.2 KiB
JavaScript
"use strict";
|
|
/*
|
|
* ATTENTION: An "eval-source-map" devtool has been used.
|
|
* This devtool is neither made for production nor for readable output files.
|
|
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
|
|
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
* or disable the default devtool with "devtool: false".
|
|
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
*/
|
|
self["webpackHotUpdate_N_E"]("webpack",{},
|
|
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
|
/******/ /* webpack/runtime/get javascript chunk filename */
|
|
/******/ !function() {
|
|
/******/ // This function allow to reference async chunks
|
|
/******/ __webpack_require__.u = function(chunkId) {
|
|
/******/ // return url for filenames based on template
|
|
/******/ return "static/chunks/" + chunkId + ".js";
|
|
/******/ };
|
|
/******/ }();
|
|
/******/
|
|
/******/ /* webpack/runtime/getFullHash */
|
|
/******/ !function() {
|
|
/******/ __webpack_require__.h = function() { return "2587a51349249c58"; }
|
|
/******/ }();
|
|
/******/
|
|
/******/ }
|
|
); |