nodebb-theme-harmony 1.0.0-beta.9 → 1.0.0-beta.91

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.
Files changed (151) hide show
  1. package/README.md +12 -1
  2. package/languages/en-GB/harmony.json +5 -1
  3. package/library.js +25 -25
  4. package/package.json +1 -1
  5. package/plugin.json +0 -1
  6. package/public/harmony.js +148 -9
  7. package/public/settings.js +1 -0
  8. package/screenshots/categories.png +0 -0
  9. package/screenshots/recent.png +0 -0
  10. package/screenshots/topic.png +0 -0
  11. package/scss/account.scss +1 -1
  12. package/scss/chats.scss +53 -25
  13. package/scss/common.scss +78 -9
  14. package/scss/flags.scss +5 -0
  15. package/scss/groups.scss +2 -2
  16. package/scss/harmony.scss +3 -0
  17. package/scss/mixins.scss +7 -3
  18. package/scss/modals.scss +6 -1
  19. package/scss/modules/bottom-sheet.scss +1 -1
  20. package/scss/modules/composer.scss +0 -4
  21. package/scss/modules/cover.scss +1 -11
  22. package/scss/modules/filters.scss +8 -0
  23. package/scss/modules/paginator.scss +24 -0
  24. package/scss/modules/topic-navigator.scss +16 -42
  25. package/scss/modules/topics-list.scss +172 -16
  26. package/scss/modules/user-menu.scss +6 -0
  27. package/scss/overrides.scss +4 -1
  28. package/scss/sidebar.scss +39 -11
  29. package/scss/topic.scss +30 -13
  30. package/templates/account/blocks.tpl +35 -40
  31. package/templates/account/categories.tpl +47 -29
  32. package/templates/account/consent.tpl +66 -10
  33. package/templates/account/edit/password.tpl +25 -30
  34. package/templates/account/edit/username.tpl +21 -26
  35. package/templates/account/edit.tpl +105 -116
  36. package/templates/account/followers.tpl +12 -19
  37. package/templates/account/following.tpl +12 -18
  38. package/templates/account/groups.tpl +12 -17
  39. package/templates/account/info.tpl +178 -206
  40. package/templates/account/posts.tpl +31 -36
  41. package/templates/account/profile.tpl +66 -73
  42. package/templates/account/sessions.tpl +8 -30
  43. package/templates/account/settings.tpl +222 -203
  44. package/templates/account/theme.tpl +35 -26
  45. package/templates/account/topics.tpl +36 -38
  46. package/templates/account/uploads.tpl +33 -40
  47. package/templates/admin/plugins/harmony.tpl +17 -3
  48. package/templates/categories.tpl +2 -2
  49. package/templates/category.tpl +13 -14
  50. package/templates/chats.tpl +7 -8
  51. package/templates/flags/detail.tpl +160 -193
  52. package/templates/flags/list.tpl +4 -70
  53. package/templates/footer.tpl +2 -2
  54. package/templates/groups/details.tpl +21 -18
  55. package/templates/groups/list.tpl +1 -1
  56. package/templates/groups/members.tpl +0 -2
  57. package/templates/header.tpl +2 -2
  58. package/templates/login.tpl +2 -2
  59. package/templates/notifications.tpl +1 -1
  60. package/templates/partials/account/admin-menu.tpl +9 -9
  61. package/templates/partials/account/category-item.tpl +14 -17
  62. package/templates/partials/account/footer.tpl +3 -0
  63. package/templates/partials/account/header.tpl +78 -81
  64. package/templates/partials/account/session-list.tpl +18 -0
  65. package/templates/partials/account/sidebar-left.tpl +6 -0
  66. package/templates/partials/breadcrumbs.tpl +6 -6
  67. package/templates/partials/buttons/newTopic.tpl +1 -1
  68. package/templates/partials/categories/item.tpl +30 -23
  69. package/templates/partials/categories/lastpost.tpl +2 -2
  70. package/templates/partials/category/filter-dropdown-content.tpl +37 -0
  71. package/templates/partials/{category-selector-content.tpl → category/selector-dropdown-content.tpl} +7 -7
  72. package/templates/partials/category/sort.tpl +7 -7
  73. package/templates/partials/category/subcategory.tpl +1 -1
  74. package/templates/partials/category/tags.tpl +0 -2
  75. package/templates/partials/category/tools.tpl +28 -25
  76. package/templates/partials/category/watch.tpl +30 -6
  77. package/templates/partials/chats/dropdown.tpl +4 -1
  78. package/templates/partials/chats/message-window.tpl +8 -7
  79. package/templates/partials/chats/message.tpl +4 -6
  80. package/templates/partials/chats/options.tpl +14 -6
  81. package/templates/partials/chats/recent_room.tpl +41 -32
  82. package/templates/partials/cookie-consent.tpl +5 -5
  83. package/templates/partials/flags/bulk-actions.tpl +9 -0
  84. package/templates/partials/flags/filters.tpl +163 -78
  85. package/templates/partials/flags/results.tpl +38 -0
  86. package/templates/partials/groups/admin.tpl +4 -4
  87. package/templates/partials/groups/badge.tpl +1 -1
  88. package/templates/partials/groups/memberlist.tpl +1 -1
  89. package/templates/partials/groups/sidebar-left.tpl +1 -1
  90. package/templates/partials/header/brand.tpl +9 -2
  91. package/templates/partials/mobile-footer.tpl +69 -64
  92. package/templates/partials/notifications_list.tpl +11 -8
  93. package/templates/partials/paginator.tpl +11 -9
  94. package/templates/partials/post_bar.tpl +26 -24
  95. package/templates/partials/posts_list_item.tpl +5 -5
  96. package/templates/partials/quick-search-results.tpl +3 -3
  97. package/templates/partials/search-filters.tpl +184 -0
  98. package/templates/partials/search-results.tpl +28 -32
  99. package/templates/partials/sidebar/chats.tpl +22 -33
  100. package/templates/partials/sidebar/drafts.tpl +45 -34
  101. package/templates/partials/sidebar/logged-in-menu.tpl +5 -5
  102. package/templates/partials/sidebar/logged-out-menu.tpl +1 -1
  103. package/templates/partials/sidebar/notifications.tpl +29 -8
  104. package/templates/partials/sidebar/search.tpl +1 -1
  105. package/templates/partials/sidebar/user-menu.tpl +38 -29
  106. package/templates/partials/sidebar-left.tpl +11 -11
  107. package/templates/partials/sidebar-right.tpl +1 -3
  108. package/templates/partials/skin-switcher.tpl +3 -3
  109. package/templates/partials/tags/filter-dropdown-content.tpl +31 -0
  110. package/templates/partials/tags_list.tpl +4 -4
  111. package/templates/partials/topic/browsing-users.tpl +0 -2
  112. package/templates/partials/topic/event.tpl +1 -1
  113. package/templates/partials/topic/navigation-post.tpl +5 -9
  114. package/templates/partials/topic/navigator-mobile.tpl +62 -0
  115. package/templates/partials/topic/navigator.tpl +21 -17
  116. package/templates/partials/topic/post-editor.tpl +0 -2
  117. package/templates/partials/topic/post-menu-list.tpl +60 -62
  118. package/templates/partials/topic/post-menu.tpl +16 -11
  119. package/templates/partials/topic/post.tpl +43 -25
  120. package/templates/partials/topic/quickreply.tpl +5 -5
  121. package/templates/partials/topic/reply-button.tpl +3 -3
  122. package/templates/partials/topic/sort.tpl +17 -5
  123. package/templates/partials/topic/tools.tpl +2 -2
  124. package/templates/partials/topic/topic-menu-list.tpl +22 -24
  125. package/templates/partials/topic/watch.tpl +30 -6
  126. package/templates/partials/topic-filters.tpl +6 -3
  127. package/templates/partials/topic-list-bar.tpl +50 -46
  128. package/templates/partials/topic-terms.tpl +6 -3
  129. package/templates/partials/topics_list.tpl +53 -60
  130. package/templates/partials/userFilter-placeholders.tpl +5 -0
  131. package/templates/partials/users/filter-dropdown-content.tpl +23 -0
  132. package/templates/partials/users/item.tpl +25 -27
  133. package/templates/partials/users_list.tpl +1 -1
  134. package/templates/popular.tpl +3 -1
  135. package/templates/post-queue.tpl +166 -0
  136. package/templates/recent.tpl +3 -2
  137. package/templates/register.tpl +2 -2
  138. package/templates/search.tpl +39 -177
  139. package/templates/tags.tpl +3 -3
  140. package/templates/top.tpl +3 -1
  141. package/templates/topic.tpl +74 -68
  142. package/templates/unread.tpl +3 -1
  143. package/templates/users.tpl +7 -3
  144. package/templates/modules/usercard.tpl +0 -39
  145. package/templates/partials/acceptTos.tpl +0 -11
  146. package/templates/partials/category-filter-content.tpl +0 -30
  147. package/templates/partials/category-filter-right.tpl +0 -5
  148. package/templates/partials/category-filter.tpl +0 -3
  149. package/templates/partials/category-selector-right.tpl +0 -5
  150. package/templates/partials/category-selector.tpl +0 -3
  151. package/templates/partials/slideout-menu.tpl +0 -6
