nodebb-theme-persona 13.0.26 → 13.0.28

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": "nodebb-theme-persona",
3
- "version": "13.0.26",
3
+ "version": "13.0.28",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.0.0"
6
6
  },
@@ -1,31 +1,31 @@
1
1
  <!-- IMPORT partials/breadcrumbs.tpl -->
2
2
  <div data-widget-area="header">
3
- {{{each widgets.header}}}
3
+ {{{ each widgets.header }}}
4
4
  {{widgets.header.html}}
5
- {{{end}}}
5
+ {{{ end }}}
6
6
  </div>
7
7
  <div class="row">
8
- <div class="<!-- IF widgets.sidebar.length -->col-lg-9 col-sm-12<!-- ELSE -->col-lg-12<!-- ENDIF widgets.sidebar.length -->">
8
+ <div class="{{{ if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}">
9
9
  {{{ if pagination.pages.length }}}
10
10
  <div><!-- IMPORT partials/category-selector.tpl --></div>
11
11
  {{{ else }}}
12
12
  <h1 class="categories-title">[[pages:categories]]</h1>
13
13
  {{{ end }}}
14
14
  <ul class="categories" itemscope itemtype="http://www.schema.org/ItemList">
15
- {{{each categories}}}
15
+ {{{ each categories }}}
16
16
  <!-- IMPORT partials/categories/item.tpl -->
17
- {{{end}}}
17
+ {{{ end }}}
18
18
  </ul>
19
19
  <!-- IMPORT partials/paginator.tpl -->
20
20
  </div>
21
- <div data-widget-area="sidebar" class="col-lg-3 col-sm-12 <!-- IF !widgets.sidebar.length -->hidden<!-- ENDIF !widgets.sidebar.length -->">
22
- {{{each widgets.sidebar}}}
21
+ <div data-widget-area="sidebar" class="col-lg-3 col-sm-12 {{{ if !widgets.sidebar.length }}}hidden{{{ end }}}">
22
+ {{{ each widgets.sidebar }}}
23
23
  {{widgets.sidebar.html}}
24
- {{{end}}}
24
+ {{{ end }}}
25
25
  </div>
26
26
  </div>
27
27
  <div data-widget-area="footer">
28
- {{{each widgets.footer}}}
28
+ {{{ each widgets.footer }}}
29
29
  {{widgets.footer.html}}
30
- {{{end}}}
30
+ {{{ end }}}
31
31
  </div>
@@ -1,22 +1,22 @@
1
1
  <!-- IMPORT partials/breadcrumbs.tpl -->
2
2
  <div data-widget-area="header">
3
- {{{each widgets.header}}}
3
+ {{{ each widgets.header }}}
4
4
  {{widgets.header.html}}
5
- {{{end}}}
5
+ {{{ end }}}
6
6
  </div>
7
7
  <div class="row">
8
- <div class="category <!-- IF widgets.sidebar.length -->col-lg-9 col-sm-12<!-- ELSE -->col-lg-12<!-- ENDIF widgets.sidebar.length -->">
8
+ <div class="category {{{if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}">
9
9
  <!-- IMPORT partials/category/subcategory.tpl -->
10
10
 
11
11
  <div class="topic-list-header sticky-top btn-toolbar justify-content-between py-2 mb-2 flex-nowrap">
12
12
  <div class="d-flex gap-1 align-items-stretch">
13
- <!-- IF privileges.topics:create -->
13
+ {{{ if privileges.topics:create }}}
14
14
  <a href="{config.relative_path}/compose?cid={cid}" component="category/post" id="new_topic" class="btn btn-primary text-nowrap" data-ajaxify="false" role="button">[[category:new_topic_button]]</a>
15
- <!-- ELSE -->
16
- <!-- IF !loggedIn -->
15
+ {{{ else }}}
16
+ {{{ if !loggedIn }}}
17
17
  <a component="category/post/guest" href="{config.relative_path}/login" class="btn btn-primary">[[category:guest-login-post]]</a>
18
- <!-- ENDIF !loggedIn -->
19
- <!-- ENDIF privileges.topics:create -->
18
+ {{{ end }}}
19
+ {{{ end }}}
20
20
 
21
21
  <a href="{config.relative_path}/{selectedFilter.url}{querystring}" class="d-inline-block">
22
22
  <div class="alert alert-warning h-100 m-0 px-2 py-1 d-flex align-items-center hide" id="new-topics-alert"></div>
@@ -29,25 +29,25 @@
29
29
  </div>
30
30
  </div>
31
31
 
32
- <!-- IF !topics.length -->
33
- <!-- IF privileges.topics:create -->
32
+ {{{ if !topics.length }}}
33
+ {{{ if privileges.topics:create }}}
34
34
  <hr class="visible-xs" />
35
35
  <div class="alert alert-warning" id="category-no-topics">
36
36
  [[category:no_topics]]
37
37
  </div>
38
- <!-- ENDIF privileges.topics:create -->
39
- <!-- ENDIF !topics.length -->
38
+ {{{ end }}}
39
+ {{{ end }}}
40
40
 
41
41
  <!-- IMPORT partials/topics_list.tpl -->
42
42
 
43
- <!-- IF config.usePagination -->
44
- <!-- IMPORT partials/paginator.tpl -->
45
- <!-- ENDIF config.usePagination -->
43
+ {{{ if config.usePagination }}}
44
+ <!-- IMPORT partials/paginator.tpl -->
45
+ {{{ end }}}
46
46
  </div>
