nodebb-theme-harmony 1.0.0-beta.3 → 1.0.0-beta.30

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 (99) hide show
  1. package/languages/en-GB/harmony.json +1 -0
  2. package/library.js +10 -0
  3. package/package.json +1 -1
  4. package/public/harmony.js +50 -23
  5. package/scss/chats.scss +7 -2
  6. package/scss/common.scss +36 -4
  7. package/scss/harmony.scss +2 -0
  8. package/scss/mixins.scss +7 -3
  9. package/scss/modules/composer.scss +0 -4
  10. package/scss/modules/cover.scss +1 -11
  11. package/scss/modules/paginator.scss +24 -0
  12. package/scss/overrides.scss +2 -0
  13. package/scss/search.scss +8 -0
  14. package/scss/sidebar.scss +27 -2
  15. package/scss/topic.scss +22 -12
  16. package/templates/account/blocks.tpl +1 -1
  17. package/templates/account/categories.tpl +1 -2
  18. package/templates/account/consent.tpl +63 -1
  19. package/templates/account/edit/password.tpl +1 -1
  20. package/templates/account/edit/username.tpl +1 -1
  21. package/templates/account/edit.tpl +2 -2
  22. package/templates/account/followers.tpl +1 -1
  23. package/templates/account/following.tpl +1 -1
  24. package/templates/account/groups.tpl +1 -1
  25. package/templates/account/info.tpl +2 -19
  26. package/templates/account/posts.tpl +1 -1
  27. package/templates/account/profile.tpl +2 -2
  28. package/templates/account/sessions.tpl +2 -19
  29. package/templates/account/settings.tpl +1 -1
  30. package/templates/account/theme.tpl +1 -1
  31. package/templates/account/topics.tpl +1 -1
  32. package/templates/account/uploads.tpl +1 -1
  33. package/templates/categories.tpl +1 -1
  34. package/templates/category.tpl +10 -11
  35. package/templates/chats.tpl +1 -1
  36. package/templates/flags/detail.tpl +0 -1
  37. package/templates/flags/list.tpl +1 -1
  38. package/templates/groups/details.tpl +20 -17
  39. package/templates/groups/members.tpl +0 -2
  40. package/templates/partials/account/header.tpl +10 -17
  41. package/templates/partials/account/session-list.tpl +18 -0
  42. package/templates/partials/categories/item.tpl +11 -14
  43. package/templates/partials/categories/lastpost.tpl +2 -2
  44. package/templates/partials/{category-filter-content.tpl → category/filter-dropdown-content.tpl} +6 -4
  45. package/templates/partials/{category-selector-content.tpl → category/selector-dropdown-content.tpl} +1 -1
  46. package/templates/partials/category/subcategory.tpl +1 -1
  47. package/templates/partials/category/tags.tpl +0 -2
  48. package/templates/partials/category/watch.tpl +28 -4
  49. package/templates/partials/chats/message-window.tpl +3 -2
  50. package/templates/partials/chats/message.tpl +1 -1
  51. package/templates/partials/cookie-consent.tpl +5 -5
  52. package/templates/partials/flags/filters.tpl +1 -1
  53. package/templates/partials/groups/admin.tpl +1 -1
  54. package/templates/partials/groups/badge.tpl +1 -1
  55. package/templates/partials/groups/sidebar-left.tpl +1 -1
  56. package/templates/partials/mobile-footer.tpl +70 -62
  57. package/templates/partials/paginator.tpl +9 -9
  58. package/templates/partials/post_bar.tpl +5 -4
  59. package/templates/partials/posts_list_item.tpl +5 -5
  60. package/templates/partials/quick-search-results.tpl +1 -1
  61. package/templates/partials/search-filters.tpl +184 -0
  62. package/templates/partials/search-results.tpl +28 -32
  63. package/templates/partials/sidebar/chats.tpl +6 -3
  64. package/templates/partials/sidebar/drafts.tpl +5 -5
  65. package/templates/partials/sidebar/logged-in-menu.tpl +5 -5
  66. package/templates/partials/sidebar/notifications.tpl +4 -4
  67. package/templates/partials/sidebar/search-mobile.tpl +1 -1
  68. package/templates/partials/sidebar/search.tpl +1 -1
  69. package/templates/partials/sidebar/user-menu.tpl +1 -1
  70. package/templates/partials/sidebar-left.tpl +4 -1
  71. package/templates/partials/skin-switcher.tpl +2 -2
  72. package/templates/partials/tags_list.tpl +6 -4
  73. package/templates/partials/topic/browsing-users.tpl +0 -2
  74. package/templates/partials/topic/event.tpl +1 -1
  75. package/templates/partials/topic/navigation-post.tpl +5 -9
  76. package/templates/partials/topic/navigator-mobile.tpl +43 -0
  77. package/templates/partials/topic/post-editor.tpl +0 -2
  78. package/templates/partials/topic/post-menu-list.tpl +0 -2
  79. package/templates/partials/topic/post.tpl +19 -3
  80. package/templates/partials/topic/quickreply.tpl +3 -3
  81. package/templates/partials/topic/topic-menu-list.tpl +0 -2
  82. package/templates/partials/topic/watch.tpl +28 -4
  83. package/templates/partials/topic-list-bar.tpl +6 -6
  84. package/templates/partials/topics_list.tpl +46 -45
  85. package/templates/partials/users/filter-dropdown-content.tpl +20 -0
  86. package/templates/popular.tpl +1 -1
  87. package/templates/post-queue.tpl +112 -0
  88. package/templates/recent.tpl +1 -1
  89. package/templates/search.tpl +39 -177
  90. package/templates/top.tpl +1 -1
  91. package/templates/topic.tpl +2 -2
  92. package/templates/unread.tpl +1 -1
  93. package/templates/modules/usercard.tpl +0 -39
  94. package/templates/partials/acceptTos.tpl +0 -11
  95. package/templates/partials/category-filter-right.tpl +0 -5
  96. package/templates/partials/category-filter.tpl +0 -3
  97. package/templates/partials/category-selector-right.tpl +0 -5
  98. package/templates/partials/category-selector.tpl +0 -3
  99. package/templates/partials/slideout-menu.tpl +0 -6
