Skip to content

Commit

Permalink
Remove unnecessary stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
emilsoman committed Aug 27, 2016
1 parent d65a8c3 commit 74b2294
Show file tree
Hide file tree
Showing 17 changed files with 12 additions and 360 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ erl_crash.dump
# secrets file as long as you replace its contents by environment
# variables.
/config/prod.secret.exs
/doc
4 changes: 4 additions & 0 deletions lib/laboratory.ex
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ defmodule Laboratory do
Laboratory.Endpoint.config_change(changed, removed)
:ok
end

def enabled?(conn, feature) when is_atom(feature) do
conn.cookies[to_string(feature)] == "true"
end
end
7 changes: 5 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,17 @@ defmodule Laboratory.Mixfile do
[{:phoenix, ">= 1.0.0 and < 2.0.0"},
{:phoenix_html, "~> 2.6"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:cowboy, "~> 1.0", only: :dev}]
{:cowboy, "~> 1.0", only: :dev},
{:ex_doc, ">= 0.0.0", only: :dev}]
end

defp package do
[
maintainers: ["Emil Soman"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/code-mancers/laboratory"}
links: %{"GitHub" => "https://github.com/code-mancers/laboratory"},
files: ~w(lib priv web) ++
~w(brunch-config.js mix.exs package.json README.md)
]
end
end
2 changes: 2 additions & 0 deletions mix.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%{"cowboy": {:hex, :cowboy, "1.0.4", "a324a8df9f2316c833a470d918aaf73ae894278b8aa6226ce7a9bf699388f878", [:rebar, :make], [{:cowlib, "~> 1.0.0", [hex: :cowlib, optional: false]}, {:ranch, "~> 1.0", [hex: :ranch, optional: false]}]},
"cowlib": {:hex, :cowlib, "1.0.2", "9d769a1d062c9c3ac753096f868ca121e2730b9a377de23dec0f7e08b1df84ee", [:make], []},
"earmark": {:hex, :earmark, "1.0.1", "2c2cd903bfdc3de3f189bd9a8d4569a075b88a8981ded9a0d95672f6e2b63141", [:mix], []},
"ex_doc": {:hex, :ex_doc, "0.13.0", "aa2f8fe4c6136a2f7cfc0a7e06805f82530e91df00e2bff4b4362002b43ada65", [:mix], [{:earmark, "~> 1.0", [hex: :earmark, optional: false]}]},
"fs": {:hex, :fs, "0.9.2", "ed17036c26c3f70ac49781ed9220a50c36775c6ca2cf8182d123b6566e49ec59", [:rebar], []},
"gettext": {:hex, :gettext, "0.11.0", "80c1dd42d270482418fa158ec5ba073d2980e3718bacad86f3d4ad71d5667679", [:mix], []},
"mime": {:hex, :mime, "1.0.1", "05c393850524767d13a53627df71beeebb016205eb43bfbd92d14d24ec7a1b51", [:mix], []},
Expand Down
66 changes: 0 additions & 66 deletions test/controllers/feature_controller_test.exs

This file was deleted.

8 changes: 0 additions & 8 deletions test/controllers/page_controller_test.exs

This file was deleted.

33 changes: 0 additions & 33 deletions test/support/channel_case.ex

This file was deleted.

34 changes: 0 additions & 34 deletions test/support/conn_case.ex

This file was deleted.

2 changes: 0 additions & 2 deletions test/test_helper.exs

This file was deleted.

21 changes: 0 additions & 21 deletions test/views/error_view_test.exs

This file was deleted.

3 changes: 0 additions & 3 deletions test/views/layout_view_test.exs

This file was deleted.

3 changes: 0 additions & 3 deletions test/views/page_view_test.exs

This file was deleted.

37 changes: 0 additions & 37 deletions web/channels/user_socket.ex

This file was deleted.

Binary file removed web/static/assets/images/phoenix.png
Binary file not shown.
82 changes: 0 additions & 82 deletions web/static/css/phoenix.css

This file was deleted.

62 changes: 0 additions & 62 deletions web/static/js/socket.js

This file was deleted.

7 changes: 0 additions & 7 deletions web/web.ex
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ defmodule Laboratory.Web do
end
end

def channel do
quote do
use Phoenix.Channel
import Laboratory.Gettext
end
end

@doc """
When used, dispatch to the appropriate controller/view/etc.
"""
Expand Down

0 comments on commit 74b2294

Please sign in to comment.