@@ -1,85 +1,78 @@
1
- <div class="account mx-auto">
2
- <!-- IMPORT partials/account/header.tpl -->
3
-
4
- <div class="d-flex flex-column flex-md-row">
5
- <!-- IMPORT partials/account/sidebar-left.tpl -->
1
+ <!-- IMPORT partials/account/header.tpl -->
2
+ {{{ if aboutme }}}
3
+ <div component="aboutme" class="text-sm text-break">
4
+ {aboutmeParsed}
5
+ </div>
6
+ {{{ end }}}
6
7
 
7
- <div class="flex-1 ps-md-2 ps-lg-5">
8
- {{{ if aboutme }}}
9
- <div component="aboutme" class="text-sm">
10
- {aboutmeParsed}
8
+ <div class="account-stats container">
9
+ <div class="row row-cols-2 row-cols-xl-3 row-cols-xxl-4 g-2">
10
+ {{{ if !reputation:disabled }}}
11
+ <div class="stat">
12
+ <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100">
13
+ <span class="stat-label text-xs fw-semibold">[[global:reputation]]</span>
14
+ <span class="human-readable-number fs-2 ff-secondary" title="{reputation}">{reputation}</span>
11
15
  </div>
12
- {{{ end }}}
13
-
14
- <div class="account-stats container">
15
- <div class="row row-cols-2 row-cols-xl-3 row-cols-xxl-4 g-2">
16
- {{{ if !reputation:disabled }}}
17
- <div class="stat">
18
- <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100">
19
- <span class="stat-label text-xs fw-semibold">[[global:reputation]]</span>
20
- <span class="human-readable-number fs-2 ff-secondary" title="{reputation}">{reputation}</span>
21
- </div>
22
- </div>
23
- {{{ end }}}
24
- <div class="stat">
25
- <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100">
26
- <span class="stat-label text-xs fw-semibold">[[user:profile_views]]</span>
27
- <span class="human-readable-number fs-2 ff-secondary" title="
28
- {profileviews}">{profileviews}</span>
29
- </div>
30
- </div>
16
+ </div>
17
+ {{{ end }}}
18
+ <div class="stat">
19
+ <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100">
20
+ <span class="stat-label text-xs fw-semibold">[[user:profile_views]]</span>
21
+ <span class="human-readable-number fs-2 ff-secondary" title="
22
+ {profileviews}">{profileviews}</span>
23
+ </div>
24
+ </div>
31
25
 
