From 6d088efec57be2369c57f5b86f5dce241708c4e8 Mon Sep 17 00:00:00 2001 From: Timothy Farrell Date: Tue, 26 Jun 2018 11:58:20 -0500 Subject: [PATCH] style is a util --- packages/gallery/src/interface/allImages.js | 2 +- packages/gallery/src/interface/components/appbar.js | 2 +- packages/gallery/src/interface/components/attachmentImage.js | 2 +- packages/gallery/src/interface/components/dropzone.js | 2 +- packages/gallery/src/interface/components/overlay.js | 2 +- packages/gallery/src/interface/focus.js | 2 +- packages/gallery/src/interface/gallery.js | 2 +- packages/gallery/src/interface/sectionPhoto.js | 2 +- packages/gallery/src/interface/sectionView.js | 2 +- packages/gallery/src/{services => utils}/style.js | 0 10 files changed, 9 insertions(+), 9 deletions(-) rename packages/gallery/src/{services => utils}/style.js (100%) diff --git a/packages/gallery/src/interface/allImages.js b/packages/gallery/src/interface/allImages.js index cfa536c..dbef772 100644 --- a/packages/gallery/src/interface/allImages.js +++ b/packages/gallery/src/interface/allImages.js @@ -18,7 +18,7 @@ import { Icon } from './components/icon.js'; import { GithubCorner } from './components/githubCorner.js'; import { AppBar } from './components/appbar.js'; import { Overlay } from './components/overlay.js'; -import { injectStyle, styled } from '../services/style.js'; +import { injectStyle, styled } from '../utils/style.js'; import { CLICKABLE } from './styles.js'; export function uploadImages(evt, files) { diff --git a/packages/gallery/src/interface/components/appbar.js b/packages/gallery/src/interface/components/appbar.js index ba769fc..e911233 100644 --- a/packages/gallery/src/interface/components/appbar.js +++ b/packages/gallery/src/interface/components/appbar.js @@ -2,7 +2,7 @@ import { prop, computed, container, pick } from 'frptools'; import { Icon } from './icon.js'; import { defineElement as el } from '../../utils/domvm.js'; -import { injectStyle, styled } from '../../services/style.js'; +import { injectStyle, styled } from '../../utils/style.js'; import { CLICKABLE } from '../styles.js'; export function AppBar(params) { diff --git a/packages/gallery/src/interface/components/attachmentImage.js b/packages/gallery/src/interface/components/attachmentImage.js index 9681176..11df80e 100644 --- a/packages/gallery/src/interface/components/attachmentImage.js +++ b/packages/gallery/src/interface/components/attachmentImage.js @@ -4,7 +4,7 @@ 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'; -import { styled } from '../../services/style.js'; +import { styled } from '../../utils/style.js'; import { DEFAULT_TRANSITION } from '../styles.js'; const srcMap = new Map(); diff --git a/packages/gallery/src/interface/components/dropzone.js b/packages/gallery/src/interface/components/dropzone.js index 15a607c..82e6ea8 100644 --- a/packages/gallery/src/interface/components/dropzone.js +++ b/packages/gallery/src/interface/components/dropzone.js @@ -1,6 +1,6 @@ import { prop, computed } from 'frptools'; -import { injectStyle } from '../../services/style'; +import { injectStyle } from '../../utils/style.js'; import { defineElement as el } from '../../utils/domvm.js'; const CSS_DROPZONE = { diff --git a/packages/gallery/src/interface/components/overlay.js b/packages/gallery/src/interface/components/overlay.js index 48cb2fb..efb7829 100644 --- a/packages/gallery/src/interface/components/overlay.js +++ b/packages/gallery/src/interface/components/overlay.js @@ -1,4 +1,4 @@ -import { styled } from '../../services/style.js'; +import { styled } from '../../utils/style.js'; import { FILL_STYLE } from '..//styles.js'; export const Overlay = styled( diff --git a/packages/gallery/src/interface/focus.js b/packages/gallery/src/interface/focus.js index cec21eb..3503fe7 100644 --- a/packages/gallery/src/interface/focus.js +++ b/packages/gallery/src/interface/focus.js @@ -16,7 +16,7 @@ import { AttachmentImageView } from './components/attachmentImage.js'; import { Overlay } from './components/overlay.js'; import { Icon } from './components/icon.js'; import { AppBar } from './components/appbar.js'; -import { styled, injectStyle } from '../services/style.js'; +import { styled, injectStyle } from '../utils/style.js'; import { error } from '../utils/console.js'; import { CLICKABLE, FILL_STYLE } from './styles.js'; diff --git a/packages/gallery/src/interface/gallery.js b/packages/gallery/src/interface/gallery.js index 3675813..27d8aad 100644 --- a/packages/gallery/src/interface/gallery.js +++ b/packages/gallery/src/interface/gallery.js @@ -15,7 +15,7 @@ import { Dropzone } from './components/dropzone.js'; import { Overlay } from './components/overlay.js'; import { Icon } from './components/icon.js'; import { routeChanged } from '../services/router.js'; -import { injectStyle, styled } from '../services/style.js'; +import { injectStyle, styled } from '../utils/style.js'; import { FILL_STYLE } from './styles.js'; export function GalleryView(vm) { diff --git a/packages/gallery/src/interface/sectionPhoto.js b/packages/gallery/src/interface/sectionPhoto.js index 8fd5624..2597209 100644 --- a/packages/gallery/src/interface/sectionPhoto.js +++ b/packages/gallery/src/interface/sectionPhoto.js @@ -8,7 +8,7 @@ import { subscribeToRender } from '../utils/domvm.js'; import { router } from '../services/router.js'; -import { injectStyle, styled } from '../services/style.js'; +import { injectStyle, styled } from '../utils/style.js'; import { DEFAULT_TRANSITION, FILL_STYLE, IMAGE_MARGIN, CLICKABLE } from './styles.js'; import { Icon } from './components/icon.js'; import { AttachmentImageView } from './components/attachmentImage.js'; diff --git a/packages/gallery/src/interface/sectionView.js b/packages/gallery/src/interface/sectionView.js index 958eafe..7355c00 100644 --- a/packages/gallery/src/interface/sectionView.js +++ b/packages/gallery/src/interface/sectionView.js @@ -9,7 +9,7 @@ import { subscribeToRender, availableViewportSize } from '../utils/domvm.js'; -import { injectStyle, styled } from '../services/style.js'; +import { injectStyle, styled } from '../utils/style.js'; import { DEFAULT_TRANSITION, CLICKABLE, IMAGE_MARGIN, CONTENT_MARGIN } from './styles.js'; import { Icon } from './components/icon.js'; import { SectionPhoto } from './sectionPhoto.js'; diff --git a/packages/gallery/src/services/style.js b/packages/gallery/src/utils/style.js similarity index 100% rename from packages/gallery/src/services/style.js rename to packages/gallery/src/utils/style.js