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 'package:biocidalmobile/components/bio_text_form_field.dart'; | |
import 'package:flutter/material.dart'; | |
class BioLoginForm extends StatefulWidget { | |
const BioLoginForm({super.key}); | |
@override | |
BioLoginFormState createState() { | |
return BioLoginFormState(); | |
} |
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
const openCartBtn = document.querySelector(".open-cart"); | |
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"); | |
const checkoutTotal = document.querySelector(".checkout-total"); | |
const itemTotal = document.querySelector(".item-total"); | |
const cartContent = document.querySelector(".cart-content"); |
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 { ChangeDetectionStrategy, Component, HostListener, Inject, OnInit, OnDestroy } from '@angular/core'; | |
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; | |
import { Observable, tap } from 'rxjs'; | |
import { InsectInfoDialogQuery } from '@generated-types'; | |
import { InsectService } from '@app/services/insect.service'; | |
export interface InsectInfoDialogData { | |
id: string; | |
} |
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{ Component, Input, OnInit } from ‘@angular/core’; | |
@Component({ | |
selector: ‘app-dumb’, | |
templateUrl: ‘./dumb.component.html’, | |
styleUrls: [‘./dumb.component.css’] | |
}) | |
export class DumbComponent implements OnInit { | |
@Input(‘car’) car: Car[]; | |
constructor() { } | |
ngOnInit() { |
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
const now = new Date(); | |
const scheduledDate = new Date(this.element.scheduledDate); | |
const diff = scheduledDate.getTime() - now.getTime(); | |
diff < 0 ? (this.showWarningColor = true) : (this.showWarningColor = false); |
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 { Pipe, PipeTransform } from '@angular/core'; | |
import * as moment from 'moment'; | |
import 'moment/locale/tr'; | |
@Pipe({ | |
name: 'humanReadableDate', | |
}) | |
export class HumanReadableDatePipe implements PipeTransform { | |
transform(date: Date) { | |
const now = moment(); |
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
@Entity() | |
@ObjectType() | |
export class Foo extends BaseEntity { | |
@PrimaryGeneratedColumn('uuid') | |
@Field(() => ID) | |
id: string; | |
@Column() | |
@Field() | |
title: string; |
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
<div id="slider" class="relative flex-col justify-center items-center pt-5" x-data="slider(6000)"> | |
<div class="relative overflow-hidden rounded shadow"> | |
<!-- progress bar --> | |
<div id="slider-progress-bar" class="block h-4 bg-indigo-400"></div> | |
<!-- item 1 --> | |
<div x-show="active === 1" data-slider-item> | |
<div class="text-white font-bold absolute text-4xl bottom-1 right-1">1 / 3</div> | |
<img src="https://images.unsplash.com/photo-1438761681033-6461ffad8d80?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1520&q=80" | |
loading="lazy" alt=""> | |
<div class="text-white font-bold absolute text-4xl bottom-1 left-1">Caption Text 1</div> |