47
- <div data-widget-area="sidebar" class="col-lg-3 col-sm-12 <!-- IF !widgets.sidebar.length -->hidden<!-- ENDIF !widgets.sidebar.length -->">
48
- {{{each widgets.sidebar}}}
47
+ <div data-widget-area="sidebar" class="col-lg-3 col-sm-12 {{{ if !widgets.sidebar.length }}}hidden{{{ end }}}">
48
+ {{{ each widgets.sidebar }}}
49
49
  {{widgets.sidebar.html}}
50
- {{{end}}}
50
+ {{{ end }}}
51
51
  </div>
52
52
  </div>
53
53
  <div data-widget-area="footer">
@@ -2,7 +2,7 @@
2
2
  <div class="modal-dialog">
3
3
  <div class="modal-content">
4
4
  <div class="modal-header d-flex">
5
- <div class="fs-5 flex-grow-1" component="chat/room/name"><!-- IF roomName -->{roomName}<!-- ELSE -->{usernames}<!-- ENDIF roomName --></div>
5
+ <div class="fs-5 flex-grow-1" component="chat/room/name">{{{ if roomName }}}{roomName}{{{ else }}}{usernames}{{{ end }}}</div>
6
6
  <button type="button" class="btn btn-link d-none d-md-block p-2 text-muted align-text-top" data-action="maximize">
7
7
  <span aria-hidden="true"><i class="fa fa-fw fa-expand"></i></span>
8
8
  <span class="sr-only">[[modules:chat.maximize]]</span>
@@ -1,5 +1,5 @@
1
1
  <div class="chats-full">
2
- <div component="chat/nav-wrapper" data-loaded="<!-- IF roomId -->1<!-- ELSE -->0<!-- END -->">
2
+ <div component="chat/nav-wrapper" data-loaded="{{{ if roomId }}}1{{{ else }}}0{{{ end }}}">
3
3
  <div class="chat-search dropdown">
4
4
  <input class="form-control" type="text" component="chat/search" placeholder="[[users:search-user-for-chat]]" data-bs-toggle="dropdown" />
5
5
  <ul component="chat/search/list" class="dropdown-menu">
@@ -1,13 +1,13 @@
1
1
  </div><!-- /.container#content -->
2
2
  </main>
3
- <!-- IF !isSpider -->
3
+ {{{ if !isSpider }}}
4
4
  <div component="toaster/tray" class="alert-window">
5
5
  <div id="reconnect-alert" class="alert alert-dismissible alert-warning clearfix hide" component="toaster/toast">
6
6
  <button type="button" class="btn-close float-end" data-bs-dismiss="alert" aria-hidden="true"></button>
7
7
  <p>[[global:reconnecting-message, {config.siteTitle}]]</p>
8
8
  </div>
9
9
  </div>
10
- <!-- ENDIF !isSpider -->
10
+ {{{ end }}}
11
11
 
12
12
  <!-- IMPORT partials/footer/js.tpl -->
13
13
  </body>
@@ -26,7 +26,7 @@
26
26
  <div class="row mb-2">
27
27
  <label for="password" class="col-lg-2 col-form-label">[[user:password]]</label>
28
28
  <div class="col-lg-10">
29
- <input class="form-control" type="password" placeholder="[[user:password]]" name="password" id="password" <!-- IF username -->autocomplete="off"<!-- ENDIF username -->/>
29
+ <input class="form-control" type="password" placeholder="[[user:password]]" name="password" id="password" {{{ if username }}}autocomplete="off"{{{ end }}}/>
30
30
  <p id="caps-lock-warning" class="text-danger hidden">
31
31
  <i class="fa fa-exclamation-triangle"></i> [[login:caps-lock-enabled]]
32
32
  </p>
@@ -56,12 +56,12 @@
56
56
  </div>
57
57
  <div class="row">
58
58
  <div class="col-lg-10 offset-lg-2">
59
- <!-- IF allowRegistration -->
59
+ {{{ if allowRegistration }}}
60
60
  <span>[[login:dont_have_account]] <a href="{config.relative_path}/register">[[register:register]]</a></span>
61
- <!-- ENDIF allowRegistration -->
62
- <!-- IF allowPasswordReset -->
61
+ {{{ end }}}
62
+ {{{ if allowPasswordReset }}}
63
63
  <a id="reset-link" href="{config.relative_path}/reset">[[login:forgot_password]]</a>
64
- <!-- ENDIF allowPasswordReset -->
64
+ {{{ end }}}
65
65
  </div>
66
66
  </div>
67
67
  </form>
@@ -1,9 +1,9 @@
1
- <div class="form-group">
2
- <label for="agree-terms">[[register:terms_of_use]]</label>
3
- <div class="tos">{termsOfUse}</div>
4
- <div class="checkbox">
5
- <label>
6
- <input type="checkbox" name="agree-terms" id="agree-terms"> [[register:agree_to_terms_of_use]]
7
- </label>
8
- </div>
1
+ <div class="form-group">
2
+ <label for="agree-terms">[[register:terms_of_use]]</label>
3
+ <div class="tos">{termsOfUse}</div>
4
+ <div class="checkbox">
5
+ <label>
6
+ <input type="checkbox" name="agree-terms" id="agree-terms"> [[register:agree_to_terms_of_use]]
7
+ </label>
8
+ </div>
9
9
  </div>
