Skip to content

Commit

Permalink
Standardize on mithril import
Browse files Browse the repository at this point in the history
  • Loading branch information
josephspurrier committed Jul 7, 2020
1 parent 93907d5 commit 3da2b29
Show file tree
Hide file tree
Showing 28 changed files with 28 additions and 42 deletions.
3 changes: 1 addition & 2 deletions src/app/ui/src/component/flash.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line no-unused-vars
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars

// Create a flash message class with Bulma.
// http://bulma.io/documentation/components/message/
Expand Down
3 changes: 1 addition & 2 deletions src/app/ui/src/component/flash.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line no-unused-vars
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import {
withKnobs,
text,
Expand Down
3 changes: 1 addition & 2 deletions src/app/ui/src/component/input.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line no-unused-vars
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars

var View = () => {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/src/component/menu.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import CookieStore from "@/module/cookiestore";

function logout() {
Expand Down
3 changes: 1 addition & 2 deletions src/app/ui/src/component/menu.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line no-unused-vars
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import { withKnobs } from "@storybook/addon-knobs";
import { withA11y } from "@storybook/addon-a11y";
import Menu from "./menu";
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/src/component/mockrequest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars

var Mock = {
ok: (data, redraw) => {
Expand Down
3 changes: 1 addition & 2 deletions src/app/ui/src/component/note.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line no-unused-vars
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import Debounce from "@/module/debounce";
import NoteStore from "@/store/notestore";

Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/src/component/simple-page.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars

var Page = {
view: (vnode) =>
Expand Down
3 changes: 1 addition & 2 deletions src/app/ui/src/component/simple-page.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line no-unused-vars
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import { withKnobs, text } from "@storybook/addon-knobs";
import { withA11y } from "@storybook/addon-a11y";
import SimplePage from "@/component/simple-page";
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/src/example/block.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars

var Block = {
view: (vnode) => m("", <div>{vnode.children}</div>),
Expand Down
3 changes: 1 addition & 2 deletions src/app/ui/src/example/block.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line no-unused-vars
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import { action } from "@storybook/addon-actions";
import { withKnobs, text, boolean, number } from "@storybook/addon-knobs";
import { withA11y } from "@storybook/addon-a11y";
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import AboutPage from "@/view/about";
import LoginPage from "@/view/login";
import RegisterPage from "@/view/register";
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/src/layout/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import Menu from "@/component/menu";
import Flash from "@/component/flash";

Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/src/store/notestore.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import Flash from "@/component/flash";
import CookieStore from "@/module/cookiestore";

Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/src/store/userlogin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import Submit from "@/module/submit";
import Flash from "@/component/flash";
import CookieStore from "@/module/cookiestore";
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/src/store/userregister.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import Submit from "@/module/submit";
import Flash from "@/component/flash";

Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/src/view/about.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import SimplePage from "@/component/simple-page";

var data = {
Expand Down
3 changes: 1 addition & 2 deletions src/app/ui/src/view/about.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line no-unused-vars
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import { withKnobs } from "@storybook/addon-knobs";
import { withA11y } from "@storybook/addon-a11y";
import AboutPage from "@/view/about";
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/src/view/error.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars

var data = {
title: "Error",
Expand Down
3 changes: 1 addition & 2 deletions src/app/ui/src/view/error.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line no-unused-vars
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import { withKnobs } from "@storybook/addon-knobs";
import { withA11y } from "@storybook/addon-a11y";
import ErrorPage from "@/view/error";
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/src/view/home.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars

var data = {
title: "Welcome",
Expand Down
3 changes: 1 addition & 2 deletions src/app/ui/src/view/home.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line no-unused-vars
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import { withKnobs } from "@storybook/addon-knobs";
import { withA11y } from "@storybook/addon-a11y";
import HomePage from "@/view/home";
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/src/view/login.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import UserLogin from "@/store/userlogin";
import Input from "@/component/input";

Expand Down
3 changes: 1 addition & 2 deletions src/app/ui/src/view/login.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line no-unused-vars
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import { withKnobs, select, text } from "@storybook/addon-knobs";
import { withA11y } from "@storybook/addon-a11y";
import LoginPage from "@/view/login";
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/src/view/notepad.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import NoteStore from "@/store/notestore";
import Note from "@/component/note";

Expand Down
3 changes: 1 addition & 2 deletions src/app/ui/src/view/notepad.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line no-unused-vars
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import { withKnobs } from "@storybook/addon-knobs";
import { withA11y } from "@storybook/addon-a11y";
import NotepadPage from "@/view/notepad";
Expand Down
3 changes: 1 addition & 2 deletions src/app/ui/src/view/register.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line no-unused-vars
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import UserRegister from "@/store/userregister";

var data = {
Expand Down
3 changes: 1 addition & 2 deletions src/app/ui/src/view/register.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line no-unused-vars
import m from "mithril";
import m from "mithril"; // eslint-disable-line no-unused-vars
import { withKnobs, select, text } from "@storybook/addon-knobs";
import { withA11y } from "@storybook/addon-a11y";
import RegisterPage from "@/view/register";
Expand Down

0 comments on commit 3da2b29

Please sign in to comment.