Skip to content

Commit 1bba77b

Browse files
added project
1 parent c7d6783 commit 1bba77b

File tree

80 files changed

+9590
-36
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+9590
-36
lines changed

users_auth_umbrella/apps/users_auth_web/lib/users_auth_web/router.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ defmodule UsersAuthWeb.Router do
5555
end
5656

5757
scope "/admin", UsersAuthWeb do
58-
pipe_through [:browser, :auth, :ensure_auth]
58+
pipe_through [:browser, :auth, :ensure_auth, :allowed_for_admins]
5959

6060
resources "/users", UserController
6161
get "/", PageController, :admin_index
Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,12 @@
11
<section class="phx-hero">
22
<h1><%= gettext "Welcome to %{name}!", name: "Phoenix" %></h1>
3-
<p>A productive web framework that<br/>does not compromise speed or maintainability.</p>
3+
<p>A productive web framework that<br />does not compromise speed or maintainability.</p>
44
</section>
55

66
<section class="row">
77
this page is for: <%= @role %>
88
<br>
9-
user accounts with password "t"
9+
user accounts with password "t":
1010
<br>
1111
user - manager - admin
1212
</section>
13-
14-
<section class="row">
15-
<article class="column">
16-
<h2>Resources</h2>
17-
<ul>
18-
<li>
19-
<a href="https://hexdocs.pm/phoenix/overview.html">Guides &amp; Docs</a>
20-
</li>
21-
<li>
22-
<a href="https://github.com/phoenixframework/phoenix">Source</a>
23-
</li>
24-
<li>
25-
<a href="https://github.com/phoenixframework/phoenix/blob/v1.4/CHANGELOG.md">v1.4 Changelog</a>
26-
</li>
27-
</ul>
28-
</article>
29-
<article class="column">
30-
<h2>Help</h2>
31-
<ul>
32-
<li>
33-
<a href="https://elixirforum.com/c/phoenix-forum">Forum</a>
34-
</li>
35-
<li>
36-
<a href="https://webchat.freenode.net/?channels=elixir-lang">#elixir-lang on Freenode IRC</a>
37-
</li>
38-
<li>
39-
<a href="https://twitter.com/elixirphoenix">Twitter @elixirphoenix</a>
40-
</li>
41-
</ul>
42-
</article>
43-
</section>

users_auth_umbrella/config/config.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ config :users_auth_web,
1818
generators: [context_app: :users_auth]
1919

2020

21-
config :user_auth_web, UsersAuthWeb.Guardian,
22-
issuer: "user_auth_web",
21+
config :users_auth_web, UsersAuthWeb.Guardian,
22+
issuer: "users_auth_web",
2323
secret_key: "nM7Q0coKP2cKyjMpW732yHC1vgH0//oQX6Br/nKWmt1b6RfKh8erYwzUJ6B3NdQ1"
2424

2525
# Configures the endpoint
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
inputs: ["mix.exs", "config/*.exs"],
3+
subdirectories: ["apps/*"]
4+
]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# The directory Mix will write compiled artifacts to.
2+
/_build/
3+
4+
# If you run "mix test --cover", coverage assets end up here.
5+
/cover/
6+
7+
# The directory Mix downloads your dependencies sources to.
8+
/deps/
9+
10+
# Where 3rd-party dependencies like ExDoc output generated docs.
11+
/doc/
12+
13+
# Ignore .fetch files in case you like to edit your project deps locally.
14+
/.fetch
15+
16+
# If the VM crashes, it generates a dump, let's ignore it too.
17+
erl_crash.dump
18+
19+
# Also ignore archive artifacts (built via "mix archive.build").
20+
*.ez
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# VanderhulstKasperIpmProject.Umbrella
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[
2+
import_deps: [:ecto],
3+
inputs: ["*.{ex,exs}", "priv/*/seeds.exs", "{config,lib,test}/**/*.{ex,exs}"],
4+
subdirectories: ["priv/*/migrations"]
5+
]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# The directory Mix will write compiled artifacts to.
2+
/_build/
3+
4+
# If you run "mix test --cover", coverage assets end up here.
5+
/cover/
6+
7+
# The directory Mix downloads your dependencies sources to.
8+
/deps/
9+
10+
# Where 3rd-party dependencies like ExDoc output generated docs.
11+
/doc/
12+
13+
# Ignore .fetch files in case you like to edit your project deps locally.
14+
/.fetch
15+
16+
# If the VM crashes, it generates a dump, let's ignore it too.
17+
erl_crash.dump
18+
19+
# Also ignore archive artifacts (built via "mix archive.build").
20+
*.ez
21+
22+
# Ignore package tarball (built via "mix hex.build").
23+
vanderhulst_kasper_ipm_project-*.tar
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# VanderhulstKasperIpmProject
2+
3+
**TODO: Add description**
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
defmodule VanderhulstKasperIpmProject do
2+
@moduledoc """
3+
VanderhulstKasperIpmProject keeps the contexts that define your domain
4+
and business logic.
5+
6+
Contexts are also responsible for managing your data, regardless
7+
if it comes from the database, an external API or others.
8+
"""
9+
end

0 commit comments

Comments
 (0)