@@ -1,11 +1,11 @@
1
- <!-- IF ../isSection -->
2
- {../name}
3
- <!-- ELSE -->
4
- <!-- IF ../link -->
5
- <a href="{../link}" itemprop="url">
6
- <!-- ELSE -->
7
- <a href="{config.relative_path}/category/{../slug}" itemprop="url">
8
- <!-- ENDIF ../link -->
9
- {../name}
10
- </a>
1
+ <!-- IF ../isSection -->
2
+ {../name}
3
+ <!-- ELSE -->
4
+ <!-- IF ../link -->
5
+ <a href="{../link}" itemprop="url">
6
+ <!-- ELSE -->
7
+ <a href="{config.relative_path}/category/{../slug}" itemprop="url">
8
+ <!-- ENDIF ../link -->
9
+ {../name}
10
+ </a>
11
11
  <!-- ENDIF ../isSection -->
@@ -69,7 +69,13 @@
69
69
  <!-- ENDIF function.displayMenuItem -->
70
70
  {{{end}}}
71
71
  </ul>
72
-
72
+ <ul class="navbar-nav mb-2 mb-lg-0 hidden-xs">
73
+ <li class="nav-item">
74
+ <a href="#" id="reconnect" class="nav-link hide" title="[[global:reconnecting-message, {config.siteTitle}]]">
75
+ <i class="fa fa-check"></i>
76
+ </a>
77
+ </li>
78
+ </ul>
73
79
  {{{ if config.searchEnabled }}}
74
80
  <div class="navbar-nav mb-2 mb-lg-0 position-relative">
75
81
  <form component="search/form" id="search-form" class="d-flex justify-content-end align-items-center" role="search" method="GET">
@@ -22,14 +22,14 @@
22
22
  </div>
23
23
 
24
24
  <div class="category">
25
- <!-- IF !topics.length -->
25
+ {{{ if !topics.length }}}
26
26
  <div class="alert alert-warning" id="category-no-topics">[[recent:no_popular_topics]]</div>
27
- <!-- ENDIF !topics.length -->
27
+ {{{ end }}}
28
28
 
29
29
  <!-- IMPORT partials/topics_list.tpl -->
30
30
 
31
- <!-- IF config.usePagination -->
32
- <!-- IMPORT partials/paginator.tpl -->
33
- <!-- ENDIF config.usePagination -->
31
+ {{{ if config.usePagination }}}
32
+ <!-- IMPORT partials/paginator.tpl -->
33
+ {{{ end }}}
34
34
  </div>
35
35
  </div>
@@ -8,7 +8,7 @@
8
8
  <div class="row {{{ if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}">
9
9
  <div class="{register_window:spansize}">
10
10
  <div class="register-block">
11
- <div class="alert alert-danger<!-- IF !error --> hidden<!-- ENDIF !error -->" id="register-error-notify" >
11
+ <div class="alert alert-danger{{{ if !error }}} hidden{{{ end }}}" id="register-error-notify" >
12
12
  <strong>[[error:registration-error]]</strong>
13
13
  <p>{error}</p>
14
14
  </div>
package/templates/tag.tpl CHANGED
@@ -7,11 +7,11 @@
7
7
  <div class="tag">
8
8
  <div class="topic-list-header sticky-top btn-toolbar justify-content-between py-2 mb-2 gap-1">
9
9
  <div class="d-flex gap-1 align-items-stretch">
10
- <!-- IF loggedIn -->
10
+ {{{ if loggedIn }}}
11
11
  <!-- IMPORT partials/buttons/newTopic.tpl -->
12
- <!-- ELSE -->
12
+ {{{ else }}}
13
13
  <a component="category/post/guest" href="{config.relative_path}/login" class="btn btn-primary">[[category:guest-login-post]]</a>
14
- <!-- ENDIF loggedIn -->
14
+ {{{ end }}}
15
15
  </div>
16
16
  <div class="d-flex gap-1 align-items-stretch">
17
17
  <!-- IMPORT partials/category-filter-right.tpl -->
@@ -20,14 +20,14 @@
20
20
  </div>
21
21
 
22
22
  <div class="category">
23
- <!-- IF !topics.length -->
23
+ {{{ if !topics.length }}}
24
24
  <div class="alert alert-warning">[[tags:no_tag_topics]]</div>
25
- <!-- ENDIF !topics.length -->
25
+ {{{ end }}}
26
26
 
27
27
  <!-- IMPORT partials/topics_list.tpl -->
28
28
  <button id="load-more-btn" class="btn btn-primary hide">[[unread:load_more]]</button>
29
- <!-- IF config.usePagination -->
30
- <!-- IMPORT partials/paginator.tpl -->
31
- <!-- ENDIF config.usePagination -->
29
+ {{{ if config.usePagination }}}
30
+ <!-- IMPORT partials/paginator.tpl -->
31
+ {{{ end }}}
32
32
  </div>
33
33
  </div>
@@ -5,8 +5,8 @@
5
5
  {{{end}}}
6
6
  </div>
7
7
  <div class="tags">
8
- <!-- IF displayTagSearch -->
9
- <!-- IF tags.length -->
8
+ {{{ if displayTagSearch }}}
9
+ {{{ if tags.length }}}
10
10
  <div class="row justify-content-end mb-3">
11
11
  <div class="col-lg-3">
12
12
  <div class="input-group">
@@ -17,12 +17,12 @@
17
17
  </div>
18
18
  </div>
19
19
  </div>
20
- <!-- ENDIF tags.length -->
21
- <!-- ENDIF displayTagSearch -->
20
+ {{{ end }}}
21
+ {{{ end }}}
22
22
 
23
- <!-- IF !tags.length -->
23
+ {{{ if !tags.length }}}
24
24
  <div class="alert alert-warning">[[tags:no_tags]]</div>
