Skip to content

Commit

Permalink
chore: import order
Browse files Browse the repository at this point in the history
  • Loading branch information
BigJk committed Feb 9, 2024
1 parent 0fc452e commit 1ff5daf
Show file tree
Hide file tree
Showing 47 changed files with 66 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/js/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import m from 'mithril';
import store, { settings } from 'js/core/store';

import Spotlight from 'js/ui/components/portal/spotlight';

import DataSourceAll from 'js/ui/views/data-source/all';
import DataSourceSingle from 'js/ui/views/data-source/single';
import Devices from 'js/ui/views/devices';
Expand All @@ -28,6 +29,7 @@ import TemplateSingle from 'js/ui/views/template/single';
import WorkshopAll from 'js/ui/views/workshop/all';
import WorkshopRepo from 'js/ui/views/workshop/repo';
import WorkshopSingle from 'js/ui/views/workshop/single';

import * as Portal from 'js/ui/portal';
import * as Toast from 'js/ui/toast';

Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/box-version.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import m from 'mithril';

import Button from 'js/ui/spectre/button';

import Icon from 'js/ui/components/atomic/icon';
import Box from 'js/ui/components/box';
import Flex from 'js/ui/components/layout/flex';
Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/config/checkbox.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import m from 'mithril';

import Checkbox from 'js/ui/spectre/checkbox';

import MiniHeader from 'js/ui/components/atomic/mini-header';
import Config, { ConfigProps } from 'js/ui/components/config/config';

Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/config/creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Button from 'js/ui/spectre/button';
import IconButton from 'js/ui/spectre/icon-button';
import Input from 'js/ui/spectre/input';
import Select from 'js/ui/spectre/select';

import Icon from 'js/ui/components/atomic/icon';
import MiniHeader from 'js/ui/components/atomic/mini-header';
import types from 'js/ui/components/config/types';
Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/config/data-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { buildId } from 'js/types/basic-info';
import { sources } from 'js/core/store';

import Select from 'js/ui/spectre/select';

import Config from 'js/ui/components/config/config';

