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
Class static side 'typeof MyApp' incorrectly extends base class static side 'typeof App'. | |
Types of property 'getInitialProps' are incompatible. | |
Type '({ Component, ctx }: any) => Promise<{ pageProps: {}; locale?: undefined; messages?: undefined; initialNow?: undefined; } | { query: any; authtoken: string; isLoggedIn: boolean; locale: any; messages: any; initialNow: number; pageProps?: undefined; } | { ...; }>' is not assignable to type '(context: NextAppContext<Record<string, string | string[] | undefined>, {}>) => Promise<DefaultAppIProps>'. | |
Type 'Promise<{ pageProps: {}; locale?: undefined; messages?: undefined; initialNow?: undefined; } | { query: any; authtoken: string; isLoggedIn: boolean; locale: any; messages: any; initialNow: number; pageProps?: undefined; } | { ...; }>' is not assignable to type 'Promise<DefaultAppIProps>'. | |
Type '{ pageProps: {}; locale?: undefined; messages?: undefined; initialNow?: undefined; } | { query: any; authtoken: string; isLoggedIn: boolean; locale: any; |
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
// Setup nested array | |
var array1 = [[1,2,[3]],4]; | |
// Iterate over the nested array and reduce/concat | |
function flattenArray(arr1) { | |
return arr1.reduce((acc, val) => Array.isArray(val) ? acc.concat(flattenArray(val)) : acc.concat(val), []); | |
} | |
// Run the nested array through our function | |
flattenArray(array1); |
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
body, h1, h2, h3, h4, h5, h6 { | |
color: #fff; | |
} | |
body { | |
margin-top: 0; | |
} | |
body, | |
.content { |
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
(defn get-canvas [] | |
"Returns canvas that will be fullscreened after a click." | |
(let [canvas (.getElementById js/document "article") | |
btnStatusBoard (.getElementById js/document "btnStatusBoard")] | |
(when canvas (.addEventListener btnStatusBoard "click" #(.webkitRequestFullscreen canvas))) | |
canvas)) | |
(dom/button #js {:className "c-button c-button--text" | |
:id "btnStatusBoard" | |
:title (tr "Fullscreen")} |
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
(ns project.ui.style-helpers | |
(:require [om.next :as om :refer-macros [defui]] | |
[om.dom :as dom] | |
[om-css.core :as csc] | |
[garden.core :as g] | |
[garden.stylesheet :as gs] | |
[garden.selectors :as s])) | |
(def ^:once browsers |
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
(ns project.ui.color) | |
(def orange | |
{:50 "#ffcc80" | |
:100 "#ffc16d" | |
:200 "#ffb75c" | |
:300 "#ffad4a" | |
:400 "#fea139" | |
:500 "#ff9800" | |
:600 "#f98d1d" |
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
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
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
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
/* | |
A slightly more automated approach to BEM modifier classes: | |
using '&' parent selector interpolation, modifiers extend their bases, | |
so that HTML markup requires only the modifier class not the base *and* modifier | |
*/ |
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
(ns projectName.core | |
(:require | |
goog.object | |
[om.next :as om :refer-macros [defui]] | |
[om.dom :as dom] | |
[untangled.dom :as udom] | |
)) | |
(defui Root | |
Object |