25
- <!-- ENDIF !tags.length -->
25
+ {{{ end }}}
26
26
 
27
27
  <div class="category row">
28
28
  <div class="col-md-12 clearfix tag-list" data-nextstart="{nextStart}">
package/templates/top.tpl CHANGED
@@ -22,14 +22,14 @@
22
22
  </div>
23
23
 
24
24
  <div class="category">
25
- <!-- IF !topics.length -->
25
+ {{{ if !topics.length }}}
26
26
  <div class="alert alert-warning" id="category-no-topics">[[top:no_top_topics]]</div>
27
- <!-- ENDIF !topics.length -->
27
+ {{{ end }}}
28
28
 
29
29
  <!-- IMPORT partials/topics_list.tpl -->
30
30
 
31
- <!-- IF config.usePagination -->
32
- <!-- IMPORT partials/paginator.tpl -->
33
- <!-- ENDIF config.usePagination -->
31
+ {{{ if config.usePagination }}}
32
+ <!-- IMPORT partials/paginator.tpl -->
33
+ {{{ end }}}
34
34
  </div>
35
35
  </div>
@@ -4,15 +4,15 @@
4
4
  {{{end}}}
5
5
  </div>
6
6
  <div class="row">
7
- <div class="topic <!-- IF widgets.sidebar.length -->col-lg-9 col-sm-12<!-- ELSE -->col-lg-12<!-- ENDIF widgets.sidebar.length -->">
7
+ <div class="topic {{{ if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}">
8
8
  <div class="topic-header sticky-top">
9
9
  <h1 component="post/header" class="" itemprop="name">
10
10
  <span class="topic-title">
11
11
  <span component="topic/labels">
12
- <i component="topic/scheduled" class="fa fa-clock-o <!-- IF !scheduled -->hidden<!-- ENDIF !scheduled -->" title="[[topic:scheduled]]"></i>
13
- <i component="topic/pinned" class="fa fa-thumb-tack <!-- IF (scheduled || !pinned) -->hidden<!-- ENDIF (scheduled || !pinned) -->" title="{{{ if !pinExpiry }}}[[topic:pinned]]{{{ else }}}[[topic:pinned-with-expiry, {pinExpiryISO}]]{{{ end }}}"></i>
14
- <i component="topic/locked" class="fa fa-lock <!-- IF !locked -->hidden<!-- ENDIF !locked -->" title="[[topic:locked]]"></i>
15
- <i class="fa fa-arrow-circle-right <!-- IF !oldCid -->hidden<!-- ENDIF !oldCid -->" title="{{{ if privileges.isAdminOrMod }}}[[topic:moved-from, {oldCategory.name}]]{{{ else }}}[[topic:moved]]{{{ end }}}"></i>
12
+ <i component="topic/scheduled" class="fa fa-clock-o {{{ if !scheduled }}}hidden{{{ end }}}" title="[[topic:scheduled]]"></i>
13
+ <i component="topic/pinned" class="fa fa-thumb-tack {{{ if (scheduled || !pinned) }}}hidden{{{ end }}}" title="{{{ if !pinExpiry }}}[[topic:pinned]]{{{ else }}}[[topic:pinned-with-expiry, {pinExpiryISO}]]{{{ end }}}"></i>
14
+ <i component="topic/locked" class="fa fa-lock {{{ if !locked }}}hidden{{{ end }}}" title="[[topic:locked]]"></i>
15
+ <i class="fa fa-arrow-circle-right {{{ if !oldCid }}}hidden{{{ end }}}" title="{{{ if privileges.isAdminOrMod }}}[[topic:moved-from, {oldCategory.name}]]{{{ else }}}[[topic:moved]]{{{ end }}}"></i>
16
16
  {{{each icons}}}<span class="align-middle">{@value}</span>{{{end}}}
17
17
  </span>
18
18
  <span component="topic/title">{title}</span>
@@ -43,17 +43,9 @@
43
43
  <!-- IMPORT partials/post_bar.tpl -->
44
44
  </div>
45
45
  </div>
46
- <!-- IF merger -->
47
- <div component="topic/merged/message" class="alert alert-warning clearfix">
48
- <span class="float-start">[[topic:merged_message, {config.relative_path}/topic/{mergeIntoTid}, {merger.mergedIntoTitle}]]</span>
49
- <span class="float-end">
50
- <a href="{config.relative_path}/user/{merger.userslug}">
51
- <strong>{merger.username}</strong>
52
- </a>
53
- <small class="timeago" title="{mergedTimestampISO}"></small>
54
- </span>
55
- </div>
56
- <!-- ENDIF merger -->
46
+ {{{ if merger }}}
47
+ <!-- IMPORT partials/topic/merged-message.tpl -->
48
+ {{{ end }}}
57
49
 
58
50
  {{{ if !scheduled }}}
59
51
  <!-- IMPORT partials/topic/deleted-message.tpl -->
@@ -84,17 +76,17 @@
84
76
  </div>
85
77
  {{{ end }}}
86
78
 
87
- <!-- IF config.enableQuickReply -->
79
+ {{{ if config.enableQuickReply }}}
88
80
  <!-- IMPORT partials/topic/quickreply.tpl -->
89
- <!-- ENDIF config.enableQuickReply -->
81
+ {{{ end }}}
90
82
 
91
- <!-- IF config.usePagination -->
83
+ {{{ if config.usePagination }}}
92
84
  <!-- IMPORT partials/paginator.tpl -->
