nodebb-theme-harmony 1.0.0-beta.5 → 1.0.0-beta.50

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 (112) hide show
  1. package/languages/en-GB/harmony.json +5 -1
  2. package/library.js +21 -7
  3. package/package.json +1 -1
  4. package/public/harmony.js +124 -9
  5. package/public/settings.js +1 -0
  6. package/scss/chats.scss +24 -10
  7. package/scss/common.scss +45 -7
  8. package/scss/harmony.scss +2 -0
  9. package/scss/mixins.scss +7 -3
  10. package/scss/modals.scss +6 -1
  11. package/scss/modules/bottom-sheet.scss +1 -1
  12. package/scss/modules/composer.scss +0 -4
  13. package/scss/modules/cover.scss +1 -11
  14. package/scss/modules/paginator.scss +24 -0
  15. package/scss/overrides.scss +3 -1
  16. package/scss/search.scss +8 -0
  17. package/scss/sidebar.scss +7 -4
  18. package/scss/topic.scss +22 -12
  19. package/templates/account/blocks.tpl +35 -41
  20. package/templates/account/categories.tpl +23 -30
  21. package/templates/account/consent.tpl +66 -10
  22. package/templates/account/edit/password.tpl +25 -30
  23. package/templates/account/edit/username.tpl +21 -26
  24. package/templates/account/edit.tpl +105 -116
  25. package/templates/account/followers.tpl +12 -19
  26. package/templates/account/following.tpl +12 -18
  27. package/templates/account/groups.tpl +12 -17
  28. package/templates/account/info.tpl +178 -206
  29. package/templates/account/posts.tpl +31 -36
  30. package/templates/account/profile.tpl +66 -73
  31. package/templates/account/sessions.tpl +8 -30
  32. package/templates/account/settings.tpl +193 -198
  33. package/templates/account/theme.tpl +34 -25
  34. package/templates/account/topics.tpl +33 -38
  35. package/templates/account/uploads.tpl +33 -40
  36. package/templates/admin/plugins/harmony.tpl +17 -3
  37. package/templates/categories.tpl +1 -1
  38. package/templates/category.tpl +12 -13
  39. package/templates/chats.tpl +2 -2
  40. package/templates/flags/detail.tpl +24 -25
  41. package/templates/flags/list.tpl +11 -11
  42. package/templates/footer.tpl +2 -2
  43. package/templates/groups/details.tpl +20 -17
  44. package/templates/groups/members.tpl +0 -2
  45. package/templates/header.tpl +1 -1
  46. package/templates/partials/account/footer.tpl +3 -0
  47. package/templates/partials/account/header.tpl +78 -81
  48. package/templates/partials/account/session-list.tpl +18 -0
  49. package/templates/partials/breadcrumbs.tpl +6 -6
  50. package/templates/partials/categories/item.tpl +20 -19
  51. package/templates/partials/categories/lastpost.tpl +2 -2
  52. package/templates/partials/{category-filter-content.tpl → category/filter-dropdown-content.tpl} +8 -6
  53. package/templates/partials/{category-selector-content.tpl → category/selector-dropdown-content.tpl} +3 -3
  54. package/templates/partials/category/subcategory.tpl +1 -1
  55. package/templates/partials/category/tags.tpl +0 -2
  56. package/templates/partials/category/watch.tpl +28 -4
  57. package/templates/partials/chats/message-window.tpl +10 -7
  58. package/templates/partials/chats/message.tpl +4 -6
  59. package/templates/partials/cookie-consent.tpl +5 -5
  60. package/templates/partials/flags/filters.tpl +1 -1
  61. package/templates/partials/groups/admin.tpl +4 -4
  62. package/templates/partials/groups/badge.tpl +1 -1
  63. package/templates/partials/groups/memberlist.tpl +1 -1
  64. package/templates/partials/groups/sidebar-left.tpl +1 -1
  65. package/templates/partials/header/brand.tpl +1 -1
  66. package/templates/partials/mobile-footer.tpl +69 -61
  67. package/templates/partials/paginator.tpl +9 -9
  68. package/templates/partials/post_bar.tpl +6 -5
  69. package/templates/partials/posts_list_item.tpl +5 -5
  70. package/templates/partials/quick-search-results.tpl +1 -1
  71. package/templates/partials/search-filters.tpl +184 -0
  72. package/templates/partials/search-results.tpl +28 -32
  73. package/templates/partials/sidebar/chats.tpl +2 -2
  74. package/templates/partials/sidebar/drafts.tpl +42 -34
  75. package/templates/partials/sidebar/logged-in-menu.tpl +5 -5
  76. package/templates/partials/sidebar/notifications.tpl +3 -3
  77. package/templates/partials/sidebar/search.tpl +1 -1
  78. package/templates/partials/sidebar/user-menu.tpl +1 -1
  79. package/templates/partials/sidebar-left.tpl +13 -10
  80. package/templates/partials/sidebar-right.tpl +1 -1
  81. package/templates/partials/skin-switcher.tpl +2 -2
  82. package/templates/partials/tags_list.tpl +6 -4
  83. package/templates/partials/topic/browsing-users.tpl +0 -2
  84. package/templates/partials/topic/event.tpl +1 -1
  85. package/templates/partials/topic/navigation-post.tpl +5 -9
  86. package/templates/partials/topic/navigator-mobile.tpl +48 -0
  87. package/templates/partials/topic/post-editor.tpl +0 -2
  88. package/templates/partials/topic/post-menu-list.tpl +35 -37
  89. package/templates/partials/topic/post.tpl +27 -10
  90. package/templates/partials/topic/quickreply.tpl +6 -6
  91. package/templates/partials/topic/reply-button.tpl +1 -1
  92. package/templates/partials/topic/topic-menu-list.tpl +16 -18
  93. package/templates/partials/topic/watch.tpl +28 -4
  94. package/templates/partials/topic-list-bar.tpl +8 -8
  95. package/templates/partials/topics_list.tpl +40 -40
  96. package/templates/partials/users/filter-dropdown-content.tpl +20 -0
  97. package/templates/popular.tpl +1 -1
  98. package/templates/post-queue.tpl +112 -0
  99. package/templates/recent.tpl +1 -1
  100. package/templates/search.tpl +39 -177
  101. package/templates/tags.tpl +1 -1
  102. package/templates/top.tpl +1 -1
  103. package/templates/topic.tpl +7 -7
  104. package/templates/unread.tpl +1 -1
  105. package/templates/users.tpl +1 -1
  106. package/templates/modules/usercard.tpl +0 -39
  107. package/templates/partials/acceptTos.tpl +0 -11
  108. package/templates/partials/category-filter-right.tpl +0 -5
  109. package/templates/partials/category-filter.tpl +0 -3
  110. package/templates/partials/category-selector-right.tpl +0 -5
  111. package/templates/partials/category-selector.tpl +0 -3
  112. package/templates/partials/slideout-menu.tpl +0 -6
