ep_table_of_contents 0.3.42 → 0.3.57

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 (57) hide show
  1. package/README.md +8 -0
  2. package/ep.json +2 -1
  3. package/index.js +7 -0
  4. package/locales/ar.json +8 -0
  5. package/locales/bn.json +8 -0
  6. package/locales/ca.json +1 -0
  7. package/locales/cs.json +1 -0
  8. package/locales/cy.json +1 -0
  9. package/locales/de.json +1 -0
  10. package/locales/diq.json +1 -0
  11. package/locales/dsb.json +8 -0
  12. package/locales/el.json +8 -0
  13. package/locales/en.json +1 -0
  14. package/locales/es.json +1 -0
  15. package/locales/eu.json +1 -0
  16. package/locales/ff.json +8 -0
  17. package/locales/fi.json +1 -0
  18. package/locales/fr.json +1 -0
  19. package/locales/gl.json +1 -0
  20. package/locales/he.json +1 -0
  21. package/locales/hsb.json +8 -0
  22. package/locales/hu.json +1 -0
  23. package/locales/ia.json +8 -0
  24. package/locales/it.json +1 -0
  25. package/locales/ko.json +1 -0
  26. package/locales/krc.json +8 -0
  27. package/locales/mk.json +1 -0
  28. package/locales/my.json +1 -0
  29. package/locales/nb.json +1 -0
  30. package/locales/nl.json +1 -0
  31. package/locales/oc.json +1 -0
  32. package/locales/pms.json +1 -0
  33. package/locales/pt-br.json +1 -0
  34. package/locales/pt.json +1 -0
  35. package/locales/roa-tara.json +1 -0
  36. package/locales/ru.json +1 -0
  37. package/locales/sc.json +8 -0
  38. package/locales/scn.json +1 -0
  39. package/locales/sd.json +8 -0
  40. package/locales/se.json +8 -0
  41. package/locales/sk.json +1 -0
  42. package/locales/skr-arab.json +8 -0
  43. package/locales/sl.json +8 -0
  44. package/locales/sms.json +8 -0
  45. package/locales/sq.json +1 -0
  46. package/locales/sv.json +1 -0
  47. package/locales/sw.json +1 -0
  48. package/locales/th.json +1 -0
  49. package/locales/tl.json +1 -0
  50. package/locales/tr.json +1 -0
  51. package/locales/uk.json +1 -0
  52. package/locales/ur.json +8 -0
  53. package/locales/zh-hans.json +1 -0
  54. package/locales/zh-hant.json +1 -0
  55. package/package.json +1 -1
  56. package/static/css/toc.css +3 -0
  57. package/templates/barButton.ejs +11 -0
package/README.md CHANGED
@@ -15,6 +15,14 @@ If you want to have the TOC shown by default, add following snippet to your `set
15
15
  },
16
16
  ```
17
17
 
18
+ If you want to have a button in the toolbar to toggle the TOC, add following snippet to your `settings.json`:
19
+
20
+ ```json
21
+ "ep_toc": {
22
+ "show_button": true
23
+ },
24
+ ```
25
+
18
26
  ## License
19
27
  Copyright 2014, John McLear
20
28
 
package/ep.json CHANGED
@@ -7,7 +7,8 @@
7
7
  "eejsBlock_styles" : "ep_table_of_contents/index",
8
8
  "eejsBlock_mySettings" : "ep_table_of_contents/index",
9
9
  "eejsBlock_editorContainerBox": "ep_table_of_contents/index",
10
- "eejsBlock_dd_view" : "ep_table_of_contents/index"
10
+ "eejsBlock_dd_view" : "ep_table_of_contents/index",
11
+ "eejsBlock_editbarMenuRight" : "ep_table_of_contents/index"
11
12
  },
