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, OnInit } from '@angular/core'; | |
import { Router, ActivatedRoute } from '@angular/router'; | |
import { MatSnackBar } from '@angular/material/snack-bar'; | |
import { BookOfflineService } from '../services/book-offline.service'; | |
import { filter, takeUntil } from 'rxjs/operators'; | |
import { ReplaySubject } from 'rxjs'; | |
import { OnlineOfflineService } from '../services/online-offline.service'; | |
import { BackendService } from '../services/backend.service'; | |
import { Book } from '../books/books.component'; |
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 { Injectable } from '@angular/core'; | |
import Dexie from 'dexie'; | |
import { Book } from '../books/books.component'; | |
import { OnlineOfflineService } from './online-offline.service'; | |
import { v1 as uuidv1 } from 'uuid'; // For generating time-based uuid | |
import { BackendService } from './backend.service'; | |
import { MatSnackBar } from '@angular/material/snack-bar'; | |
import { Subject } from 'rxjs'; | |
import { take } from 'rxjs/operators'; |
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, OnInit } from '@angular/core'; | |
import { MatDialog } from '@angular/material/dialog'; | |
import { BookDetailDialogComponent } from '../book-detail-dialog/book-detail-dialog.component'; | |
import { BackendService } from '../services/backend.service'; | |
import { BookOfflineService } from '../services/book-offline.service'; | |
import { OnlineOfflineService } from '../services/online-offline.service'; | |
import { ReplaySubject } from 'rxjs'; | |
import { takeUntil } from 'rxjs/operators'; | |
export interface Book { |
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 { Injectable } from '@angular/core'; | |
import Dexie from 'dexie'; | |
import { Book } from '../books/books.component'; | |
import { OnlineOfflineService } from './online-offline.service'; | |
import { BackendService } from '../services/backend.service'; | |
import { MatSnackBar } from '@angular/material/snack-bar'; | |
@Injectable({ | |
providedIn: 'root' |
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
{ | |
"name": "module8", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"build": "tsc && cp ./src/.env ./public", | |
"copyViews": "cp -R src/views public" | |
}, | |
"keywords": [], |
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
{ | |
"name": "book-store", | |
"version": "0.0.0", | |
"scripts": { | |
"ng": "ng", | |
"start": "ng serve", | |
"build": "ng build", | |
"test": "ng test", | |
"lint": "ng lint", | |
"e2e": "ng e2e" |
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
{% extends "base.html" %} | |
{% block header %} | |
<h2 class="page-section-heading text-center text-uppercase text-secondary mb-0">{{ title }}</h2> | |
{% endblock header %} | |
{% block main%} | |
<!-- Main Content --> | |
<h4 class="text-center text-uppercase text-secondary mb-0" style="padding-bottom: 1rem;">{{ context.card_type }} : {{ context.card_number }}</h4> |
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
from django.shortcuts import render | |
from . import forms, models | |
from django.core.exceptions import ValidationError | |
from django.http import HttpResponseRedirect | |
import sys | |
# Create your views here. | |
def pay(request): | |
pmt_method_dict = models.fetch_all_pmt_methods_process() |
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
{% extends "base.html" %} | |
{% block header %} | |
<h2 class="page-section-heading text-center text-uppercase text-secondary mb-0">{{ title }}</h2> | |
{% endblock header %} | |
{% block main%} | |
<!-- Main Content --> | |
{% if action == 'EDIT_SUCCESSFULL' %} |
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
from django.shortcuts import render | |
from . import forms, models | |
from django.core.exceptions import ValidationError | |
from django.http import HttpResponseRedirect | |
import sys | |
# Create your views here. | |
def add_song(request): |
NewerOlder