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
| export interface OrderDetails { | |
| id: string; | |
| noOrder: string; | |
| idCustomer: string; | |
| customerName: string; | |
| address: string; | |
| idCafe: string; | |
| paymentMethod: string; | |
| totalPrice: number; | |
| fee: number; |
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 {View, Text, TouchableOpacity} from 'react-native'; | |
| import React, {useState} from 'react'; | |
| import {HelpIcon} from '../../../../../components/Icons/IconsGeneral'; | |
| import {color, fontWeight, fontSize} from '../../../../../lib/theme'; | |
| import { | |
| formatNumber, | |
| formatNumberRemoveNegative, | |
| } from '../../../../../lib/utils/formatter/formatNumber'; | |
| import ShimmerLoader from '../../../../../components/UI/Loader/ShimmerLoader'; | |
| import {SummaryReportData} from '../../../../../types/report/reportType'; |
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
| // TableReservation.tsx | |
| import React, {useState, useRef, useEffect, useContext} from 'react'; | |
| import { | |
| View, | |
| Text, | |
| ScrollView, | |
| TouchableOpacity, | |
| Alert, | |
| NativeSyntheticEvent, | |
| NativeScrollEvent, |
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
| /* eslint-disable react-native/no-inline-styles */ | |
| import {Text} from 'react-native'; | |
| import React, {useContext, useState} from 'react'; | |
| import PopupModal from '../../../../../../components/UI/Modal/PopupModal'; | |
| import ButtonSubmit from '../../../../../../components/UI/Button/ButtonSubmit'; | |
| import {fontWeight, fontSize} from '../../../../../../lib/theme'; | |
| import FastImage from 'react-native-fast-image'; | |
| import {ImgIllust} from '../../../../../../assets/assets-path/img/illust'; | |
| import {PrinterCategory} from '../../../../../../types/setting/printerEnum'; | |
| import AsyncStorage from '@react-native-async-storage/async-storage'; |
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 {PermissionsAndroid, Platform} from 'react-native'; | |
| import {ToastMessage} from '../../components/UI/Toast/ToastMessage'; | |
| import DeviceInfo from 'react-native-device-info'; | |
| import {formatDate} from './formatter/formatDate'; | |
| import {SummaryReportData} from '../../models/reportModels'; | |
| import XLSX from 'xlsx'; | |
| import RNFS from 'react-native-fs'; | |
| export const generateExcel = async ({ | |
| data, |
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
| { | |
| // Open json editor for settings | |
| "workbench.settings.editor": "json", | |
| // Font | |
| "editor.fontFamily": "Dank Mono, Monolisa", | |
| "scm.inputFontFamily": "Dank Mono, Monolisa", | |
| "terminal.integrated.fontFamily": "Dank Mono, Monolisa", | |
| "chat.editor.fontFamily": "Dank Mono, Monolisa", | |
| "debug.console.fontFamily": "Dank Mono, Monolisa", |
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
| <?php | |
| // Remove Global CSS | |
| function remove_global_css() { | |
| remove_action( 'wp_enqueue_scripts', 'wp_enqueue_global_styles' ); | |
| remove_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' ); | |
| } | |
| add_action( 'init', 'remove_global_css' ); | |
| // Remove Gutenberg Block Library CSS from loading on the frontend | |
| function remove_wp_block_library_css(){ |
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
| # Run this app with `python app.py` and | |
| # visit http://127.0.0.1:8050/ in your web browser. | |
| # Importing Packages | |
| from dash import Dash, html, dash_table, Input, Output, callback | |
| import plotly.express as px | |
| import pandas as pd | |
| # Tailwind CSS | |
| external_script = ["https://tailwindcss.com/", {"src": "https://cdn.tailwindcss.com"}] |
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
| <?php | |
| class GoogleTranslate | |
| { | |
| /** | |
| * @param string $source | |
| * @param string $target | |
| * @param string $text | |
| * @return string | |
| */ |
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
| <?php | |
| //Simple function for Beta Plugin soon will be packages | |
| function ktgc_getNumber($title){ | |
| preg_match('/Episode(.*)/',$title, $matches); | |
| return explode(' ',$matches[1])[1]; | |
| } | |
| function ktgc_single_content($url,$host,$key) { | |
| $king = getPagec('https://app.kinggrabber.com/api/v1/host/'.$host.'/?url='.$url,$key); | |
| $json = json_decode($king); | |
| if($json->code == 200 && $json->title != ''){ |
NewerOlder