12
13
  "client_hooks":{
13
14
  "aceEditEvent" : "ep_table_of_contents/static/js/aceEditEvent:aceEditEvent",
package/index.js CHANGED
@@ -20,6 +20,13 @@ exports.eejsBlock_editorContainerBox = (hookName, args, cb) => {
20
20
  return cb();
21
21
  };
22
22
 
23
+ exports.eejsBlock_editbarMenuRight = (hookName, args, cb) => {
24
+ if (settings.ep_toc && settings.ep_toc.show_button === true) {
25
+ args.content = eejs.require('ep_table_of_contents/templates/barButton.ejs') + args.content;
26
+ }
27
+ return cb();
28
+ };
29
+
23
30
  exports.eejsBlock_scripts = (hookName, args, cb) => {
24
31
  args.content +=
25
32
  "<script src='../static/plugins/ep_table_of_contents/static/js/toc.js'></script>";
@@ -0,0 +1,8 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "Meno25"
5
+ ]
6
+ },
7
+ "ep_table_of_contents.toc": "إظهار جدول المحتويات"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "আজিজ"
5
+ ]
6
+ },
7
+ "ep_table_of_contents.toc": "বিষয়বস্তুর সারণী দেখান"
8
+ }
package/locales/ca.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Mguix"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Mostra la taula de continguts",
7
8
  "ep_table_of_contents.toc": "Mostra la taula de continguts"
8
9
  }
package/locales/cs.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Spotter"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Zobrazit Obsah",
7
8
  "ep_table_of_contents.toc": "Zobrazit Obsah"
8
9
  }
package/locales/cy.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Robin Owain"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Dangos Tabl y Cynnwys",
7
8
  "ep_table_of_contents.toc": "Dangos Tabl y Cynnwys"
8
9
  }
package/locales/de.json CHANGED
@@ -2,5 +2,6 @@
2
2
  "@metadata": {
3
3
  "authors": []
4
4
  },
5
+ "ep_table_of_contents.toc.title": "Gliederung anzeigen",
5
6
  "ep_table_of_contents.toc": "Gliederung anzeigen"
6
7
  }
package/locales/diq.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "1917 Ekim Devrimi"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Tabloyê zerreki bımocne",
7
8
  "ep_table_of_contents.toc": "Tabloyê zerreki bımocne"
8
9
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "Michawiki"
5
+ ]
6
+ },
7
+ "ep_table_of_contents.toc": "Zapis wopśimjeśa pokazaś"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "Norhorn"
5
+ ]
6
+ },
7
+ "ep_table_of_contents.toc": "Προβολή του Πίνακα Περιεχομένων"
8
+ }
package/locales/en.json CHANGED
@@ -1,3 +1,4 @@
1
1
  {
2
+ "ep_table_of_contents.toc.title" : "Show Table of Contents",
2
3
  "ep_table_of_contents.toc" : "Show Table of Contents"
3
4
  }
package/locales/es.json CHANGED
@@ -2,5 +2,6 @@
2
2
  "@metadata": {
3
3
  "authors": []
4
4
  },
5
+ "ep_table_of_contents.toc.title": "Mostrar índice",
5
6
  "ep_table_of_contents.toc": "Mostrar índice"
6
7
  }
package/locales/eu.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Izendegi"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Erakutsi Edukien Taula",
7
8
  "ep_table_of_contents.toc": "Erakutsi Edukien Taula"
8
9
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "Ibrahima Malal Sarr"
5
+ ]
6
+ },
7
+ "ep_table_of_contents.toc": "Hollu Haatumeere Loowdi"
8
+ }
package/locales/fi.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Maantietäjä"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Näytä sisällysluettelo.",
7
8
  "ep_table_of_contents.toc": "Näytä sisällysluettelo."
8
9
  }
package/locales/fr.json CHANGED
@@ -2,5 +2,6 @@
2
2
  "@metadata": {
3
3
  "authors": []
4
4
  },
5
+ "ep_table_of_contents.toc.title": "Afficher la table des matières",
5
6
  "ep_table_of_contents.toc": "Afficher la table des matières"
6
7
  }
package/locales/gl.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Ghose"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Amosar a táboa de contidos",
7
8
  "ep_table_of_contents.toc": "Amosar a táboa de contidos"
8
9
  }
package/locales/he.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "YaronSh"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "להציג את תוכן העניינים",
7
8
  "ep_table_of_contents.toc": "להציג את תוכן העניינים"
