Skip to content

Commit

Permalink
Shuffle files
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkace committed Mar 14, 2018
1 parent 407bcfd commit a77750f
Show file tree
Hide file tree
Showing 25 changed files with 39 additions and 37 deletions.
2 changes: 1 addition & 1 deletion src/error/index.css → src/components/error/index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value fontSerif from "../index.css";
@value fontSerif from "../../index.css";

.error {
margin: 1em 0;
Expand Down
2 changes: 1 addition & 1 deletion src/error/index.js → src/components/error/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import m from "mithril";

import state from "../state";
import state from "../../state";

import css from "./index.css";

Expand Down
6 changes: 3 additions & 3 deletions src/header/index.css → src/components/header/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@value * as colors from "../palette.css";
@value animDur from "../index.css";
@value * as colors from "../../palette.css";
@value animDur from "../../index.css";

.header {
position: relative;
Expand Down Expand Up @@ -62,5 +62,5 @@
}

.title {
composes: title from "../index.css";
composes: title from "../../index.css";
}
4 changes: 2 additions & 2 deletions src/header/index.js → src/components/header/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import m from "mithril";

import state from "../state";
import state from "../../state";

import css from "./index.css";
import tools from "../tools";

import logo from "../icons/lyrite-logo.svg";

import animResolve from "../lib/animResolve";
import animResolve from "../../lib/animResolve";

export default {
oncreate : (vnode) => {
Expand Down
8 changes: 4 additions & 4 deletions src/home/index.css → src/components/home/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@value * as colors from "../palette.css";
@value fontSans, fontSerif, animDur from "../index.css";
@value * as colors from "../../palette.css";
@value fontSans, fontSerif, animDur from "../../index.css";

.home {
padding: 1em 0.5em 0;
Expand All @@ -22,7 +22,7 @@
}

.title {
composes: title from "../index.css";
composes: title from "../../index.css";

font-size: 3em;
font-weight: bold;
Expand Down Expand Up @@ -91,7 +91,7 @@
}

.loadBtn {
composes: button from "../index.css";
composes: button from "../../index.css";

color: #fff !important;
--color: colors.cta;
Expand Down
2 changes: 1 addition & 1 deletion src/home/index.js → src/components/home/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import m from "mithril";

import state from "../state";
import state from "../../state";

import css from "./index.css";

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion src/layout/index.css → src/components/layout/index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value animDur from "../index.css";
@value animDur from "../../index.css";

.github {
display: block;
Expand Down
2 changes: 1 addition & 1 deletion src/layout/index.js → src/components/layout/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import m from "mithril";

import state from "../state";
import state from "../../state";

import css from "./index.css";
import header from "../header";
Expand Down
2 changes: 1 addition & 1 deletion src/lyrics/edit.css → src/components/lyrics/edit.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value animDur from "../index.css";
@value animDur from "../../index.css";

.edit {
position: absolute;
Expand Down
4 changes: 2 additions & 2 deletions src/lyrics/edit.js → src/components/lyrics/edit.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import m from "mithril";

import state from "../state";
import state from "../../state";

import css from "./edit.css";
import animResolve from "../lib/animResolve";
import animResolve from "../../lib/animResolve";

export default {
onbeforeremove : (vnode) =>
Expand Down
4 changes: 2 additions & 2 deletions src/lyrics/index.css → src/components/lyrics/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@value * as colors from "../palette.css";
@value animDur from "../index.css";
@value * as colors from "../../palette.css";
@value animDur from "../../index.css";

.lyredit {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion src/lyrics/index.js → src/components/lyrics/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import m from "mithril";

import state from "../state";
import state from "../../state";

import css from "./index.css";
import edit from "./edit";
Expand Down
4 changes: 2 additions & 2 deletions src/modal/index.css → src/components/modal/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@value * as colors from "../palette.css";
@value animDur from "../index.css";
@value * as colors from "../../palette.css";
@value animDur from "../../index.css";

.modal {
position: fixed;
Expand Down
4 changes: 2 additions & 2 deletions src/modal/index.js → src/components/modal/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import m from "mithril";

import state from "../state";
import animResolve from "../lib/animResolve";
import state from "../../state";
import animResolve from "../../lib/animResolve";

import css from "./index.css";
import title from "./title";
Expand Down
6 changes: 3 additions & 3 deletions src/modal/title.css → src/components/modal/title.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value * as colors from "../palette.css";
@value * as colors from "../../palette.css";

.label {
display: block;
Expand All @@ -19,13 +19,13 @@
}

.add {
composes: button from "../index.css";
composes: button from "../../index.css";

--color: colors.cta;
color: #fff;
}

.cancel {
composes: button from "../index.css";
composes: button from "../../index.css";
color: #999;
}
2 changes: 1 addition & 1 deletion src/modal/title.js → src/components/modal/title.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import m from "mithril";

import state from "../state";
import state from "../../state";

import css from "./title.css";

Expand Down
6 changes: 3 additions & 3 deletions src/tools/index.css → src/components/tools/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@value * as colors from "../palette.css";
@value animDur from "../index.css";
@value * as colors from "../../palette.css";
@value animDur from "../../index.css";

.tools {
position: absolute;
Expand Down Expand Up @@ -64,7 +64,7 @@
}

.button {
composes: button from "../index.css";
composes: button from "../../index.css";

font-family: monospace;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tools/index.js → src/components/tools/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import m from "mithril";

import state from "../state";
import state from "../../state";

import css from "./index.css";
import tooltipCss from "./tooltip.css";
Expand Down
2 changes: 1 addition & 1 deletion src/tools/tooltip.css → src/components/tools/tooltip.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value * as colors from "../palette.css";
@value * as colors from "../../palette.css";

.tooltip {
position: fixed;
Expand Down
1 change: 1 addition & 0 deletions src/lib/animResolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default function(dom, className) {

resd = true;
rej(false);
console.log("anim resolve timeout");
}, MAX_TIMEOUT);

dom.addEventListener("animationend", () => {
Expand Down
8 changes: 4 additions & 4 deletions src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import m from "mithril";

import state from "./state";

import layout from "./layout";
import lyrics from "./lyrics";
import error from "./error";
import home from "./home";
import layout from "./components/layout";
import lyrics from "./components/lyrics";
import error from "./components/error";
import home from "./components/home";

export default {
"/" : {
Expand Down
1 change: 1 addition & 0 deletions src/state/song.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import slugify from "slugify";

const titleSplit = "\n\n---\n\n";

// todo: why require
const songs = [
require("../songs/smells-like-teen-spirit.txt"),
require("../songs/judy-is-a-punk.txt"),
Expand Down

0 comments on commit a77750f

Please sign in to comment.