4 Commits

  1. 15
      CHANGELOG.md
  2. 6
      assets/css/_nprogress.scss
  3. 16
      assets/css/_phoenix.scss
  4. 18
      assets/css/_variables.scss
  5. 3
      assets/css/app.scss
  6. 6
      assets/static/docs/404.html
  7. 8
      assets/static/docs/Mirage.Accounts.User.html
  8. 8
      assets/static/docs/Mirage.Accounts.UserNotifier.html
  9. 8
      assets/static/docs/Mirage.Accounts.UserToken.html
  10. 94
      assets/static/docs/Mirage.Accounts.html
  11. 8
      assets/static/docs/Mirage.Links.Link.html
  12. 8
      assets/static/docs/Mirage.Links.LinkTopic.html
  13. 44
      assets/static/docs/Mirage.Links.html
  14. 8
      assets/static/docs/Mirage.Lists.List.html
  15. 46
      assets/static/docs/Mirage.Lists.html
  16. 8
      assets/static/docs/Mirage.Markdown.html
  17. 8
      assets/static/docs/Mirage.Notes.Note.html
  18. 8
      assets/static/docs/Mirage.Notes.NoteLink.html
  19. 8
      assets/static/docs/Mirage.Notes.NoteNote.html
  20. 8
      assets/static/docs/Mirage.Notes.NoteTopic.html
  21. 48
      assets/static/docs/Mirage.Notes.html
  22. 8
      assets/static/docs/Mirage.Release.html
  23. 8
      assets/static/docs/Mirage.Repo.html
  24. 8
      assets/static/docs/Mirage.Settings.Setting.html
  25. 52
      assets/static/docs/Mirage.Settings.html
  26. 8
      assets/static/docs/Mirage.Slug.html
  27. 12
      assets/static/docs/Mirage.Tags.html
  28. 8
      assets/static/docs/Mirage.Topics.Topic.html
  29. 46
      assets/static/docs/Mirage.Topics.html
  30. BIN
      assets/static/docs/Mirage.epub
  31. 8
      assets/static/docs/Mirage.html
  32. 8
      assets/static/docs/MirageWeb.BlogLive.html
  33. 8
      assets/static/docs/MirageWeb.Endpoint.html
  34. 8
      assets/static/docs/MirageWeb.ErrorHelpers.html
  35. 8
      assets/static/docs/MirageWeb.ErrorView.html
  36. 16
      assets/static/docs/MirageWeb.Gettext.html
  37. 8
      assets/static/docs/MirageWeb.GotoAnythingLive.html
  38. 8
      assets/static/docs/MirageWeb.HomeLive.html
  39. 8
      assets/static/docs/MirageWeb.InboxLive.Index.html
  40. 8
      assets/static/docs/MirageWeb.InboxLive.ItemComponent.html
  41. 8
      assets/static/docs/MirageWeb.LayoutView.html
  42. 8
      assets/static/docs/MirageWeb.LinkLive.FormComponent.html
  43. 8
      assets/static/docs/MirageWeb.LinkLive.Index.html
  44. 8
      assets/static/docs/MirageWeb.LinkLive.Show.html
  45. 8
      assets/static/docs/MirageWeb.ListLive.FormComponent.html
  46. 8
      assets/static/docs/MirageWeb.ListLive.Index.html
  47. 8
      assets/static/docs/MirageWeb.ListLive.Show.html
  48. 10
      assets/static/docs/MirageWeb.LiveHelpers.html
  49. 8
      assets/static/docs/MirageWeb.ModalComponent.html
  50. 8
      assets/static/docs/MirageWeb.NoteLive.FormComponent.html
  51. 8
      assets/static/docs/MirageWeb.NoteLive.Index.html
  52. 8
      assets/static/docs/MirageWeb.NoteLive.Show.html
  53. 8
      assets/static/docs/MirageWeb.Router.Helpers.html
  54. 8
      assets/static/docs/MirageWeb.Router.html
  55. 8
      assets/static/docs/MirageWeb.SettingController.html
  56. 8
      assets/static/docs/MirageWeb.SettingView.html
  57. 8
      assets/static/docs/MirageWeb.SharedView.html
  58. 8
      assets/static/docs/MirageWeb.Telemetry.html
  59. 8
      assets/static/docs/MirageWeb.TopicController.html
  60. 8
      assets/static/docs/MirageWeb.TopicView.html
  61. 8
      assets/static/docs/MirageWeb.UserAuth.html
  62. 8
      assets/static/docs/MirageWeb.UserConfirmationController.html
  63. 8
      assets/static/docs/MirageWeb.UserConfirmationView.html
  64. 8
      assets/static/docs/MirageWeb.UserRegistrationController.html
  65. 8
      assets/static/docs/MirageWeb.UserRegistrationView.html
  66. 8
      assets/static/docs/MirageWeb.UserResetPasswordController.html
  67. 8
      assets/static/docs/MirageWeb.UserResetPasswordView.html
  68. 8
      assets/static/docs/MirageWeb.UserSessionController.html
  69. 8
      assets/static/docs/MirageWeb.UserSessionView.html
  70. 8
      assets/static/docs/MirageWeb.UserSettingsController.html
  71. 8
      assets/static/docs/MirageWeb.UserSettingsView.html
  72. 8
      assets/static/docs/MirageWeb.UserSocket.html
  73. 8
      assets/static/docs/MirageWeb.UserView.html
  74. 8
      assets/static/docs/MirageWeb.html
  75. 8
      assets/static/docs/api-reference.html
  76. 2
      assets/static/docs/index.html
  77. 6
      assets/static/docs/readme.html
  78. 6
      assets/static/docs/search.html
  79. 2
      lib/mirage_web/templates/layout/root.html.leex
  80. 2
      mix.exs

15
CHANGELOG.md

@ -5,6 +5,21 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline
<!-- changelog -->
## [v0.78.0](https://git.inhji.de/inhji/mirage/compare/v0.77.0...v0.78.0) (2021-03-16)
### Chores:
* Update Docs
### Features:
* add link to topics to main nav
* re-add nprogress, prism, phoenix styles, clean up
## [v0.77.0](https://git.inhji.de/inhji/mirage/compare/v0.76.0...v0.77.0) (2021-03-16)

6
assets/css/_nprogress.scss

@ -1,12 +1,10 @@
$bar-color: rgba(131,58,180,1);
/* Make clicks pass-through */
#nprogress {
pointer-events: none;
}
#nprogress .bar {
background: $bar-color;
background: var(--primary);
position: fixed;
z-index: 1031;
@ -24,7 +22,7 @@ $bar-color: rgba(131,58,180,1);
right: 0px;
width: 100px;
height: 100%;
box-shadow: 0 0 10px $bar-color, 0 0 5px $bar-color;
box-shadow: 0 0 10px var(--primary), 0 0 5px var(--primary);
opacity: 1.0;
-webkit-transform: rotate(3deg) translate(0px, -4px);

16
assets/css/_phoenix.scss

