It's a style service, not a styletron util.
This commit is contained in:
parent
1288c1333c
commit
d27affabfb
@ -5,9 +5,9 @@ import * as imageTag from '../context/manageImageTags.js';
|
|||||||
import { ImageView } from './image.js';
|
import { ImageView } from './image.js';
|
||||||
import { AlbumView } from './album.js';
|
import { AlbumView } from './album.js';
|
||||||
import { router, routeChanged } from '../services/router.js';
|
import { router, routeChanged } from '../services/router.js';
|
||||||
|
import { styled, el } from '../services/style.js';
|
||||||
import { LiveArray } from '../utils/livearray.js';
|
import { LiveArray } from '../utils/livearray.js';
|
||||||
import { Watcher } from '../utils/watcher.js';
|
import { Watcher } from '../utils/watcher.js';
|
||||||
import { styled, el } from '../utils/styletron.js';
|
|
||||||
|
|
||||||
function uploadImages(evt) {
|
function uploadImages(evt) {
|
||||||
image.add(evt.currentTarget.files);
|
image.add(evt.currentTarget.files);
|
||||||
|
|||||||
@ -4,8 +4,8 @@ import { defineElement } from 'domvm';
|
|||||||
|
|
||||||
const styletronSingleton = new Styletron();
|
const styletronSingleton = new Styletron();
|
||||||
|
|
||||||
export function injectStyle(styles) {
|
export function injectStyle(...styles) {
|
||||||
return _injectStyle(styletronSingleton, styles);
|
return _injectStyle(styletronSingleton, Object.assign({}, ...styles));
|
||||||
}
|
}
|
||||||
|
|
||||||
function isObject(obj) {
|
function isObject(obj) {
|
||||||
Loading…
x
Reference in New Issue
Block a user