8
9
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "Michawiki"
5
+ ]
6
+ },
7
+ "ep_table_of_contents.toc": "Zapis wobsaha pokazać"
8
+ }
package/locales/hu.json CHANGED
@@ -2,5 +2,6 @@
2
2
  "@metadata": {
3
3
  "authors": []
4
4
  },
5
+ "ep_table_of_contents.toc.title": "Tartalomjegyzék megjelenítése",
5
6
  "ep_table_of_contents.toc": "Tartalomjegyzék megjelenítése"
6
7
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "McDutchie"
5
+ ]
6
+ },
7
+ "ep_table_of_contents.toc": "Monstrar le tabula de contento"
8
+ }
package/locales/it.json CHANGED
@@ -5,5 +5,6 @@
5
5
  "VamosErik88"
6
6
  ]
7
7
  },
8
+ "ep_table_of_contents.toc.title": "Mostra indice",
8
9
  "ep_table_of_contents.toc": "Mostra indice"
9
10
  }
package/locales/ko.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Ykhwong"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "목차 표시",
7
8
  "ep_table_of_contents.toc": "목차 표시"
8
9
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "Къарачайлы"
5
+ ]
6
+ },
7
+ "ep_table_of_contents.toc": "Башларын кёргюз"
8
+ }
package/locales/mk.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Bjankuloski06"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Прикажи ја Содржината",
7
8
  "ep_table_of_contents.toc": "Прикажи ја Содржината"
8
9
  }
package/locales/my.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Andibecker"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "မာတိကာကိုပြပါ",
7
8
  "ep_table_of_contents.toc": "မာတိကာကိုပြပါ"
8
9
  }
package/locales/nb.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Jon Harald Søby"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Vis innholdsfortegnelse",
7
8
  "ep_table_of_contents.toc": "Vis innholdsfortegnelse"
8
9
  }
package/locales/nl.json CHANGED
@@ -2,5 +2,6 @@
2
2
  "@metadata": {
3
3
  "authors": []
4
4
  },
5
+ "ep_table_of_contents.toc.title": "Toon Inhoudsopgave",
5
6
  "ep_table_of_contents.toc": "Toon Inhoudsopgave"
6
7
  }
package/locales/oc.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Quentí"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Afichar l'ensenhador",
7
8
  "ep_table_of_contents.toc": "Afichar l'ensenhador"
8
9
  }
package/locales/pms.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Borichèt"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Smon-e la tàula dij contnù",
7
8
  "ep_table_of_contents.toc": "Smon-e la tàula dij contnù"
8
9
  }
@@ -5,5 +5,6 @@
5
5
  "Eduardoaddad"
6
6
  ]
7
7
  },
8
+ "ep_table_of_contents.toc.title": "Mostrar índice",
8
9
  "ep_table_of_contents.toc": "Mostrar índice"
9
10
  }
package/locales/pt.json CHANGED
@@ -2,5 +2,6 @@
2
2
  "@metadata": {
3
3
  "authors": []
4
4
  },
5
+ "ep_table_of_contents.toc.title": "Mostrar índice",
5
6
  "ep_table_of_contents.toc": "Mostrar índice"
6
7
  }
@@ -4,5 +4,6 @@
4
4
  "Joetaras"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Fà 'ndrucà 'a Tabelle de le Condenute",
7
8
  "ep_table_of_contents.toc": "Fà 'ndrucà 'a Tabelle de le Condenute"
8
9
  }
package/locales/ru.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Okras"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Показать оглавление",
7
8
  "ep_table_of_contents.toc": "Показать оглавление"
8
9
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "Adr mm"
5
+ ]
6
+ },
7
+ "ep_table_of_contents.toc": "Ammustra sa tabella de cuntenutos"
8
+ }
package/locales/scn.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Ajeje Brazorf"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Ammustra l'ìnnici",
7
8
  "ep_table_of_contents.toc": "Ammustra l'ìnnici"
8
9
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "Mehtab ahmed"
5
+ ]
6
+ },
7
+ "ep_table_of_contents.toc": "عنوانن جي فھرست ڏيکاريو"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "Kimberli Mäkäräinen (WMNO)"
5
+ ]
6
+ },
7
+ "ep_table_of_contents.toc": "Čájet sisdoallologahallama"
8
+ }
package/locales/sk.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Yardom78"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Zobraziť tabuľku s obsahom",
7
8
  "ep_table_of_contents.toc": "Zobraziť tabuľku s obsahom"