@@ -6,11 +6,11 @@
6
6
  </div>
7
7
  {{{ end }}}
8
8
 
9
- <h2 component="post/header" class="fs-2 mb-0 text-break {{{ if config.centerHeaderElements }}}text-center{{{ end }}}" itemprop="name">
9
+ <h2 component="post/header" class="fs-2 mb-0 text-break {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}}" itemprop="name">
10
10
  <span class="topic-title" component="topic/title">{title}</span>
11
11
  </h2>
12
12
 
13
- <div class="topic-info d-flex gap-2 align-items-center flex-wrap {{{ if config.centerHeaderElements }}}justify-content-center{{{ end }}}">
13
+ <div class="topic-info d-flex gap-2 align-items-center flex-wrap {{{ if config.theme.centerHeaderElements }}}justify-content-center{{{ end }}}">
14
14
  <span component="topic/labels" class="d-flex gap-2">
15
15
  <span component="topic/scheduled" class="badge badge border border-gray-300 text-primary {{{ if !scheduled }}}hidden{{{ end }}}">
16
16
  <i class="fa fa-clock-o"></i>
@@ -28,7 +28,7 @@
28
28
  <i class="fa fa-arrow-circle-right"></i>
29
29
  {{{ if privileges.isAdminOrMod }}}[[topic:moved-from, {oldCategory.name}]]{{{ else }}}[[topic:moved]]{{{ end }}}
30
30
  </span>
31
- {{{each icons}}}<span class="align-middle">{@value}</span>{{{end}}}
31
+ {{{each icons}}}<span>{@value}</span>{{{end}}}
32
32
  </span>
33
33
  <a class="lh-1" href="{config.relative_path}/category/{category.slug}">{function.buildCategoryLabel, category, "border"}</a>
34
34
  <div class="lh-1 tags tag-list d-flex hidden-xs gap-2"><!-- IMPORT partials/topic/tags.tpl --></div>
@@ -52,10 +52,10 @@
52
52
  <ul component="topic" class="posts timeline mt-sm-4 p-0 py-3" data-tid="{tid}" data-cid="{cid}">
53
53
  {{{each posts}}}
54
54
  <li component="post" class="pt-4 {{{ if posts.deleted }}}deleted{{{ end }}} {{{ if posts.selfPost }}}self-post{{{ end }}} {{{ if posts.topicOwnerPost }}}topic-owner-post{{{ end }}}" <!-- IMPORT partials/data/topic.tpl -->>
55
- <a component="post/anchor" data-index="{posts.index}" id="{posts.index}"></a>
55
+ <a component="post/anchor" data-index="{./index}" id="{increment(./index, "1")}"></a>
56
56
 
57
- <meta itemprop="datePublished" content="{posts.timestampISO}">
58
- <meta itemprop="dateModified" content="{posts.editedISO}">
57
+ <meta itemprop="datePublished" content="{./timestampISO}">
58
+ <meta itemprop="dateModified" content="{./editedISO}">
59
59
 
60
60
  <!-- IMPORT partials/topic/post.tpl -->
61
61
  </li>
@@ -74,7 +74,7 @@
74
74
  </div>
75
75
  {{{ end }}}
76
76
 
