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 { useMutation, useQuery, UseQueryOptions } from '@tanstack/react-query'; | |
import { trimStart } from 'lodash'; | |
import { parseTemplate } from 'url-template'; | |
import { queryClient } from '.'; | |
import axios from '../../config/axios'; | |
const makeQueryKey = (pathOrPaths?: string[] | string) => { | |
if (!pathOrPaths) { | |
return []; | |
} |
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
@Injectable() | |
export class SkalinTrackingService { | |
private collectClient: AxiosInstance; | |
constructor( | |
@InjectRepository(Manager) | |
private readonly managerRepository: Repository<Manager>, | |
) { | |
this.collectClient = Axios.create({ | |
baseURL: 'https://collect.skalin.io', | |
headers: { |
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
{ | |
"name": "Gitlab release notes", | |
"nodes": [ | |
{ | |
"parameters": {}, | |
"name": "Start", | |
"type": "n8n-nodes-base.start", | |
"typeVersion": 1, | |
"position": [ | |
440, |
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 * as winston from 'winston'; | |
import * as WebSocket from 'ws'; | |
import Config from './config'; | |
import Database from './database'; | |
import GameEngine from './gameengine'; | |
import { | |
ErrorCode, | |
EventType, | |
IBonus, | |
IEvent, |
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 Config from "./config"; | |
import { IHash } from "./models/hash"; | |
import { IItemModel, ItemModel } from "./models/item"; | |
import sharp = require("sharp"); | |
import S3 = require('aws-sdk/clients/s3'); | |
import { rejects } from "assert"; | |
class PictureLibrary { | |
async resizeAndSave(filePath: string, item: IItemModel) { |