export default {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/config/file-path.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import m from 'mithril';

import Button from 'js/ui/spectre/button';

import Config, { ConfigProps } from 'js/ui/components/config/config';
import { openFileModal } from 'js/ui/components/modals/file-browser';

Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/config/folder-path.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import m from 'mithril';

import Button from 'js/ui/spectre/button';

import Config, { ConfigProps } from 'js/ui/components/config/config';
import { openFileModal } from 'js/ui/components/modals/file-browser';

Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/config/multiple-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Checkbox from 'js/ui/spectre/checkbox';
import Input from 'js/ui/spectre/input';
import Label from 'js/ui/spectre/label';
import Select, { OnInputEvent } from 'js/ui/spectre/select';

import Icon from 'js/ui/components/atomic/icon';
import MiniHeader from 'js/ui/components/atomic/mini-header';
import Config, { ConfigProps } from 'js/ui/components/config/config';
Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/config/number.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import m from 'mithril';

import Input from 'js/ui/spectre/input';

import MiniHeader from 'js/ui/components/atomic/mini-header';
import Config, { ConfigProps } from 'js/ui/components/config/config';

Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/config/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import m from 'mithril';

import Input from 'js/ui/spectre/input';
import Select from 'js/ui/spectre/select';

import MiniHeader from 'js/ui/components/atomic/mini-header';
import Config, { ConfigProps } from 'js/ui/components/config/config';

Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/config/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import m from 'mithril';

import Button from 'js/ui/spectre/button';
import Input from 'js/ui/spectre/input';

import Icon from 'js/ui/components/atomic/icon';
import Config, { ConfigProps } from 'js/ui/components/config/config';
import Flex from 'js/ui/components/layout/flex';
Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/config/text.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import m from 'mithril';

import Input from 'js/ui/spectre/input';

import MiniHeader from 'js/ui/components/atomic/mini-header';
import Config, { ConfigProps } from 'js/ui/components/config/config';

Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/device.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import m from 'mithril';

import Button from 'js/ui/spectre/button';

import Box from 'js/ui/components/box';
import Flex from 'js/ui/components/layout/flex';

Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/editor/basic-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Icon from 'js/ui/components/atomic/icon';
import Flex from 'js/ui/components/layout/flex';
import PropertyEdit, { type PropertyAnnotation } from 'js/ui/components/view-layout/property-edit';
import EditorHeader from 'js/ui/components/view-layout/property-header';

import { author, slug } from 'js/ui/validator';

export type BasicInfoProps<T> = {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/editor/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { createNunjucksCompletionProvider } from 'js/core/monaco/completion-nunj
import { settings } from 'js/core/store';

import Label from 'js/ui/spectre/label';

import Icon from 'js/ui/components/atomic/icon';
import ConfigCreator from 'js/ui/components/config/creator';
import Editor from 'js/ui/components/config/editor';
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/js/ui/components/editor/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { render } from 'js/core/templating';

import Button from 'js/ui/spectre/button';
import Label from 'js/ui/spectre/label';

import Icon from 'js/ui/components/atomic/icon';
import ConfigCreator from 'js/ui/components/config/creator';
import Editor from 'js/ui/components/config/editor';
Expand All @@ -24,6 +25,7 @@ import PrintPreviewTemplate, { PrintPreviewError } from 'js/ui/components/print-
import SourceSelect from 'js/ui/components/source-select';
import EditorHeader from 'js/ui/components/view-layout/property-header';
import SideMenuPager from 'js/ui/components/view-layout/side-menu-pager';

import { dialogWarning, error } from 'js/ui/toast';

type TemplateEditorProps = {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/entry-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import m from 'mithril';
import Entry from 'js/types/entry';

import Input from 'js/ui/spectre/input';

import Dropdown from 'js/ui/components/overlay/dropdown';

type EntrySelectProps = {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/image-upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import guid from 'js/core/guid';

import Button from 'js/ui/spectre/button';
import Input from 'js/ui/spectre/input';

import Icon from 'js/ui/components/atomic/icon';
import Flex from 'js/ui/components/layout/flex';

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/js/ui/components/modals/additional-infos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import m from 'mithril';
import Input from 'js/ui/spectre/input';
import Modal from 'js/ui/spectre/modal';
import TextArea from 'js/ui/spectre/text-area';

import Flex from 'js/ui/components/layout/flex';

import { popPortal, pushPortal } from 'js/ui/portal';

type AdditionalInfosProps = {
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/js/ui/components/modals/create-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import store from 'js/core/store';

import Button from 'js/ui/spectre/button';
import Modal from 'js/ui/spectre/modal';

import BasicInfo from 'js/ui/components/editor/basic-info';

import { popPortal, pushPortal } from 'js/ui/portal';
import { error } from 'js/ui/toast';

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/js/ui/components/modals/file-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import * as API from 'js/core/api';
import Button from 'js/ui/spectre/button';
import Input from 'js/ui/spectre/input';
import Modal from 'js/ui/spectre/modal';

import Icon from 'js/ui/components/atomic/icon';
import Flex from 'js/ui/components/layout/flex';
import SideMenu from 'js/ui/components/view-layout/side-menu';

import { popPortal, pushPortal } from 'js/ui/portal';

type FileBrowserProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import Button from 'js/ui/spectre/button';
import Loader from 'js/ui/spectre/loader';
import Modal from 'js/ui/spectre/modal';
import Select from 'js/ui/spectre/select';

import Config from 'js/ui/components/config/config';
import ConfigTypes from 'js/ui/components/config/types';
import HorizontalProperty from 'js/ui/components/horizontal-property';
import Flex from 'js/ui/components/layout/flex';

import { popPortal } from 'js/ui/portal';
import { error, success } from 'js/ui/toast';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import m from 'mithril';
import Button from 'js/ui/spectre/button';
import Input from 'js/ui/spectre/input';
import Modal from 'js/ui/spectre/modal';

import HorizontalProperty from 'js/ui/components/horizontal-property';
import Flex from 'js/ui/components/layout/flex';

import { popPortal, pushPortal } from 'js/ui/portal';

type CreateEditEntrySourceEntryProps = {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/portal/fullscreen-loader.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import m from 'mithril';

import Loader from 'js/ui/spectre/loader';

import Flex from 'js/ui/components/layout/flex';

export type FullscreenLoaderProps = {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/portal/spotlight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import store, { FuseSearch } from 'js/core/store';
import Icon from 'js/ui/components/atomic/icon';
import Key from 'js/ui/components/atomic/key';
import Flex from 'js/ui/components/layout/flex';

import { clearPortal } from 'js/ui/portal';

const ItemHeight = 60;
Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/print-preview-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import store, { settings } from 'js/core/store';
import { containsAi, render } from 'js/core/templating';

import Button from 'js/ui/spectre/button';

import Icon from 'js/ui/components/atomic/icon';
import Flex from 'js/ui/components/layout/flex';
import PrintPreview from 'js/ui/components/print-preview';
Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/source-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { buildId } from 'js/types/basic-info';
import { sources } from 'js/core/store';

import Input from 'js/ui/spectre/input';

import Icon from 'js/ui/components/atomic/icon';
import Flex from 'js/ui/components/layout/flex';
import Dropdown from 'js/ui/components/overlay/dropdown';
Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/view-layout/breadcrumbs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { flatMap } from 'lodash-es';

import Icon from 'js/ui/components/atomic/icon';
import Flex from 'js/ui/components/layout/flex';

import { dialogWarning } from 'js/ui/toast';

type BreadcrumbItem = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import m from 'mithril';

import IconButton from 'js/ui/spectre/icon-button';

import Flex from 'js/ui/components/layout/flex';

type PaginatedContentProps<T> = {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/components/view-layout/property-edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Checkbox from 'js/ui/spectre/checkbox';
import IconButton from 'js/ui/spectre/icon-button';
import Input from 'js/ui/spectre/input';
import TextArea from 'js/ui/spectre/text-area';

import Icon from 'js/ui/components/atomic/icon';
import HorizontalProperty from 'js/ui/components/horizontal-property';
import Flex from 'js/ui/components/layout/flex';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import m from 'mithril';
import CenterContainer from 'js/ui/components/layout/center-container';
import Flex from 'js/ui/components/layout/flex';
import SideMenu, { type SideMenuItem } from 'js/ui/components/view-layout/side-menu';

import { filterChildren } from 'js/ui/util';

type SideMenuPagerItem = {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/spectre/icon-button.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import m from 'mithril';

import Button, { type ButtonProps } from 'js/ui/spectre/button';

import Icon from 'js/ui/components/atomic/icon';

type IconButtonProps = ButtonProps & {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/spectre/modal.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import m from 'mithril';

import Loader from 'js/ui/spectre/loader';

import Icon from 'js/ui/components/atomic/icon';
import Flex from 'js/ui/components/layout/flex';

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/js/ui/views/data-source/single.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Button from 'js/ui/spectre/button';
import IconButton from 'js/ui/spectre/icon-button';
import Input from 'js/ui/spectre/input';
import Loader from 'js/ui/spectre/loader';

import Icon from 'js/ui/components/atomic/icon';
import Tooltip from 'js/ui/components/atomic/tooltip';
import EntryListItem from 'js/ui/components/entry-list-item';
Expand All @@ -21,6 +22,7 @@ import Base from 'js/ui/components/view-layout/base';
import Breadcrumbs from 'js/ui/components/view-layout/breadcrumbs';
import PaginatedContent from 'js/ui/components/view-layout/paginated-content';
import SidebarPage from 'js/ui/components/view-layout/sidebar-page';

import { setPortal } from 'js/ui/portal';
import { dialogWarning, error, success } from 'js/ui/toast';

Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/views/devices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { map } from 'lodash-es';
import store, { settings } from 'js/core/store';

import Select from 'js/ui/spectre/select';

import InfoIcon from 'js/ui/components/atomic/info-icon';
import Title from 'js/ui/components/atomic/title';
import Device from 'js/ui/components/device';
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/js/ui/views/generator/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ import store from 'js/core/store';

import IconButton from 'js/ui/spectre/icon-button';
import Loader from 'js/ui/spectre/loader';

import GeneratorEditor from 'js/ui/components/editor/generator';
import Base from 'js/ui/components/view-layout/base';
import Breadcrumbs from 'js/ui/components/view-layout/breadcrumbs';

import { error } from 'js/ui/toast';

type GeneratorCreateProps = {
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/js/ui/views/generator/edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ import * as API from 'js/core/api';

import IconButton from 'js/ui/spectre/icon-button';
import Loader from 'js/ui/spectre/loader';

import Tooltip from 'js/ui/components/atomic/tooltip';
import GeneratorEditor from 'js/ui/components/editor/generator';
import Flex from 'js/ui/components/layout/flex';
import { openDevTools } from 'js/ui/components/print-preview';
import Base from 'js/ui/components/view-layout/base';
import Breadcrumbs from 'js/ui/components/view-layout/breadcrumbs';

import { error } from 'js/ui/toast';

type EditGeneratorProps = {
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/js/ui/views/generator/single.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import store from 'js/core/store';

import IconButton from 'js/ui/spectre/icon-button';
import Loader from 'js/ui/spectre/loader';

import Tooltip from 'js/ui/components/atomic/tooltip';
import Editor from 'js/ui/components/config/editor';
import Flex from 'js/ui/components/layout/flex';
Expand All @@ -17,6 +18,7 @@ import { openDevTools } from 'js/ui/components/print-preview';
import Base from 'js/ui/components/view-layout/base';
import Breadcrumbs from 'js/ui/components/view-layout/breadcrumbs';
import SidebarPrintPage from 'js/ui/components/view-layout/sidebar-print-page';

import { setPortal } from 'js/ui/portal';
import { dialogWarning, error, success } from 'js/ui/toast';

Expand Down
1 change: 1 addition & 0 deletions frontend/src/js/ui/views/home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import m from 'mithril';
import store from 'js/core/store';

import Button from 'js/ui/spectre/button';

import Icon from 'js/ui/components/atomic/icon';
import Logo from 'js/ui/components/atomic/logo';
import Title from 'js/ui/components/atomic/title';
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/js/ui/views/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ import Button from 'js/ui/spectre/button';
import IconButton from 'js/ui/spectre/icon-button';
import Input from 'js/ui/spectre/input';
import Select from 'js/ui/spectre/select';

import Title from 'js/ui/components/atomic/title';
import HorizontalProperty from 'js/ui/components/horizontal-property';
import Flex from 'js/ui/components/layout/flex';
import FullscreenLoader from 'js/ui/components/portal/fullscreen-loader';
import Base from 'js/ui/components/view-layout/base';
import PropertyEdit, { PropertyEditProps } from 'js/ui/components/view-layout/property-edit';
import PropertyHeader from 'js/ui/components/view-layout/property-header';

import { clearPortal, setPortal } from 'js/ui/portal';
import { error, neutral, success } from 'js/ui/toast';

Expand Down
Loading

0 comments on commit 1ff5daf

Please sign in to comment.