alistair3149
d5f9e03d47
feat: allow id and class attributes to be set on Tabber
...
Closes : #183 , #193
Co-Authored-By: Thomas-programmiert <Thomas-programmiert@users.noreply.github.com>
2024-11-19 16:20:05 -05:00
alistair3149
11eb2ac328
refactor: use Mustache to generate HTML
2024-11-19 16:01:11 -05:00
alistair3149
9e8ac878cc
fix: fix various issues raised by code review
2024-11-16 03:19:11 -05:00
alistair3149
40fe7d2e52
docs: fix incorrect return type
2024-11-16 03:19:11 -05:00
alistair3149
724e347ca1
perf: only call one instance of MediaWikiServices
2024-11-16 03:19:11 -05:00
alistair3149
a98f2f7791
refactor: switch TabberTransclude to the new method
2024-11-16 03:19:11 -05:00
github-actions
2c306abf79
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-11-16 03:19:11 -05:00
alistair3149
f24ddb58ee
feat: only add empty paragraph for wikitext list elements
...
We don't need the empty paragraph hack for non-list elements.
Related: #151
2024-11-16 03:19:11 -05:00
alistair3149
a6de7f9519
refactor: separate wikitext parsing to a different function
2024-11-14 23:27:54 -05:00
alistair3149
8d410dfb49
refactor: use init module instead of inline style for skeleton screen
2024-05-25 03:02:18 -04:00
alistair3149
bb110c6d98
feat: rewrite Javascript implementation
...
To ensure easier development and maintenance, IE support is dropped to allow
modern Javascript features. The old tabber module is rewritten into newer
standard and using classes to ensure proper scoping.
2024-05-25 00:33:22 -04:00
alistair3149
177c67681e
refactor: use data-mw- prefix for data attribute
2024-05-23 22:05:28 -04:00
github-actions
b0d52d6fd8
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-04-24 19:13:26 +00:00
H. C. Kruse
7f75899995
feat: add support for nested tabbers in Codex ( #95 )
...
* refactor: Apply some code cleanup
* feat: WIP dynamic nested tabber in codex
* feat: Make deeply nested tabbers work
* doc: fix comment position
---------
Co-authored-by: alistair3149 <alistair3149@users.noreply.github.com>
2023-07-11 22:06:57 -04:00
alistair3149
c06f0e7e74
refactor: rename TabberNeueEnableLegacyMode to TabberNeueUseCodex
2023-07-05 23:00:32 -04:00
alistair3149
cd63b6c10f
refactor: remove noscript message
...
Tabber already shows content without JS, and noscript handling is a bit tricky in MW
2023-07-05 18:32:18 -04:00
alistair3149
e3a82e603b
refactor: deprecate
2023-07-05 18:14:52 -04:00
alistair3149
0fbfefcb87
fix: avoid using noscript as it is disallowed by VE
2023-07-05 18:03:00 -04:00
alistair3149
89e90af034
feat: add experimental support of Codex
...
It can be enabled by setting `$wgTabberNeueEnableLegacyMode` to `true`.
It is the first implementation and a WIP with numerous caveats:
- Nested Tabber does not work
- Tabber Transclue does not work
2023-07-05 17:26:33 -04:00
NekoCharm
18f278e1ad
fix: use data-title for tab panel ( #74 )
2022-12-05 00:26:49 -05:00
alistair3149
831eeee16c
refactor: use proper extension namespaces
2022-06-29 17:22:14 -04:00
github-actions
05cfd51669
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2022-06-05 19:14:03 +00:00
ArdWar
9535181261
perf: revert back to recursiveTagParse() ( #27 )
...
* fix unnecessary whitespace trim on tab content
* use recursiveTagParse() to lessen unstrip size
2022-06-05 15:13:24 -04:00
alistair3149
1f4436843f
feat: improve loading behavior before module is added
...
* Add skeleton screen to avoid layout shift
* Hide other sections before the module is loaded to avoid layout shift
* Add noscript message
* Header container is now saved in parser instead of being generated.
If you have any issues with the script, try clearing out the parser cache
or do an empty edit.
2022-05-06 17:53:52 -04:00
alistair3149
8fdead811e
feat: add tracking categories for pages using Tabber
...
Pages with tabber/tabbertransclude tag will have a tracking category called Category:Pages using Tabber/TabberTransclude parser tag. To hide the category, put the __HIDDENCAT__ magic word on the category page
2022-05-06 13:09:03 -04:00
alistair3149
558581c893
refactor: rename parserHook result variable
2022-04-20 15:32:19 -04:00
alistair3149
0b690a2744
refactor: standardize parserHook and render across parser tags
2022-04-20 15:23:45 -04:00
alistair3149
1fc2451a12
refactor: separate parser tags into their own classes
2022-04-20 13:50:38 -04:00