@@ -9,7 +9,7 @@
9
9
 
10
10
  <div class="category">
11
11
  {{{ if !topics.length }}}
12
- <div class="alert alert-warning" id="category-no-topics">[[recent:no_recent_topics]]</div>
12
+ <div class="alert alert-info mt-3" id="category-no-topics">[[recent:no_recent_topics]]</div>
13
13
  {{{ end }}}
14
14
 
15
15
  <!-- IMPORT partials/topics_list.tpl -->
@@ -1,183 +1,45 @@
1
- <!-- THIS FILE IS STILL PERSONA -->
2
-
3
1
  <div class="search">
4
- <div class="row">
5
- <div class="{{{ if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}">
6
- <form id="advanced-search" class="mb-3">
7
- <div class="mb-3">
8
- <div class="row">
9
- <div class="col-md-5">
10
- <label class="form-label">[[global:search]]</label>
11
- <input type="text" class="form-control" id="search-input" placeholder="[[global:search]]">
12
- </div>
13
- <div class="col-md-3">
14
- <label class="form-label">[[search:in]]</label>
15
- <select id="search-in" class="form-select">
16
- <option value="titlesposts">[[search:titles-posts]]</option>
17
- <option value="titles">[[search:titles]]</option>
18
- <option value="posts">[[global:posts]]</option>
19
- <option value="categories">[[global:header.categories]]</option>
20
- {{{if privileges.search:users}}}
21
- <option value="users">[[global:users]]</option>
22
- {{{end}}}
23
- {{{if privileges.search:tags}}}
24
- <option value="tags">[[tags:tags]]</option>
25
- {{{end}}}
26
- </select>
27
- </div>
28
- <div class="col-md-2">
29
- <label class="form-label">[[search:match-words]]</label>
30
- <select id="match-words-filter" class="form-select">
31
- <option value="all">[[search:all]]</option>
32
- <option value="any">[[search:any]]</option>
33
- </select>
34
- </div>
35
- <div class="col-md-2">
36
- <label class="form-label">&nbsp;</label>
37
- <button type="submit" class="btn btn-primary form-control">[[global:search]]</button>
38
- </div>
39
- </div>
40
- </div>
41
-
42
- <div class="card">
43
- <h5 class="card-header pointer" data-bs-toggle="collapse" data-bs-target=".search-options">
44
- <i class="fa fa-sort"></i> [[search:advanced-search]]
45
- </h5>
46
- <div class="collapse search-options {{{ if expandSearch }}}show{{{ end }}}">
47
- <div class="card-body">
48
- <div class="mb-2 post-search-item">
49
- <div class="row">
50
- <div class="col-md-6">
51
- <label class="form-label">[[search:in-categories]]</label>
52
- <select multiple class="form-select" id="posted-in-categories" size="{allCategoriesCount}">
53
- {{{each allCategories}}}
54
- <option value="{allCategories.value}">{allCategories.text}</option>
55
- {{{end}}}
56
- </select>
57
- <div class="form-check">
58
- <input id="search-children" class="form-check-input" type="checkbox"/>
59
- <label class="form-check-label" for="search-children">[[search:search-child-categories]]</label>
60
- </div>
61
- </div>
62
- <div class="col-md-6">
63
- <div class="mb-2 post-search-item">
64
- <div class="row">
65
- <div class="col-md-6">
66
- <label class="form-label">[[search:posted-by]]</label>
67
- <div>
68
- <input type="text" class="form-control" id="posted-by-user">
69
- </div>
70
- </div>
71
- <div class="col-md-6">
72
- <label class="form-label">[[search:has-tags]]</label>
73
- <div>
74
- <input type="text" class="form-control" id="has-tags">
75
- </div>
76
- </div>
77
- </div>
78
- </div>
79
-
80
- <div class="mb-2 post-search-item">
81
- <label class="form-label">[[search:reply-count]]</label>
82
- <div class="row">
83
- <div class="col-md-6">
84
- <select id="reply-count-filter" class="form-select">
85
- <option value="atleast">[[search:at-least]]</option>
86
- <option value="atmost">[[search:at-most]]</option>
87
- </select>
88
- </div>
89
- <div class="col-md-6">
90
- <input type="text" class="form-control" id="reply-count">
91
- </div>
92
- </div>
93
- </div>
94
-
95
- <div class="mb-2 post-search-item">
96
- <label class="form-label">[[search:post-time]]</label>
97
- <div class="row">
98
- <div class="col-md-6">
99
- <select id="post-time-filter" class="form-select">
100
- <option value="newer">[[search:newer-than]]</option>
101
- <option value="older">[[search:older-than]]</option>
102
- </select>
103
- </div>
104
- <div class="col-md-6">
105
- <select id="post-time-range" class="form-select">
106
- <option value="">[[search:any-date]]</option>
107
- <option value="86400">[[search:yesterday]]</option>
108
- <option value="604800">[[search:one-week]]</option>
109
- <option value="1209600">[[search:two-weeks]]</option>
110
- <option value="2592000">[[search:one-month]]</option>
111
- <option value="7776000">[[search:three-months]]</option>
112
- <option value="15552000">[[search:six-months]]</option>
113
- <option value="31104000">[[search:one-year]]</option>
114
- </select>
115
- </div>
116
- </div>
117
- </div>
118
-
119
- <div class="mb-2 post-search-item">
120
- <label class="form-label">[[search:sort-by]]</label>
121
- <div class="row">
122
- <div class="col-md-6">
123
- <select id="post-sort-by" class="form-select">
124
- <option value="relevance">[[search:relevance]]</option>
125
- <option value="timestamp">[[search:post-time]]</option>
126
- <option value="votes">[[search:votes]]</option>
127
- <option value="topic.lastposttime">[[search:last-reply-time]]</option>
128
- <option value="topic.title">[[search:topic-title]]</option>
129
- <option value="topic.postcount">[[search:number-of-replies]]</option>
130
- <option value="topic.viewcount">[[search:number-of-views]]</option>
131
- <option value="topic.votes">[[search:topic-votes]]</option>
132
- <option value="topic.timestamp">[[search:topic-start-date]]</option>
133
- <option value="user.username">[[search:username]]</option>
134
- <option value="category.name">[[search:category]]</option>
135
- </select>
136
- </div>
137
- <div class="col-md-6">
138
- <select id="post-sort-direction" class="form-select">
139
- <option value="desc">[[search:descending]]</option>
140
- <option value="asc">[[search:ascending]]</option>
141
- </select>
142
- </div>
143
- </div>
144
- </div>
145
-
146
- <div class="mb-2 post-search-item">
147
- <label class="form-label">[[search:show-results-as]]</label>
148
- <div class="radio">
149
- <label>
150
- <input type="radio" name="options" id="show-as-posts" checked>
151
- [[global:posts]]
152
- </label>
153
- </div>
154
- <div class="radio">
155
- <label>
156
- <input type="radio" name="options" id="show-as-topics">
157
- [[global:topics]]
158
- </label>
159
- </div>
160
- </div>
161
- </div>
162
- </div>
163
- </div>
164
-
165
- <div class="btn-group">
166
- <button type="submit" class="btn btn-primary">[[global:search]]</button>
167
- <a class="btn btn-outline-secondary" id="save-preferences" href="#">[[search:save-preferences]]</a>
168
- <a class="btn btn-outline-secondary" id="clear-preferences" href="#">[[search:clear-preferences]]</a>
169
- </div>
170
- </div>
171
- </div>
172
- </div>
2
+ <div id="advanced-search" class="d-flex flex-column flex-md-row">
3
+ <!-- sidebar -->
4
+ <div class="flex-0 pe-2 border-end-md text-sm mb-3" style="flex-basis: 240px!important;">
5
+ <form action="{config.relative_path}/search" method="get" class="nav sticky-md-top d-flex flex-row flex-md-column flex-wrap gap-3 pe-md-3" style="top: 1rem; z-index: 1;">
6
+ <h2 class="fw-semibold tracking-tight mb-0">[[global:search]]</h2>
7
+
8
+ <input id="search-input" name="term" type="text" class="form-control fw-semibold py-2 ps-2 pe-3" id="search-input" placeholder="[[search:type-to-search]]">
9
+
10
+ <select id="search-in" name="in" class="form-select text-sm py-2 ps-2 pe-3">
11
+ <option value="titlesposts">[[search:in-titles-posts]]</option>
12
+ <option value="titles">[[search:in-titles]]</option>
13
+ <option value="posts">[[search:in-posts]]</option>
14
+ <option value="categories">[[search:in-categories]]</option>
15
+ {{{if privileges.search:users}}}
16
+ <option value="users">[[search:in-users]]</option>
17
+ {{{end}}}
18
+ {{{if privileges.search:tags}}}
19
+ <option value="tags">[[search:in-tags]]</option>
20
+ {{{end}}}
21
+ </select>
22
+
23
+ <select id="match-words-filter" name="matchWords" class="post-search-item form-select text-sm py-2 ps-2 pe-3">
24
+ <option value="all">[[search:match-all-words]]</option>
25
+ <option value="any">[[search:match-any-word]]</option>
26
+ </select>
27
+
28
+ <select id="show-results-as" name="showAs" class="post-search-item form-select text-sm py-2 ps-2 pe-3">
29
+ <option value="posts" selected>[[search:show-results-as-posts]]</option>
30
+ <option value="topics">[[search:show-results-as-topics]]</option>
31
+ </select>
32
+
33
+ <button type="submit" class="btn btn-primary fw-semibold form-control py-2 px-3">[[global:search]]</button>
173
34
  </form>
