Browse Source

No csjs for now :( :panda_face:

Artur Paikin 8 years ago
parent
commit
0d771455c7
3 changed files with 2 additions and 24 deletions
  1. 0 2
      package.json
  2. 2 7
      src/plugins/Dummy.js
  3. 0 15
      src/plugins/dummyStyles.js

+ 0 - 2
package.json

@@ -70,11 +70,9 @@
     "watchify": "3.7.0"
   },
   "dependencies": {
-    "csjs": "1.0.6",
     "deep-freeze-strict": "1.1.1",
     "drag-drop": "2.11.0",
     "es6-promise": "3.2.1",
-    "insert-css": "1.0.0",
     "mime-types": "2.1.11",
     "namespace-emitter": "1.0.0",
     "pretty-bytes": "3.0.1",

+ 2 - 7
src/plugins/Dummy.js

@@ -1,7 +1,4 @@
 import Plugin from './Plugin'
-import csjs from 'csjs'
-import styles from './dummyStyles.js'
-import insertCss from 'insert-css'
 import html from '../core/html'
 
 /**
@@ -22,7 +19,7 @@ export default class Dummy extends Plugin {
     // merge default options with the ones set by user
     this.opts = Object.assign({}, defaultOptions, opts)
 
-    this.strange = html`<h1 class="${styles.title}">this is strange 1</h1>`
+    this.strange = html`<h1>this is strange 1</h1>`
     this.render = this.render.bind(this)
     this.install = this.install.bind(this)
   }
@@ -43,7 +40,7 @@ export default class Dummy extends Plugin {
   }
 
   render () {
-    const bla = html`<h2 class="${styles.secondTitle}">this is strange 2</h2>`
+    const bla = html`<h2>this is strange 2</h2>`
     return html`
       <div class="wow-this-works">
         <input class="UppyDummy-firstInput" type="text" value="hello">
@@ -69,8 +66,6 @@ export default class Dummy extends Plugin {
   }
 
   install () {
-    insertCss(csjs.getCss(styles))
-
     const target = this.opts.target
     const plugin = this
     this.target = this.mount(target, plugin)

+ 0 - 15
src/plugins/dummyStyles.js

@@ -1,15 +0,0 @@
-import csjs from 'csjs'
-
-export default csjs`
-
-  .title {
-    font-size: 30px;
-    color: blue;
-  }
-
-  .secondTitle {
-    font-size: 10px;
-    color: pink;
-  }
-
-`