diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 3c3629e..0000000 --- a/.dockerignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..347880c --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ +Copyright 2017 Scripto, LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License.` diff --git a/README.md b/README.md index fec66ba..0b792e9 100644 --- a/README.md +++ b/README.md @@ -111,4 +111,4 @@ Create a form input element wrapped by a label ``` ## License -Copyright © 2017 Scripto, LLC. All rights reserved +Copyright © 2017 Scripto, LLC. Licensed under Apache-2.0 diff --git a/button-el.js b/button-el.js index 338c0b0..9636c6c 100644 --- a/button-el.js +++ b/button-el.js @@ -5,8 +5,8 @@ const noop = () => {} module.exports = button function button (text, handler, buttonOpts) { - var classes = ['b', 'f5', 'white', 'w-100', 'mt3', 'pt1', 'pb2', 'lh-copy', 'outline-0', 'bn', 'br2'] - var style = 'background: #00C9D8;' + var classes = [] + var style = '' handler = typeof handler === 'function' ? handler : noop buttonOpts = buttonOpts || {} diff --git a/circle.yml b/circle.yml index a4e68fc..1a3abef 100644 --- a/circle.yml +++ b/circle.yml @@ -1,9 +1,6 @@ machine: node: version: 6 -dependencies: - pre: - - ./npmauth.sh test: override: - npm run coverage diff --git a/error-el.js b/error-el.js index 10dc634..78eee6b 100644 --- a/error-el.js +++ b/error-el.js @@ -2,7 +2,7 @@ const html = require('bel') const helpers = require('./element-helper') function errorContainer (opts) { - const classes = helpers.classes(['center', 'w-100', 'tc', 'red', 'f4', 'mt3', 'mb3'], opts) + const classes = helpers.classes([], opts) const style = helpers.style('', opts) const el = helpers.opts(html`
`, opts) return el @@ -19,9 +19,9 @@ function error (opts) { return { render: () => container, - displayError, - removeError, - clear + displayError: displayError, + removeError: removeError, + clear: clear } function displayError (key, txt) { diff --git a/input-el.js b/input-el.js index 272bab1..63cced7 100644 --- a/input-el.js +++ b/input-el.js @@ -9,7 +9,7 @@ const noop = () => {} module.exports = input function input (type, handler, value, inputOpts) { - var classes = ['w-100', 'outline-0', 'ba', 'b--moon-gray', 'f6', 'pa1', 'br2'] + var classes = [] var style = '' handler = typeof handler === 'function' ? handler : noop diff --git a/label-el.js b/label-el.js index c9d91e4..350e7f4 100644 --- a/label-el.js +++ b/label-el.js @@ -4,8 +4,8 @@ const html = require('bel') module.exports = label function label (label, labelOpts, children) { - var classes = ['db', 'mt3', 'ttu', 'lh-copy'] - var style = 'text-indent: 4px;' + var classes = [] + var style = '' if (!Array.isArray(children)) { children = [children] diff --git a/npmauth.sh b/npmauth.sh deleted file mode 100755 index 1e2b859..0000000 --- a/npmauth.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -o nounset -set -o errexit - -npm login <", - "license": "UNLICENSED", + "license": "Apache-2.0", "dependencies": { "babel-preset-env": "^1.5.2", "babelify": "^7.3.0", @@ -29,7 +29,6 @@ "yo-yoify": "^3.7.3" }, "devDependencies": { - "@scriptollc/app-entry": "^1.0.1", "bankai": "^8.1.1", "browserify": "^14.3.0", "browserify-istanbul": "github:toddself/browserify-istanbul#strip-base-path", diff --git a/standalone.js b/standalone.js index cb5931a..cd6834c 100644 --- a/standalone.js +++ b/standalone.js @@ -1,4 +1,4 @@ -const entry = require('@scriptollc/app-entry') +const choo = require('choo') const html = require('bel') const els = require('./') @@ -36,4 +36,6 @@ function main (state, emit) { } } -entry([], [{route: '/', method: main}], 'body') +const app = choo() +app.route('/', main) +document.body.appendChild(app.start())