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
/* eslint-disable @typescript-eslint/no-explicit-any */ | |
/* eslint-disable no-extra-semi */ | |
/* eslint-disable @typescript-eslint/no-var-requires */ | |
import "zone.js/node"; | |
import { ngExpressEngine } from "@nguniversal/express-engine"; | |
import * as express from "express"; | |
import { join } from "path"; | |
import { AppServerModule } from "./src/main.server"; |
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": "az-b2c-app-demo", | |
"main": "dist/server/index.js", | |
"version": "0.1.0", | |
"private": true, | |
"engines": {"node": "16"}, | |
"scripts": { | |
"dev:client": "next src/client", | |
"dev:server": "babel src/server --out-dir dist/server --source-maps --watch", | |
"dev": "npm run dev:client & npm run dev:server", |
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 { Status, Wrapper } from '@googlemaps/react-wrapper'; | |
import { useContext } from 'react'; | |
import LocationContext from '../../context/locationContext'; | |
import Address from '../AddressDetails'; | |
import SearchBar from '../SearchBar'; | |
import './location.css'; | |
const Location = () => { | |
const { | |
latitude, |
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 multer from "multer"; | |
/** | |
* For local directory | |
*/ | |
const storage = multer.diskStorage({ | |
destination: (req, file, cb) => { | |
cb(null, 'uploads'); | |
}, | |
filename: (req, file, cb) => { |
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
/** @type {import('tailwindcss').Config} */ | |
const colors = require('./themeColor'); | |
module.exports = { | |
content: [ | |
"./src/**/*.{js,jsx,ts,tsx}", | |
], | |
presets: [ | |
require('./tailwind.preset.js') |
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 { Container } from 'react-bootstrap'; | |
import Footer from './components/organisms/Footer'; | |
import Layout from './components/organisms/Layout'; | |
import { useReducer } from 'react'; | |
import { IPlaceThemeProvider, PlaceThemeContext } from './context/ThemeContext'; | |
import ThemeReducer from './context/ThemeReducer'; | |
import './styles/main.scss'; | |
import GlobalStyle from './styles/theme/global'; | |
import { ThemeProvider } from 'styled-components'; | |
import green from './styles/theme/green'; |
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 { APIGatewayEvent } from "aws-lambda"; | |
import { google } from "googleapis"; | |
import request from "request-promise"; | |
import key from "../../config/service-account.json"; | |
export class AnalyticsProvider { | |
private requestBody: any; | |
private requestHeader: any; | |
private request: APIGatewayEvent; |
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
<template> | |
<div class="list"> | |
<mdb-datatable-2 | |
class="list__table" | |
responsive | |
v-model="dataSource" | |
:pagination="false" | |
@selected="selectedData" | |
:footer="false" | |
fixedHeader |
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 axios, { AxiosError, AxiosInstance, AxiosRequestConfig } from "axios"; | |
interface RefreshToken { | |
status: number; | |
data: { | |
hashToken: string; | |
}; | |
} | |
export abstract class HTTPBaseService { |
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 { ScriptStore } from './script-loader'; | |
declare var document: any; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class ScriptService { |
NewerOlder