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 {HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpResponse} from '@angular/common/http'; | |
import {Injectable} from '@angular/core'; | |
import {Observable} from 'rxjs'; | |
import {tap} from "rxjs/operators"; | |
@Injectable() | |
export class CustomInterceptor implements HttpInterceptor | |
{ | |
log = (req: HttpRequest<any>) => tap((res: HttpEvent<any>) => | |
{ |
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 {Component, OnInit, ViewContainerRef} from '@angular/core'; | |
import {TranslateService} from "@ngx-translate/core"; | |
import {ObservableArray} from "tns-core-modules/data/observable-array"; | |
import {Page} from "tns-core-modules/ui/page"; | |
import {BaseComponent} from "~/core/classes/base-component.component"; | |
import {ModalService} from "../../../core/services/modal.service"; | |
import {RoutingService} from "../../../core/services/routing.service"; | |
import {ConfirmComponent} from "../../../shared/components/dialogs/confirm/confirm.component"; | |
@Component({ |
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 {IResponseBase} from "../../../../../core/models/domain/interfaces/i-response"; | |
export interface PtHomepageDataModel extends IResponseBase<ResultHomePageData, any> | |
{ | |
} | |
export interface ResultHomePageData |
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
const getElementsAsync = (async (selector: string, section: ElementHandle | null, propertyName: string, page) => | |
{ | |
let cubes: ElementHandle[] = []; | |
if (section) | |
{ | |
cubes = await section.$$(selector); | |
} | |
else | |
{ |
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
https://www.mutualart.com/Artist/Artur-Alipio-Barrio-de-Sousa-Lopes/D9BCAAB7A1440FC0 | |
https://www.mutualart.com/Artist/Imero-Gobbatto/EFC5D90ECFC7942F | |
https://www.mutualart.com/Artist/Luis-Cuevas/F8E220A318E7A196 | |
https://www.mutualart.com/Artist/Jean-Claude-Mahey/10FD76CA56B67CDD | |
https://www.mutualart.com/Artist/Clifford-Baldwin/B11A1A15B0755750 | |
https://www.mutualart.com/Artist/Chr--F--Beck/0A8F727D09B58A30 | |
https://www.mutualart.com/Artist/Jean-Jules-Louis-Cavailles/9887AB5416F975A9 | |
https://www.mutualart.com/Artist/Josef-Lorenzl/CB908AFC1E8CAD3C | |
https://www.mutualart.com/Artist/Marcantonio-Raimondi/B41F62C6D01366B8 | |
https://www.mutualart.com/Artist/Domenico-di-Pace-Beccafumi/EAAA905D599C7447 |
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 puppeteer, {ElementHandle} from "puppeteer"; | |
(async () => | |
{ | |
const browser = await puppeteer.launch({headless: false}); | |
const page = await browser.newPage(); | |
let url = "https://www.mutualart.com/Artists"; | |
console.log(`Fetching page data for : ${url}...`); | |
await page.goto(url); |
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 puppeteer, {ElementHandle} from "puppeteer"; | |
const getPropAsync = async (elementHandle: ElementHandle, propertyName: string) => | |
{ | |
let href = await elementHandle.getProperty(propertyName); | |
return await (await elementHandle.getProperty(propertyName)).jsonValue(); | |
}; | |
const getElementsAsync = (async (selector: string, section: ElementHandle | null, propertyName: string | null, page) => | |
{ | |
let cubes: ElementHandle[] = []; |
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 puppeteer, {ElementHandle, Page} from "puppeteer"; | |
import {LOGIN_URL, USER} from "./models/consts"; | |
import {IUser} from "./models/i-user"; | |
const getPropAsync = async (elementHandle: ElementHandle, propertyName: string) => | |
{ | |
let href = await elementHandle.getProperty(propertyName); | |
return await (await elementHandle.getProperty(propertyName)).jsonValue(); | |
}; |
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
//Install express server2 | |
import express from 'express'; | |
import * as url from 'url'; | |
const sharp = require('sharp'); | |
var request = require('request'); | |
export {}; | |
var cors = require('cors'); |
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
using System; | |
using Microsoft.EntityFrameworkCore; | |
using Microsoft.EntityFrameworkCore.Metadata; | |
namespace ConsoleApp2.Models | |
{ | |
public partial class MyContext : DbContext | |
{ | |
public MyContext() | |
{ |