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 { Button } from "antd"; | |
| import { FC, useState } from "react"; | |
| import { VscClose, VscRefresh } from "react-icons/vsc"; | |
| import { ButtonIconWrapper } from "../components/button_icon_wrapper"; | |
| import { NoData } from "../components/no_data"; | |
| // https://codepen.io/lukerazor/pen/GVBMZK | |
| export const BonPage: FC = () => { | |
| const [listDragging, setListDragging] = useState<boolean>(false); |
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 { run } from "formula"; | |
| enum RumusType { | |
| OPERATOR, | |
| VARIABLE, | |
| FIXEDVALUE, | |
| } | |
| interface Rumus { | |
| urutan: 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
| export const getSelectedQueryGql = (obj: GraphQLResolveInfo) => { | |
| let result: GQLSelectedField = { | |
| field: [], | |
| relationship: [], | |
| } | |
| const gqlObject: any = obj.returnType | |
| const fields = gqlObject._fields | |
| for (const key in fields) { | |
| if (fields[key].type instanceof GraphQLScalarType) { |
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
| // Demo : https://codesandbox.io/s/test-drag-with-handler-forked-vurlfx?file=/src/App.tsx | |
| import React, { useEffect, useState } from "react"; | |
| interface model { | |
| name: string; | |
| hover: boolean; | |
| } | |
| interface category { | |
| name: 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
| void main() { | |
| Map<String, String> params = { | |
| 'test': 'test', | |
| 'siap': 'ready' | |
| }; | |
| String url = 'http://domain.com'; | |
| int indexP = 0; | |
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 { | |
| ExtractModelRelations, | |
| LucidModel, | |
| ModelObject, | |
| ModelQueryBuilderContract, | |
| RelationQueryBuilderContract, | |
| } from '@ioc:Adonis/Lucid/Orm' | |
| import PaginationHelper from 'App/Helpers/PaginationHelpers' | |
| import { ResponseContract } from '@ioc:Adonis/Core/Response' | |
| // import Profile from 'App/Models/Profile' |
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 Application from '@ioc:Adonis/Core/Application' | |
| import fs from 'fs' | |
| export default class CacheService { | |
| private jsonPath: string | |
| public static initialize(key: string): CacheService { | |
| const instance = new CacheService() | |
| instance.jsonPath = `${Application.tmpPath('cache')}/${key}.json` | |
| return instance |
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 'package:bbd_client_manager/components/Global/Tab.dart'; | |
| import 'package:bbd_client_manager/components/Transaksi/Detail/v2/header_component.dart'; | |
| import 'package:bbd_client_manager/components/Transaksi/Detail/v2/info_pengiriman_component.dart'; | |
| import 'package:bbd_client_manager/components/Transaksi/Detail/v2/info_pesanan_component.dart'; | |
| import 'package:bbd_client_manager/pages/transaksi/v2/detail/daftar_item_part.dart'; | |
| import 'package:bbd_client_manager/pages/transaksi/v2/detail/daftar_pembayaran_part.dart'; | |
| import 'package:bbd_client_manager/pages/transaksi/v2/detail/daftar_pengeluaran_part.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'dart:math' as math; |
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 { HttpContext } from '@adonisjs/http-server/build/standalone' | |
| import UnAuthorized from 'App/Exceptions/UnAuthorizedException' | |
| const message = 'You are not authorized' | |
| const status = 403 | |
| const errorCode = 'E_UNAUTHORIZED' | |
| function CheckRole(permitted: string[]) { | |
| return function (target: Object, propertyKey: string, descriptor: PropertyDescriptor) { | |
| const current = descriptor.value |
NewerOlder