32
- <div class="stat">
33
- <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100 gap-2">
34
- <span class="stat-label text-xs fw-semibold"><i class="text-muted fa-solid fa-user-plus"></i> <span>[[user:joined]]</span></span>
35
- <span class="timeago fs-6 ff-secondary" title="{joindateISO}"></span>
36
- </div>
37
- </div>
26
+ <div class="stat">
27
+ <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100 gap-2">
28
+ <span class="stat-label text-xs fw-semibold"><i class="text-muted fa-solid fa-user-plus"></i> <span>[[user:joined]]</span></span>
29
+ <span class="timeago fs-6 ff-secondary" title="{joindateISO}"></span>
30
+ </div>
31
+ </div>
38
32
 
39
- <div class="stat">
40
- <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100 gap-2">
41
- <span class="stat-label text-xs fw-semibold"><i class="text-muted fa-solid fa-clock"></i> <span>[[user:lastonline]]</span></span>
42
- <span class="timeago text-center text-break w-100 px-2 fs-6 ff-secondary" title="{lastonlineISO}"></span>
43
- </div>
44
- </div>
33
+ <div class="stat">
34
+ <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100 gap-2">
35
+ <span class="stat-label text-xs fw-semibold"><i class="text-muted fa-solid fa-clock"></i> <span>[[user:lastonline]]</span></span>
36
+ <span class="timeago text-center text-break w-100 px-2 fs-6 ff-secondary" title="{lastonlineISO}"></span>
37
+ </div>
38
+ </div>
45
39
 
46
- {{{ if email }}}
47
- <div class="stat">
48
- <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100 gap-2">
49
- <span class="stat-label text-xs fw-semibold"><i class="text-muted fa-solid fa-envelope"></i> <span>[[user:email]]</span> {{{ if emailHidden}}}<span class="text-lowercase">([[global:hidden]])</span>{{{ end }}}</span>
50
- <span class="text-sm text-center text-break w-100 px-2 ff-secondary">{email}</span>
51
- </div>
52
- </div>
53
- {{{ end }}}
40
+ {{{ if email }}}
41
+ <div class="stat">
42
+ <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100 gap-2">
43
+ <span class="stat-label text-xs fw-semibold"><i class="text-muted fa-solid fa-envelope"></i> <span>[[user:email]]</span> {{{ if emailHidden}}}<span class="text-lowercase">([[global:hidden]])</span>{{{ end }}}</span>
44
+ <span class="text-sm text-center text-break w-100 px-2 ff-secondary">{email}</span>
45
+ </div>
46
+ </div>
47
+ {{{ end }}}
54
48
 
