diff --git a/.eslintrc.js b/.eslintrc.js index c60266d29..e26cd6534 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -28,7 +28,8 @@ module.exports = { 'new-cap': 0, 'import/no-unresolved': 'error', 'linebreak-style': 0, - 'import/no-named-as-default': 'off' + 'import/no-named-as-default': 'off', + 'import/no-named-as-default-member': 'off' }, settings: { 'import/resolver': { diff --git a/Makefile b/Makefile index dcde36241..a3191ce8a 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ generate: .prefix $(shell npm bin)/webpack --progress --colors --bail generate-dev: .prefix - go-bindata -debug -pkg=server -o=server/bindata.go frontend/templates/ assets/ assets/images/ + go-bindata -debug -pkg=server -o=server/bindata.go frontend/templates/ assets/... $(shell npm bin)/webpack --progress --colors --bail --watch deps: diff --git a/assets/avatar@b3cfa572c321bac1e0bb50bfc9181d5f.svg b/assets/avatar@b3cfa572c321bac1e0bb50bfc9181d5f.svg new file mode 100644 index 000000000..5f867b371 --- /dev/null +++ b/assets/avatar@b3cfa572c321bac1e0bb50bfc9181d5f.svg @@ -0,0 +1 @@ +User Avatar Default \ No newline at end of file diff --git a/assets/fonts/oxygen/Oxygen-Bold.eot b/assets/fonts/oxygen/Oxygen-Bold.eot new file mode 100644 index 000000000..13c06f158 Binary files /dev/null and b/assets/fonts/oxygen/Oxygen-Bold.eot differ diff --git a/assets/fonts/oxygen/Oxygen-Bold.ttf b/assets/fonts/oxygen/Oxygen-Bold.ttf new file mode 100644 index 000000000..835ab0536 Binary files /dev/null and b/assets/fonts/oxygen/Oxygen-Bold.ttf differ diff --git a/assets/fonts/oxygen/Oxygen-Bold.woff b/assets/fonts/oxygen/Oxygen-Bold.woff new file mode 100644 index 000000000..6208faa25 Binary files /dev/null and b/assets/fonts/oxygen/Oxygen-Bold.woff differ diff --git a/assets/fonts/oxygen/Oxygen-Light.eot b/assets/fonts/oxygen/Oxygen-Light.eot new file mode 100644 index 000000000..4cd85cc65 Binary files /dev/null and b/assets/fonts/oxygen/Oxygen-Light.eot differ diff --git a/assets/fonts/oxygen/Oxygen-Light.ttf b/assets/fonts/oxygen/Oxygen-Light.ttf new file mode 100644 index 000000000..08b9fec30 Binary files /dev/null and b/assets/fonts/oxygen/Oxygen-Light.ttf differ diff --git a/assets/fonts/oxygen/Oxygen-Light.woff b/assets/fonts/oxygen/Oxygen-Light.woff new file mode 100644 index 000000000..bc0f9bdaf Binary files /dev/null and b/assets/fonts/oxygen/Oxygen-Light.woff differ diff --git a/assets/fonts/oxygen/Oxygen-Regular.eot b/assets/fonts/oxygen/Oxygen-Regular.eot new file mode 100644 index 000000000..65dceb9ca Binary files /dev/null and b/assets/fonts/oxygen/Oxygen-Regular.eot differ diff --git a/assets/fonts/oxygen/Oxygen-Regular.ttf b/assets/fonts/oxygen/Oxygen-Regular.ttf new file mode 100644 index 000000000..a66ddf1c8 Binary files /dev/null and b/assets/fonts/oxygen/Oxygen-Regular.ttf differ diff --git a/assets/fonts/oxygen/Oxygen-Regular.woff b/assets/fonts/oxygen/Oxygen-Regular.woff new file mode 100644 index 000000000..c38dc5139 Binary files /dev/null and b/assets/fonts/oxygen/Oxygen-Regular.woff differ diff --git a/assets/footer-logo@bd8b92e34e99f955afdd993acf667060.svg b/assets/footer-logo@bd8b92e34e99f955afdd993acf667060.svg new file mode 100644 index 000000000..a3951b63d --- /dev/null +++ b/assets/footer-logo@bd8b92e34e99f955afdd993acf667060.svg @@ -0,0 +1 @@ +Kolide Icon Footer \ No newline at end of file diff --git a/assets/images/.keep b/assets/images/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/assets/images/kolide-login-logo.svg b/assets/images/kolide-logo-text.svg similarity index 99% rename from assets/images/kolide-login-logo.svg rename to assets/images/kolide-logo-text.svg index cd9504422..d0d9294b8 100644 --- a/assets/images/kolide-login-logo.svg +++ b/assets/images/kolide-logo-text.svg @@ -1 +1 @@ -Kolide Float \ No newline at end of file +Kolide Float diff --git a/assets/stylesheets/fonts.css b/assets/stylesheets/fonts.css new file mode 100644 index 000000000..9141e9cbc --- /dev/null +++ b/assets/stylesheets/fonts.css @@ -0,0 +1,29 @@ +@font-face { + font-family: 'Oxygen'; + src: url('/assets/fonts/oxygen/Oxygen-Light.eot'); + src: url('/assets/fonts/oxygen/Oxygen-Light.eot?#iefix') format('embedded-opentype'), + url('/assets/fonts/oxygen/Oxygen-Light.woff') format('woff'), + url('/assets/fonts/oxygen/Oxygen-Light.ttf') format('truetype'); + font-weight: 300; + font-style: normal; +} + +@font-face { + font-family: 'Oxygen'; + src: url('/assets/fonts/oxygen/Oxygen-Bold.eot'); + src: url('/assets/fonts/oxygen/Oxygen-Bold.eot?#iefix') format('embedded-opentype'), + url('/assets/fonts/oxygen/Oxygen-Bold.woff') format('woff'), + url('/assets/fonts/oxygen/Oxygen-Bold.ttf') format('truetype'); + font-weight: bold; + font-style: normal; +} + +@font-face { + font-family: 'Oxygen'; + src: url('/assets/fonts/oxygen/Oxygen-Regular.eot'); + src: url('/assets/fonts/oxygen/Oxygen-Regular.eot?#iefix') format('embedded-opentype'), + url('/assets/fonts/oxygen/Oxygen-Regular.woff') format('woff'), + url('/assets/fonts/oxygen/Oxygen-Regular.ttf') format('truetype'); + font-weight: normal; + font-style: normal; +} diff --git a/frontend/.test.setup.js b/frontend/.test.setup.js index bf9a6dec6..6f16c19ee 100644 --- a/frontend/.test.setup.js +++ b/frontend/.test.setup.js @@ -5,3 +5,27 @@ const doc = jsdom.jsdom(''); global.document = doc; global.window = doc.defaultView; global.navigator = global.window.navigator; + +function mockStorage() { + const storage = {}; + + return { + setItem(key, value = '') { + storage[key] = value; + }, + getItem(key) { + return storage[key]; + }, + removeItem(key) { + delete storage[key]; + }, + get length() { + return Object.keys(storage).length; + }, + key(i) { + return Object.keys(storage)[i] || null; + }, + }; +} + +global.localStorage = window.localStorage = mockStorage(); diff --git a/frontend/components/App/App.jsx b/frontend/components/App/App.jsx index d43b4fc82..7d0bf64f6 100644 --- a/frontend/components/App/App.jsx +++ b/frontend/components/App/App.jsx @@ -1,7 +1,6 @@ import React, { Component, PropTypes } from 'react'; import { Style } from 'radium'; import Footer from './Footer'; -import componentStyles from './styles'; import globalStyles from '../../styles/global'; export class App extends Component { @@ -11,14 +10,11 @@ export class App extends Component { render () { const { children } = this.props; - const { containerStyles, childWrapperStyles } = componentStyles; return ( -
+