93
- <!-- ENDIF config.usePagination -->
85
+ {{{ end }}}
94
86
 
95
87
  <!-- IMPORT partials/topic/navigator.tpl -->
96
88
  </div>
97
- <div data-widget-area="sidebar" class="col-lg-3 col-sm-12 <!-- IF !widgets.sidebar.length -->hidden<!-- ENDIF !widgets.sidebar.length -->">
89
+ <div data-widget-area="sidebar" class="col-lg-3 col-sm-12 {{{ if !widgets.sidebar.length }}}hidden{{{ end }}}">
98
90
  {{{each widgets.sidebar}}}
99
91
  {{widgets.sidebar.html}}
100
92
  {{{end}}}
@@ -107,8 +99,8 @@
107
99
  {{{end}}}
108
100
  </div>
109
101
 
110
- <!-- IF !config.usePagination -->
102
+ {{{ if !config.usePagination }}}
111
103
  <noscript>
112
- <!-- IMPORT partials/paginator.tpl -->
104
+ <!-- IMPORT partials/paginator.tpl -->
113
105
  </noscript>
114
- <!-- ENDIF !config.usePagination -->
106
+ {{{ end }}}
@@ -26,12 +26,12 @@
26
26
  </div>
27
27
 
28
28
  <div class="category">
29
- <div id="category-no-topics" class="alert alert-warning <!-- IF topics.length -->hidden<!-- ENDIF topics.length -->">[[unread:no_unread_topics]]</div>
29
+ <div id="category-no-topics" class="alert alert-warning {{{ if topics.length }}}hidden{{{ end }}}">[[unread:no_unread_topics]]</div>
30
30
 
31
31
  <!-- IMPORT partials/topics_list.tpl -->
32
32
  <button id="load-more-btn" class="btn btn-primary hide">[[unread:load_more]]</button>
33
- <!-- IF config.usePagination -->
34
- <!-- IMPORT partials/paginator.tpl -->
35
- <!-- ENDIF config.usePagination -->
33
+ {{{ if config.usePagination }}}
34
+ <!-- IMPORT partials/paginator.tpl -->
35
+ {{{ end }}}
36
36
  </div>
37
37
  </div>