@ -7,16 +7,16 @@
font-weight: bold;
}
.alert-info {
color: $color-info;
background-color: $bg-info;
color: var(--light);
background-color: var(--info);
}
.alert-warning {
color: $color-warning;
background-color: $bg-warning;
color: var(--dark);
background-color: var(--warning);
}
.alert-danger {
color: $color-danger;
background-color: $bg-danger;
color: var(--light);
background-color: var(--danger);
}
.alert p {
margin-bottom: 0;
@ -25,8 +25,8 @@
display: none;
}
.invalid-feedback {
color: $color-danger;
background: $bg-danger;
color: var(--danger);
background: var(--light);
display: block;
padding: 0.5rem;
}

18
assets/css/_variables.scss

@ -9,19 +9,19 @@
--green: #28a745;
--teal: #20c997;
--cyan: #17a2b8;
--white: #fff;
--white: #f8f9fa;
--gray: #6c757d;
--gray-dark: #343a40;
--gray-light: #cccccc;
--primary: #007bff;
--secondary: #6c757d;
--success: #28a745;
--info: #17a2b8;
--warning: #ffc107;
--danger: #dc3545;
--light: #f8f9fa;
--dark: #343a40;
--primary: var(--red);
--secondary: var(--gray);
--success: var(--green);
--info: var(--teal);
--warning: var(--yellow);
--danger: var(--red);
--light: var(--white);
--dark: var(--gray-dark);
--breakpoint-phone: 768px;
--width-main: 100%;

3
assets/css/app.scss

