Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
  
    
      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 { withRetries } from '../utils/retry'; | |
| import { poll } from '../utils/poll'; | |
| export interface OperationHandler<TParams = any, TResponse = any> { | |
| (params: TParams): RequestConfig<TResponse>; | |
| } | |
| export interface RequestConfig<T = unknown> { | |
| method: string; | |
| path: 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
    
  
  
    
  | package contracts | |
| type List []Record | |
| type Record struct { | |
| ID string `gorm:"column:id" json:"id"` | |
| Name string `gorm:"column:name" json:"name"` | |
| StartDate time.Time `gorm:"column:startDate" json:"start_date"` | |
| EndDate time.Time `gorm:"column:endDate" json:"end_date"` | |
| CreatedAt time.Time `gorm:"column:createdAt" json:"created_at"` | 
  
    
      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
    
  
  
    
  | package something | |
| import ( | |
| "encoding/json" | |
| "strconv" | |
| ) | |
| type SomeData struct { | |
| SomeSlice []int `json:"some_slice"` | |
| } | 
  
    
      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
    
  
  
    
  | package intervals | |
| var names = map[string]string{ | |
| "daily": "daily", | |
| "weekly": "weekly", | |
| "monthly": "monthly", | |
| "yearly": "yearly", | |
| } | |
| var singular = map[string]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
    
  
  
    
  | import { createRef, useEffect, useState } from 'react'; | |
| export function useScreenEnter(callback) { | |
| const scrollRef = createRef(); | |
| const loaderRef = createRef(); | |
| const [more, hasMore] = useState(true); | |
| function activate() { | |
| if ( | 
  
    
      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 { useCallback } from 'react'; | |
| import debounce from 'lodash.debounce'; | |
| export function useDebounce(fn: () => void, delay: number) { | |
| const debouncer = debounce(fn, delay); | |
| const start = useCallback(() => { | |
| debouncer(); | |
| }, [debouncer]); | 
  
    
      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 _ from 'lodash'; | |
| import { DateTime } from 'luxon'; | |
| import moment from 'moment-timezone'; | |
| class Base<T> { | |
| params: T; | |
| constructor(params: T) { | |
| this.params = params; | |
| } | 
  
    
      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 Session from 'lib/session'; | |
| const store = { | |
| state: Session.account ? Session.account : null, | |
| reducers: { | |
| setAccount(state, account) { | |
| return account; | |
| } | |
| } | 
  
    
      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, { createContext, useContext, useReducer } from 'react'; | |
| import Log from 'lib/log'; | |
| import _ from 'lodash'; | |
| import stores from './stores'; | |
| const store = createContext(stores.state); | |
| const { Provider } = store; | |
| const StateProvider = ({ children }) => { | 
NewerOlder