package/theme.json CHANGED
@@ -1,7 +1,7 @@
1
- {
2
- "id": "nodebb-theme-persona",
3
- "name": "Persona",
4
- "description": "The default theme for NodeBB. Uses a standard approach to forum design.",
5
- "url": "https://github.com/psychobunny/nodebb-theme-persona",
6
- "screenshot": "screenshot.png"
1
+ {
2
+ "id": "nodebb-theme-persona",
3
+ "name": "Persona",
4
+ "description": "The default theme for NodeBB. Uses a standard approach to forum design.",
5
+ "url": "https://github.com/psychobunny/nodebb-theme-persona",
6
+ "screenshot": "screenshot.png"
7
7
  }
package/.jshintrc DELETED
@@ -1,86 +0,0 @@
1
- {
2
- // JSHint Default Configuration File (as on JSHint website)
3
- // See http://jshint.com/docs/ for more details
4
-
5
- "maxerr" : 50, // {int} Maximum error before stopping
6
-
7
- // Enforcing
8
- "bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
9
- "camelcase" : false, // true: Identifiers must be in camelCase
10
- "curly" : true, // true: Require {} for every new block or scope
11
- "eqeqeq" : true, // true: Require triple equals (===) for comparison
12
- "forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
13
- "immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
14
- "indent" : 4, // {int} Number of spaces to use for indentation
15
- "latedef" : false, // true: Require variables/functions to be defined before being used
16
- "newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()`
17
- "noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
18
- "noempty" : true, // true: Prohibit use of empty blocks
19
- "nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment)
20
- "plusplus" : false, // true: Prohibit use of `++` & `--`
21
- "quotmark" : false, // Quotation mark consistency:
22
- // false : do nothing (default)
23
- // true : ensure whatever is used is consistent
24
- // "single" : require single quotes
25
- // "double" : require double quotes
26
- "undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
27
- "unused" : true, // true: Require all defined variables be used
28
- "strict" : true, // true: Requires all functions run in ES5 Strict Mode
29
- "trailing" : false, // true: Prohibit trailing whitespaces
30
- "maxparams" : false, // {int} Max number of formal params allowed per function
31
- "maxdepth" : false, // {int} Max depth of nested blocks (within functions)
32
- "maxstatements" : false, // {int} Max number statements per function
33
- "maxcomplexity" : false, // {int} Max cyclomatic complexity per function
34
- "maxlen" : false, // {int} Max number of characters per line
35
-
36
- // Relaxing
37
- "asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
38
- "boss" : false, // true: Tolerate assignments where comparisons would be expected
39
- "debug" : false, // true: Allow debugger statements e.g. browser breakpoints.
40
- "eqnull" : false, // true: Tolerate use of `== null`
41
- "es5" : false, // true: Allow ES5 syntax (ex: getters and setters)
42
- "esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`)
43
- "moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
44
- // (ex: `for each`, multiple try/catch, function expression…)
45
- "evil" : false, // true: Tolerate use of `eval` and `new Function()`
46
- "expr" : false, // true: Tolerate `ExpressionStatement` as Programs
47
- "funcscope" : false, // true: Tolerate defining variables inside control statements"
48
- "globalstrict" : false, // true: Allow global "use strict" (also enables 'strict')
49
- "iterator" : false, // true: Tolerate using the `__iterator__` property
50
- "lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
51
- "laxbreak" : false, // true: Tolerate possibly unsafe line breakings
52
- "laxcomma" : false, // true: Tolerate comma-first style coding
53
- "loopfunc" : false, // true: Tolerate functions being defined in loops
54
- "multistr" : false, // true: Tolerate multi-line strings
55
- "proto" : false, // true: Tolerate using the `__proto__` property
56
- "scripturl" : false, // true: Tolerate script-targeted URLs
57
- "smarttabs" : false, // true: Tolerate mixed tabs/spaces when used for alignment
58
- "shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
59
- "sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
60
- "supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;`
61
- "validthis" : false, // true: Tolerate using this in a non-constructor function
62
-
63
- // Environments
64
- "browser" : true, // Web Browser (window, document, etc)
65
- "couch" : false, // CouchDB
66
- "devel" : true, // Development/debugging (alert, confirm, etc)
67
- "dojo" : false, // Dojo Toolkit
68
- "jquery" : true, // jQuery
69
- "mootools" : false, // MooTools
70
- "node" : true, // Node.js
71
- "nonstandard" : false, // Widely adopted globals (escape, unescape, etc)
72
- "prototypejs" : false, // Prototype and Scriptaculous
73
- "rhino" : false, // Rhino
74
- "worker" : false, // Web Workers
75
- "wsh" : false, // Windows Scripting Host
76
- "yui" : false, // Yahoo User Interface
77
-
78
- // Legacy
79
- "nomen" : false, // true: Prohibit dangling `_` in variables
80
- "onevar" : false, // true: Allow only one `var` statement per function
81
- "passfail" : false, // true: Stop on first error
82
- "white" : false, // true: Check against strict whitespace and indentation rules
83
-
84
- // Custom Globals
85
- "globals" : {} // additional predefined global variables
86
- }
@@ -1,7 +0,0 @@
1
- <div class="alert alert-success">
2
- <strong>[[notifications:email-confirmed]]</strong>
3
- <p>[[notifications:email-confirmed-message]]</p>
4
- <p>
5
- <a href="{config.relative_path}/">[[notifications:back_to_home, {config.siteTitle}]]</a>
6
- </p>
7
- </div>
@@ -1,58 +0,0 @@
1
- <!-- IMPORT partials/breadcrumbs.tpl -->
2
-
3
- <div class="row ip-blacklist">
4
- <div class="col-lg-12">
5
- <p class="lead">
6
- [[ip-blacklist:lead]]
7
- </p>
8
- <p>
9
- [[ip-blacklist:description]]
10
- </p>
11
-
12
- <div class="row">
13
- <div class="col-sm-6 d-flex flex-column">
14
- <div class="card mb-3 flex-grow-1">
15
- <div class="card-header">[[ip-blacklist:active-rules]]</div>
16
- <div class="card-body d-flex flex-column">
17
- <textarea id="blacklist-rules" class="flex-grow-1 mb-3 w-100 d-block border px-2 py-1">{rules}</textarea>
18
- <div>
19
- <button type="button" class="btn btn-warning" data-action="test">
20
- <i class="fa fa-bomb"></i> [[ip-blacklist:validate]]
21
- </button>
22
- <button type="button" class="btn btn-primary" data-action="apply">
23
- <i class="fa fa-save"></i> [[ip-blacklist:apply]]
24
- </button>
25
- </div>
26
- </div>
27
- </div>
28
- <div class="card flex-shrink-1">
29
- <div class="card-header">[[ip-blacklist:hints]]</div>
30
- <div class="card-body">
31
- <p>
32
- [[ip-blacklist:hint-1]]
33
- </p>
34
- <p>
35
- [[ip-blacklist:hint-2]]
36
- </p>
37
- </div>
38
- </div>
39
- </div>
40
- <div class="col-sm-6">
41
- <div class="card mb-3">
42
- <div class="card-body">
43
- <div><canvas id="blacklist:hourly" height="250"></canvas></div>
44
- </div>
45
- <div class="card-footer"><small>[[ip-blacklist:analytics.blacklist-hourly]]</small></div>
46
- </div>
47
-
48
- <div class="card">
49
- <div class="card-body">
50
- <div><canvas id="blacklist:daily" height="250"></canvas></div>
51
- </div>
52
- <div class="card-footer"><small>[[ip-blacklist:analytics.blacklist-daily]]</small></div>
53
- </div>
54
- </div>
55
- </div>
56
- </div>
57
-
58
- </div>
@@ -1,11 +0,0 @@
1
- <div component="topic/deleted/message" class="alert alert-warning<!-- IF !deleted --> hidden<!-- ENDIF !deleted --> clearfix">
2
- <span class="float-start">[[topic:deleted_message]]</span>
3
- <span class="float-end">
4
- <!-- IF deleter -->
5
- <a href="{config.relative_path}/user/{deleter.userslug}">
6
- <strong>{deleter.username}</strong>
7
- </a>
8
- <small class="timeago" title="{deletedTimestampISO}"></small>
9
- <!-- ENDIF deleter -->
10
- </span>
11
- </div>
@@ -1,108 +0,0 @@
1
- <!-- IMPORT partials/breadcrumbs.tpl -->
2
- <div class="btn-toolbar justify-content-end">
3
- <div class="me-2">
4
- <!-- IMPORT partials/category-filter-right.tpl -->
5
- </div>
6
- {{{ if !singlePost }}}
7
- <div class="btn-group bottom-sheet" component="post-queue/bulk-actions">
8
- <button type="button" class="btn btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown" autocomplete="off" aria-haspopup="true" aria-expanded="false">
9
- <i class="fa fa-clone"></i> [[post-queue:bulk-actions]] <span class="caret"></span>
10
- </button>
11
- <ul class="dropdown-menu dropdown-menu-end">
12
- <li><a class="dropdown-item" href="#" data-action="accept-all">[[post-queue:accept-all]]</a></li>
13
- <li><a class="dropdown-item" href="#" data-action="accept-selected">[[post-queue:accept-selected]]</a></li>
14
- <li class="dropdown-divider"></li>
15
- <li><a class="dropdown-item" href="#" data-action="reject-all">[[post-queue:reject-all]]</a></li>
16
- <li><a class="dropdown-item" href="#" data-action="reject-selected">[[post-queue:reject-selected]]</a></li>
17
- </ul>
18
- </div>
19
- {{{ end }}}
20
- </div>
21
- <hr/>
22
- <div class="row">
23
- <div class="col-12">
24
- <div class="post-queue preventSlideout posts-list">
25
- {{{ if !posts.length }}}
26
- {{{ if isAdmin }}}
27
- <div class="card card-body">
28
- <p>
29
- [[post-queue:description, {config.relative_path}/admin/settings/post#post-queue]]
30
- </p>
31
- </div>
32
- {{{ end }}}
33
- {{{ end }}}
34
-
35
- {{{ each posts }}}
36
- <div class="card mb-3" data-id="{posts.id}">
37
- <div class="card-header">
38
- {{{ if !singlePost }}}
39
- <input type="checkbox" class="form-check-input" autocomplete="off" />
40
- {{{ end }}}
41
- <strong>{{{ if posts.data.tid }}}[[post-queue:reply]]{{{ else }}}[[post-queue:topic]]{{{ end }}}</strong>
42
- <span class="timeago float-end" title={posts.data.timestampISO}></span>
43
- </div>
44
- <div class="card-body">
45
- <div class="row">
46
- <div class="col-lg-2 col-12">
47
- <strong>[[post-queue:user]]</strong>
48
- <div>
49
- {{{ if posts.user.userslug}}}
50
- <a href="{config.relative_path}/uid/{posts.user.uid}">{buildAvatar(posts.user, "24px", true, "not-responsive")} {posts.user.username}</a>
51
- {{{ else }}}
52
- {posts.user.username}
53
- {{{ end }}}
54
- </div>
55
- </div>
56
- <div class="col-lg-3 col-12">
57
- <strong>[[post-queue:category]]{{{ if posts.data.cid}}} <i class="fa fa-fw fa-edit" data-bs-toggle="tooltip" title="[[post-queue:category-editable]]"></i>{{{ end }}}</strong>
58
- <div class="topic-category" {{{if posts.data.cid}}}data-editable="editable"{{{end}}}">
59
- <a href="{config.relative_path}/category/{posts.category.slug}">
60
- <div class="category-item d-inline-block">
61
- {buildCategoryIcon(./category, "24px", "rounded-circle")}
62
- {posts.category.name}
63
- </div>
64
- </a>
65
- </div>
66
- </div>
67
- <div class="col-lg-7 col-12">
68
- <strong>{{{ if posts.data.tid }}}[[post-queue:topic]]{{{ else }}}[[post-queue:title]] <i class="fa fa-fw fa-edit" data-bs-toggle="tooltip" title="[[post-queue:title-editable]]"></i>{{{ end }}}</strong>
69
- <div class="topic-title text-break">
70
- {{{ if posts.data.tid }}}
71
- <a href="{config.relative_path}/topic/{posts.data.tid}">{posts.topic.title}</a>
72
- {{{ end }}}
73
- <span class="title-text">{posts.data.title}</span>
74
- </div>
75
- {{{if !posts.data.tid}}}
76
- <div class="topic-title-editable hidden">
77
- <input class="form-control" type="text" value="{posts.data.title}"/>
78
- </div>
79
- {{{end}}}
80
- </div>
81
- </div>
82
- <hr/>
83
- <div>
84
- <strong>[[post-queue:content]] <i class="fa fa-fw fa-edit" data-bs-toggle="tooltip" title="[[post-queue:content-editable]]"></i></strong>
85
- <div class="post-content text-break">{posts.data.content}</div>
86
- <div class="post-content-editable hidden">
87
- <textarea class="form-control w-100" style="height:300px;">{posts.data.rawContent}</textarea>
88
- </div>
89
- </div>
90
- </div>
91
- <div class="card-footer text-end">
92
- <div>
93
- {{{ if canAccept }}}
94
- <button class="btn btn-danger btn-sm" data-action="reject"><i class="fa fa-fw fa-times"></i> [[post-queue:reject]]</button>
95
- <button class="btn btn-info btn-sm" data-action="notify"><i class="fa fa-fw fa-bell-o"></i> [[post-queue:notify]]</button>
96
- <button class="btn btn-success btn-sm" data-action="accept"><i class="fa fa-fw fa-check"></i> [[post-queue:accept]] </button>
97
- {{{ else }}}
98
- <button class="btn btn-danger btn-sm" data-action="reject"><i class="fa fa-fw fa-times"></i> [[post-queue:remove]]</button>
99
- {{{ end }}}
100
- </div>
101
- </div>
102
- </div>
103
- {{{ end }}}
104
- </div>
105
-
106
- <!-- IMPORT partials/paginator.tpl -->
107
- </div>
108
- </div>
@@ -1,43 +0,0 @@
1
- <!-- IMPORT partials/breadcrumbs.tpl -->
2
-
3
- <div class="row">
4
- <div class="col-12 col-sm-8 offset-sm-2">
5
- <p class="lead text-center">
6
- {{{ if register }}}[[register:interstitial.intro-new]]{{{ else }}}[[register:interstitial.intro]]{{{ end }}}
7
- </p>
8
-
9
- <!-- IF errors.length -->
10
- <div class="alert alert-warning">
11
- <p>
12
- [[register:interstitial.errors-found]]
13
- </p>
14
- <ul>
15
- {{{each errors}}}
16
- <li>{@value}</li>
17
- {{{end}}}
18
- </ul>
19
- </div>
20
- <!-- ENDIF errors.length -->
21
- </div>
22
- </div>
23
-
24
- <form role="form" method="post" action="{config.relative_path}/register/complete/?_csrf={config.csrf_token}" enctype="multipart/form-data">
25
- {{{each sections}}}
26
- <div class="row">
27
- <div class="col-12 col-sm-8 offset-sm-2">
28
- <div class="card">
29
- <div class="card-body">
30
- {@value}
31
- </div>
32
- </div>
33
- </div>
34
- </div>
35
- {{{end}}}
36
-
37
- <div class="row mt-3">
38
- <div class="col-12 col-sm-8 offset-sm-2 d-grid">
39
- <button class="btn btn-primary">[[topic:composer.submit]]</button>
40
- <button class="btn btn-link" formaction="{config.relative_path}/register/abort?_csrf={config.csrf_token}">{{{ if register }}}[[register:cancel_registration]]{{{ else }}}[[modules:bootbox.cancel]]{{{ end }}}</button>
41
- </div>
42
- </div>
43
- </form>
@@ -1,25 +0,0 @@
1
- <!-- IMPORT partials/breadcrumbs.tpl -->
2
-
3
-
4
- <div class="alert alert-info">
5
- [[reset_password:enter_email]]
6
- </div>
7
-
8
- <div class="card card-body bg-light">
9
- <div class="alert alert-success alert-dismissible hide" id="success">
10
- <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
11
- [[reset_password:password_reset_sent]]
12
- </div>
13
- <div class="alert alert-danger alert-dismissible hide" id="error">
14
- <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
15
- [[reset_password:invalid_email]]
16
- </div>
17
- <form onsubmit="return false;">
18
- <div class="mb-3">
19
- <input type="email" class="form-control form-control-lg" id="email" placeholder="[[reset_password:enter_email_address]]" autocomplete="off">
20
- </div>
21
- <div class="d-grid">
22
- <button class="btn btn-primary btn-lg" id="reset" type="submit">[[reset_password:reset_password]]</button>
23
- </div>
24
- </form>
25
- </div>
@@ -1,42 +0,0 @@
1
- <!-- IMPORT partials/breadcrumbs.tpl -->
2
-
3
- <!-- IF valid -->
4
- <div class="card card-body bg-light">
5
- <!-- IF displayExpiryNotice -->
6
- <div class="alert alert-warning">
7
- [[reset_password:password_expired]]
8
- </div>
9
- <!-- ENDIF displayExpiryNotice -->
10
- <div class="alert alert-success alert-dismissible hidden" id="success">
11
- <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
12
- <strong>[[reset_password:password_changed.title]]</strong>
13
- <p>[[reset_password:password_changed.message]]</p>
14
- </div>
15
- <div class="alert alert-warning hidden" id="notice">
16
- <strong></strong>
17
- <p></p>
18
- </div>
19
- <form onsubmit="return false;" id="reset-form" class="row">
20
- <div class="col-sm-6">
21
- <label class="form-label" for="password">[[reset_password:new_password]]</label>
22
- <input class="form-control" type="password" placeholder="[[reset_password:new_password]]" id="password" /><br />
23
- </div>
24
- <div class="col-sm-6">
25
- <label class="form-label" for="repeat">[[reset_password:repeat_password]]</label>
26
- <input class="form-control" type="password" placeholder="[[reset_password:repeat_password]]" id="repeat" /><br />
27
- </div>
28
- <div class="col-12">
29
- <button class="btn btn-primary btn-block" id="reset" type="submit">[[reset_password:reset_password]]</button>
30
- </div>
31
- </form>
32
- </div>
33
- <!-- ELSE -->
34
- <div class="card bg-danger">
35
- <h5 class="card-header">
36
- [[reset_password:wrong_reset_code.title]]
37
- </h5>
38
- <div class="card-body">
39
- <p>[[reset_password:wrong_reset_code.message]]</p>
40
- </div>
41
- </div>
42
- <!-- ENDIF valid -->
package/templates/tos.tpl DELETED
@@ -1,4 +0,0 @@
1
- <h3>[[register:terms_of_use]]</h3>
2
- <hr/>
3
-
4
- {termsOfUse}
@@ -1,15 +0,0 @@
1
- {{{ if !error }}}
2
- <div class="alert alert-success">
3
- <strong>[[global:alert.success]]</strong>
4
- <p>[[email:unsub.success, {payload.template}]]</p>
5
- {{{ else }}}
6
- <div class="alert alert-warning">
7
- <strong>[[email:unsub.failure.title]]</strong>
8
- <p>[[email:unsub.failure.message, {error}, {config.relative_path}/me/settings]]</p>
9
- {{{ end }}}
10
- <hr />
11
-
12
- <p>
13
- <a href="{config.relative_path}/">[[notifications:back_to_home, {config.siteTitle}]]</a>
14
- </p>
15
- </div>