This file contains 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
<mat-icon svgIcon="marker" [ngStyle]="{ 'color': 'red' }">marker</mat-icon> |
This file contains 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
Show hidden characters
{ | |
"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'. */ |
This file contains 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
// 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"); |
This file contains 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 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 = '****'; |
This file contains 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 { 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], |
This file contains 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
findRole({ routeRoles, userRoles }: FindRoleFn): boolean { | |
return userRoles.some((val) => { | |
return routeRoles.indexOf(val) >= 0; | |
}); | |
} |
This file contains 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
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 |
This file contains 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
// tabloları senkronize et. function olarak uuid-ossp ekle. | |
// transfer ekranında diğer functionları pas geç. | |
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; |
This file contains 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
[Unit] | |
Description=apollo.service | |
After=network.target | |
[Service] | |
User=root | |
Group=root | |
ExecStart=/bin/bash -c 'source /root/.nvm/nvm.sh && nvm use v16.20.2 && cd /var/www/server && yarn start' | |
Environment=NODE_ENV=production | |
StandardOutput=syslog |
This file contains 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
removeInsect(insect: Insect): Insect[] { | |
console.log(insect); | |
const index = this.insects.indexOf(insect); | |
console.log(index); | |
if (index >= 0) { | |
this.insects.splice(index, 1); | |
console.log(this.insects); | |
} | |
this.biocidalForm.patchValue({ insects: this.insects }); | |
return this.insects; |