@ -3,6 +3,9 @@
@import "./variables";
@import "./navigation";
@import "./phoenix";
@import "./nprogress";
@import "./prism";
body {
margin-left: calc(var(--width-sidebar) + var(--ok-s-3));

6
assets/static/docs/404.html

@ -5,11 +5,11 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.23.0">
<meta name="project" content="Mirage v0.76.0">
<meta name="project" content="Mirage v0.77.0">
<meta name="author" content="Inhji">
<title>404 — Mirage v0.76.0</title>
<title>404 — Mirage v0.77.0</title>
<link rel="stylesheet" href="dist/elixir-9f91ebe876dc01d67920.css" />
<script src="dist/sidebar_items-17f2396166.js"></script>
@ -52,7 +52,7 @@
Mirage
</a>
<strong class="sidebar-projectVersion">
v0.76.0
v0.77.0
</strong>
</div>

8
assets/static/docs/Mirage.Accounts.User.html

@ -5,11 +5,11 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.23.0">
<meta name="project" content="Mirage v0.76.0">
<meta name="project" content="Mirage v0.77.0">
<meta name="author" content="Inhji">
<title>Mirage.Accounts.User — Mirage v0.76.0</title>
<title>Mirage.Accounts.User — Mirage v0.77.0</title>
<link rel="stylesheet" href="dist/elixir-9f91ebe876dc01d67920.css" />
<script src="dist/sidebar_items-17f2396166.js"></script>
@ -52,7 +52,7 @@
Mirage
</a>
<strong class="sidebar-projectVersion">
v0.76.0
v0.77.0
</strong>
</div>
@ -74,7 +74,7 @@ Mirage
<div id="content" class="content-inner">
<h1>
Mirage.Accounts.User <small class="app-vsn">(Mirage v0.76.0)</small>
Mirage.Accounts.User <small class="app-vsn">(Mirage v0.77.0)</small>
<a href="https://git.inhji.de/inhji/mirage/src/branch/main/lib/mirage/accounts/user.ex#L1" title="View Source" class="view-source" rel="help">
<span class="icon-code" aria-hidden="true"></span>

8
assets/static/docs/Mirage.Accounts.UserNotifier.html

@ -5,11 +5,11 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.23.0">
<meta name="project" content="Mirage v0.76.0">
<meta name="project" content="Mirage v0.77.0">
<meta name="author" content="Inhji">
<title>Mirage.Accounts.UserNotifier — Mirage v0.76.0</title>
<title>Mirage.Accounts.UserNotifier — Mirage v0.77.0</title>
<link rel="stylesheet" href="dist/elixir-9f91ebe876dc01d67920.css" />
<script src="dist/sidebar_items-17f2396166.js"></script>
@ -52,7 +52,7 @@
Mirage
</a>
<strong class="sidebar-projectVersion">
v0.76.0
v0.77.0
</strong>
</div>
@ -74,7 +74,7 @@ Mirage
<div id="content" class="content-inner">
<h1>
Mirage.Accounts.UserNotifier <small class="app-vsn">(Mirage v0.76.0)</small>
Mirage.Accounts.UserNotifier <small class="app-vsn">(Mirage v0.77.0)</small>
<a href="https://git.inhji.de/inhji/mirage/src/branch/main/lib/mirage/accounts/user_notifier.ex#L1" title="View Source" class="view-source" rel="help">
<span class="icon-code" aria-hidden="true"></span>

8
assets/static/docs/Mirage.Accounts.UserToken.html

@ -5,11 +5,11 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.23.0">
<meta name="project" content="Mirage v0.76.0">
<meta name="project" content="Mirage v0.77.0">
<meta name="author" content="Inhji">
<title>Mirage.Accounts.UserToken — Mirage v0.76.0</title>
<title>Mirage.Accounts.UserToken — Mirage v0.77.0</title>
<link rel="stylesheet" href="dist/elixir-9f91ebe876dc01d67920.css" />
<script src="dist/sidebar_items-17f2396166.js"></script>
@ -52,7 +52,7 @@
Mirage
</a>
<strong class="sidebar-projectVersion">
v0.76.0
v0.77.0
</strong>
</div>
@ -74,7 +74,7 @@ Mirage
<div id="content" class="content-inner">
<h1>
Mirage.Accounts.UserToken <small class="app-vsn">(Mirage v0.76.0)</small>
Mirage.Accounts.UserToken <small class="app-vsn">(Mirage v0.77.0)</small>
<a href="https://git.inhji.de/inhji/mirage/src/branch/main/lib/mirage/accounts/user_token.ex#L1" title="View Source" class="view-source" rel="help">
<span class="icon-code" aria-hidden="true"></span>

94
assets/static/docs/Mirage.Accounts.html

@ -5,11 +5,11 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.23.0">
<meta name="project" content="Mirage v0.76.0">
<meta name="project" content="Mirage v0.77.0">
<meta name="author" content="Inhji">
<title>Mirage.Accounts — Mirage v0.76.0</title>
<title>Mirage.Accounts — Mirage v0.77.0</title>
<link rel="stylesheet" href="dist/elixir-9f91ebe876dc01d67920.css" />
<script src="dist/sidebar_items-17f2396166.js"></script>
@ -52,7 +52,7 @@
Mirage
</a>
<strong class="sidebar-projectVersion">
v0.76.0
v0.77.0
</strong>
</div>
@ -74,7 +74,7 @@ Mirage
<div id="content" class="content-inner">
<h1>
Mirage.Accounts <small class="app-vsn">(Mirage v0.76.0)</small>
Mirage.Accounts <small class="app-vsn">(Mirage v0.77.0)</small>
<a href="https://git.inhji.de/inhji/mirage/src/branch/main/lib/mirage/accounts.ex#L1" title="View Source" class="view-source" rel="help">
<span class="icon-code" aria-hidden="true"></span>
@ -329,11 +329,11 @@ it in the database.</p><h2 id="apply_user_email/3-examples" class="section-headi
<a href="#apply_user_email/3-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">apply_user_email</span><span class="p" data-group-id="9144731478-1">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;valid password&quot;</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9144731478-2">%{</span><span class="ss">email</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="9144731478-2">}</span><span class="p" data-group-id="9144731478-1">)</span><span class="w">
</span><span class="p" data-group-id="9144731478-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9144731478-4">%</span><span class="nc" data-group-id="9144731478-4">User</span><span class="p" data-group-id="9144731478-4">{</span><span class="p" data-group-id="9144731478-4">}</span><span class="p" data-group-id="9144731478-3">}</span><span class="w">
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">apply_user_email</span><span class="p" data-group-id="5833126565-1">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;valid password&quot;</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="5833126565-2">%{</span><span class="ss">email</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="5833126565-2">}</span><span class="p" data-group-id="5833126565-1">)</span><span class="w">
</span><span class="p" data-group-id="5833126565-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="5833126565-4">%</span><span class="nc" data-group-id="5833126565-4">User</span><span class="p" data-group-id="5833126565-4">{</span><span class="p" data-group-id="5833126565-4">}</span><span class="p" data-group-id="5833126565-3">}</span><span class="w">
</span><span class="gp unselectable">iex&gt; </span><span class="n">apply_user_email</span><span class="p" data-group-id="9144731478-5">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;invalid password&quot;</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9144731478-6">%{</span><span class="ss">email</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="9144731478-6">}</span><span class="p" data-group-id="9144731478-5">)</span><span class="w">
</span><span class="p" data-group-id="9144731478-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9144731478-8">%</span><span class="nc" data-group-id="9144731478-8">Ecto.Changeset</span><span class="p" data-group-id="9144731478-8">{</span><span class="p" data-group-id="9144731478-8">}</span><span class="p" data-group-id="9144731478-7">}</span></code></pre>
</span><span class="gp unselectable">iex&gt; </span><span class="n">apply_user_email</span><span class="p" data-group-id="5833126565-5">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;invalid password&quot;</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="5833126565-6">%{</span><span class="ss">email</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="5833126565-6">}</span><span class="p" data-group-id="5833126565-5">)</span><span class="w">
</span><span class="p" data-group-id="5833126565-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="5833126565-8">%</span><span class="nc" data-group-id="5833126565-8">Ecto.Changeset</span><span class="p" data-group-id="5833126565-8">{</span><span class="p" data-group-id="5833126565-8">}</span><span class="p" data-group-id="5833126565-7">}</span></code></pre>
</section>
</section>
<section class="detail" id="change_user_email/2">
@ -361,8 +361,8 @@ it in the database.</p><h2 id="apply_user_email/3-examples" class="section-headi
<a href="#change_user_email/2-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">change_user_email</span><span class="p" data-group-id="4288219400-1">(</span><span class="n">user</span><span class="p" data-group-id="4288219400-1">)</span><span class="w">
</span><span class="p" data-group-id="4288219400-2">%</span><span class="nc" data-group-id="4288219400-2">Ecto.Changeset</span><span class="p" data-group-id="4288219400-2">{</span><span class="ss">data</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4288219400-3">%</span><span class="nc" data-group-id="4288219400-3">User</span><span class="p" data-group-id="4288219400-3">{</span><span class="p" data-group-id="4288219400-3">}</span><span class="p" data-group-id="4288219400-2">}</span></code></pre>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">change_user_email</span><span class="p" data-group-id="6756324486-1">(</span><span class="n">user</span><span class="p" data-group-id="6756324486-1">)</span><span class="w">
</span><span class="p" data-group-id="6756324486-2">%</span><span class="nc" data-group-id="6756324486-2">Ecto.Changeset</span><span class="p" data-group-id="6756324486-2">{</span><span class="ss">data</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6756324486-3">%</span><span class="nc" data-group-id="6756324486-3">User</span><span class="p" data-group-id="6756324486-3">{</span><span class="p" data-group-id="6756324486-3">}</span><span class="p" data-group-id="6756324486-2">}</span></code></pre>
</section>
</section>
<section class="detail" id="change_user_password/2">
@ -390,8 +390,8 @@ it in the database.</p><h2 id="apply_user_email/3-examples" class="section-headi
<a href="#change_user_password/2-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">change_user_password</span><span class="p" data-group-id="6616171640-1">(</span><span class="n">user</span><span class="p" data-group-id="6616171640-1">)</span><span class="w">
</span><span class="p" data-group-id="6616171640-2">%</span><span class="nc" data-group-id="6616171640-2">Ecto.Changeset</span><span class="p" data-group-id="6616171640-2">{</span><span class="ss">data</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6616171640-3">%</span><span class="nc" data-group-id="6616171640-3">User</span><span class="p" data-group-id="6616171640-3">{</span><span class="p" data-group-id="6616171640-3">}</span><span class="p" data-group-id="6616171640-2">}</span></code></pre>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">change_user_password</span><span class="p" data-group-id="8960441619-1">(</span><span class="n">user</span><span class="p" data-group-id="8960441619-1">)</span><span class="w">
</span><span class="p" data-group-id="8960441619-2">%</span><span class="nc" data-group-id="8960441619-2">Ecto.Changeset</span><span class="p" data-group-id="8960441619-2">{</span><span class="ss">data</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="8960441619-3">%</span><span class="nc" data-group-id="8960441619-3">User</span><span class="p" data-group-id="8960441619-3">{</span><span class="p" data-group-id="8960441619-3">}</span><span class="p" data-group-id="8960441619-2">}</span></code></pre>
</section>
</section>
<section class="detail" id="change_user_registration/2">
@ -419,8 +419,8 @@ it in the database.</p><h2 id="apply_user_email/3-examples" class="section-headi
<a href="#change_user_registration/2-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">change_user_registration</span><span class="p" data-group-id="2044939880-1">(</span><span class="n">user</span><span class="p" data-group-id="2044939880-1">)</span><span class="w">
</span><span class="p" data-group-id="2044939880-2">%</span><span class="nc" data-group-id="2044939880-2">Ecto.Changeset</span><span class="p" data-group-id="2044939880-2">{</span><span class="ss">data</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="2044939880-3">%</span><span class="nc" data-group-id="2044939880-3">User</span><span class="p" data-group-id="2044939880-3">{</span><span class="p" data-group-id="2044939880-3">}</span><span class="p" data-group-id="2044939880-2">}</span></code></pre>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">change_user_registration</span><span class="p" data-group-id="5716057793-1">(</span><span class="n">user</span><span class="p" data-group-id="5716057793-1">)</span><span class="w">
</span><span class="p" data-group-id="5716057793-2">%</span><span class="nc" data-group-id="5716057793-2">Ecto.Changeset</span><span class="p" data-group-id="5716057793-2">{</span><span class="ss">data</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5716057793-3">%</span><span class="nc" data-group-id="5716057793-3">User</span><span class="p" data-group-id="5716057793-3">{</span><span class="p" data-group-id="5716057793-3">}</span><span class="p" data-group-id="5716057793-2">}</span></code></pre>
</section>
</section>
<section class="detail" id="confirm_user/1">
@ -491,8 +491,8 @@ and the token is deleted.</p>
<a href="#deliver_update_email_instructions/3-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">deliver_update_email_instructions</span><span class="p" data-group-id="5044359732-1">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="n">current_email</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="nc">Routes</span><span class="o">.</span><span class="n">user_update_email_url</span><span class="p" data-group-id="5044359732-2">(</span><span class="n">conn</span><span class="p">,</span><span class="w"> </span><span class="ss">:edit</span><span class="p">,</span><span class="w"> </span><span class="ni">&amp;1</span><span class="p" data-group-id="5044359732-2">)</span><span class="p" data-group-id="5044359732-1">)</span><span class="w">
</span><span class="p" data-group-id="5044359732-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="5044359732-4">%{</span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p">,</span><span class="w"> </span><span class="ss">body</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="5044359732-4">}</span><span class="p" data-group-id="5044359732-3">}</span></code></pre>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">deliver_update_email_instructions</span><span class="p" data-group-id="6655889016-1">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="n">current_email</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="nc">Routes</span><span class="o">.</span><span class="n">user_update_email_url</span><span class="p" data-group-id="6655889016-2">(</span><span class="n">conn</span><span class="p">,</span><span class="w"> </span><span class="ss">:edit</span><span class="p">,</span><span class="w"> </span><span class="ni">&amp;1</span><span class="p" data-group-id="6655889016-2">)</span><span class="p" data-group-id="6655889016-1">)</span><span class="w">
</span><span class="p" data-group-id="6655889016-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="6655889016-4">%{</span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p">,</span><span class="w"> </span><span class="ss">body</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="6655889016-4">}</span><span class="p" data-group-id="6655889016-3">}</span></code></pre>
</section>
</section>
<section class="detail" id="deliver_user_confirmation_instructions/2">
@ -518,11 +518,11 @@ and the token is deleted.</p>
<a href="#deliver_user_confirmation_instructions/2-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">deliver_user_confirmation_instructions</span><span class="p" data-group-id="8708772912-1">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="nc">Routes</span><span class="o">.</span><span class="n">user_confirmation_url</span><span class="p" data-group-id="8708772912-2">(</span><span class="n">conn</span><span class="p">,</span><span class="w"> </span><span class="ss">:confirm</span><span class="p">,</span><span class="w"> </span><span class="ni">&amp;1</span><span class="p" data-group-id="8708772912-2">)</span><span class="p" data-group-id="8708772912-1">)</span><span class="w">
</span><span class="p" data-group-id="8708772912-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8708772912-4">%{</span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p">,</span><span class="w"> </span><span class="ss">body</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="8708772912-4">}</span><span class="p" data-group-id="8708772912-3">}</span><span class="w">
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">deliver_user_confirmation_instructions</span><span class="p" data-group-id="0710591206-1">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="nc">Routes</span><span class="o">.</span><span class="n">user_confirmation_url</span><span class="p" data-group-id="0710591206-2">(</span><span class="n">conn</span><span class="p">,</span><span class="w"> </span><span class="ss">:confirm</span><span class="p">,</span><span class="w"> </span><span class="ni">&amp;1</span><span class="p" data-group-id="0710591206-2">)</span><span class="p" data-group-id="0710591206-1">)</span><span class="w">
</span><span class="p" data-group-id="0710591206-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0710591206-4">%{</span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p">,</span><span class="w"> </span><span class="ss">body</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="0710591206-4">}</span><span class="p" data-group-id="0710591206-3">}</span><span class="w">
</span><span class="gp unselectable">iex&gt; </span><span class="n">deliver_user_confirmation_instructions</span><span class="p" data-group-id="8708772912-5">(</span><span class="n">confirmed_user</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="nc">Routes</span><span class="o">.</span><span class="n">user_confirmation_url</span><span class="p" data-group-id="8708772912-6">(</span><span class="n">conn</span><span class="p">,</span><span class="w"> </span><span class="ss">:confirm</span><span class="p">,</span><span class="w"> </span><span class="ni">&amp;1</span><span class="p" data-group-id="8708772912-6">)</span><span class="p" data-group-id="8708772912-5">)</span><span class="w">
</span><span class="p" data-group-id="8708772912-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="ss">:already_confirmed</span><span class="p" data-group-id="8708772912-7">}</span></code></pre>
</span><span class="gp unselectable">iex&gt; </span><span class="n">deliver_user_confirmation_instructions</span><span class="p" data-group-id="0710591206-5">(</span><span class="n">confirmed_user</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="nc">Routes</span><span class="o">.</span><span class="n">user_confirmation_url</span><span class="p" data-group-id="0710591206-6">(</span><span class="n">conn</span><span class="p">,</span><span class="w"> </span><span class="ss">:confirm</span><span class="p">,</span><span class="w"> </span><span class="ni">&amp;1</span><span class="p" data-group-id="0710591206-6">)</span><span class="p" data-group-id="0710591206-5">)</span><span class="w">
</span><span class="p" data-group-id="0710591206-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="ss">:already_confirmed</span><span class="p" data-group-id="0710591206-7">}</span></code></pre>
</section>
</section>
<section class="detail" id="deliver_user_reset_password_instructions/2">
@ -548,8 +548,8 @@ and the token is deleted.</p>
<a href="#deliver_user_reset_password_instructions/2-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">deliver_user_reset_password_instructions</span><span class="p" data-group-id="5971599008-1">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="nc">Routes</span><span class="o">.</span><span class="n">user_reset_password_url</span><span class="p" data-group-id="5971599008-2">(</span><span class="n">conn</span><span class="p">,</span><span class="w"> </span><span class="ss">:edit</span><span class="p">,</span><span class="w"> </span><span class="ni">&amp;1</span><span class="p" data-group-id="5971599008-2">)</span><span class="p" data-group-id="5971599008-1">)</span><span class="w">
</span><span class="p" data-group-id="5971599008-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="5971599008-4">%{</span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p">,</span><span class="w"> </span><span class="ss">body</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="5971599008-4">}</span><span class="p" data-group-id="5971599008-3">}</span></code></pre>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">deliver_user_reset_password_instructions</span><span class="p" data-group-id="7314321457-1">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="nc">Routes</span><span class="o">.</span><span class="n">user_reset_password_url</span><span class="p" data-group-id="7314321457-2">(</span><span class="n">conn</span><span class="p">,</span><span class="w"> </span><span class="ss">:edit</span><span class="p">,</span><span class="w"> </span><span class="ni">&amp;1</span><span class="p" data-group-id="7314321457-2">)</span><span class="p" data-group-id="7314321457-1">)</span><span class="w">
</span><span class="p" data-group-id="7314321457-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7314321457-4">%{</span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p">,</span><span class="w"> </span><span class="ss">body</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="7314321457-4">}</span><span class="p" data-group-id="7314321457-3">}</span></code></pre>
</section>
</section>
<section class="detail" id="generate_user_session_token/1">
@ -619,10 +619,10 @@ and the token is deleted.</p>
<a href="#get_user!/1-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">get_user!</span><span class="p" data-group-id="2877815149-1">(</span><span class="mi">123</span><span class="p" data-group-id="2877815149-1">)</span><span class="w">
</span><span class="p" data-group-id="2877815149-2">%</span><span class="nc" data-group-id="2877815149-2">User</span><span class="p" data-group-id="2877815149-2">{</span><span class="p" data-group-id="2877815149-2">}</span><span class="w">
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">get_user!</span><span class="p" data-group-id="7898045750-1">(</span><span class="mi">123</span><span class="p" data-group-id="7898045750-1">)</span><span class="w">
</span><span class="p" data-group-id="7898045750-2">%</span><span class="nc" data-group-id="7898045750-2">User</span><span class="p" data-group-id="7898045750-2">{</span><span class="p" data-group-id="7898045750-2">}</span><span class="w">
</span><span class="gp unselectable">iex&gt; </span><span class="n">get_user!</span><span class="p" data-group-id="2877815149-3">(</span><span class="mi">456</span><span class="p" data-group-id="2877815149-3">)</span><span class="w">
</span><span class="gp unselectable">iex&gt; </span><span class="n">get_user!</span><span class="p" data-group-id="7898045750-3">(</span><span class="mi">456</span><span class="p" data-group-id="7898045750-3">)</span><span class="w">
</span><span class="gt">** (Ecto.NoResultsError)</span></code></pre>
</section>
</section>
@ -649,10 +649,10 @@ and the token is deleted.</p>
<a href="#get_user_by_email/1-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">get_user_by_email</span><span class="p" data-group-id="6674825404-1">(</span><span class="s">&quot;foo@example.com&quot;</span><span class="p" data-group-id="6674825404-1">)</span><span class="w">
</span><span class="p" data-group-id="6674825404-2">%</span><span class="nc" data-group-id="6674825404-2">User</span><span class="p" data-group-id="6674825404-2">{</span><span class="p" data-group-id="6674825404-2">}</span><span class="w">
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">get_user_by_email</span><span class="p" data-group-id="3800631198-1">(</span><span class="s">&quot;foo@example.com&quot;</span><span class="p" data-group-id="3800631198-1">)</span><span class="w">
</span><span class="p" data-group-id="3800631198-2">%</span><span class="nc" data-group-id="3800631198-2">User</span><span class="p" data-group-id="3800631198-2">{</span><span class="p" data-group-id="3800631198-2">}</span><span class="w">
</span><span class="gp unselectable">iex&gt; </span><span class="n">get_user_by_email</span><span class="p" data-group-id="6674825404-3">(</span><span class="s">&quot;unknown@example.com&quot;</span><span class="p" data-group-id="6674825404-3">)</span><span class="w">
</span><span class="gp unselectable">iex&gt; </span><span class="n">get_user_by_email</span><span class="p" data-group-id="3800631198-3">(</span><span class="s">&quot;unknown@example.com&quot;</span><span class="p" data-group-id="3800631198-3">)</span><span class="w">
</span><span class="no">nil</span></code></pre>
</section>
</section>
@ -679,10 +679,10 @@ and the token is deleted.</p>
<a href="#get_user_by_email_and_password/2-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">get_user_by_email_and_password</span><span class="p" data-group-id="6985086099-1">(</span><span class="s">&quot;foo@example.com&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;correct_password&quot;</span><span class="p" data-group-id="6985086099-1">)</span><span class="w">
</span><span class="p" data-group-id="6985086099-2">%</span><span class="nc" data-group-id="6985086099-2">User</span><span class="p" data-group-id="6985086099-2">{</span><span class="p" data-group-id="6985086099-2">}</span><span class="w">
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">get_user_by_email_and_password</span><span class="p" data-group-id="5629703471-1">(</span><span class="s">&quot;foo@example.com&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;correct_password&quot;</span><span class="p" data-group-id="5629703471-1">)</span><span class="w">
</span><span class="p" data-group-id="5629703471-2">%</span><span class="nc" data-group-id="5629703471-2">User</span><span class="p" data-group-id="5629703471-2">{</span><span class="p" data-group-id="5629703471-2">}</span><span class="w">
</span><span class="gp unselectable">iex&gt; </span><span class="n">get_user_by_email_and_password</span><span class="p" data-group-id="6985086099-3">(</span><span class="s">&quot;foo@example.com&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;invalid_password&quot;</span><span class="p" data-group-id="6985086099-3">)</span><span class="w">
</span><span class="gp unselectable">iex&gt; </span><span class="n">get_user_by_email_and_password</span><span class="p" data-group-id="5629703471-3">(</span><span class="s">&quot;foo@example.com&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;invalid_password&quot;</span><span class="p" data-group-id="5629703471-3">)</span><span class="w">
</span><span class="no">nil</span></code></pre>
</section>
</section>
@ -709,10 +709,10 @@ and the token is deleted.</p>
<a href="#get_user_by_reset_password_token/1-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">get_user_by_reset_password_token</span><span class="p" data-group-id="3251185255-1">(</span><span class="s">&quot;validtoken&quot;</span><span class="p" data-group-id="3251185255-1">)</span><span class="w">
</span><span class="p" data-group-id="3251185255-2">%</span><span class="nc" data-group-id="3251185255-2">User</span><span class="p" data-group-id="3251185255-2">{</span><span class="p" data-group-id="3251185255-2">}</span><span class="w">
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">get_user_by_reset_password_token</span><span class="p" data-group-id="5002520197-1">(</span><span class="s">&quot;validtoken&quot;</span><span class="p" data-group-id="5002520197-1">)</span><span class="w">
</span><span class="p" data-group-id="5002520197-2">%</span><span class="nc" data-group-id="5002520197-2">User</span><span class="p" data-group-id="5002520197-2">{</span><span class="p" data-group-id="5002520197-2">}</span><span class="w">
</span><span class="gp unselectable">iex&gt; </span><span class="n">get_user_by_reset_password_token</span><span class="p" data-group-id="3251185255-3">(</span><span class="s">&quot;invalidtoken&quot;</span><span class="p" data-group-id="3251185255-3">)</span><span class="w">
</span><span class="gp unselectable">iex&gt; </span><span class="n">get_user_by_reset_password_token</span><span class="p" data-group-id="5002520197-3">(</span><span class="s">&quot;invalidtoken&quot;</span><span class="p" data-group-id="5002520197-3">)</span><span class="w">
</span><span class="no">nil</span></code></pre>
</section>
</section>
@ -761,7 +761,7 @@ and the token is deleted.</p>
<a href="#has_user?/0-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">has_user?</span><span class="p" data-group-id="8520106994-1">(</span><span class="p" data-group-id="8520106994-1">)</span><span class="w">
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">has_user?</span><span class="p" data-group-id="3608066662-1">(</span><span class="p" data-group-id="3608066662-1">)</span><span class="w">
</span><span class="no">true</span></code></pre>
</section>
</section>
@ -788,11 +788,11 @@ and the token is deleted.</p>
<a href="#register_user/1-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">register_user</span><span class="p" data-group-id="5568852282-1">(</span><span class="p" data-group-id="5568852282-2">%{</span><span class="ss">field</span><span class="p">:</span><span class="w"> </span><span class="n">value</span><span class="p" data-group-id="5568852282-2">}</span><span class="p" data-group-id="5568852282-1">)</span><span class="w">
</span><span class="p" data-group-id="5568852282-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="5568852282-4">%</span><span class="nc" data-group-id="5568852282-4">User</span><span class="p" data-group-id="5568852282-4">{</span><span class="p" data-group-id="5568852282-4">}</span><span class="p" data-group-id="5568852282-3">}</span><span class="w">
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">register_user</span><span class="p" data-group-id="0890761884-1">(</span><span class="p" data-group-id="0890761884-2">%{</span><span class="ss">field</span><span class="p">:</span><span class="w"> </span><span class="n">value</span><span class="p" data-group-id="0890761884-2">}</span><span class="p" data-group-id="0890761884-1">)</span><span class="w">
</span><span class="p" data-group-id="0890761884-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0890761884-4">%</span><span class="nc" data-group-id="0890761884-4">User</span><span class="p" data-group-id="0890761884-4">{</span><span class="p" data-group-id="0890761884-4">}</span><span class="p" data-group-id="0890761884-3">}</span><span class="w">
</span><span class="gp unselectable">iex&gt; </span><span class="n">register_user</span><span class="p" data-group-id="5568852282-5">(</span><span class="p" data-group-id="5568852282-6">%{</span><span class="ss">field</span><span class="p">:</span><span class="w"> </span><span class="n">bad_value</span><span class="p" data-group-id="5568852282-6">}</span><span class="p" data-group-id="5568852282-5">)</span><span class="w">
</span><span class="p" data-group-id="5568852282-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="5568852282-8">%</span><span class="nc" data-group-id="5568852282-8">Ecto.Changeset</span><span class="p" data-group-id="5568852282-8">{</span><span class="p" data-group-id="5568852282-8">}</span><span class="p" data-group-id="5568852282-7">}</span></code></pre>
</span><span class="gp unselectable">iex&gt; </span><span class="n">register_user</span><span class="p" data-group-id="0890761884-5">(</span><span class="p" data-group-id="0890761884-6">%{</span><span class="ss">field</span><span class="p">:</span><span class="w"> </span><span class="n">bad_value</span><span class="p" data-group-id="0890761884-6">}</span><span class="p" data-group-id="0890761884-5">)</span><span class="w">
</span><span class="p" data-group-id="0890761884-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0890761884-8">%</span><span class="nc" data-group-id="0890761884-8">Ecto.Changeset</span><span class="p" data-group-id="0890761884-8">{</span><span class="p" data-group-id="0890761884-8">}</span><span class="p" data-group-id="0890761884-7">}</span></code></pre>
</section>
</section>
<section class="detail" id="reset_user_password/2">
@ -818,11 +818,11 @@ and the token is deleted.</p>
<a href="#reset_user_password/2-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">reset_user_password</span><span class="p" data-group-id="1000798775-1">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1000798775-2">%{</span><span class="ss">password</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;new long password&quot;</span><span class="p">,</span><span class="w"> </span><span class="ss">password_confirmation</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;new long password&quot;</span><span class="p" data-group-id="1000798775-2">}</span><span class="p" data-group-id="1000798775-1">)</span><span class="w">
</span><span class="p" data-group-id="1000798775-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1000798775-4">%</span><span class="nc" data-group-id="1000798775-4">User</span><span class="p" data-group-id="1000798775-4">{</span><span class="p" data-group-id="1000798775-4">}</span><span class="p" data-group-id="1000798775-3">}</span><span class="w">
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">reset_user_password</span><span class="p" data-group-id="4062060870-1">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4062060870-2">%{</span><span class="ss">password</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;new long password&quot;</span><span class="p">,</span><span class="w"> </span><span class="ss">password_confirmation</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;new long password&quot;</span><span class="p" data-group-id="4062060870-2">}</span><span class="p" data-group-id="4062060870-1">)</span><span class="w">
</span><span class="p" data-group-id="4062060870-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4062060870-4">%</span><span class="nc" data-group-id="4062060870-4">User</span><span class="p" data-group-id="4062060870-4">{</span><span class="p" data-group-id="4062060870-4">}</span><span class="p" data-group-id="4062060870-3">}</span><span class="w">
</span><span class="gp unselectable">iex&gt; </span><span class="n">reset_user_password</span><span class="p" data-group-id="1000798775-5">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1000798775-6">%{</span><span class="ss">password</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;valid&quot;</span><span class="p">,</span><span class="w"> </span><span class="ss">password_confirmation</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;not the same&quot;</span><span class="p" data-group-id="1000798775-6">}</span><span class="p" data-group-id="1000798775-5">)</span><span class="w">
</span><span class="p" data-group-id="1000798775-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1000798775-8">%</span><span class="nc" data-group-id="1000798775-8">Ecto.Changeset</span><span class="p" data-group-id="1000798775-8">{</span><span class="p" data-group-id="1000798775-8">}</span><span class="p" data-group-id="1000798775-7">}</span></code></pre>
</span><span class="gp unselectable">iex&gt; </span><span class="n">reset_user_password</span><span class="p" data-group-id="4062060870-5">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4062060870-6">%{</span><span class="ss">password</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;valid&quot;</span><span class="p">,</span><span class="w"> </span><span class="ss">password_confirmation</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;not the same&quot;</span><span class="p" data-group-id="4062060870-6">}</span><span class="p" data-group-id="4062060870-5">)</span><span class="w">
</span><span class="p" data-group-id="4062060870-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4062060870-8">%</span><span class="nc" data-group-id="4062060870-8">Ecto.Changeset</span><span class="p" data-group-id="4062060870-8">{</span><span class="p" data-group-id="4062060870-8">}</span><span class="p" data-group-id="4062060870-7">}</span></code></pre>
</section>
</section>
<section class="detail" id="update_user_email/2">
@ -871,11 +871,11 @@ The confirmed_at date is also updated to the current time.</p>
<a href="#update_user_password/3-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">update_user_password</span><span class="p" data-group-id="4104360830-1">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;valid password&quot;</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4104360830-2">%{</span><span class="ss">password</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="4104360830-2">}</span><span class="p" data-group-id="4104360830-1">)</span><span class="w">
</span><span class="p" data-group-id="4104360830-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4104360830-4">%</span><span class="nc" data-group-id="4104360830-4">User</span><span class="p" data-group-id="4104360830-4">{</span><span class="p" data-group-id="4104360830-4">}</span><span class="p" data-group-id="4104360830-3">}</span><span class="w">
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">update_user_password</span><span class="p" data-group-id="7210699039-1">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;valid password&quot;</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7210699039-2">%{</span><span class="ss">password</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="7210699039-2">}</span><span class="p" data-group-id="7210699039-1">)</span><span class="w">
</span><span class="p" data-group-id="7210699039-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7210699039-4">%</span><span class="nc" data-group-id="7210699039-4">User</span><span class="p" data-group-id="7210699039-4">{</span><span class="p" data-group-id="7210699039-4">}</span><span class="p" data-group-id="7210699039-3">}</span><span class="w">
</span><span class="gp unselectable">iex&gt; </span><span class="n">update_user_password</span><span class="p" data-group-id="4104360830-5">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;invalid password&quot;</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4104360830-6">%{</span><span class="ss">password</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="4104360830-6">}</span><span class="p" data-group-id="4104360830-5">)</span><span class="w">
</span><span class="p" data-group-id="4104360830-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4104360830-8">%</span><span class="nc" data-group-id="4104360830-8">Ecto.Changeset</span><span class="p" data-group-id="4104360830-8">{</span><span class="p" data-group-id="4104360830-8">}</span><span class="p" data-group-id="4104360830-7">}</span></code></pre>
</span><span class="gp unselectable">iex&gt; </span><span class="n">update_user_password</span><span class="p" data-group-id="7210699039-5">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;invalid password&quot;</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7210699039-6">%{</span><span class="ss">password</span><span class="p">:</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="7210699039-6">}</span><span class="p" data-group-id="7210699039-5">)</span><span class="w">
</span><span class="p" data-group-id="7210699039-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7210699039-8">%</span><span class="nc" data-group-id="7210699039-8">Ecto.Changeset</span><span class="p" data-group-id="7210699039-8">{</span><span class="p" data-group-id="7210699039-8">}</span><span class="p" data-group-id="7210699039-7">}</span></code></pre>
</section>
</section>