55
- {{{ if websiteName }}}
56
- <div class="stat">
57
- <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100 gap-2">
58
- <span class="stat-label text-xs fw-semibold"><i class="text-muted fa-solid fa-globe"></i> <span>[[user:website]]</span></span>
59
- <a class="text-sm text-center text-break w-100 px-2 ff-secondary text-underline text-reset" href="{websiteLink}" rel="nofollow noopener noreferrer">{websiteName}</a>
60
- </div>
61
- </div>
62
- {{{ end }}}
49
+ {{{ if websiteName }}}
50
+ <div class="stat">
51
+ <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100 gap-2">
52
+ <span class="stat-label text-xs fw-semibold"><i class="text-muted fa-solid fa-globe"></i> <span>[[user:website]]</span></span>
53
+ <a class="text-sm text-center text-break w-100 px-2 ff-secondary text-underline text-reset" href="{websiteLink}" rel="nofollow noopener noreferrer">{websiteName}</a>
54
+ </div>
55
+ </div>
56
+ {{{ end }}}
63
57
 
64
- {{{ if location }}}
65
- <div class="stat">
66
- <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100 gap-2">
67
- <span class="stat-label text-xs fw-semibold"><i class="text-muted fa-solid fa-map-pin"></i> <span>[[user:location]]</span></span>
68
- <span class="text-center text-break w-100 px-2 fs-6 ff-secondary">{location}</span>
69
- </div>
70
- </div>
71
- {{{ end }}}
58
+ {{{ if location }}}
59
+ <div class="stat">
60
+ <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100 gap-2">
61
+ <span class="stat-label text-xs fw-semibold"><i class="text-muted fa-solid fa-map-pin"></i> <span>[[user:location]]</span></span>
62
+ <span class="text-center text-break w-100 px-2 fs-6 ff-secondary">{location}</span>
63
+ </div>
64
+ </div>
65
+ {{{ end }}}
72
66
 
73
- {{{ if age }}}
74
- <div class="stat">
75
- <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100 gap-2">
76
- <span class="stat-label text-xs fw-semibold"><span><i class="text-muted fa-solid fa-cake-candles"></i> [[user:age]]</span></span>
77
- <span class="fs-6 ff-secondary">{age}</span>
78
- </div>
79
- </div>
80
- {{{ end }}}
81
- </div>
67
+ {{{ if age }}}
68
+ <div class="stat">
69
+ <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100 gap-2">
70
+ <span class="stat-label text-xs fw-semibold"><span><i class="text-muted fa-solid fa-cake-candles"></i> [[user:age]]</span></span>
71
+ <span class="fs-6 ff-secondary">{age}</span>
82
72
  </div>
83
73
  </div>
74
+ {{{ end }}}
84
75
  </div>
85
76
  </div>
77
+
78
+ <!-- IMPORT partials/account/footer.tpl -->
@@ -1,31 +1,9 @@
1
- <div class="account">
2
- <!-- IMPORT partials/account/header.tpl -->
1
+ <!-- IMPORT partials/account/header.tpl -->
3
2
 
4
- <div class="d-flex flex-column flex-md-row">
5
- <!-- IMPORT partials/account/sidebar-left.tpl -->
6
- <div class="flex-1 ps-md-2 ps-lg-5" style="min-width: 0;">
7
- <p class="lead">[[user:sessions.description]]</p>
8
- <hr />
9
- <ul class="list-group" component="user/sessions">
10
- {{{each sessions}}}
11
- <li class="list-group-item" data-uuid="{../uuid}">
12
- <div class="float-end">
13
- <!-- IF isSelfOrAdminOrGlobalModerator -->
14
- <!-- IF !../current -->
15
- <button class="btn btn-sm btn-outline-secondary" type="button" data-action="revokeSession">Revoke Session</button>
16
- <!-- ENDIF !../current -->
17
- <!-- ENDIF isSelfOrAdminOrGlobalModerator -->
18
- {function.userAgentIcons}
19
- <i class="fa fa-circle text-<!-- IF ../current -->success<!-- ELSE -->muted<!-- ENDIF ../current -->"></i>
20
- </div>
21
- {../browser} {../version} on {../platform}<br />
22
- <small class="timeago text-muted" title="{../datetimeISO}"></small>
23
- <ul>
24
- <li><strong>[[global:ip_address]]</strong>: {../ip}</li>
25
- </ul>
26
- </li>
27
- {{{end}}}
28
- </ul>
29
- </div>
30
- </div>
31
- </div>
3
+ <p class="lead">[[user:sessions.description]]</p>
4
+ <hr />
5
+ <ul class="list-group" component="user/sessions">
6
+ <!-- IMPORT partials/account/session-list.tpl -->
7
+ </ul>
8
+
9
+ <!-- IMPORT partials/account/footer.tpl -->