Skip to content

Commit 505e450

Browse files
committed
Update TodoMVC example to use v0.0.17.
1 parent f738b76 commit 505e450

File tree

6 files changed

+32
-31
lines changed

6 files changed

+32
-31
lines changed

examples/todo/brunch-config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ exports.config = {
3939
paths: {
4040
// Dependencies and current project directories to watch
4141
watched: [
42-
"deps/phoenix/web/static",
43-
"deps/phoenix_html/web/static",
4442
"web/static",
4543
"test/static"
4644
],
@@ -67,6 +65,7 @@ exports.config = {
6765
},
6866

6967
npm: {
70-
enabled: true
68+
enabled: true,
69+
whitelist: ["phoenix", "phoenix_html"]
7170
}
7271
};

examples/todo/mix.exs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ defmodule Todo.Mixfile do
3030
#
3131
# Type `mix help deps` for examples and options.
3232
defp deps do
33-
[{:phoenix, "~> 1.0.3"},
34-
{:phoenix_ecto, "~> 1.1"},
35-
{:postgrex, ">= 0.0.0"},
36-
{:phoenix_html, "~> 2.1"},
33+
[{:phoenix, "~> 1.1.4"},
34+
{:phoenix_ecto, "~> 2.0"},
35+
{:postgrex, "~> 0.11"},
36+
{:phoenix_html, "~> 2.3"},
3737
{:phoenix_live_reload, "~> 1.0", only: :dev},
3838
{:cowboy, "~> 1.0"},
39-
{:graphql_relay, "~> 0.0.14"},
40-
{:plug_graphql, "~> 0.2.0"}]
39+
{:graphql_relay, "~> 0.0.17"},
40+
{:plug_graphql, "~> 0.3.0"}]
4141
end
4242

4343
# Aliases are shortcut or tasks specific to the current project.

examples/todo/mix.lock

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
%{"connection": {:hex, :connection, "1.0.2"},
2-
"cowboy": {:hex, :cowboy, "1.0.4"},
3-
"cowlib": {:hex, :cowlib, "1.0.2"},
4-
"db_connection": {:hex, :db_connection, "0.2.4"},
5-
"decimal": {:hex, :decimal, "1.1.1"},
6-
"ecto": {:hex, :ecto, "1.1.5"},
7-
"fs": {:hex, :fs, "0.9.2"},
8-
"graphql": {:hex, :graphql, "0.2.0"},
9-
"graphql_relay": {:hex, :graphql_relay, "0.0.14"},
10-
"phoenix": {:hex, :phoenix, "1.0.4"},
11-
"phoenix_ecto": {:hex, :phoenix_ecto, "1.2.0"},
12-
"phoenix_html": {:hex, :phoenix_html, "2.5.1"},
13-
"phoenix_live_reload": {:hex, :phoenix_live_reload, "1.0.3"},
14-
"plug": {:hex, :plug, "1.1.2"},
15-
"plug_graphql": {:hex, :plug_graphql, "0.2.0"},
16-
"poison": {:hex, :poison, "1.5.2"},
17-
"poolboy": {:hex, :poolboy, "1.5.1"},
18-
"postgrex": {:hex, :postgrex, "0.11.1"},
19-
"ranch": {:hex, :ranch, "1.2.1"}}
1+
%{"connection": {:hex, :connection, "1.0.2", "f4a06dd3ecae4141aa66f94ce92ea4c4b8753069472814932f1cadbc3078ab80", [:mix], []},
2+
"cowboy": {:hex, :cowboy, "1.0.4", "a324a8df9f2316c833a470d918aaf73ae894278b8aa6226ce7a9bf699388f878", [:rebar, :make], [{:cowlib, "~> 1.0.0", [hex: :cowlib, optional: false]}, {:ranch, "~> 1.0", [hex: :ranch, optional: false]}]},
3+
"cowlib": {:hex, :cowlib, "1.0.2", "9d769a1d062c9c3ac753096f868ca121e2730b9a377de23dec0f7e08b1df84ee", [:make], []},
4+
"db_connection": {:hex, :db_connection, "0.2.5", "3e5e28019e0ec744345568d22a2f5206109bff0e2571f4d7819e0d14cf955f3e", [:mix], [{:sbroker, "~> 0.7", [hex: :sbroker, optional: true]}, {:poolboy, "~> 1.5", [hex: :poolboy, optional: true]}, {:connection, "~> 1.0.2", [hex: :connection, optional: false]}]},
5+
"decimal": {:hex, :decimal, "1.1.2", "79a769d4657b2d537b51ef3c02d29ab7141d2b486b516c109642d453ee08e00c", [:mix], []},
6+
"ecto": {:hex, :ecto, "1.1.7", "c37127248756e725eb8254b371764b40c05a90c104b2065d1d4f7e32573fdbec", [:mix], [{:sbroker, "~> 0.7", [hex: :sbroker, optional: true]}, {:postgrex, "~> 0.11.0", [hex: :postgrex, optional: true]}, {:poolboy, "~> 1.4", [hex: :poolboy, optional: false]}, {:poison, "~> 1.0 or ~> 2.0", [hex: :poison, optional: true]}, {:mariaex, "~> 0.5.0 or ~> 0.6.0", [hex: :mariaex, optional: true]}, {:decimal, "~> 1.0", [hex: :decimal, optional: false]}]},
7+
"fs": {:hex, :fs, "0.9.2", "ed17036c26c3f70ac49781ed9220a50c36775c6ca2cf8182d123b6566e49ec59", [:rebar], []},
8+
"graphql": {:hex, :graphql, "0.3.0", "4894f81e0010ff04a0349845f63a19f7f8cce754273bb06ecfe00b30dc685a86", [:mix], []},
9+
"graphql_relay": {:hex, :graphql_relay, "0.0.17", "d5ce633b85c9103ab0507dd3c4e9103d8d14ea9bd316d35fb9cbc9ba31234c5c", [:mix], [{:poison, "~> 1.5 or ~> 2.0", [hex: :poison, optional: false]}, {:graphql, "~> 0.3", [hex: :graphql, optional: false]}, {:ecto, "~> 1.1.4", [hex: :ecto, optional: true]}]},
10+
"phoenix": {:hex, :phoenix, "1.1.4", "65809fba92eb94377372a5fb5a561197654bb8406e773cc47ca1a031bbe58019", [:mix], [{:poison, "~> 1.5 or ~> 2.0", [hex: :poison, optional: false]}, {:plug, "~> 1.0", [hex: :plug, optional: false]}, {:cowboy, "~> 1.0", [hex: :cowboy, optional: true]}]},
11+
"phoenix_ecto": {:hex, :phoenix_ecto, "2.0.2", "1aff51d1cd21cc39d7891cae2284399cbf4b8e32fb7864e68f5d272d2934e48a", [:mix], [{:poison, "~> 1.3 or ~> 2.0", [hex: :poison, optional: true]}, {:phoenix_html, "~> 2.2", [hex: :phoenix_html, optional: true]}, {:ecto, "~> 1.1.2", [hex: :ecto, optional: false]}]},
12+
"phoenix_html": {:hex, :phoenix_html, "2.5.1", "631053f9e345fecb5c87d9e0ccd807f7266d27e2ee4269817067af425fd81ba8", [:mix], [{:plug, "~> 0.13 or ~> 1.0", [hex: :plug, optional: false]}]},
13+
"phoenix_live_reload": {:hex, :phoenix_live_reload, "1.0.5", "829218c4152ba1e9848e2bf8e161fcde6b4ec679a516259442561d21fde68d0b", [:mix], [{:phoenix, "~> 1.0 or ~> 1.2-rc", [hex: :phoenix, optional: false]}, {:fs, "~> 0.9.1", [hex: :fs, optional: false]}]},
14+
"plug": {:hex, :plug, "1.1.5", "de5645c18170415a72b18cc3d215c05321ddecac27a15acb923742156e98278b", [:mix], [{:cowboy, "~> 1.0", [hex: :cowboy, optional: true]}]},
15+
"plug_graphql": {:hex, :plug_graphql, "0.3.0", "17952a585b4eaf1a7941ab4fbfca8f812fdc897905fa616cde72135a479b5dc1", [:mix], [{:poison, "~> 1.5 or ~> 2.0", [hex: :poison, optional: false]}, {:plug, "~> 0.14 or ~> 1.0", [hex: :plug, optional: false]}, {:graphql, "~> 0.3", [hex: :graphql, optional: false]}, {:cowboy, "~> 1.0", [hex: :cowboy, optional: false]}]},
16+
"poison": {:hex, :poison, "2.1.0", "f583218ced822675e484648fa26c933d621373f01c6c76bd00005d7bd4b82e27", [:mix], []},
17+
"poolboy": {:hex, :poolboy, "1.5.1", "6b46163901cfd0a1b43d692657ed9d7e599853b3b21b95ae5ae0a777cf9b6ca8", [:rebar], []},
18+
"postgrex": {:hex, :postgrex, "0.11.1", "f48af70c0a58b9bfd1aaa456ec4273624554cfb837726b6a7f0701da4a94b2dd", [:mix], [{:decimal, "~> 1.0", [hex: :decimal, optional: false]}, {:db_connection, "~> 0.2", [hex: :db_connection, optional: false]}, {:connection, "~> 1.0", [hex: :connection, optional: false]}]},
19+
"ranch": {:hex, :ranch, "1.2.1", "a6fb992c10f2187b46ffd17ce398ddf8a54f691b81768f9ef5f461ea7e28c762", [:make], []}}

examples/todo/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
"graphql-relay": "0.3.6",
1717
"history": "1.17.0",
1818
"javascript-brunch": ">= 1.0 < 1.8",
19+
"phoenix": "file:deps/phoenix",
20+
"phoenix_html": "file:deps/phoenix_html",
1921
"react": "0.14.7",
2022
"react-dom": "0.14.7",
2123
"react-relay": "^0.7.0",

examples/todo/web/static/js/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
//
1212
// If you no longer want to use a dependency, remember
1313
// to also remove its path from "config.paths.watched".
14-
import "deps/phoenix_html/web/static/js/phoenix_html"
14+
import "phoenix_html"
1515

1616
// Import local files
1717
//
1818
// Local files can be imported directly using relative
1919
// paths "./socket" or full ones "web/static/js/socket".
2020

21-
// import socket from "./socket"
21+
// import {Socket} from "phoenix"
2222
import 'babel-polyfill';
2323
import 'todomvc-common';
2424
import {createHashHistory} from 'history';

examples/todo/web/templates/layout/app.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<body>
1111
<div id="root"></div>
12-
<%= @inner %>
12+
<%= render @view_module, @view_template, assigns %>
1313
<script src="<%= static_path(@conn, "/js/app.js") %>"></script>
1414
</body>
1515
</html>

0 commit comments

Comments
 (0)