From 335c7a32380420166c6754883b103f53e49ad692 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 13 Nov 2020 16:37:38 +0100 Subject: starting viewer standalone frontend --- animism-align/frontend/app/common/index.js | 21 +++++++++++---------- .../frontend/app/common/loader.component.js | 14 ++++++++++++++ .../frontend/app/common/miscellaneous.component.js | 11 ----------- animism-align/frontend/app/constants.js | 4 ++++ .../frontend/app/views/audio/audio.reducer.js | 2 +- .../frontend/app/views/viewer/viewer.container.js | 5 +++-- 6 files changed, 33 insertions(+), 24 deletions(-) create mode 100644 animism-align/frontend/app/common/loader.component.js (limited to 'animism-align/frontend/app') diff --git a/animism-align/frontend/app/common/index.js b/animism-align/frontend/app/common/index.js index 1f0a61d..939e4e8 100644 --- a/animism-align/frontend/app/common/index.js +++ b/animism-align/frontend/app/common/index.js @@ -1,3 +1,12 @@ + +import './fonts.css' +import './app.css' +import './form.css' +import './table.css' +import './modal.css' +import './miscellaneous.css' +import './upload.css' + // export { default as Header } from 'app/common/header.component' export { MenuButton, SmallMenuButton, MenuRoute, @@ -8,7 +17,7 @@ export { LabelDescription, ColorInput, } from 'app/common/form.component' export { - Loader, Swatch, Dot, Columns, Statistic, Detections, Progress + Swatch, Dot, Columns, Statistic, Detections, Progress } from 'app/common/miscellaneous.component' export { default as TableIndex } from 'app/common/tableIndex.component' export { @@ -17,15 +26,7 @@ export { } from 'app/common/table.component' export { default as CopyToClipboardButton } from 'app/common/copyToClipboardButton.component' export { default as ImageCrop } from 'app/common/imageCrop.component' +export { Loader } from 'app/common/loader.component' export { Modal } from 'app/common/modal.component' export { default as UploadImage } from 'app/common/uploadImage.component' export { default as Slider } from 'app/common/slider.component' - -import './fonts.css' -import './app.css' -import './form.css' -import './loader.css' -import './table.css' -import './modal.css' -import './miscellaneous.css' -import './upload.css' diff --git a/animism-align/frontend/app/common/loader.component.js b/animism-align/frontend/app/common/loader.component.js new file mode 100644 index 0000000..846c9cc --- /dev/null +++ b/animism-align/frontend/app/common/loader.component.js @@ -0,0 +1,14 @@ +import React from 'react' + +import './loader.css' + +export const Loader = () => ( +
+
+
+
+
+
+
+
+) diff --git a/animism-align/frontend/app/common/miscellaneous.component.js b/animism-align/frontend/app/common/miscellaneous.component.js index 8021c5d..bf2c266 100644 --- a/animism-align/frontend/app/common/miscellaneous.component.js +++ b/animism-align/frontend/app/common/miscellaneous.component.js @@ -2,17 +2,6 @@ import React, { Component } from 'react' import { Link } from 'react-router-dom' import { clamp, percent } from 'app/utils' -export const Loader = () => ( -
-
-
-
-
-
-
-
-) - export const Swatch = ({ color }) => (
- + {ENV_DEVELOPMENT && }
-- cgit v1.2.3-70-g09d2