@rmdes/indiekit-endpoint-microsub 1.0.0-beta.5 → 1.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rmdes/indiekit-endpoint-microsub",
3
- "version": "1.0.0-beta.5",
3
+ "version": "1.0.0-beta.6",
4
4
  "description": "Microsub endpoint for Indiekit. Enables subscribing to feeds and reading content using the Microsub protocol.",
5
5
  "keywords": [
6
6
  "indiekit",
@@ -3,7 +3,7 @@
3
3
  {% block content %}
4
4
  <div class="channel-new">
5
5
  <a href="{{ baseUrl }}/channels" class="back-link">
6
- {{ icon("arrow-left") }} {{ __("microsub.channels.title") }}
6
+ {{ icon("previous") }} {{ __("microsub.channels.title") }}
7
7
  </a>
8
8
 
9
9
  <form method="post" action="{{ baseUrl }}/channels/new">
package/views/channel.njk CHANGED
@@ -4,11 +4,11 @@
4
4
  <div class="channel">
5
5
  <header class="channel__header">
6
6
  <a href="{{ baseUrl }}/channels" class="back-link">
7
- {{ icon("arrow-left") }} {{ __("microsub.channels.title") }}
7
+ {{ icon("previous") }} {{ __("microsub.channels.title") }}
8
8
  </a>
9
9
  <div class="channel__actions">
10
10
  <a href="{{ baseUrl }}/channels/{{ channel.uid }}/settings" class="button button--secondary button--small">
11
- {{ icon("settings") }} {{ __("microsub.channels.settings") }}
11
+ {{ icon("updatePost") }} {{ __("microsub.channels.settings") }}
12
12
  </a>
13
13
  </div>
14
14
  </header>
@@ -24,12 +24,12 @@
24
24
  <nav class="timeline__paging" aria-label="Pagination">
25
25
  {% if paging.before %}
26
26
  <a href="?before={{ paging.before }}" class="button button--secondary">
27
- {{ icon("arrow-left") }} {{ __("microsub.reader.newer") }}
27
+ {{ icon("previous") }} {{ __("microsub.reader.newer") }}
28
28
  </a>
29
29
  {% endif %}
30
30
  {% if paging.after %}
31
31
  <a href="?after={{ paging.after }}" class="button button--secondary">
32
- {{ __("microsub.reader.older") }} {{ icon("arrow-right") }}
32
+ {{ __("microsub.reader.older") }} {{ icon("next") }}
33
33
  </a>
34
34
  {% endif %}
35
35
  </nav>
package/views/compose.njk CHANGED
@@ -3,7 +3,7 @@
3
3
  {% block content %}
4
4
  <div class="compose">
5
5
  <a href="{{ baseUrl }}/channels" class="back-link">
6
- {{ icon("arrow-left") }} {{ __("Back") }}
6
+ {{ icon("previous") }} {{ __("Back") }}
7
7
  </a>
8
8
 
9
9
  {% if replyTo %}
@@ -14,7 +14,7 @@
14
14
 
15
15
  {% if likeOf %}
16
16
  <div class="compose__context">
17
- {{ icon("heart") }} {{ __("microsub.compose.likeOf") }}: <a href="{{ likeOf }}">{{ likeOf }}</a>
17
+ {{ icon("like") }} {{ __("microsub.compose.likeOf") }}: <a href="{{ likeOf }}">{{ likeOf }}</a>
18
18
  </div>
19
19
  {% endif %}
20
20
 
package/views/item.njk CHANGED
@@ -3,7 +3,7 @@
3
3
  {% block content %}
4
4
  <article class="item">
5
5
  <a href="{{ baseUrl }}/channels" class="back-link">
6
- {{ icon("arrow-left") }} {{ __("Back") }}
6
+ {{ icon("previous") }} {{ __("Back") }}
7
7
  </a>
8
8
 
9
9
  {% if item.author %}
@@ -56,7 +56,7 @@
56
56
  <p>{{ icon("reply") }} {{ __("Reply to") }}: <a href="{{ item.inReplyTo[0] }}">{{ item.inReplyTo[0] }}</a></p>
57
57
  {% endif %}
58
58
  {% if item.likeOf %}
59
- <p>{{ icon("heart") }} {{ __("Liked") }}: <a href="{{ item.likeOf[0] }}">{{ item.likeOf[0] }}</a></p>
59
+ <p>{{ icon("like") }} {{ __("Liked") }}: <a href="{{ item.likeOf[0] }}">{{ item.likeOf[0] }}</a></p>
60
60
  {% endif %}
61
61
  {% if item.repostOf %}
62
62
  <p>{{ icon("repost") }} {{ __("Reposted") }}: <a href="{{ item.repostOf[0] }}">{{ item.repostOf[0] }}</a></p>
@@ -72,13 +72,13 @@
72
72
  {{ icon("reply") }} {{ __("microsub.item.reply") }}
73
73
  </a>
74
74
  <a href="{{ baseUrl }}/compose?likeOf={{ item.url | urlencode }}" class="button button--secondary button--small">
75
- {{ icon("heart") }} {{ __("microsub.item.like") }}
75
+ {{ icon("like") }} {{ __("microsub.item.like") }}
76
76
  </a>
77
77
  <a href="{{ baseUrl }}/compose?repostOf={{ item.url | urlencode }}" class="button button--secondary button--small">
78
78
  {{ icon("repost") }} {{ __("microsub.item.repost") }}
79
79
  </a>
80
80
  <a href="{{ item.url }}" class="button button--secondary button--small" target="_blank" rel="noopener">
81
- {{ icon("external") }} {{ __("microsub.item.viewOriginal") }}
81
+ {{ icon("public") }} {{ __("microsub.item.viewOriginal") }}
82
82
  </a>
83
83
  </footer>
84
84
  </article>
@@ -4,12 +4,12 @@
4
4
  {{ icon("reply") }}
5
5
  </a>
6
6
  <a href="{{ baseUrl }}/compose?likeOf={{ itemUrl | urlencode }}" class="item-actions__button" title="{{ __('microsub.item.like') }}">
7
- {{ icon("heart") }}
7
+ {{ icon("like") }}
8
8
  </a>
9
9
  <a href="{{ baseUrl }}/compose?repostOf={{ itemUrl | urlencode }}" class="item-actions__button" title="{{ __('microsub.item.repost') }}">
10
10
  {{ icon("repost") }}
11
11
  </a>
12
12
  <a href="{{ itemUrl }}" class="item-actions__button" target="_blank" rel="noopener" title="{{ __('microsub.item.viewOriginal') }}">
13
- {{ icon("external") }}
13
+ {{ icon("public") }}
14
14
  </a>
15
15
  </div>
@@ -18,7 +18,7 @@
18
18
  {% if item._type and item._type !== "entry" %}
19
19
  <div class="item-card__type">
20
20
  {% if item._type === "like" %}
21
- {{ icon("heart") }} Liked
21
+ {{ icon("like") }} Liked
22
22
  {% elif item._type === "repost" %}
23
23
  {{ icon("repost") }} Reposted
24
24
  {% elif item._type === "reply" %}
@@ -58,7 +58,7 @@
58
58
  </time>
59
59
  {% endif %}
60
60
  {% if not item._is_read %}
61
- <span class="item-card__unread">{{ icon("dot") }}</span>
61
+ <span class="item-card__unread" aria-label="Unread">●</span>
62
62
  {% endif %}
63
63
  </footer>
64
64
  </a>
package/views/reader.njk CHANGED
@@ -9,7 +9,7 @@
9
9
  <a href="{{ baseUrl }}/channels/{{ channel.uid }}" class="reader__channel-link">
10
10
  <span class="reader__channel-name">
11
11
  {% if channel.uid === "notifications" %}
12
- {{ icon("bell") }}
12
+ {{ icon("mention") }}
13
13
  {% endif %}
14
14
  {{ channel.name }}
15
15
  </span>
@@ -22,7 +22,7 @@
22
22
  </ul>
23
23
  <p class="reader__actions">
24
24
  <a href="{{ baseUrl }}/channels/new" class="button button--secondary">
25
- {{ icon("plus") }} {{ __("microsub.channels.new") }}
25
+ {{ icon("createPost") }} {{ __("microsub.channels.new") }}
26
26
  </a>
27
27
  </p>
28
28
  {% else %}
@@ -3,7 +3,7 @@
3
3
  {% block content %}
4
4
  <div class="settings">
5
5
  <a href="{{ baseUrl }}/channels/{{ channel.uid }}" class="back-link">
6
- {{ icon("arrow-left") }} {{ channel.name }}
6
+ {{ icon("previous") }} {{ channel.name }}
7
7
  </a>
8
8
 
9
9
  <form method="post" action="{{ baseUrl }}/channels/{{ channel.uid }}/settings">