174
-
175
- <!-- IMPORT partials/search-results.tpl -->
176
35
  </div>
177
- <div data-widget-area="sidebar" class="col-lg-3 col-sm-12 {{{ if !widgets.sidebar.length }}}hidden{{{ end }}}">
178
- {{{each widgets.sidebar}}}
179
- {{widgets.sidebar.html}}
180
- {{{end}}}
36
+
37
+ <!-- filters and search results -->
38
+ <div class="flex-1 ps-md-2 ps-lg-5" style="min-width:0;">
39
+ <div class="d-flex flex-column gap-3">
40
+ <!-- IMPORT partials/search-filters.tpl -->
41
+ <!-- IMPORT partials/search-results.tpl -->
42
+ </div>
181
43
  </div>
182
44
  </div>
183
45
  </div>
package/templates/top.tpl CHANGED
@@ -7,7 +7,7 @@
7
7
  <!-- IMPORT partials/topic-list-bar.tpl -->
8
8
  <div class="category">
9
9
  {{{ if !topics.length }}}
10
- <div class="alert alert-warning" id="category-no-topics">[[top:no_top_topics]]</div>
10
+ <div class="alert alert-info mt-3" id="category-no-topics">[[top:no_top_topics]]</div>
11
11
  {{{ end }}}
12
12
 
13
13
  <!-- IMPORT partials/topics_list.tpl -->
@@ -6,7 +6,7 @@
6
6
  </div>
7
7
  {{{ end }}}
8
8
 
9
- <h2 component="post/header" class="fs-2 mb-0 {{{ if config.centerHeaderElements }}}text-center{{{ end }}}" itemprop="name">
9
+ <h2 component="post/header" class="fs-2 mb-0 text-break {{{ if config.centerHeaderElements }}}text-center{{{ end }}}" itemprop="name">
10
10
  <span class="topic-title" component="topic/title">{title}</span>
11
11
  </h2>
12
12
 
@@ -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>
@@ -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>
@@ -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
-