sn-simple-task-editor
Advanced tools
Comparing version 1.1.11 to 1.2.0
@@ -12,3 +12,3 @@ import React from 'react'; | ||
return ( | ||
<div className="sn-component"> | ||
<div className="sn-component windows-web"> | ||
<Tasks /> | ||
@@ -15,0 +15,0 @@ </div> |
@@ -38,3 +38,3 @@ import React from 'react'; | ||
<input | ||
className='create-task-input body-text-color border-color' | ||
className='create-task-input' | ||
autoFocus='true' | ||
@@ -41,0 +41,0 @@ type='text' |
@@ -0,0 +0,0 @@ import React, { Component, PropTypes } from 'react'; |
@@ -18,2 +18,9 @@ import React from 'react'; | ||
}) | ||
TasksManager.get().setOnReady(() => { | ||
let platform = TasksManager.get().getPlatform(); | ||
// add platform class to main <html> element | ||
var root = document.documentElement; | ||
root.className += platform; | ||
}) | ||
} | ||
@@ -140,3 +147,3 @@ | ||
return ( | ||
<div className="element-text-color"> | ||
<div className={"element-text-color"}> | ||
@@ -143,0 +150,0 @@ <div> |
@@ -26,4 +26,5 @@ import Task from "../models/Task"; | ||
this.componentManager = new ComponentManager(permissions, function(){ | ||
this.componentManager = new ComponentManager(permissions, () => { | ||
// on ready | ||
this.onReady && this.onReady(); | ||
}); | ||
@@ -45,2 +46,6 @@ | ||
getPlatform() { | ||
return this.componentManager.platform; | ||
} | ||
isMobile() { | ||
@@ -50,2 +55,6 @@ return this.componentManager.environment == "mobile"; | ||
setOnReady(onReady) { | ||
this.onReady = onReady; | ||
} | ||
setDataChangeHandler(handler) { | ||
@@ -52,0 +61,0 @@ this.dataChangeHandler = handler; |
@@ -0,0 +0,0 @@ import React from 'react'; |
@@ -0,0 +0,0 @@ export default class Task { |
@@ -0,0 +0,0 @@ <a name="1.2.0"></a> |
{ | ||
"name": "sn-simple-task-editor", | ||
"version": "1.1.11", | ||
"version": "1.2.0", | ||
"main": "dist/dist.js", | ||
@@ -45,2 +45,3 @@ "scripts": { | ||
"sn-components-api": "1.1.11", | ||
"sn-stylekit": "1.1.7", | ||
"sortablejs": "^1.7.0", | ||
@@ -47,0 +48,0 @@ "style-loader": "~0.13.1", |
@@ -36,3 +36,3 @@ const webpack = require('webpack'); | ||
path.resolve(__dirname, 'node_modules/sortablejs/Sortable.min.js'), | ||
path.resolve(__dirname, 'node_modules/sn-components-api/dist/dist.js') | ||
path.resolve(__dirname, 'node_modules/sn-components-api/dist/dist.js'), | ||
], exclude: /node_modules/, loader: 'babel-loader' } | ||
@@ -42,3 +42,6 @@ ] | ||
resolve: { | ||
extensions: ['.js', '.jsx'] | ||
extensions: ['.js', '.jsx', '.css', '.scss'], | ||
alias: { | ||
stylekit: path.join(__dirname, 'node_modules/sn-stylekit/dist/stylekit.css') | ||
} | ||
}, | ||
@@ -45,0 +48,0 @@ plugins: [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
524936
1964
36