10 Commits

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

29
CHANGELOG.md

@ -5,6 +5,35 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline
<!-- changelog -->
## [v0.76.0](https://git.inhji.de/inhji/mirage/compare/v0.75.0...v0.76.0) (2021-03-16)
### Chores:
* Update Docs
### Features:
* improve links
* add custom styles for tags, .buttons, and form inputs
* add links to menu
* improve notes across the board
* declutter inbox (a lot)
### Bug Fixes:
* remove codemirror for now, too buggy
* sidebar color
* sidebar text color
## [v0.75.0](https://git.inhji.de/inhji/mirage/compare/v0.74.0...v0.75.0) (2021-03-16)

2
assets/css/_navigation.scss

@ -10,7 +10,7 @@ nav#sidebar {
ul {
li {
a {
color: #ccc;
color: var(--color-navigation);
display: inline-block;
padding: 1rem;
text-decoration: none;

3
assets/css/_variables.scss

@ -12,6 +12,7 @@
--white: #fff;
--gray: #6c757d;
--gray-dark: #343a40;
--gray-light: #cccccc;
--primary: #007bff;
--secondary: #6c757d;
@ -26,5 +27,5 @@
--width-main: 100%;
--width-sidebar: 15rem;
--background-navigation: var(--dark);
--color-navigation: var(--white);
--color-navigation: var(--light);
}

32
assets/css/app.scss

@ -8,6 +8,38 @@ body {
margin-left: calc(var(--width-sidebar) + var(--ok-s-3));
}
.tag a {
background: var(--gray-light);
padding: 0.5rem;
margin-right: 0.5rem;
border-radius: 3px;
color: var(--dark);
}
a.button {
display: inline-block;
background-color: var(--ok-accent-0);
border-radius: var(--ok-br);
color: #fff;
font-weight: var(--ok-fw-1);
height: 2.5rem;
border: none;
padding: var(--ok-s-2) var(--ok-s-3);
white-space: nowrap;
min-width: auto;
}
textarea,
input[type="text"],
input[type=url],
input[type=password] {
width: 100%;
}
textarea {
height: 20vh;
}
@media (max-width: 768px) {
:root {
--width-main: 100%;

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.74.0">
<meta name="project" content="Mirage v0.75.0">
<meta name="author" content="Inhji">
<title>404 — Mirage v0.74.0</title>
<title>404 — Mirage v0.75.0</title>
<link rel="stylesheet" href="dist/elixir-9f91ebe876dc01d67920.css" />
<script src="dist/sidebar_items-86ebe4f0ec.js"></script>
@ -52,7 +52,7 @@
Mirage
</a>
<strong class="sidebar-projectVersion">
v0.74.0
v0.75.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.74.0">
<meta name="project" content="Mirage v0.75.0">
<meta name="author" content="Inhji">
<title>Mirage.Accounts.User — Mirage v0.74.0</title>
<title>Mirage.Accounts.User — Mirage v0.75.0</title>
<link rel="stylesheet" href="dist/elixir-9f91ebe876dc01d67920.css" />
<script src="dist/sidebar_items-86ebe4f0ec.js"></script>
@ -52,7 +52,7 @@
Mirage
</a>
<strong class="sidebar-projectVersion">
v0.74.0
v0.75.0
</strong>
</div>
@ -74,7 +74,7 @@ Mirage
<div id="content" class="content-inner">
<h1>
Mirage.Accounts.User <small class="app-vsn">(Mirage v0.74.0)</small>
Mirage.Accounts.User <small class="app-vsn">(Mirage v0.75.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.74.0">
<meta name="project" content="Mirage v0.75.0">
<meta name="author" content="Inhji">
<title>Mirage.Accounts.UserNotifier — Mirage v0.74.0</title>
<title>Mirage.Accounts.UserNotifier — Mirage v0.75.0</title>
<link rel="stylesheet" href="dist/elixir-9f91ebe876dc01d67920.css" />
<script src="dist/sidebar_items-86ebe4f0ec.js"></script>
@ -52,7 +52,7 @@
Mirage
</a>
<strong class="sidebar-projectVersion">
v0.74.0
v0.75.0
</strong>
</div>
@ -74,7 +74,7 @@ Mirage
<div id="content" class="content-inner">
<h1>
Mirage.Accounts.UserNotifier <small class="app-vsn">(Mirage v0.74.0)</small>
Mirage.Accounts.UserNotifier <small class="app-vsn">(Mirage v0.75.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.74.0">
<meta name="project" content="Mirage v0.75.0">
<meta name="author" content="Inhji">
<title>Mirage.Accounts.UserToken — Mirage v0.74.0</title>
<title>Mirage.Accounts.UserToken — Mirage v0.75.0</title>
<link rel="stylesheet" href="dist/elixir-9f91ebe876dc01d67920.css" />
<script src="dist/sidebar_items-86ebe4f0ec.js"></script>
@ -52,7 +52,7 @@
Mirage
</a>
<strong class="sidebar-projectVersion">
v0.74.0
v0.75.0
</strong>
</div>
@ -74,7 +74,7 @@ Mirage
<div id="content" class="content-inner">
<h1>
Mirage.Accounts.UserToken <small class="app-vsn">(Mirage v0.74.0)</small>
Mirage.Accounts.UserToken <small class="app-vsn">(Mirage v0.75.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.74.0">
<meta name="project" content="Mirage v0.75.0">
<meta name="author" content="Inhji">
<title>Mirage.Accounts — Mirage v0.74.0</title>
<title>Mirage.Accounts — Mirage v0.75.0</title>
<link rel="stylesheet" href="dist/elixir-9f91ebe876dc01d67920.css" />
<script src="dist/sidebar_items-86ebe4f0ec.js"></script>
@ -52,7 +52,7 @@
Mirage
</a>
<strong class="sidebar-projectVersion">
v0.74.0
v0.75.0
</strong>
</div>
@ -74,7 +74,7 @@ Mirage
<div id="content" class="content-inner">
<h1>
Mirage.Accounts <small class="app-vsn">(Mirage v0.74.0)</small>
Mirage.Accounts <small class="app-vsn">(Mirage v0.75.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="9352184723-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="9352184723-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="9352184723-2">}</span><span class="p" data-group-id="9352184723-1">)</span><span class="w">
</span><span class="p" data-group-id="9352184723-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9352184723-4">%</span><span class="nc" data-group-id="9352184723-4">User</span><span class="p" data-group-id="9352184723-4">{</span><span class="p" data-group-id="9352184723-4">}</span><span class="p" data-group-id="9352184723-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="1648412359-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="1648412359-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="1648412359-2">}</span><span class="p" data-group-id="1648412359-1">)</span><span class="w">
</span><span class="p" data-group-id="1648412359-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1648412359-4">%</span><span class="nc" data-group-id="1648412359-4">User</span><span class="p" data-group-id="1648412359-4">{</span><span class="p" data-group-id="1648412359-4">}</span><span class="p" data-group-id="1648412359-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="9352184723-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="9352184723-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="9352184723-6">}</span><span class="p" data-group-id="9352184723-5">)</span><span class="w">
</span><span class="p" data-group-id="9352184723-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9352184723-8">%</span><span class="nc" data-group-id="9352184723-8">Ecto.Changeset</span><span class="p" data-group-id="9352184723-8">{</span><span class="p" data-group-id="9352184723-8">}</span><span class="p" data-group-id="9352184723-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="1648412359-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="1648412359-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="1648412359-6">}</span><span class="p" data-group-id="1648412359-5">)</span><span class="w">
</span><span class="p" data-group-id="1648412359-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1648412359-8">%</span><span class="nc" data-group-id="1648412359-8">Ecto.Changeset</span><span class="p" data-group-id="1648412359-8">{</span><span class="p" data-group-id="1648412359-8">}</span><span class="p" data-group-id="1648412359-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="3500180423-1">(</span><span class="n">user</span><span class="p" data-group-id="3500180423-1">)</span><span class="w">
</span><span class="p" data-group-id="3500180423-2">%</span><span class="nc" data-group-id="3500180423-2">Ecto.Changeset</span><span class="p" data-group-id="3500180423-2">{</span><span class="ss">data</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3500180423-3">%</span><span class="nc" data-group-id="3500180423-3">User</span><span class="p" data-group-id="3500180423-3">{</span><span class="p" data-group-id="3500180423-3">}</span><span class="p" data-group-id="3500180423-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="9438497080-1">(</span><span class="n">user</span><span class="p" data-group-id="9438497080-1">)</span><span class="w">
</span><span class="p" data-group-id="9438497080-2">%</span><span class="nc" data-group-id="9438497080-2">Ecto.Changeset</span><span class="p" data-group-id="9438497080-2">{</span><span class="ss">data</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9438497080-3">%</span><span class="nc" data-group-id="9438497080-3">User</span><span class="p" data-group-id="9438497080-3">{</span><span class="p" data-group-id="9438497080-3">}</span><span class="p" data-group-id="9438497080-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="1086646964-1">(</span><span class="n">user</span><span class="p" data-group-id="1086646964-1">)</span><span class="w">
</span><span class="p" data-group-id="1086646964-2">%</span><span class="nc" data-group-id="1086646964-2">Ecto.Changeset</span><span class="p" data-group-id="1086646964-2">{</span><span class="ss">data</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="1086646964-3">%</span><span class="nc" data-group-id="1086646964-3">User</span><span class="p" data-group-id="1086646964-3">{</span><span class="p" data-group-id="1086646964-3">}</span><span class="p" data-group-id="1086646964-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="3288098181-1">(</span><span class="n">user</span><span class="p" data-group-id="3288098181-1">)</span><span class="w">
</span><span class="p" data-group-id="3288098181-2">%</span><span class="nc" data-group-id="3288098181-2">Ecto.Changeset</span><span class="p" data-group-id="3288098181-2">{</span><span class="ss">data</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3288098181-3">%</span><span class="nc" data-group-id="3288098181-3">User</span><span class="p" data-group-id="3288098181-3">{</span><span class="p" data-group-id="3288098181-3">}</span><span class="p" data-group-id="3288098181-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="9308784095-1">(</span><span class="n">user</span><span class="p" data-group-id="9308784095-1">)</span><span class="w">
</span><span class="p" data-group-id="9308784095-2">%</span><span class="nc" data-group-id="9308784095-2">Ecto.Changeset</span><span class="p" data-group-id="9308784095-2">{</span><span class="ss">data</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9308784095-3">%</span><span class="nc" data-group-id="9308784095-3">User</span><span class="p" data-group-id="9308784095-3">{</span><span class="p" data-group-id="9308784095-3">}</span><span class="p" data-group-id="9308784095-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="4292623183-1">(</span><span class="n">user</span><span class="p" data-group-id="4292623183-1">)</span><span class="w">
</span><span class="p" data-group-id="4292623183-2">%</span><span class="nc" data-group-id="4292623183-2">Ecto.Changeset</span><span class="p" data-group-id="4292623183-2">{</span><span class="ss">data</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4292623183-3">%</span><span class="nc" data-group-id="4292623183-3">User</span><span class="p" data-group-id="4292623183-3">{</span><span class="p" data-group-id="4292623183-3">}</span><span class="p" data-group-id="4292623183-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="1178890916-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="1178890916-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="1178890916-2">)</span><span class="p" data-group-id="1178890916-1">)</span><span class="w">
</span><span class="p" data-group-id="1178890916-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1178890916-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="1178890916-4">}</span><span class="p" data-group-id="1178890916-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="7011653892-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="7011653892-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="7011653892-2">)</span><span class="p" data-group-id="7011653892-1">)</span><span class="w">
</span><span class="p" data-group-id="7011653892-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7011653892-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="7011653892-4">}</span><span class="p" data-group-id="7011653892-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="0091592372-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="0091592372-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="0091592372-2">)</span><span class="p" data-group-id="0091592372-1">)</span><span class="w">
</span><span class="p" data-group-id="0091592372-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0091592372-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="0091592372-4">}</span><span class="p" data-group-id="0091592372-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="5547102945-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="5547102945-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="5547102945-2">)</span><span class="p" data-group-id="5547102945-1">)</span><span class="w">
</span><span class="p" data-group-id="5547102945-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="5547102945-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="5547102945-4">}</span><span class="p" data-group-id="5547102945-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="0091592372-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="0091592372-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="0091592372-6">)</span><span class="p" data-group-id="0091592372-5">)</span><span class="w">
</span><span class="p" data-group-id="0091592372-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="0091592372-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="5547102945-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="5547102945-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="5547102945-6">)</span><span class="p" data-group-id="5547102945-5">)</span><span class="w">
</span><span class="p" data-group-id="5547102945-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="5547102945-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="3200762356-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="3200762356-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="3200762356-2">)</span><span class="p" data-group-id="3200762356-1">)</span><span class="w">
</span><span class="p" data-group-id="3200762356-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3200762356-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="3200762356-4">}</span><span class="p" data-group-id="3200762356-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="7339627967-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="7339627967-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="7339627967-2">)</span><span class="p" data-group-id="7339627967-1">)</span><span class="w">
</span><span class="p" data-group-id="7339627967-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7339627967-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="7339627967-4">}</span><span class="p" data-group-id="7339627967-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="7815991330-1">(</span><span class="mi">123</span><span class="p" data-group-id="7815991330-1">)</span><span class="w">
</span><span class="p" data-group-id="7815991330-2">%</span><span class="nc" data-group-id="7815991330-2">User</span><span class="p" data-group-id="7815991330-2">{</span><span class="p" data-group-id="7815991330-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="6886352213-1">(</span><span class="mi">123</span><span class="p" data-group-id="6886352213-1">)</span><span class="w">
</span><span class="p" data-group-id="6886352213-2">%</span><span class="nc" data-group-id="6886352213-2">User</span><span class="p" data-group-id="6886352213-2">{</span><span class="p" data-group-id="6886352213-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="7815991330-3">(</span><span class="mi">456</span><span class="p" data-group-id="7815991330-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="6886352213-3">(</span><span class="mi">456</span><span class="p" data-group-id="6886352213-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="5104108151-1">(</span><span class="s">&quot;foo@example.com&quot;</span><span class="p" data-group-id="5104108151-1">)</span><span class="w">
</span><span class="p" data-group-id="5104108151-2">%</span><span class="nc" data-group-id="5104108151-2">User</span><span class="p" data-group-id="5104108151-2">{</span><span class="p" data-group-id="5104108151-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="4726584508-1">(</span><span class="s">&quot;foo@example.com&quot;</span><span class="p" data-group-id="4726584508-1">)</span><span class="w">
</span><span class="p" data-group-id="4726584508-2">%</span><span class="nc" data-group-id="4726584508-2">User</span><span class="p" data-group-id="4726584508-2">{</span><span class="p" data-group-id="4726584508-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="5104108151-3">(</span><span class="s">&quot;unknown@example.com&quot;</span><span class="p" data-group-id="5104108151-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="4726584508-3">(</span><span class="s">&quot;unknown@example.com&quot;</span><span class="p" data-group-id="4726584508-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="5543344786-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="5543344786-1">)</span><span class="w">
</span><span class="p" data-group-id="5543344786-2">%</span><span class="nc" data-group-id="5543344786-2">User</span><span class="p" data-group-id="5543344786-2">{</span><span class="p" data-group-id="5543344786-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="3310884041-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="3310884041-1">)</span><span class="w">
</span><span class="p" data-group-id="3310884041-2">%</span><span class="nc" data-group-id="3310884041-2">User</span><span class="p" data-group-id="3310884041-2">{</span><span class="p" data-group-id="3310884041-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="5543344786-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="5543344786-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="3310884041-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="3310884041-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="8912631533-1">(</span><span class="s">&quot;validtoken&quot;</span><span class="p" data-group-id="8912631533-1">)</span><span class="w">
</span><span class="p" data-group-id="8912631533-2">%</span><span class="nc" data-group-id="8912631533-2">User</span><span class="p" data-group-id="8912631533-2">{</span><span class="p" data-group-id="8912631533-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="0538149384-1">(</span><span class="s">&quot;validtoken&quot;</span><span class="p" data-group-id="0538149384-1">)</span><span class="w">
</span><span class="p" data-group-id="0538149384-2">%</span><span class="nc" data-group-id="0538149384-2">User</span><span class="p" data-group-id="0538149384-2">{</span><span class="p" data-group-id="0538149384-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="8912631533-3">(</span><span class="s">&quot;invalidtoken&quot;</span><span class="p" data-group-id="8912631533-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="0538149384-3">(</span><span class="s">&quot;invalidtoken&quot;</span><span class="p" data-group-id="0538149384-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="1948420547-1">(</span><span class="p" data-group-id="1948420547-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="8198469424-1">(</span><span class="p" data-group-id="8198469424-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="0932835121-1">(</span><span class="p" data-group-id="0932835121-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="0932835121-2">}</span><span class="p" data-group-id="0932835121-1">)</span><span class="w">
</span><span class="p" data-group-id="0932835121-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0932835121-4">%</span><span class="nc" data-group-id="0932835121-4">User</span><span class="p" data-group-id="0932835121-4">{</span><span class="p" data-group-id="0932835121-4">}</span><span class="p" data-group-id="0932835121-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="0122707357-1">(</span><span class="p" data-group-id="0122707357-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="0122707357-2">}</span><span class="p" data-group-id="0122707357-1">)</span><span class="w">
</span><span class="p" data-group-id="0122707357-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0122707357-4">%</span><span class="nc" data-group-id="0122707357-4">User</span><span class="p" data-group-id="0122707357-4">{</span><span class="p" data-group-id="0122707357-4">}</span><span class="p" data-group-id="0122707357-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="0932835121-5">(</span><span class="p" data-group-id="0932835121-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="0932835121-6">}</span><span class="p" data-group-id="0932835121-5">)</span><span class="w">
</span><span class="p" data-group-id="0932835121-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0932835121-8">%</span><span class="nc" data-group-id="0932835121-8">Ecto.Changeset</span><span class="p" data-group-id="0932835121-8">{</span><span class="p" data-group-id="0932835121-8">}</span><span class="p" data-group-id="0932835121-7">}</span></code></pre>
</span><span class="gp unselectable">iex&gt; </span><span class="n">register_user</span><span class="p" data-group-id="0122707357-5">(</span><span class="p" data-group-id="0122707357-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="0122707357-6">}</span><span class="p" data-group-id="0122707357-5">)</span><span class="w">
</span><span class="p" data-group-id="0122707357-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0122707357-8">%</span><span class="nc" data-group-id="0122707357-8">Ecto.Changeset</span><span class="p" data-group-id="0122707357-8">{</span><span class="p" data-group-id="0122707357-8">}</span><span class="p" data-group-id="0122707357-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="1632781248-1">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1632781248-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="1632781248-2">}</span><span class="p" data-group-id="1632781248-1">)</span><span class="w">
</span><span class="p" data-group-id="1632781248-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1632781248-4">%</span><span class="nc" data-group-id="1632781248-4">User</span><span class="p" data-group-id="1632781248-4">{</span><span class="p" data-group-id="1632781248-4">}</span><span class="p" data-group-id="1632781248-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="9587006991-1">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9587006991-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="9587006991-2">}</span><span class="p" data-group-id="9587006991-1">)</span><span class="w">
</span><span class="p" data-group-id="9587006991-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9587006991-4">%</span><span class="nc" data-group-id="9587006991-4">User</span><span class="p" data-group-id="9587006991-4">{</span><span class="p" data-group-id="9587006991-4">}</span><span class="p" data-group-id="9587006991-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="1632781248-5">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1632781248-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="1632781248-6">}</span><span class="p" data-group-id="1632781248-5">)</span><span class="w">
</span><span class="p" data-group-id="1632781248-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1632781248-8">%</span><span class="nc" data-group-id="1632781248-8">Ecto.Changeset</span><span class="p" data-group-id="1632781248-8">{</span><span class="p" data-group-id="1632781248-8">}</span><span class="p" data-group-id="1632781248-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="9587006991-5">(</span><span class="n">user</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9587006991-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="9587006991-6">}</span><span class="p" data-group-id="9587006991-5">)</span><span class="w">
</span><span class="p" data-group-id="9587006991-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9587006991-8">%</span><span class="nc" data-group-id="9587006991-8">Ecto.Changeset</span><span class="p" data-group-id="9587006991-8">{</span><span class="p" data-group-id="9587006991-8">}</span><span class="p" data-group-id="9587006991-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="0299240504-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="0299240504-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="0299240504-2">}</span><span class="p" data-group-id="0299240504-1">)</span><span class="w">
</span><span class="p" data-group-id="0299240504-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0299240504-4">%</span><span class="nc" data-group-id="0299240504-4">User</span><span class="p" data-group-id="0299240504-4">{</span><span class="p" data-group-id="0299240504-4">}</span><span class="p" data-group-id="0299240504-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="9558322003-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="9558322003-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="9558322003-2">}</span><span class="p" data-group-id="9558322003-1">)</span><span class="w">
</span><span class="p" data-group-id="9558322003-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9558322003-4">%</span><span class="nc" data-group-id="9558322003-4">User</span><span class="p" data-group-id="9558322003-4">{</span><span class="p" data-group-id="9558322003-4">}</span><span class="p" data-group-id="9558322003-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="0299240504-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="0299240504-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="0299240504-6">}</span><span class="p" data-group-id="0299240504-5">)</span><span class="w">
</span><span class="p" data-group-id="0299240504-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0299240504-8">%</span><span class="nc" data-group-id="0299240504-8">Ecto.Changeset</span><span class="p" data-group-id="0299240504-8">{</span><span class="p" data-group-id="0299240504-8">}</span><span class="p" data-group-id="0299240504-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="9558322003-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="9558322003-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="9558322003-6">}</span><span class="p" data-group-id="9558322003-5">)</span><span class="w">
</span><span class="p" data-group-id="9558322003-7">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9558322003-8">%</span><span class="nc" data-group-id="9558322003-8">Ecto.Changeset</span><span class="p" data-group-id="9558322003-8">{</span><span class="p" data-group-id="9558322003-8">}</span><span class="p" data-group-id="9558322003-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.74.0">
<meta name="project" content="Mirage v0.75.0">
<meta name="author" content="Inhji">
<title>Mirage.Links.Link — Mirage v0.74.0</title>
<title>Mirage.Links.Link — Mirage v0.75.0</title>
<link rel="stylesheet" href="dist/elixir-9f91ebe876dc01d67920.css" />
<script src="dist/sidebar_items-86ebe4f0ec.js"></script>
@ -52,7 +52,7 @@
Mirage
</a>
<strong class="sidebar-projectVersion">
v0.74.0
v0.75.0
</strong>
</div>
@ -74,7 +74,7 @@ Mirage
<div id="content" class="content-inner">
<h1>
Mirage.Links.Link <small class="app-vsn">(Mirage v0.74.0)</small>
Mirage.Links.Link <small class="app-vsn">(Mirage v0.75.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.74.0">
<meta name="project" content="Mirage v0.75.0">
<meta name="author" content="Inhji">
<title>Mirage.Links.LinkTopic — Mirage v0.74.0</title>
<title>Mirage.Links.LinkTopic — Mirage v0.75.0</title>
<link rel="stylesheet" href="dist/elixir-9f91ebe876dc01d67920.css" />
<script src="dist/sidebar_items-86ebe4f0ec.js"></script>
@ -52,7 +52,7 @@
Mirage
</a>
<strong class="sidebar-projectVersion">
v0.74.0
v0.75.0
</strong>
</div>
@ -74,7 +74,7 @@ Mirage
<div id="content" class="content-inner">
<h1>
Mirage.Links.LinkTopic <small class="app-vsn">(Mirage v0.74.0)</small>
Mirage.Links.LinkTopic <small class="app-vsn">(Mirage v0.75.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.74.0">
<meta name="project" content="Mirage v0.75.0">
<meta name="author" content="Inhji">
<title>Mirage.Links — Mirage v0.74.0</title>
<title>Mirage.Links — Mirage v0.75.0</title>
<link rel="stylesheet" href="dist/elixir-9f91ebe876dc01d67920.css" />
<script src="dist/sidebar_items-86ebe4f0ec.js"></script>
@ -52,7 +52,7 @@
Mirage
</a>
<strong class="sidebar-projectVersion">
v0.74.0
v0.75.0
</strong>
</div>
@ -74,7 +74,7 @@ Mirage
<div id="content" class="content-inner">
<h1>
Mirage.Links <small class="app-vsn">(Mirage v0.74.0)</small>
Mirage.Links <small class="app-vsn">(Mirage v0.75.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="2666611415-1">(</span><span class="n">link</span><span class="p" data-group-id="2666611415-1">)</span><span class="w">
</span><span class="p" data-group-id="2666611415-2">%</span><span class="nc" data-group-id="2666611415-2">Todo</span><span class="p" data-group-id="2666611415-2">{</span><span class="n">...</span><span class="p" data-group-id="2666611415-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="7563343126-1">(</span><span class="n">link</span><span class="p" data-group-id="7563343126-1">)</span><span class="w">
</span><span class="p" data-group-id="7563343126-2">%</span><span class="nc" data-group-id="7563343126-2">Todo</span><span class="p" data-group-id="7563343126-2">{</span><span class="n">...</span><span class="p" data-group-id="7563343126-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="9158074678-1">(</span><span class="p" data-group-id="9158074678-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="9158074678-2">}</span><span class="p" data-group-id="9158074678-1">)</span><span class="w">
</span><span class="p" data-group-id="9158074678-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9158074678-4">%</span><span class="nc" data-group-id="9158074678-4">Link</span><span class="p" data-group-id="9158074678-4">{</span><span class="p" data-group-id="9158074678-4">}</span><span class="p" data-group-id="9158074678-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="1322299558-1">(</span><span class="p" data-group-id="1322299558-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="1322299558-2">}</span><span class="p" data-group-id="1322299558-1">)</span><span class="w">
</span><span class="p" data-group-id="1322299558-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1322299558-4">%</span><span class="nc" data-group-id="1322299558-4">Link</span><span class="p" data-group-id="1322299558-4">{</span><span class="p" data-group-id="1322299558-4">}</span><span class="p" data-group-id="1322299558-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="9158074678-5">(</span><span class="p" data-group-id="9158074678-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="9158074678-6">}</span><span class="p" data-group-id="9158074678-5">)</span><span class="w">
</span><span class="p" data-group-id="9158074678-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="9158074678-7">}</span></code></pre>
</span><span class="gp unselectable">iex&gt; </span><span class="n">create_link</span><span class="p" data-group-id="1322299558-5">(</span><span class="p" data-group-id="1322299558-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="1322299558-6">}</span><span class="p" data-group-id="1322299558-5">)</span><span class="w">
</span><span class="p" data-group-id="1322299558-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="1322299558-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="4648967709-1">(</span><span class="n">link</span><span class="p" data-group-id="4648967709-1">)</span><span class="w">
</span><span class="p" data-group-id="4648967709-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4648967709-3">%</span><span class="nc" data-group-id="4648967709-3">Link</span><span class="p" data-group-id="4648967709-3">{</span><span class="p" data-group-id="4648967709-3">}</span><span class="p" data-group-id="4648967709-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="8626872492-1">(</span><span class="n">link</span><span class="p" data-group-id="8626872492-1">)</span><span class="w">
</span><span class="p" data-group-id="8626872492-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8626872492-3">%</span><span class="nc" data-group-id="8626872492-3">Link</span><span class="p" data-group-id="8626872492-3">{</span><span class="p" data-group-id="8626872492-3">}</span><span class="p" data-group-id="8626872492-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="4648967709-4">(</span><span class="n">link</span><span class="p" data-group-id="4648967709-4">)</span><span class="w">
</span><span class="p" data-group-id="4648967709-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="4648967709-5">}</span></code></pre>
</span><span class="gp unselectable">iex&gt; </span><span class="n">delete_link</span><span class="p" data-group-id="8626872492-4">(</span><span class="n">link</span><span class="p" data-group-id="8626872492-4">)</span><span class="w">
</span><span class="p" data-group-id="8626872492-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="8626872492-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="9485660886-1">(</span><span class="mi">123</span><span class="p" data-group-id="9485660886-1">)</span><span class="w">
</span><span class="p" data-group-id="9485660886-2">%</span><span class="nc" data-group-id="9485660886-2">Link</span><span class="p" data-group-id="9485660886-2">{</span><span class="p" data-group-id="9485660886-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="0236630183-1">(</span><span class="mi">123</span><span class="p" data-group-id="0236630183-1">)</span><span class="w">
</span><span class="p" data-group-id="0236630183-2">%</span><span class="nc" data-group-id="0236630183-2">Link</span><span class="p" data-group-id="0236630183-2">{</span><span class="p" data-group-id="0236630183-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="6899126774-1">(</span><span class="p" data-group-id="6899126774-1">)</span><span class="w">
</span><span class="p" data-group-id="6899126774-2">[</span><span class="p" data-group-id="6899126774-3">%</span><span class="nc" data-group-id="6899126774-3">Link</span><span class="p" data-group-id="6899126774-3">{</span><span class="p" data-group-id="6899126774-3">}</span><span class="p">,</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="6899126774-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="5392184630-1">(</span><span class="p" data-group-id="5392184630-1">)</span><span class="w">
</span><span class="p" data-group-id="5392184630-2">[</span><span class="p" data-group-id="5392184630-3">%</span><span class="nc" data-group-id="5392184630-3">Link</span><span class="p" data-group-id="5392184630-3">{</span><span class="p" data-group-id="5392184630-3">}</span><span class="p">,</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="5392184630-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="8716469630-1">(</span><span class="n">link</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8716469630-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="8716469630-2">}</span><span class="p" data-group-id="8716469630-1">)</span><span class="w">
</span><span class="p" data-group-id="8716469630-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8716469630-4">%</span><span class="nc" data-group-id="8716469630-4">Link</span><span class="p" data-group-id="8716469630-4">{</span><span class="p" data-group-id="8716469630-4">}</span><span class="p" data-group-id="8716469630-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="3843903413-1">(</span><span class="n">link</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3843903413-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="3843903413-2">}</span><span class="p" data-group-id="3843903413-1">)</span><span class="w">
</span><span class="p" data-group-id="3843903413-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3843903413-4">%</span><span class="nc" data-group-id="3843903413-4">Link</span><span class="p" data-group-id="3843903413-4">{</span><span class="p" data-group-id="3843903413-4">}</span><span class="p" data-group-id="3843903413-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="8716469630-5">(</span><span class="n">link</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8716469630-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="8716469630-6">}</span><span class="p" data-group-id="8716469630-5">)</span><span class="w">
</span><span class="p" data-group-id="8716469630-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="8716469630-7">}</span></code></pre>
</span><span class="gp unselectable">iex&gt; </span><span class="n">update_link</span><span class="p" data-group-id="3843903413-5">(</span><span class="n">link</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3843903413-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="3843903413-6">}</span><span class="p" data-group-id="3843903413-5">)</span><span class="w">
</span><span class="p" data-group-id="3843903413-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="3843903413-7">}</span></code></pre>
</section>
</section>