77
- {{{ if config.enableQuickReply }}}
77
+ {{{ if config.theme.enableQuickReply }}}
78
78
  <!-- IMPORT partials/topic/quickreply.tpl -->
79
79
  {{{ end }}}
80
80
 
@@ -6,7 +6,7 @@
6
6
  <div class="unread">
7
7
  <!-- IMPORT partials/topic-list-bar.tpl -->
8
8
  <div class="category">
9
- <div id="category-no-topics" class="alert alert-warning {{{ if topics.length }}}hidden{{{ end }}}">[[unread:no_unread_topics]]</div>
9
+ <div id="category-no-topics" class="alert alert-info mt-3 {{{ if topics.length }}}hidden{{{ end }}}">[[unread:no_unread_topics]]</div>
10
10
 
11
11
  <!-- IMPORT partials/topics_list.tpl -->
12
12
  <button id="load-more-btn" class="btn btn-primary hide">[[unread:load_more]]</button>
@@ -12,7 +12,7 @@
12
12
  <div class="">
13
13
  <div class="d-flex justify-content-end gap-2">
14
14
  {{{ if showInviteButton }}}
15
- <button component="user/invite" class="btn btn-primary btn-sm"><i class="fa fa-user-plus"></i> [[users:invite]]</button>
15
+ <button component="user/invite" class="btn btn-primary btn-sm text-nowrap"><i class="fa fa-user-plus"></i> [[users:invite]]</button>
16
16
  {{{ end }}}
17
17
  {{{ if displayUserSearch }}}
18
18
  <div class="search">
@@ -1,39 +0,0 @@
1
- <!-- THIS FILE IS STILL PERSONA -->
2
-
3
- <div class="persona-usercard">
4
- <a href="{config.relative_path}/user/{userslug}">
5
- <!-- IF picture -->
6
- <div class="usercard-picture" style="background-image:url({picture})"></div>
7
- <!-- ELSE -->
8
- <div class="usercard-picture" style="background-color: {icon:bgColor};">{icon:text}</div>
9
- <!-- ENDIF picture -->
10
- </a>
11
- <div class="usercard-body">
12
- <a href="{config.relative_path}/user/{userslug}">
13
- <span class="usercard-name"><!-- IF fullname -->{fullname}<!-- ELSE -->{username}<!-- ENDIF fullname --></span><br />
14
- <span class="usercard-username"><!-- IF !banned -->@{username}<!-- ELSE -->[[user:banned]]<!-- ENDIF !banned --></span>
15
- <!-- IF !banned -->
16
- <i component="user/status" class="fa fa-circle status {status}" title="[[global:{status}]]"></i>
17
- <!-- ENDIF !banned -->
18
- </a>
19
-
20
- <div class="row usercard-info">
21
- <div class="col-4">
22
- <small>[[global:posts]]</small>
23
- <span class="human-readable-number">{postcount}</span>
24
- </div>
25
- <div class="col-4">
26
- <small>[[global:reputation]]</small>
27
- <span class="human-readable-number">{reputation}</span>
28
- </div>
29
-
30
- <button class="btn-morph persona-fab <!-- IF banned --> hide<!-- ENDIF banned -->">
31
- <span>
32
- <span class="s1"></span>
33
- <span class="s2"></span>
34
- <span class="s3"></span>
35
- </span>
36
- </button>
37
- </div>
38
- </div>
39
- </div>
@@ -1,11 +0,0 @@
1
- <!-- THIS FILE IS STILL PERSONA -->
2
-
3
- <div class="form-group">
4
- <label for="agree-terms">[[register:terms_of_use]]</label>
5
- <div class="tos">{termsOfUse}</div>
6
- <div class="checkbox">
7
- <label>
8
- <input type="checkbox" name="agree-terms" id="agree-terms"> [[register:agree_to_terms_of_use]]
9
- </label>
10
- </div>
11
- </div>
@@ -1,5 +0,0 @@
1
- <!-- THIS FILE IS STILL PERSONA -->
2
-
3
- <div component="category/dropdown" class="btn-group right category-dropdown-container bottom-sheet">
4
- <!-- IMPORT partials/category-filter-content.tpl -->
5
- </div>
@@ -1,3 +0,0 @@
1
- <div component="category/dropdown" class="btn-group category-dropdown-container bottom-sheet">
2
- <!-- IMPORT partials/category-filter-content.tpl -->
3
- </div>
@@ -1,5 +0,0 @@
1
- <!-- THIS FILE IS STILL PERSONA -->
2
-
3
- <div component="category-selector" class="btn-group right category-dropdown-container bottom-sheet">
4
- <!-- IMPORT partials/category-selector-content.tpl -->
5
- </div>
@@ -1,3 +0,0 @@
1
- <div component="category-selector" class="btn-group bottom-sheet">
2
- <!-- IMPORT partials/category-selector-content.tpl -->
3
- </div>
@@ -1,6 +0,0 @@
1
- <!-- THIS FILE IS STILL PERSONA -->
2
-
3
- <section class="menu-section" data-section="navigation">
4
- <ul class="menu-section-list text-bg-dark"></ul>
5
- </section>
6
-