Gotta have a place for non-specific components

This commit is contained in:
Timothy Farrell 2017-11-25 22:16:27 -06:00
parent c7e76fc169
commit 53a38b13e8
4 changed files with 9 additions and 8 deletions

View File

@ -1,9 +1,9 @@
import { defineElement as el } from '../utils/domvm.js';
import { prop, computed, bundle } from 'frptools';
import { ImageType } from '../data/image.js';
import { FileType } from '../data/file.js';
import { pouchDocHash } from '../utils/conversion.js';
import { defineElement as el } from '../../utils/domvm.js';
import { ImageType } from '../../data/image.js';
import { FileType } from '../../data/file.js';
import { pouchDocHash } from '../../utils/conversion.js';
export function AttachmentImageView(vm, image) {
const model = prop(image, pouchDocHash);

View File

@ -1,6 +1,7 @@
import { prop, computed } from 'frptools';
import { injectStyle } from '../services/style';
import { defineElement as el } from '../utils/domvm.js';
import { injectStyle } from '../../services/style';
import { defineElement as el } from '../../utils/domvm.js';
const CSS_DROPZONE = {
width: '200px',

View File

@ -5,7 +5,7 @@ import { ImageType } from '../data/image.js';
import { AlbumType } from '../data/album.js';
import { ThumbnailTemplate } from './thumbnail.js';
import { AlbumView } from './album.js';
import { Dropzone } from './dropzone.js';
import { Dropzone } from './components/dropzone.js';
import { router, routeChanged } from '../services/router.js';
import { injectStyle, styled } from '../services/style.js';

View File

@ -1,5 +1,5 @@
import { defineView as vw, defineElement as el } from '../utils/domvm.js';
import { AttachmentImageView } from './attachmentImage.js';
import { AttachmentImageView } from './components/attachmentImage.js';
export function ThumbnailTemplate(doc, remove, key) {
return el('div', [