Gotta have a place for non-specific components
This commit is contained in:
parent
c7e76fc169
commit
53a38b13e8
@ -1,9 +1,9 @@
|
|||||||
import { defineElement as el } from '../utils/domvm.js';
|
|
||||||
import { prop, computed, bundle } from 'frptools';
|
import { prop, computed, bundle } from 'frptools';
|
||||||
|
|
||||||
import { ImageType } from '../data/image.js';
|
import { defineElement as el } from '../../utils/domvm.js';
|
||||||
import { FileType } from '../data/file.js';
|
import { ImageType } from '../../data/image.js';
|
||||||
import { pouchDocHash } from '../utils/conversion.js';
|
import { FileType } from '../../data/file.js';
|
||||||
|
import { pouchDocHash } from '../../utils/conversion.js';
|
||||||
|
|
||||||
export function AttachmentImageView(vm, image) {
|
export function AttachmentImageView(vm, image) {
|
||||||
const model = prop(image, pouchDocHash);
|
const model = prop(image, pouchDocHash);
|
||||||
@ -1,6 +1,7 @@
|
|||||||
import { prop, computed } from 'frptools';
|
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 = {
|
const CSS_DROPZONE = {
|
||||||
width: '200px',
|
width: '200px',
|
||||||
@ -5,7 +5,7 @@ import { ImageType } from '../data/image.js';
|
|||||||
import { AlbumType } from '../data/album.js';
|
import { AlbumType } from '../data/album.js';
|
||||||
import { ThumbnailTemplate } from './thumbnail.js';
|
import { ThumbnailTemplate } from './thumbnail.js';
|
||||||
import { AlbumView } from './album.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 { router, routeChanged } from '../services/router.js';
|
||||||
import { injectStyle, styled } from '../services/style.js';
|
import { injectStyle, styled } from '../services/style.js';
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { defineView as vw, defineElement as el } from '../utils/domvm.js';
|
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) {
|
export function ThumbnailTemplate(doc, remove, key) {
|
||||||
return el('div', [
|
return el('div', [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user