console is a util

This commit is contained in:
Timothy Farrell 2018-06-26 08:39:27 -05:00
parent 28e4fef2d2
commit a5ebb54e57
9 changed files with 9 additions and 8 deletions

View File

@ -4,7 +4,8 @@ import * as styles from './app.css';
import { GalleryView } from './interface/gallery.js'; import { GalleryView } from './interface/gallery.js';
import { router } from './services/router.js'; import { router } from './services/router.js';
import { streamConfig } from './utils/event.js'; import { streamConfig } from './utils/event.js';
import { log } from './services/console.js';
import { log } from './utils/console.js';
config({ stream: streamConfig }); config({ stream: streamConfig });

View File

@ -4,7 +4,7 @@ import { PouchDB, db } from '../services/db.js';
import { blobToArrayBuffer, deepAssign } from '../utils/conversion.js'; import { blobToArrayBuffer, deepAssign } from '../utils/conversion.js';
import { backgroundTask } from '../utils/event.js'; import { backgroundTask } from '../utils/event.js';
import { FileType } from './file.js'; import { FileType } from './file.js';
import { error } from '../services/console.js'; import { error } from '../utils/console.js';
class ImageSpec extends TypeSpec { class ImageSpec extends TypeSpec {
static async upload(blob) { static async upload(blob) {

View File

@ -10,7 +10,7 @@ import {
injectView as iv injectView as iv
} from '../utils/domvm.js'; } from '../utils/domvm.js';
import { error } from '../services/console.js'; import { error } from '../utils/console.js';
import { ImageType } from '../data/image.js'; import { ImageType } from '../data/image.js';
import { pouchDocArrayHash, pouchDocHash, hashSet, extractID } from '../utils/conversion.js'; import { pouchDocArrayHash, pouchDocHash, hashSet, extractID } from '../utils/conversion.js';
import { SectionView } from './sectionView.js'; import { SectionView } from './sectionView.js';

View File

@ -17,7 +17,7 @@ import { Overlay } from './components/overlay.js';
import { Icon } from './components/icon.js'; import { Icon } from './components/icon.js';
import { AppBar } from './components/appbar.js'; import { AppBar } from './components/appbar.js';
import { styled, injectStyle } from '../services/style.js'; import { styled, injectStyle } from '../services/style.js';
import { error } from '../services/console.js'; import { error } from '../utils/console.js';
import { CLICKABLE, FILL_STYLE } from './styles.js'; import { CLICKABLE, FILL_STYLE } from './styles.js';
export function FocusView(vm, params) { export function FocusView(vm, params) {

View File

@ -1,5 +1,5 @@
import { FileType } from './data/file.js'; import { FileType } from './data/file.js';
import { log } from './services/console.js'; import { log } from './utils/console.js';
const VERSION = 'v1'; const VERSION = 'v1';

View File

@ -1,7 +1,7 @@
import core from 'pouchdb-core'; import core from 'pouchdb-core';
import { backgroundTask } from '../utils/event.js'; import { backgroundTask } from '../utils/event.js';
import { deepAssign, blobToObj } from '../utils/conversion.js'; import { deepAssign, blobToObj } from '../utils/conversion.js';
import { error, log } from '../services/console.js'; import { error, log } from '../utils/console.js';
const pouchBulkDocs = core.prototype.bulkDocs; const pouchBulkDocs = core.prototype.bulkDocs;
const pouchGetAttachment = core.prototype.getAttachment; const pouchGetAttachment = core.prototype.getAttachment;

View File

@ -3,7 +3,7 @@ export * from 'domvm/dist/mini/domvm.mini.js';
import { defineView } from 'domvm/dist/mini/domvm.mini.js'; import { defineView } from 'domvm/dist/mini/domvm.mini.js';
import { prop, computed, call } from 'frptools'; import { prop, computed, call } from 'frptools';
import { deepAssign } from './conversion.js'; import { deepAssign } from './conversion.js';
import { error } from '../services/console.js'; import { error } from '../utils/console.js';
import { streamConfig } from './event.js'; import { streamConfig } from './event.js';
export function subscribeToRender(vm, subscribables, autoSub = false) { export function subscribeToRender(vm, subscribables, autoSub = false) {

View File

@ -1,4 +1,4 @@
import { log, error, group, groupEnd } from '../services/console.js'; import { log, error, group, groupEnd } from '../utils/console.js';
export class Event { export class Event {
constructor(name) { constructor(name) {