nodebb-plugin-composer-default 11.0.3 → 11.0.5
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 +1 -1
- package/static/templates/compose.tpl +1 -1
- package/static/templates/composer.tpl +1 -1
- package/static/templates/modals/topic-scheduler.tpl +2 -2
- package/static/templates/partials/composer-formatting.tpl +8 -8
- package/static/templates/partials/composer-tags.tpl +2 -2
- package/static/templates/partials/composer-title-container.tpl +9 -9
- package/static/templates/partials/composer-write-preview.tpl +2 -2
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<!-- IMPORT partials/composer-tags.tpl -->
|
|
13
13
|
{{{ end }}}
|
|
14
14
|
|
|
15
|
-
<div class="imagedrop"><div>
|
|
15
|
+
<div class="imagedrop"><div>{{tx("topic:composer.drag-and-drop-images")}}</div></div>
|
|
16
16
|
|
|
17
17
|
<div class="resizer position-absolute w-100 bottom-100 pe-3 border-bottom">
|
|
18
18
|
<div class="trigger text-center">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<div class="datetime-picker">
|
|
2
|
-
<input class="form-control" type="date" max="2100-12-31" pattern="[0-9]\{2}-[0-9]\{2}-[0-9]\{4}" required aria-label="
|
|
3
|
-
<input class="form-control" type="time" pattern="[0-9]{2}:[0-9]{2}" required aria-label="
|
|
2
|
+
<input class="form-control" type="date" max="2100-12-31" pattern="[0-9]\{2}-[0-9]\{2}-[0-9]\{4}" required aria-label="{{tx("modules:composer.schedule-date")}}" tabindex="1">
|
|
3
|
+
<input class="form-control" type="time" pattern="[0-9]{2}:[0-9]{2}" required aria-label="{{tx("modules:composer.schedule-time")}}" tabindex="1">
|
|
4
4
|
</div>
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
{{{ else }}}
|
|
7
7
|
{{{ if ((isTopicOrMain && ./visibility.main) || (!isTopicOrMain && ./visibility.reply)) }}}
|
|
8
8
|
{{{ if ./dropdownItems.length }}}
|
|
9
|
-
<li class="dropdown dropdown-left bottom-sheet {./visibility.class}" title="{tx(./title)}">
|
|
10
|
-
<button class="btn btn-sm btn-link text-reset" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="{./title}">
|
|
9
|
+
<li class="dropdown dropdown-left bottom-sheet {./visibility.class}" title="{{tx(./title)}}">
|
|
10
|
+
<button class="btn btn-sm btn-link text-reset" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="{{tx(./title)}}">
|
|
11
11
|
<i class="{./className}"></i>
|
|
12
12
|
</button>
|
|
13
13
|
<ul class="dropdown-menu p-1" role="menu">
|
|
14
14
|
{{{ each ./dropdownItems }}}
|
|
15
15
|
<li>
|
|
16
16
|
<a href="#" data-format="{./name}" class="dropdown-item rounded-1 position-relative" role="menuitem">
|
|
17
|
-
<i class="{./className} text-secondary"></i> {tx(./text)}
|
|
17
|
+
<i class="{./className} text-secondary"></i> {{tx(./text)}}
|
|
18
18
|
{{{ if ./badge }}}
|
|
19
19
|
<span class="px-1 position-absolute top-0 start-100 translate-middle-x badge rounded text-bg-info"></span>
|
|
20
20
|
{{{ end }}}
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
</ul>
|
|
25
25
|
</li>
|
|
26
26
|
{{{ else }}}
|
|
27
|
-
<li title="{tx(./title)}" class="{./visibility.class}">
|
|
28
|
-
<button data-format="{./name}" class="btn btn-sm btn-link text-reset position-relative" aria-label="{tx(./title)}">
|
|
27
|
+
<li title="{{tx(./title)}}" class="{./visibility.class}">
|
|
28
|
+
<button data-format="{./name}" class="btn btn-sm btn-link text-reset position-relative" aria-label="{{tx(./title)}}">
|
|
29
29
|
<i class="{./className}"></i>
|
|
30
30
|
{{{ if ./badge }}}
|
|
31
31
|
<span class="px-1 position-absolute top-0 start-100 translate-middle-x badge rounded text-bg-info"></span>
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
<div class="draft-icon m-2 hidden-xs hidden-sm"></div>
|
|
46
46
|
<button class="btn btn-sm btn-link py-2 text-body fw-semibold text-nowrap" data-action="preview">
|
|
47
47
|
<i class="fa fa-eye"></i>
|
|
48
|
-
<span class="d-none d-xl-inline show-text">
|
|
49
|
-
<span class="d-none d-xl-inline hide-text">
|
|
48
|
+
<span class="d-none d-xl-inline show-text">{{tx("modules:composer.show-preview")}}</span>
|
|
49
|
+
<span class="d-none d-xl-inline hide-text">{{tx("modules:composer.hide-preview")}}</span>
|
|
50
50
|
</button>
|
|
51
51
|
{{{ if composer:showHelpTab }}}
|
|
52
52
|
<button class="btn btn-sm btn-link py-2 text-body fw-semibold text-nowrap" data-action="help">
|
|
53
53
|
<i class="fa fa-question"></i>
|
|
54
|
-
<span class="d-none d-xl-inline">
|
|
54
|
+
<span class="d-none d-xl-inline">{{tx("modules:composer.help")}}</span>
|
|
55
55
|
</button>
|
|
56
56
|
{{{ end }}}
|
|
57
57
|
</div>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class="dropdown dropup me-2 {{{ if !tagWhitelist.length }}}hidden{{{ end }}}" component="composer/tag/dropdown">
|
|
4
4
|
<button class="btn btn-sm btn-link text-body dropdown-toggle" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
|
|
5
5
|
<span class="visible-sm-inline visible-md-inline visible-lg-inline"><i class="fa fa-tags"></i></span>
|
|
6
|
-
|
|
6
|
+
{{tx("tags:select-tags")}}
|
|
7
7
|
</button>
|
|
8
8
|
|
|
9
9
|
<ul class="dropdown-menu p-1" role="menu">
|
|
@@ -12,6 +12,6 @@
|
|
|
12
12
|
{{{ end }}}
|
|
13
13
|
</ul>
|
|
14
14
|
</div>
|
|
15
|
-
<input class="tags" type="text" class="" placeholder="
|
|
15
|
+
<input class="tags" type="text" class="" placeholder="{{tx("tags:enter-tags-here", minimumTagLength, maximumTagLength)}}" />
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
|
|
8
8
|
{{{ if showHandleInput }}}
|
|
9
9
|
<div data-component="composer/handle">
|
|
10
|
-
<input class="handle form-control h-100 border-0 shadow-none" type="text" placeholder="
|
|
10
|
+
<input class="handle form-control h-100 border-0 shadow-none" type="text" placeholder="{{tx("topic:composer.handle-placeholder")}}" value="{handle}" />
|
|
11
11
|
</div>
|
|
12
12
|
{{{ end }}}
|
|
13
13
|
|
|
14
14
|
<div data-component="composer/title" class="position-relative flex-1" style="min-width: 0;">
|
|
15
15
|
{{{ if isTopicOrMain }}}
|
|
16
|
-
<input class="title form-control h-100 rounded-1 shadow-none" type="text" placeholder="
|
|
16
|
+
<input class="title form-control h-100 rounded-1 shadow-none" type="text" placeholder="{{tx("topic:composer.title-placeholder")}}" value="{topicTitle}" />
|
|
17
17
|
{{{ else }}}
|
|
18
18
|
<span class="{{{ if !template.compose }}}d-none d-md-block{{{ else }}}d-block{{{ end }}} title h-100 text-truncate">
|
|
19
19
|
{{{ if (./action == "posts.reply") }}}
|
|
@@ -32,25 +32,25 @@
|
|
|
32
32
|
</div>
|
|
33
33
|
|
|
34
34
|
<div class="{{{ if !template.compose }}}d-none d-md-flex{{{ else }}}d-flex{{{ end }}} action-bar gap-1 align-items-center">
|
|
35
|
-
<button class="btn btn-sm btn-link text-body fw-semibold composer-minimize" data-action="hide"><i class="fa fa-angle-down"></i> <span class="d-none d-md-inline">
|
|
36
|
-
<button class="btn btn-sm btn-link composer-discard text-body fw-semibold" data-action="discard"><i class="fa fa-trash"></i> <span class="d-none d-md-inline">
|
|
35
|
+
<button class="btn btn-sm btn-link text-body fw-semibold composer-minimize" data-action="hide"><i class="fa fa-angle-down"></i> <span class="d-none d-md-inline">{{tx("topic:composer.hide")}}</span></button>
|
|
36
|
+
<button class="btn btn-sm btn-link composer-discard text-body fw-semibold" data-action="discard"><i class="fa fa-trash"></i> <span class="d-none d-md-inline">{{tx("topic:composer.discard")}}</span></button>
|
|
37
37
|
<div class="btn-group btn-group-sm" component="composer/submit/container">
|
|
38
|
-
<button class="btn btn-primary composer-submit fw-bold {{{ if !(submitOptions.length || canSchedule) }}}rounded-1{{{ end }}}" data-action="post" data-text-variant="
|
|
38
|
+
<button class="btn btn-primary composer-submit fw-bold {{{ if !(submitOptions.length || canSchedule) }}}rounded-1{{{ end }}}" data-action="post" data-text-variant="{{tx("topic:composer.schedule")}}"><i class="fa fa-check"></i> <span class="d-none d-md-inline">{{tx("topic:composer.submit")}}</span></button>
|
|
39
39
|
<div component="composer/submit/options/container" data-submit-options="{submitOptions.length}" class="btn-group btn-group-sm {{{ if !(submitOptions.length || canSchedule) }}}hidden{{{ end }}}">
|
|
40
40
|
<button type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
41
41
|
<i class="fa fa-caret-down"></i>
|
|
42
|
-
<span class="visually-hidden">
|
|
42
|
+
<span class="visually-hidden">{{tx("topic:composer.additional-options")}}</span>
|
|
43
43
|
</button>
|
|
44
44
|
<ul class="dropdown-menu dropdown-menu-end p-1" role="menu">
|
|
45
45
|
<li>
|
|
46
|
-
<a class="dropdown-item rounded-1 display-scheduler {{{ if !canSchedule }}}hidden{{{ end }}}" role="menuitem">
|
|
46
|
+
<a class="dropdown-item rounded-1 display-scheduler {{{ if !canSchedule }}}hidden{{{ end }}}" role="menuitem">{{tx("topic:composer.post-later")}}</a>
|
|
47
47
|
</li>
|
|
48
48
|
<li>
|
|
49
|
-
<a class="dropdown-item rounded-1 cancel-scheduling hidden" role="menuitem">
|
|
49
|
+
<a class="dropdown-item rounded-1 cancel-scheduling hidden" role="menuitem">{{tx("modules:composer.cancel-scheduling")}}</a>
|
|
50
50
|
</li>
|
|
51
51
|
{{{ each submitOptions }}}
|
|
52
52
|
<li>
|
|
53
|
-
<a class="dropdown-item rounded-1" href="#" data-action="{./action}" role="menuitem">{{./text}}</a>
|
|
53
|
+
<a class="dropdown-item rounded-1" href="#" data-action="{./action}" role="menuitem">{{tx(./text)}}</a>
|
|
54
54
|
</li>
|
|
55
55
|
{{{ end }}}
|
|
56
56
|
</ul>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<div class="write-preview-container d-flex gap-2 flex-grow-1 overflow-auto">
|
|
2
2
|
<div class="write-container d-flex d-md-flex w-50 position-relative">
|
|
3
|
-
<div component="composer/post-queue/alert" class="m-2 alert alert-info fade pe-none position-absolute top-0 start-0 alert-dismissible">
|
|
3
|
+
<div component="composer/post-queue/alert" class="m-2 alert alert-info fade pe-none position-absolute top-0 start-0 alert-dismissible">{{tx("modules:composer.post-queue-alert")}}<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button></div>
|
|
4
4
|
<div class="draft-icon position-absolute end-0 top-0 mx-2 my-1 hidden-md hidden-lg"></div>
|
|
5
|
-
<textarea class="write shadow-none rounded-1 w-100 form-control overscroll-behavior-contain" placeholder="
|
|
5
|
+
<textarea class="write shadow-none rounded-1 w-100 form-control overscroll-behavior-contain" placeholder="{{tx("modules:composer.textarea.placeholder")}}">{body}</textarea>
|
|
6
6
|
</div>
|
|
7
7
|
<div class="preview-container d-none d-md-flex w-50">
|
|
8
8
|
<div class="preview w-100 overflow-auto"></div>
|