8
assets/static/docs/Mirage.Links.Link.html

@ -5,11 +5,11 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.23.0">
<meta name="project" content="Mirage v0.76.0">
<meta name="project" content="Mirage v0.77.0">
<meta name="author" content="Inhji">
<title>Mirage.Links.Link — Mirage v0.76.0</title>
<title>Mirage.Links.Link — Mirage v0.77.0</title>
<link rel="stylesheet" href="dist/elixir-9f91ebe876dc01d67920.css" />
<script src="dist/sidebar_items-17f2396166.js"></script>
@ -52,7 +52,7 @@
Mirage
</a>
<strong class="sidebar-projectVersion">
v0.76.0
v0.77.0
</strong>
</div>
@ -74,7 +74,7 @@ Mirage
<div id="content" class="content-inner">
<h1>
Mirage.Links.Link <small class="app-vsn">(Mirage v0.76.0)</small>
Mirage.Links.Link <small class="app-vsn">(Mirage v0.77.0)</small>
<a href="https://git.inhji.de/inhji/mirage/src/branch/main/lib/mirage/links/link.ex#L1" title="View Source" class="view-source" rel="help">
<span class="icon-code" aria-hidden="true"></span>

8
assets/static/docs/Mirage.Links.LinkTopic.html

@ -5,11 +5,11 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.23.0">
<meta name="project" content="Mirage v0.76.0">
<meta name="project" content="Mirage v0.77.0">
<meta name="author" content="Inhji">
<title>Mirage.Links.LinkTopic — Mirage v0.76.0</title>
<title>Mirage.Links.LinkTopic — Mirage v0.77.0</title>
<link rel="stylesheet" href="dist/elixir-9f91ebe876dc01d67920.css" />
<script src="dist/sidebar_items-17f2396166.js"></script>
@ -52,7 +52,7 @@
Mirage
</a>
<strong class="sidebar-projectVersion">
v0.76.0
v0.77.0
</strong>
</div>
@ -74,7 +74,7 @@ Mirage
<div id="content" class="content-inner">
<h1>
Mirage.Links.LinkTopic <small class="app-vsn">(Mirage v0.76.0)</small>
Mirage.Links.LinkTopic <small class="app-vsn">(Mirage v0.77.0)</small>
<a href="https://git.inhji.de/inhji/mirage/src/branch/main/lib/mirage/links/link_topic.ex#L1" title="View Source" class="view-source" rel="help">
<span class="icon-code" aria-hidden="true"></span>

