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
#!/bin/bash | |
echo "Switch version by Chnirt"; | |
# * node v16.14.2 | |
# * ruby 3.1.2 | |
# * cocoapod 1.11.3 | |
node_version_default=16.14.2 | |
ruby_version_default=3.1.2 |
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, useEffect, useContext} from 'react'; | |
import Realm from 'realm'; | |
const HomeServiceSchema = { | |
name: 'HomeService', | |
properties: { | |
channel_url: 'string', | |
channel_image: 'string', | |
channel_type: 'string', | |
channel_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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions | |
// - XState (all XState exports) |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions | |
// - XState (all XState exports) |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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 { Module } from '@nestjs/common'; | |
import { AppController } from './app.controller'; | |
import { AppService } from './app.service'; | |
import { GraphQLModule } from '@nestjs/graphql'; | |
import { UserModule } from './user/user.module'; | |
import { TypeOrmModule } from '@nestjs/typeorm'; | |
import { join } from 'path'; | |
@Module({ | |
imports: [ |
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 { Injectable } from '@nestjs/common'; | |
import { UserInput } from './user.input'; | |
import { InjectRepository } from '@nestjs/typeorm'; | |
import { User } from './user.entity'; | |
import { MongoRepository } from 'typeorm'; | |
import * as uuid from 'uuid'; | |
@Injectable() | |
export class UserService { | |
constructor( |
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 { Resolver, Query, Mutation, Args } from '@nestjs/graphql'; | |
import { UserService } from './user.service'; | |
import { User } from './user.entity'; | |
import { UserInput } from './user.input'; | |
@Resolver('User') | |
export class UserResolver { | |
constructor(private readonly userService: UserService) {} | |
@Query(() => 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 { Module } from '@nestjs/common'; | |
import { UserResolver } from './user.resolver'; | |
import { UserService } from './user.service'; | |
import { TypeOrmModule } from '@nestjs/typeorm'; | |
import { User } from './user.entity'; | |
@Module({ | |
imports: [TypeOrmModule.forFeature([User])], | |
providers: [UserResolver, UserService], | |
}) |
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 class UserInput { | |
username: string; | |
password: string; | |
} |