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
{ | |
"port": 80, | |
"noindex": true, | |
"readonly": false, | |
"webservice": { | |
"database": "mongodb://localhost/pa11y-webservice", | |
"host": "0.0.0.0", | |
"port": 3000, | |
"cron": "0 30 0 * * *" |
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
it("should handle changeLocale method", () => { | |
const newLocale = "fr"; | |
//Here we have created a component | |
const TestComponent = () => { | |
const { changeLocale } = useI18n(); | |
return ( | |
<button | |
test-id="i18n-test-button" |
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
it("should handle changeLocale method", () => { | |
const newLocale = "fr"; | |
const TestComponent = () => { | |
const { changeLocale } = useI18n(); | |
return ( | |
// eslint-disable-next-line react/button-has-type | |
<button | |
test-id="i18n-test-button" |
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="container" class ="container"> | |
<div class="item item-1"> Item 1 </div> | |
<div class="item item-2"> Item 2 </div> | |
<div class="item item-3"> Item 3 </div> | |
</div> |
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="container" class ="container"> | |
<ul class="items"> | |
<li class="item item-1"> Item 1 </li> | |
<li class="item item-2"> Item 2 </li> | |
<li class="item item-3"> Item 3 </li> | |
</ul> | |
</div> | |
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
{ | |
"standard": "WCAG2AAA", | |
"level": "error", | |
"defaults": { | |
"timeout": 500000, | |
"wait": 2000, | |
"ignore": [] | |
}, | |
"urls": [ | |
{ |
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 React from "react"; | |
import axios from "axios"; | |
const sitemapXml = data => { | |
let latestPost = 0; | |
let projectsXML = ""; | |
data.map(post => { | |
const postDate = Date.parse(post.modified); | |
if (!latestPost || postDate > latestPost) { |
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 { parsed: localEnv } = require('dotenv').config() | |
const withOffline = require('next-offline') | |
const webpack = require('webpack') | |
const withCSS = require('@zeit/next-css') | |
const nextConfig = { | |
generateInDevMode: true, | |
workboxOpts: { | |
// importsDirectory: 'static', // puts workbox in .next/static | |
// importWorkboxFrom: 'local', | |
runtimeCaching: [ |
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
.component('myComponent', react2angular(MyComponent)) |
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
<my-component | |
foo-bar="3" | |
baz="'baz'" | |
></my-component> |
NewerOlder