44
assets/static/docs/Mirage.Links.html

@ -5,11 +5,11 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.23.0">
<meta name="project" content="Mirage v0.76.0">
<meta name="project" content="Mirage v0.77.0">
<meta name="author" content="Inhji">
<title>Mirage.Links — Mirage v0.76.0</title>
<title>Mirage.Links — Mirage v0.77.0</title>
<link rel="stylesheet" href="dist/elixir-9f91ebe876dc01d67920.css" />
<script src="dist/sidebar_items-17f2396166.js"></script>
@ -52,7 +52,7 @@
Mirage
</a>
<strong class="sidebar-projectVersion">
v0.76.0
v0.77.0
</strong>
</div>
@ -74,7 +74,7 @@ Mirage
<div id="content" class="content-inner">
<h1>
Mirage.Links <small class="app-vsn">(Mirage v0.76.0)</small>
Mirage.Links <small class="app-vsn">(Mirage v0.77.0)</small>
<a href="https://git.inhji.de/inhji/mirage/src/branch/main/lib/mirage/links.ex#L1" title="View Source" class="view-source" rel="help">
<span class="icon-code" aria-hidden="true"></span>
@ -217,8 +217,8 @@ Functions
<a href="#change_link/2-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">change_link</span><span class="p" data-group-id="7233457827-1">(</span><span class="n">link</span><span class="p" data-group-id="7233457827-1">)</span><span class="w">
</span><span class="p" data-group-id="7233457827-2">%</span><span class="nc" data-group-id="7233457827-2">Todo</span><span class="p" data-group-id="7233457827-2">{</span><span class="n">...</span><span class="p" data-group-id="7233457827-2">}</span></code></pre>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">change_link</span><span class="p" data-group-id="5643293193-1">(</span><span class="n">link</span><span class="p" data-group-id="5643293193-1">)</span><span class="w">
</span><span class="p" data-group-id="5643293193-2">%</span><span class="nc" data-group-id="5643293193-2">Todo</span><span class="p" data-group-id="5643293193-2">{</span><span class="n">...</span><span class="p" data-group-id="5643293193-2">}</span></code></pre>
</section>
</section>
<section class="detail" id="create_link/1">
@ -246,11 +246,11 @@ Functions
<a href="#create_link/1-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">create_link</span><span class="p" data-group-id="9563324526-1">(</span><span class="p" data-group-id="9563324526-2">%{</span><span class="ss">field</span><span class="p">:</span><span class="w"> </span><span class="n">value</span><span class="p" data-group-id="9563324526-2">}</span><span class="p" data-group-id="9563324526-1">)</span><span class="w">
</span><span class="p" data-group-id="9563324526-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9563324526-4">%</span><span class="nc" data-group-id="9563324526-4">Link</span><span class="p" data-group-id="9563324526-4">{</span><span class="p" data-group-id="9563324526-4">}</span><span class="p" data-group-id="9563324526-3">}</span><span class="w">
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">create_link</span><span class="p" data-group-id="3700294713-1">(</span><span class="p" data-group-id="3700294713-2">%{</span><span class="ss">field</span><span class="p">:</span><span class="w"> </span><span class="n">value</span><span class="p" data-group-id="3700294713-2">}</span><span class="p" data-group-id="3700294713-1">)</span><span class="w">
</span><span class="p" data-group-id="3700294713-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3700294713-4">%</span><span class="nc" data-group-id="3700294713-4">Link</span><span class="p" data-group-id="3700294713-4">{</span><span class="p" data-group-id="3700294713-4">}</span><span class="p" data-group-id="3700294713-3">}</span><span class="w">
</span><span class="gp unselectable">iex&gt; </span><span class="n">create_link</span><span class="p" data-group-id="9563324526-5">(</span><span class="p" data-group-id="9563324526-6">%{</span><span class="ss">field</span><span class="p">:</span><span class="w"> </span><span class="n">bad_value</span><span class="p" data-group-id="9563324526-6">}</span><span class="p" data-group-id="9563324526-5">)</span><span class="w">
</span><span class="p" data-group-id="9563324526-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="9563324526-7">}</span></code></pre>
</span><span class="gp unselectable">iex&gt; </span><span class="n">create_link</span><span class="p" data-group-id="3700294713-5">(</span><span class="p" data-group-id="3700294713-6">%{</span><span class="ss">field</span><span class="p">:</span><span class="w"> </span><span class="n">bad_value</span><span class="p" data-group-id="3700294713-6">}</span><span class="p" data-group-id="3700294713-5">)</span><span class="w">
</span><span class="p" data-group-id="3700294713-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="3700294713-7">}</span></code></pre>
</section>
</section>
<section class="detail" id="create_link_or_return_existing/1">
@ -300,11 +300,11 @@ Functions
<a href="#delete_link/1-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">delete_link</span><span class="p" data-group-id="0129188825-1">(</span><span class="n">link</span><span class="p" data-group-id="0129188825-1">)</span><span class="w">
</span><span class="p" data-group-id="0129188825-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0129188825-3">%</span><span class="nc" data-group-id="0129188825-3">Link</span><span class="p" data-group-id="0129188825-3">{</span><span class="p" data-group-id="0129188825-3">}</span><span class="p" data-group-id="0129188825-2">}</span><span class="w">
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">delete_link</span><span class="p" data-group-id="5546538262-1">(</span><span class="n">link</span><span class="p" data-group-id="5546538262-1">)</span><span class="w">
</span><span class="p" data-group-id="5546538262-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="5546538262-3">%</span><span class="nc" data-group-id="5546538262-3">Link</span><span class="p" data-group-id="5546538262-3">{</span><span class="p" data-group-id="5546538262-3">}</span><span class="p" data-group-id="5546538262-2">}</span><span class="w">
</span><span class="gp unselectable">iex&gt; </span><span class="n">delete_link</span><span class="p" data-group-id="0129188825-4">(</span><span class="n">link</span><span class="p" data-group-id="0129188825-4">)</span><span class="w">
</span><span class="p" data-group-id="0129188825-5">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="0129188825-5">}</span></code></pre>
</span><span class="gp unselectable">iex&gt; </span><span class="n">delete_link</span><span class="p" data-group-id="5546538262-4">(</span><span class="n">link</span><span class="p" data-group-id="5546538262-4">)</span><span class="w">
</span><span class="p" data-group-id="5546538262-5">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="5546538262-5">}</span></code></pre>
</section>
</section>
<section class="detail" id="get_link!/1">
@ -330,8 +330,8 @@ Functions
<a href="#get_link!/1-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">get_link!</span><span class="p" data-group-id="9158872281-1">(</span><span class="mi">123</span><span class="p" data-group-id="9158872281-1">)</span><span class="w">
</span><span class="p" data-group-id="9158872281-2">%</span><span class="nc" data-group-id="9158872281-2">Link</span><span class="p" data-group-id="9158872281-2">{</span><span class="p" data-group-id="9158872281-2">}</span></code></pre>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">get_link!</span><span class="p" data-group-id="3491458120-1">(</span><span class="mi">123</span><span class="p" data-group-id="3491458120-1">)</span><span class="w">
</span><span class="p" data-group-id="3491458120-2">%</span><span class="nc" data-group-id="3491458120-2">Link</span><span class="p" data-group-id="3491458120-2">{</span><span class="p" data-group-id="3491458120-2">}</span></code></pre>
</section>
</section>
<section class="detail" id="get_link_by_url!/1">
@ -379,8 +379,8 @@ Functions
<a href="#list_links/0-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">list_notes_links</span><span class="p" data-group-id="7690896211-1">(</span><span class="p" data-group-id="7690896211-1">)</span><span class="w">
</span><span class="p" data-group-id="7690896211-2">[</span><span class="p" data-group-id="7690896211-3">%</span><span class="nc" data-group-id="7690896211-3">Link</span><span class="p" data-group-id="7690896211-3">{</span><span class="p" data-group-id="7690896211-3">}</span><span class="p">,</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="7690896211-2">]</span></code></pre>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">list_notes_links</span><span class="p" data-group-id="6352176138-1">(</span><span class="p" data-group-id="6352176138-1">)</span><span class="w">
</span><span class="p" data-group-id="6352176138-2">[</span><span class="p" data-group-id="6352176138-3">%</span><span class="nc" data-group-id="6352176138-3">Link</span><span class="p" data-group-id="6352176138-3">{</span><span class="p" data-group-id="6352176138-3">}</span><span class="p">,</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="6352176138-2">]</span></code></pre>
</section>
</section>
<section class="detail" id="preload_link/1">
@ -428,11 +428,11 @@ Functions
<a href="#update_link/2-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
Examples
</h2>
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">update_link</span><span class="p" data-group-id="8810660582-1">(</span><span class="n">link</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8810660582-2">%{</span><span class="ss">field</span><span class="p">:</span><span class="w"> </span><span class="n">new_value</span><span class="p" data-group-id="8810660582-2">}</span><span class="p" data-group-id="8810660582-1">)</span><span class="w">
</span><span class="p" data-group-id="8810660582-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8810660582-4">%</span><span class="nc" data-group-id="8810660582-4">Link</span><span class="p" data-group-id="8810660582-4">{</span><span class="p" data-group-id="8810660582-4">}</span><span class="p" data-group-id="8810660582-3">}</span><span class="w">
<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="n">update_link</span><span class="p" data-group-id="4624610514-1">(</span><span class="n">link</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4624610514-2">%{</span><span class="ss">field</span><span class="p">:</span><span class="w"> </span><span class="n">new_value</span><span class="p" data-group-id="4624610514-2">}</span><span class="p" data-group-id="4624610514-1">)</span><span class="w">
</span><span class="p" data-group-id="4624610514-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4624610514-4">%</span><span class="nc" data-group-id="4624610514-4">Link</span><span class="p" data-group-id="4624610514-4">{</span><span class="p" data-group-id="4624610514-4">}</span><span class="p" data-group-id="4624610514-3">}</span><span class="w">
</span><span class="gp unselectable">iex&gt; </span><span class="n">update_link</span><span class="p" data-group-id="8810660582-5">(</span><span class="n">link</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8810660582-6">%{</span><span class="ss">field</span><span class="p">:</span><span class="w"> </span><span class="n">bad_value</span><span class="p" data-group-id="8810660582-6">}</span><span class="p" data-group-id="8810660582-5">)</span><span class="w">
</span><span class="p" data-group-id="8810660582-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="8810660582-7">}</span></code></pre>
</span><span class="gp unselectable">iex&gt; </span><span class="n">update_link</span><span class="p" data-group-id="4624610514-5">(</span><span class="n">link</span><span class="p">,</span><span class="w"> <<