ep_set_title_on_pad 0.6.34 → 0.6.36

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.
@@ -0,0 +1,30 @@
1
+ name: Dependabot Automerge
2
+ permissions:
3
+ contents: write
4
+ pull-requests: write
5
+ on:
6
+ workflow_run:
7
+ workflows:
8
+ - Node.js Package
9
+ types:
10
+ - completed
11
+
12
+ jobs:
13
+ automerge:
14
+ if: >
15
+ github.event.workflow_run.conclusion == 'success' &&
16
+ github.event.workflow_run.event == 'pull_request' &&
17
+ github.event.workflow_run.actor.login == 'dependabot[bot]'
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - name: Checkout
21
+ uses: actions/checkout@v6
22
+
23
+ - name: Automerge
24
+ uses: "pascalgn/automerge-action@v0.16.4"
25
+ env:
26
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27
+ MERGE_METHOD: squash
28
+ MERGE_LABELS: ""
29
+ MERGE_RETRY_SLEEP: "100000"
30
+
package/README.md CHANGED
@@ -1,33 +1,18 @@
1
+ # ep_set_title_on_pad
2
+
1
3
  [![Publish Status](https://github.com/ether/ep_set_title_on_pad/workflows/Node.js%20Package/badge.svg)](https://github.com/ether/ep_set_title_on_pad/actions/workflows/test-and-release.yml)
2
4
  [![Backend Tests Status](https://github.com/ether/ep_set_title_on_pad/actions/workflows/test-and-release.yml/badge.svg)](https://github.com/ether/ep_set_title_on_pad/actions/workflows/test-and-release.yml)
3
5
 
4
- # ep\_set\_title\_on\_pad: Titles for your pads
6
+ Adds a title field to pads that updates in real time and is used as the export filename.
5
7
 
6
8
  ![Screenshot](screenshot.png)
7
9
 
8
- ## Installation
9
-
10
- Install using http://%youretherpad%/admin/plugins or `pnpm run plugins install ep_set_title_on_pad`.
11
-
12
- ## Compatibility
13
-
14
- The following plugins actively support this plugin. They usually display the
15
- title of a pad instead of its ID:
16
-
17
- * [ep_pad-lister](https://github.com/ktt-ol/ep_pad-lister) since version 1.2.1
18
-
19
- ## Copyright and License
20
-
21
- Copyright © 2020 John McLear\
22
- Copyright © the ep\_set\_title\_on\_pad authors and contributors
10
+ ## Install
23
11
 
24
- Licensed under the [Apache License, Version 2.0](LICENSE) (the "License"); you
25
- may not use this file except in compliance with the License. You may obtain a
26
- copy of the License at
12
+ ```
13
+ pnpm run plugins i ep_set_title_on_pad
14
+ ```
27
15
 
28
- http://www.apache.org/licenses/LICENSE-2.0
16
+ ## License
29
17
 
30
- Unless required by applicable law or agreed to in writing, software distributed
31
- under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
32
- CONDITIONS OF ANY KIND, either express or implied. See the License for the
33
- specific language governing permissions and limitations under the License.
18
+ Apache-2.0
package/index.js CHANGED
@@ -12,8 +12,8 @@ exports.exportFileName = (hook, padId, callback) => {
12
12
  db.get(`title:${padId}`, (err, value) => {
13
13
  console.log('Found ', value, ' for ', padId);
14
14
  if (value) title = value;
15
+ callback(title);
15
16
  });
16
- callback(title);
17
17
  };
18
18
 
19
19
  exports.eejsBlock_mySettings = (hookName, args, cb) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep_set_title_on_pad",
3
3
  "description": "Set the title on a pad in Etherpad, also includes real time updates to the UI",
4
- "version": "0.6.34",
4
+ "version": "0.6.36",
5
5
  "license": "Apache-2.0",
6
6
  "author": "johnyma22 (John McLear) <john@mclear.co.uk>",
7
7
  "keywords": [
@@ -79,8 +79,10 @@ exports.documentReady = () => {
79
79
  };
80
80
  }
81
81
 
82
+ const debouncedSendTitle = debounce(sendTitle);
83
+
82
84
  $('#input_title').keyup((e) => {
83
- debounce(sendTitle);
85
+ debouncedSendTitle();
84
86
  window.document.title = $('#input_title').val();
85
87
  $('#title > h1').text($('#input_title').val());
86
88
  if (e.keyCode === 13) {