View typeorm-conditional-query.resolver.ts
@Authorized() | |
@Query(() => [Coordinate]) | |
async coordinates( | |
@Arg('filter') filter: CoordinateFilterInput, | |
): Promise < Coordinate[] > { | |
console.log(filter); | |
const query = await getConnection().createQueryBuilder(Coordinate, 'coordinate'); |
View border.scss
.used-biocidal-box { | |
border: 1px solid #dddfe2; | |
padding: 10px 10px; | |
font-family: 'SF UI Display', sans-serif; | |
font-size: 14px; | |
} | |
.used-biocidal-box:not(:first-child) { | |
border-top: none; | |
} |
View current.component.html
<mat-icon svgIcon="marker" [ngStyle]="{ 'color': 'red' }">marker</mat-icon> |
View postgres.config
// tabloları senkronize et. function olarak uuid-ossp ekle. | |
// transfer ekranında diğer functionları pas geç. | |
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; |
View sms.ts
import Nexmo from 'nexmo'; | |
export function sendSms(sender: string, recepient: string, message: string): void { | |
const nexmo = new Nexmo({ | |
apiKey: '****', | |
apiSecret: '*****', | |
}); | |
// const sender = 'Vonage APIs'; | |
// const recepient = '****'; |
View tsconfig.json
{ | |
"compilerOptions": { | |
/* Basic Options */ | |
// "incremental": true, /* Enable incremental compilation */ | |
"target": "esnext", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ | |
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ | |
"lib": ["esnext", "esnext.asynciterable"], /* Specify library files to be included in the compilation. */ | |
// "allowJs": true, /* Allow javascript files to be compiled. */ | |
// "checkJs": true, /* Report errors in .js files. */ | |
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ |
View shoping-cart.js
// variables | |
const cartBtn = document.querySelector(".cart-btn"); | |
const closeCartBtn = document.querySelector(".close-cart"); | |
const clearCartBtn = document.querySelector(".clear-cart"); | |
const cartDOM = document.querySelector(".cart"); | |
const cartOverlay = document.querySelector(".cart-overlay"); | |
const cartItems = document.querySelector(".cart-items"); | |
const cartTotal = document.querySelector(".cart-total"); // cart totals | |
const cartContent = document.querySelector(".cart-content"); | |
// const productsDOM = document.querySelector(".products-center"); |
View app.routing.module.ts
import { NgModule } from '@angular/core'; | |
import { RouterModule, Routes } from '@angular/router'; | |
import { AuthorizedUserRouteGuard } from '@guards/authorized-user-route.guard'; | |
import { AuthRouteGuard } from '@guards/auth-route.guard'; | |
const routes: Routes = [ | |
{ | |
path: 'admin/depos', | |
loadChildren: () => import('@app/modules/admin/depos/depos.module').then(m => m.DeposModule), | |
canActivate: [AuthRouteGuard], |
View startWith.ts
startWith(str: string, url: string): boolean { | |
const patt = new RegExp('(' + str +')'); | |
const res = patt.test(url); | |
return res; | |
} | |
this.startWith('/admin/depos/update', event.url) | |
// str: '/admin/depos/update' | |
// event.url: /admin/depos/update/3016599b-f0a1-4520-b42b-7f234a008849 |
NewerOlder