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 path = require('path'); | |
const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
module.exports = { | |
entry: ['./src/main.ts', './src/scss/styles.scss' ], | |
output: { | |
filename: 'main.js', | |
path: path.resolve(__dirname, 'dist') | |
}, | |
resolve: { |
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, ElementRef, Input, OnChanges } from '@angular/core'; | |
import * as d3 from 'd3'; | |
@Component({ | |
selector: 'app-line-chart', | |
templateUrl: './line-chart.component.html', | |
styleUrls: ['./line-chart.component.scss'] | |
}) | |
export class LineChartComponent implements OnChanges { | |
@Input() public data: { value: number, date: 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
[ | |
{ | |
"value": 20, | |
"date": "2020-05-12T12:19:00+00:00" | |
}, | |
{ | |
"value": 50, | |
"date": "2020-05-14T12:19:00+00:00" | |
}, | |
{ |
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
export default { | |
data: [ | |
{"name":"mediaman.com/"}, | |
{"name":"mediaman.com/leistungen/digitale-beratung"}, | |
{"name":"mediaman.com/leistungen/data-sprint"}, | |
{"name":"mediaman.com/leistungen/data-ideation-workshop"}, | |
{"name":"mediaman.com/agentur"}, | |
{"name":"mediaman.com/jobs"}, | |
{"name":"mediaman.com/datenschutzhinweise"}, | |
{"name":"mediaman.com/impressum"}, |
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 cheerio = require('cheerio'); | |
const request = require('request'); | |
const fs = require('fs'); | |
const crawledPages = []; | |
const crawledPagesData = []; | |
let foundPages = []; | |
let index = 0; | |
const domain = process.argv[2]; |
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
/** | |
* BLOCK: media-text-teaser | |
* | |
* Registering a basic block with Gutenberg. | |
* Simple block, renders and saves the same content without any interactivity. | |
*/ | |
import React from 'react'; | |
import { Toolbar } from '@wordpress/components'; | |
// Import CSS. | |
import './editor.scss'; |
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
module.exports = { | |
"env": { | |
"browser": true, | |
"node": true | |
}, | |
"extends": [ | |
"plugin:@typescript-eslint/eslint-recommended", | |
"plugin:@typescript-eslint/recommended" | |
], | |
"globals": {}, |