This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type BridgeMessage = { | |
| request: AppRequest<RpcMethod>; | |
| from: string; | |
| eventId: string; | |
| }; | |
| type OpenParams = { | |
| connections: IConnectedAppConnection[]; | |
| onOpen: TonConnectSSEBridgeService['onOpen']; | |
| onMessage: TonConnectSSEBridgeService['onMessage']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const LoginForm: React.FC = () => { | |
| const [username, setUsername] = useState(''); | |
| const [password, setPassword] = useState(''); | |
| const [loading, setLoading] = useState(false); | |
| const [error, setError] = useState<string | null>(null); | |
| const handleSubmit = async (e: React.FormEvent) => { | |
| e.preventDefault(); | |
| setLoading(true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const result = pairs | |
| .filter(({ key, value }) => key && value) | |
| .reduce((urlSearchParams, pair) => { | |
| urlSearchParams.append(pair.key, pair.value); | |
| return urlSearchParams; | |
| }, new URLSearchParams()); | |
| const encoded = base64url.encode(result.toString()); | |
| const link = `https://t.me/${botName}/start?startapp=v2-${encoded}`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://tonapi.io/v2/rates?tokens=UQAs8RxQEd6Ud7C5EAeBbn0gbnFD9NxgHXNPDEzPB454lmAE%2CUQCJPxZMbFCe0DfaCaDG9yJaBNHRoIwQp6rWLBGLf7lDPBZ5%2CUQBina_pwInvvsaIrFGOJBPWt8fA4kx-aAkrX2t2p9sCGOT6%2CUQBGwBKa75GNk3WFMW4_4px8mP9wBEDQf52NEGi13-LMHPHd%2CUQBQaem_C2ty4YzIvQEUJjwlbOyAC-iQvTxHxcnxJK8031xB%2CUQCW-f8pz0htcY9wd4LxsXcXUUrrWITc2q-YkDkZm7ehz1ds%2CUQCBdxpECfEPH2wUxi1a6QiOkSf-5qDjUWqLCUuKtD-GLN6W%2CUQBJnyfpBB62iPgXei0DiijXNt4y7ZyxDCurFoj6OMK61YJA%2CUQAeemfxxY6hJuGxhtV0eFAzsXEhmQ72MgPASCy_wl_9Y9Kp%2CUQDA_ckBhjqEhEMaPAGKGHh6VbiIExvBfIB0YWzYmEEtunsX%2CUQCF5Hl0WWZRQ8c5RLLGS6fLm95NVxxpT1eM6Rpz8Nps_Iwa%2CUQCweXSZaX5k5xOtXLbGgfF8FY6Dbg6rNiPrd9d0f_-kDXwc%2CUQCeMMD9zooC-7sh22Dc9Q3s4Ld_rzAWJxyG-AvJF8Ottnmm%2CUQCyDhcASwIm8-eVVTzMEESYAeQ7ettasfuGXUG1tkDwVMsZ%2CUQAhRC_oZ4B9VgMltfNkENSdLktlMADPE73zIiIcL6es2tM7%2CUQDuXM-pNZyQk_aSXa6AC84ACetKR_GOIJdF6WGoU-YBW0Ss%2CUQD_KpO2-iFeHPT4dF0ur9E0iAFts2fwhpR2KjwAmYKpcZYC%2CUQCMDE8Ffe-40QGryoSyazN_YlCHr-Hp_oc3-duz2GsaW7I1%2CUQBynBO23ywHy_CgarY9NK9FTz0yDsG82PtcbSTQgGoXwnZF%2CUQBBgomUNcKGcohTXVq0e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {{ config(materialized = 'table') }} | |
| WITH | |
| sku_list AS ( | |
| SELECT DISTINCT | |
| item_code, | |
| process_definition_key, | |
| FROM | |
| {{ ref('stg_gsheets__sku_for_tickets') }} | |
| ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const localStorageMapping = { | |
| newNav: 'isNewNavEnabled', | |
| expenses: 'isExpensesEnabled', | |
| reports: 'isReportsEnabled', | |
| }; | |
| export function storeQueryFeatureFlags() { | |
| const params = new URLSearchParams(window.location.search); | |
| Object.entries(localStorageMapping).forEach(([key, value]) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let sessionId = 'global'; | |
| export const init = (val: string | number) => { | |
| sessionId = String(val); | |
| }; | |
| class KeyStorage { | |
| key: string | number; | |
| root: boolean; | |
| json: boolean; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div class="Comments"> | |
| <div | |
| v-infinite-scroll="showMore" | |
| infinite-scroll-disabled="moreDisabled" | |
| infinite-scroll-distance="100" | |
| class="Comments-tree" | |
| > | |
| <CommentList | |
| :comments="commentTree" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div class="Comments"> | |
| <CommentList | |
| :comments="commentTree" | |
| /> | |
| <Container class="Comments-adContainer"> | |
| <AdBlock /> | |
| </Container> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| import { observer } from 'mobx-react'; | |
| import Dropzone from 'react-dropzone'; | |
| import HoverDragZone from 'components/HoverDragZone'; | |
| import Modal from 'components/Modal'; | |
| import LoadIndicator from 'components/LoadIndicator'; | |
| import TextareaAutosize from 'react-autosize-textarea'; | |
| import lazy from 'hocs/lazy'; | |
| import { makeClassName } from 'utils'; | |
| import "./style.scss"; |
NewerOlder