8
9
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "Saraiki"
5
+ ]
6
+ },
7
+ "ep_table_of_contents.toc": "تندیر دی ٹیبل ݙکھاؤ"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "Eleassar"
5
+ ]
6
+ },
7
+ "ep_table_of_contents.toc": "Prikaži kazalo:"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "Yupik"
5
+ ]
6
+ },
7
+ "ep_table_of_contents.toc": "Čuäʹjet siiskâžlooǥǥtõõzz"
8
+ }
package/locales/sq.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Besnik b"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Shfaq Tryezë Lënde",
7
8
  "ep_table_of_contents.toc": "Shfaq Tryezë Lënde"
8
9
  }
package/locales/sv.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Bengtsson96"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Visa innehållsförteckning",
7
8
  "ep_table_of_contents.toc": "Visa innehållsförteckning"
8
9
  }
package/locales/sw.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Andibecker"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Onyesha Jedwali la Yaliyomo",
7
8
  "ep_table_of_contents.toc": "Onyesha Jedwali la Yaliyomo"
8
9
  }
package/locales/th.json CHANGED
@@ -5,5 +5,6 @@
5
5
  "Trisorn Triboon"
6
6
  ]
7
7
  },
8
+ "ep_table_of_contents.toc.title": "แสดงสารบัญของเนื้อหา",
8
9
  "ep_table_of_contents.toc": "แสดงสารบัญของเนื้อหา"
9
10
  }
package/locales/tl.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "Mrkczr"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "Ipakita ang Talaan ng Nilalaman",
7
8
  "ep_table_of_contents.toc": "Ipakita ang Talaan ng Nilalaman"
8
9
  }
package/locales/tr.json CHANGED
@@ -5,5 +5,6 @@
5
5
  "MuratTheTurkish"
6
6
  ]
7
7
  },
8
+ "ep_table_of_contents.toc.title": "İçindekiler Tablosunu Göster",
8
9
  "ep_table_of_contents.toc": "İçindekiler Tablosunu Göster"
9
10
  }
package/locales/uk.json CHANGED
@@ -5,5 +5,6 @@
5
5
  "Ice bulldog"
6
6
  ]
7
7
  },
8
+ "ep_table_of_contents.toc.title": "Показати зміст",
8
9
  "ep_table_of_contents.toc": "Показати зміст"
9
10
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "Obaid Raza"
5
+ ]
6
+ },
7
+ "ep_table_of_contents.toc": "مشمولات کا جدول دکھائیں"
8
+ }
@@ -4,5 +4,6 @@
4
4
  "列维劳德"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "显示目录",
7
8
  "ep_table_of_contents.toc": "显示目录"
8
9
  }
@@ -4,5 +4,6 @@
4
4
  "Kly"
5
5
  ]
6
6
  },
7
+ "ep_table_of_contents.toc.title": "顯示目錄",
7
8
  "ep_table_of_contents.toc": "顯示目錄"
8
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ep_table_of_contents",
3
- "version": "0.3.42",
3
+ "version": "0.3.57",
4
4
  "description": "View a table of contents for your pad",
5
5
  "author": {
6
6
  "name": "John McLear",
@@ -94,3 +94,6 @@
94
94
  body.comments-active #toc { width: 20% } // a bit smaller when the comment sidebar is visible
95
95
  }
96
96
 
97
+ #ep_table_of_contents-a button {
98
+ transform: rotateY(180deg);
99
+ }
@@ -0,0 +1,11 @@
1
+ <li data-key="ep_table_of_contents-toggle" data-type="button" onClick="toggleToc();">
2
+ <a id="ep_table_of_contents-a" data-l10n-id="ep_table_of_contents.toc.title">
3
+ <button class="buttonicon buttonicon-insertunorderedlist" data-l10n-id="ep_table_of_contents.toc.title"></button>
4
+ </a>
5
+ </li>
6
+ <li class="separator"></li>
7
+ <script type="text/javascript">
8
+ function toggleToc() {
9
+ $("#options-toc").click();
10
+ }
11
+ </script>