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 database from '../database'; | |
| import dayjs from 'dayjs'; | |
| import nanoTime from 'nano-time'; | |
| export const isWeekend = (date: string): boolean => { | |
| const day = dayjs(date).day(); | |
| return day === 0 || day === 6; | |
| }; | |
| const CheckSchedule = async () => { |
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 { TableauViz } from "@tableau/embedding-api-react"; | |
| import LayoutDashboard from "../layouts/LayoutDashboard"; | |
| export default function BasicEconomy() { | |
| return ( | |
| <LayoutDashboard> | |
| <div style={{ position: "relative" }}> | |
| <TableauViz | |
| src={import.meta.env.VITE_URL_POHI} | |
| toolbar='hidden' |
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
| { | |
| "status": 200, | |
| "success": true, | |
| "data": [ | |
| { | |
| "title": "500 Single Best Answers in Medicine", | |
| "isbn": "9781444121520", | |
| "asin": "1444121529" | |
| }, | |
| { |
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 axios from 'axios'; | |
| import Cookies from 'js-cookie'; | |
| import constantEndpoint from './constant'; | |
| const apiUrl = import.meta.env.VITE_API_ENDPOINT; | |
| const api = axios.create({ | |
| baseURL: apiUrl + '/' + constantEndpoint.apiVersion, | |
| headers: { | |
| 'X-Requested-With': 'XMLHttpRequest', |
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
| { | |
| "status": 201, | |
| "success": true, | |
| "data": [ | |
| { | |
| "title": "100 Cases in General Practice", | |
| "language": "English", | |
| "genres": [ | |
| "Medical", | |
| "Family & General Practice" |
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 paymentService = new DanaService(); | |
| const orderID = uuid4(); | |
| const dataOrder = { | |
| merchantId: process.env.DANA_MERCHANT_ID, | |
| partnerReferenceNo: orderID, | |
| amount: { | |
| value: '10000', | |
| currency: 'IDR', | |
| }, |
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
| # Base image | |
| FROM oven/bun:1 as base | |
| WORKDIR /usr/src/app | |
| # Install dependencies | |
| FROM base AS install | |
| RUN mkdir -p /temp/dev | |
| COPY package.json bun.lockb /temp/dev/ | |
| RUN cd /temp/dev && bun install |
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 CashierCartTable from '@/components/Pos/CashierCartTable'; | |
| import CashierTableProduct from '@/components/Pos/CashierTableProduct'; | |
| import LayoutApp from '@/layouts/LayoutApp'; | |
| import { CashierService } from '@/services/cashier-service'; | |
| import { Grid } from '@mantine/core'; | |
| import { createColumnHelper } from '@tanstack/react-table'; | |
| import dayjs from 'dayjs'; | |
| import { useEffect, useState } from 'react'; | |
| import { useTranslation } from 'react-i18next'; |
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
| # syntax = docker/dockerfile:1 | |
| # Adjust NODE_VERSION as desired | |
| ARG NODE_VERSION={{ .nodeVersion }} | |
| FROM node:${NODE_VERSION}-slim as base | |
| LABEL fly_launch_runtime="{{ .runtime }}" | |
| # {{ .runtime }} app lives here | |
| WORKDIR /app |
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 { defineConfig } from 'vite'; | |
| import react from '@vitejs/plugin-react'; | |
| import path from 'path'; | |
| export default defineConfig({ | |
| plugins: [ | |
| react(), | |
| ], | |
| resolve: { | |
| alias: { |
NewerOlder