Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
520 commits
Select commit Hold shift + click to select a range
7835798
Handle missing resource or mwtitle
hartman Jun 8, 2024
a3792c8
JSDoc: Use externals plugin
edg2s Jun 10, 2024
e67acf3
Merge "Reduce size or transcode error logging"
Jun 10, 2024
ed303a2
Merge "Handle missing resource or mwtitle"
Jun 10, 2024
9eeb8f5
Merge "Fix "Unknown status" transcodes after move or reupload"
Jun 10, 2024
d71eddc
Merge "JSDoc: Use externals plugin"
Jun 10, 2024
7e9fcfe
Use namespaced classes
umherirrender Jun 10, 2024
c00174d
Localisation updates from https://translatewiki.net.
translatewiki Jun 11, 2024
cec95a9
Add attribute data-mw-tmh="" to the video/audio elements
Jun 6, 2024
041bcd3
Merge "Add attribute data-mw-tmh="" to the video/audio elements"
Jun 11, 2024
45745d6
Sync up TMH repo with Parsoid
arlolra Jun 11, 2024
e1602d3
Localisation updates from https://translatewiki.net.
translatewiki Jun 13, 2024
ad244d9
Skip media tracks where ID3 did not recognize dataformat
hartman Jun 15, 2024
c4a9031
Localisation updates from https://translatewiki.net.
translatewiki Jun 17, 2024
43c5d54
Use '[data-mw-tmh]' instead of 'video, audio' as selector
Jun 6, 2024
1c948a9
Merge "Skip media tracks where ID3 did not recognize dataformat"
Jun 17, 2024
f95974e
Mark icon up with notheme so it is not modified in dark mode
jdlrobson Jun 20, 2024
904c00d
Localisation updates from https://translatewiki.net.
translatewiki Jun 21, 2024
0104153
build: Updating npm dependencies
Jun 22, 2024
2af3134
build: Update jsdoc-wmf-theme to 1.1.0
edg2s Jun 26, 2024
8d11f5b
Localisation updates from https://translatewiki.net.
translatewiki Jul 5, 2024
6ca54a9
Localisation updates from https://translatewiki.net.
translatewiki Jul 8, 2024
ffae44d
Merge "build: Update jsdoc-wmf-theme to 1.1.0"
Jul 8, 2024
b6f2402
Localisation updates from https://translatewiki.net.
translatewiki Jul 9, 2024
362ff49
Use overrideConfigValue/overrideConfigValues instead of setMwGlobals
Jul 9, 2024
0df8ee5
Localisation updates from https://translatewiki.net.
translatewiki Jul 15, 2024
72b3acf
Fail fast if scriptDirUrl not set for file repo
bawolff Jul 17, 2024
32ee624
Merge "Use '[data-mw-tmh]' instead of 'video, audio' as selector"
Jul 17, 2024
3824281
Localisation updates from https://translatewiki.net.
translatewiki Jul 19, 2024
76a2604
Localisation updates from https://translatewiki.net.
translatewiki Jul 26, 2024
4bd6425
Localisation updates from https://translatewiki.net.
translatewiki Aug 2, 2024
b8cd3a8
Localisation updates from https://translatewiki.net.
translatewiki Aug 6, 2024
5bbafc2
Remove useless comment "1.38"
Aug 7, 2024
0ad5c37
build: Updating mediawiki/mediawiki-codesniffer to 44.0.0
Aug 12, 2024
5979a4e
Localisation updates from https://translatewiki.net.
translatewiki Aug 19, 2024
db8331c
Localisation updates from https://translatewiki.net.
translatewiki Aug 21, 2024
f406504
build: Update MediaWiki requirement to 1.43
jdforrester Aug 22, 2024
1011b91
Localisation updates from https://translatewiki.net.
translatewiki Aug 23, 2024
27ef472
Explicit parse message for Html::warningBox
umherirrender Aug 24, 2024
3f2ca8c
build: Updating micromatch to 4.0.8
Aug 24, 2024
1a7c7df
Localisation updates from https://translatewiki.net.
translatewiki Aug 26, 2024
db5d483
Merge "build: Update MediaWiki requirement to 1.43"
Aug 27, 2024
8271323
Localisation updates from https://translatewiki.net.
translatewiki Aug 28, 2024
d0f6be3
Fix HTTP timeout when generating transcodes
tstarling Aug 29, 2024
74aef90
Localisation updates from https://translatewiki.net.
translatewiki Sep 3, 2024
9cffe87
Merge "Explicit parse message for Html::warningBox"
Sep 4, 2024
35ce803
Localisation updates from https://translatewiki.net.
translatewiki Sep 4, 2024
9a45f3c
Localisation updates from https://translatewiki.net.
translatewiki Sep 9, 2024
d9846da
Properly honor $wgEnableTranscode
BlankEclair Sep 10, 2024
d16c6aa
Localisation updates from https://translatewiki.net.
translatewiki Sep 16, 2024
d04f927
Merge "Properly honor $wgEnableTranscode"
Sep 18, 2024
2c3c014
Pass function name to ILBFactory::closeAll
umherirrender Sep 19, 2024
e535d23
Localisation updates from https://translatewiki.net.
translatewiki Sep 20, 2024
9c34365
Retool iOS MJPEG fallback video
bvibber Sep 20, 2024
f250b1a
Localisation updates from https://translatewiki.net.
translatewiki Sep 23, 2024
b781e4a
Merge "Fix HTTP timeout when generating transcodes"
Sep 23, 2024
989261b
Merge "Retool iOS MJPEG fallback video"
Sep 25, 2024
842a7e4
Localisation updates from https://translatewiki.net.
translatewiki Sep 26, 2024
7518e18
Localisation updates from https://translatewiki.net.
translatewiki Sep 27, 2024
ac462d0
Localisation updates from https://translatewiki.net.
translatewiki Sep 30, 2024
ac18a8f
Localisation updates from https://translatewiki.net.
translatewiki Oct 2, 2024
160407d
Localisation updates from https://translatewiki.net.
translatewiki Oct 7, 2024
9a10c3f
Localisation updates from https://translatewiki.net.
translatewiki Oct 10, 2024
9de38b5
Localisation updates from https://translatewiki.net.
translatewiki Oct 14, 2024
1ce13a4
Localisation updates from https://translatewiki.net.
translatewiki Oct 17, 2024
62c2ced
Use namespaced classes
umherirrender Oct 20, 2024
b54810e
Localisation updates from https://translatewiki.net.
translatewiki Oct 21, 2024
17733e5
Localisation updates from https://translatewiki.net.
translatewiki Oct 25, 2024
4cd518f
Use type-declaration on api module constructor
umherirrender Oct 25, 2024
3c6ef52
Add missing message param for timedmedia-subtitle-no-subtitles
hartman Oct 25, 2024
7e559b0
Merge "Add missing message param for timedmedia-subtitle-no-subtitles"
Oct 25, 2024
6bf82b1
Replace isset() with null check
umherirrender Oct 27, 2024
2b3b66a
Localisation updates from https://translatewiki.net.
translatewiki Oct 28, 2024
262874e
build: Updating mediawiki/mediawiki-codesniffer to 45.0.0
Nov 2, 2024
e9f4e18
Localisation updates from https://translatewiki.net.
translatewiki Nov 5, 2024
3cc02df
Localisation updates from https://translatewiki.net.
translatewiki Nov 6, 2024
80f6df9
Localisation updates from https://translatewiki.net.
translatewiki Nov 11, 2024
91c2267
Fix Phan error related to message parameters
MatmaRex Nov 14, 2024
182a360
Remove old mw-score styling that is no longer needed
hartman Nov 16, 2024
2c968e9
Remove old thumb styles and fix border
hartman Nov 17, 2024
971b6f3
Localisation updates from https://translatewiki.net.
translatewiki Nov 18, 2024
bebe5a6
Allow Shellbox to download input files from Swift remotely
tstarling Aug 29, 2024
5fb1b7b
PHPUnit: Use FQCN with leading backslash in @covers annotation
Nov 19, 2024
e7318df
Add styles for warnings where needed
jdlrobson Nov 21, 2024
c694f86
build: Updating cross-spawn to 7.0.6
Nov 20, 2024
5cc603f
Merge "Add styles for warnings where needed"
Nov 22, 2024
8033e19
Localisation updates from https://translatewiki.net.
translatewiki Nov 25, 2024
17938dd
Use dependency injection with ServiceWiring for TimedMediaThumbnail
Sep 22, 2024
c81755e
Merge "Allow Shellbox to download input files from Swift remotely"
Nov 30, 2024
5bf7548
build: Updating jsdoc to 4.0.4
Dec 2, 2024
b40154c
Localisation updates from https://translatewiki.net.
translatewiki Dec 2, 2024
6835340
Merge "Remove old thumb styles and fix border"
Dec 2, 2024
c5e1511
Ensure the spacer can size from 0 to fill available width
hartman Nov 16, 2024
d5ded2f
Allow controlbar to overflow to two rows of controls
hartman Nov 16, 2024
5670189
Fix too many buttons in layout for narrow sizes
hartman Dec 3, 2024
0db9495
Use PHP type declarations
Dec 6, 2024
bff3122
Avoid videojs menu's from flowing outside of the viewport
hartman Dec 10, 2024
772e5f2
build: Updating nanoid to 3.3.8
Dec 11, 2024
571fea0
Localisation updates from https://translatewiki.net.
translatewiki Dec 13, 2024
2050ec1
Localisation updates from https://translatewiki.net.
translatewiki Dec 16, 2024
c638855
Merge "Avoid videojs menu's from flowing outside of the viewport"
Dec 16, 2024
0fffd6a
Revert "Use PHP type declarations"
tstarling Dec 17, 2024
198ed34
Merge "Revert "Use PHP type declarations""
Dec 18, 2024
a19c012
Localisation updates from https://translatewiki.net.
translatewiki Dec 18, 2024
afb0f7a
Remove use of global $wgExcludeFromThumbnailPurge
umherirrender Dec 18, 2024
4e6ae42
build: Updating mediawiki/mediawiki-phan-config to 0.15.0
Dec 14, 2024
ceb4449
WebVideoTranscodeJob: Remove unused property $source
Dec 19, 2024
07675b0
Use PHP type declarations
Dec 18, 2024
25e2cec
Update video.js to 8.20.0
hartman Dec 19, 2024
fac34db
Localisation updates from https://translatewiki.net.
translatewiki Dec 23, 2024
a48d157
Replace deprecated $out->setPreventClickjacking()
Dec 28, 2024
a25d66f
Localisation updates from https://translatewiki.net.
translatewiki Dec 30, 2024
a30e7b3
Localisation updates from https://translatewiki.net.
translatewiki Jan 6, 2025
d2e7672
Merge "Use dependency injection with ServiceWiring for TimedMediaThum…
Jan 7, 2025
e30c7d5
eslint: Use server config for server files
edg2s Jan 3, 2025
8a77d55
Allow more languages in the TimedText language dropdown
jhsoby Jan 8, 2025
ff381eb
Localisation updates from https://translatewiki.net.
translatewiki Jan 10, 2025
fcb2eda
Remove redundant hook causing unnecessary transcode resets
Dylan-fa Jan 10, 2025
8fc7878
build: Updating stylelint-config-wikimedia to 0.18.0
Jan 11, 2025
3f5c9d3
build: Updating dependencies
Jan 12, 2025
aae39f1
Merge "Remove redundant hook causing unnecessary transcode resets"
Jan 12, 2025
e90e246
Localisation updates from https://translatewiki.net.
translatewiki Jan 14, 2025
bc37d78
Merge "Update video.js to 8.20.0"
Jan 16, 2025
25fe572
Localisation updates from https://translatewiki.net.
translatewiki Jan 24, 2025
79cbd02
Localisation updates from https://translatewiki.net.
translatewiki Jan 27, 2025
d0daad8
Localisation updates from https://translatewiki.net.
translatewiki Jan 29, 2025
a0a0357
build: Updating mediawiki/mediawiki-codesniffer to 46.0.0
Feb 1, 2025
bcb31ef
TimedTextPage: Move error/warning box before the form
MatmaRex Feb 6, 2025
017cc30
TimedTextPage: Update deprecated StatusValue methods
MatmaRex Feb 6, 2025
25ffb07
styles: Replace pixel font-size value for relative unit one
Volker-E Feb 7, 2025
86e61b4
Merge "styles: Replace pixel font-size value for relative unit one"
Feb 7, 2025
2692ab8
Fix: Proper handling of AV1 codec string in WebMHandler
PeaceDeadTS Dec 15, 2024
9f80cfe
Localisation updates from https://translatewiki.net.
translatewiki Feb 10, 2025
9ede17b
Only close the video dialog if the mouseDown started outside the dialog.
Dylan-fa Feb 12, 2025
0af9f67
Localisation updates from https://translatewiki.net.
translatewiki Feb 24, 2025
05b39e3
Merge "Only close the video dialog if the mouseDown started outside t…
Mar 6, 2025
4a3d71c
Localisation updates from https://translatewiki.net.
translatewiki Mar 14, 2025
6e3a24d
Localisation updates from https://translatewiki.net.
translatewiki Mar 17, 2025
935a1f2
build: Update MediaWiki requirement to 1.44
jdforrester Mar 20, 2025
8f60f08
Add support for read new of file schema
Ladsgroup Mar 20, 2025
24fab75
Merge "Add support for read new of file schema"
Mar 21, 2025
7c61ccd
Localisation updates from https://translatewiki.net.
translatewiki Mar 31, 2025
ebc6d95
build: Updating eslint-config-wikimedia to 0.29.1
Apr 1, 2025
5a60e5b
composer.json: Remove git repo fork
reedy Apr 1, 2025
3835ec7
Add documentation to undocumented parameterless functions
umherirrender Apr 2, 2025
c905df4
Switch use of deprecated wfExpandUrl to UrlUtils
jdforrester Mar 25, 2025
9e70e85
Merge "Add documentation to undocumented parameterless functions"
Apr 3, 2025
c828991
tests: Add `@covers WebVideoTranscodeJob` to VideoTranscodeTest
Krinkle Nov 29, 2024
4526e36
Localisation updates from https://translatewiki.net.
translatewiki Apr 11, 2025
73ec343
Use namespaced classes
umherirrender Apr 25, 2025
fdb6e6b
tests: Make PHPUnit data provider static
umherirrender May 1, 2025
c886f47
Localisation updates from https://translatewiki.net.
translatewiki May 5, 2025
9777d2d
Localisation updates from https://translatewiki.net.
translatewiki May 6, 2025
53b2867
Localisation updates from https://translatewiki.net.
translatewiki May 8, 2025
2ba612d
Use Html::addClass instead of assuming class will be a string
bvibber May 8, 2025
eac991b
Localisation updates from https://translatewiki.net.
translatewiki May 12, 2025
d50c9c1
Defensively check JS objects in chooseSrc to avoid JS errors
jdlrobson May 13, 2025
681ae4b
build: Updating mediawiki/mediawiki-codesniffer to 47.0.0
May 14, 2025
893b9ad
Localisation updates from https://translatewiki.net.
translatewiki May 16, 2025
6cfc387
Merge "Defensively check JS objects in chooseSrc to avoid JS errors"
May 16, 2025
e0ce893
Localisation updates from https://translatewiki.net.
translatewiki May 19, 2025
cbd8047
Localisation updates from https://translatewiki.net.
translatewiki May 20, 2025
d39b00d
Remove $wgParserEnableLegacyMediaDOM option
arlolra May 20, 2025
4077bdc
Localisation updates from https://translatewiki.net.
translatewiki May 22, 2025
b52440d
Bump required MW version to 1.45
cscott May 22, 2025
914ee23
build: Updating eslint-config-wikimedia to 0.30.0
May 26, 2025
cca0957
Localisation updates from https://translatewiki.net.
translatewiki Jun 2, 2025
8a669e6
Improve HTML escaping in getLongDesc(), getShortDesc() methods
MatmaRex Jun 2, 2025
4edbe6e
Fixes TypeError: undefined is not an object (evaluating 'sources.map')
jdlrobson Jun 2, 2025
7747769
Merge "Fixes TypeError: undefined is not an object (evaluating 'sourc…
Jun 10, 2025
5561b48
Localisation updates from https://translatewiki.net.
translatewiki Jun 12, 2025
d6d714a
Improve a few PHPDoc comments about generic arrays
thiemowmde Jun 13, 2025
9a5ca29
Prefer overrideConfigValues in PHPUnit tests
thiemowmde Jun 13, 2025
14d4ea4
Localisation updates from https://translatewiki.net.
translatewiki Jun 16, 2025
defea92
Merge "Prefer overrideConfigValues in PHPUnit tests"
Jun 16, 2025
817eab8
build: Updating brace-expansion to 1.1.12, 2.0.2
Jun 21, 2025
666049b
Merge "Improve a few PHPDoc comments about generic arrays"
Jun 23, 2025
d805d07
Use more recent PHP operators for more compact code
thiemowmde Jun 13, 2025
4771b62
Merge "Use more recent PHP operators for more compact code"
Jun 23, 2025
c3949f8
Merge "build: Updating brace-expansion to 1.1.12, 2.0.2"
Jun 28, 2025
9e8d0ab
Localisation updates from https://translatewiki.net.
translatewiki Jul 7, 2025
69bbc02
Localisation updates from https://translatewiki.net.
translatewiki Jul 8, 2025
4592249
Localisation updates from https://translatewiki.net.
translatewiki Jul 10, 2025
97504d8
TimedMediaHandler: Update Chinese translations
bilintsui Jul 11, 2025
c2350ec
Exclude boilerplate maintenance script code from test coverage
Dreamy-Jazz Jul 14, 2025
0ef382c
build: Updating mediawiki/mediawiki-phan-config to 0.16.0
Jul 13, 2025
4a3221e
Localisation updates from https://translatewiki.net.
translatewiki Jul 21, 2025
bd6cfe6
Use IReadableDatabase for QueryPage::preprocessResults
umherirrender Jul 25, 2025
864da2f
tests: Remove unnecessary login API calls
umherirrender Jul 25, 2025
faa2e03
Add missing @throws for OggException
umherirrender Jul 26, 2025
cabec5e
Localisation updates from https://translatewiki.net.
translatewiki Jul 28, 2025
5e99566
build: Updating eslint-config-wikimedia to 0.31.0
Aug 1, 2025
32af680
Use PHP8 constructor property promotion syntax
Aug 1, 2025
9d21bad
Localisation updates from https://translatewiki.net.
translatewiki Aug 5, 2025
3763e57
TimedText: Use nstab- translations for the namespace links
hartman Aug 4, 2025
ea1f8a4
Use null instead of false as value on failure
Dec 7, 2024
2a84997
Remove a few comments that just repeat the code
thiemowmde Jun 13, 2025
66c1ade
Use a register callback instead of ExtensionFunctions
hartman Aug 4, 2025
0133b17
Localisation updates from https://translatewiki.net.
translatewiki Aug 11, 2025
25a0d9d
TimedText: handle ParameterTypeException
hartman Aug 10, 2025
dec4edb
Update video.js to 8.21.1
hartman Aug 11, 2025
33d5bb0
Localisation updates from https://translatewiki.net.
translatewiki Aug 14, 2025
a8cb7fe
build: Updating mediawiki/mediawiki-phan-config to 0.17.0
Aug 14, 2025
b79d2fb
Localisation updates from https://translatewiki.net.
translatewiki Aug 21, 2025
322ebd3
Localisation updates from https://translatewiki.net.
translatewiki Aug 25, 2025
37998ca
Localisation updates from https://translatewiki.net.
translatewiki Aug 29, 2025
b6e00e7
Localisation updates from https://translatewiki.net.
translatewiki Sep 10, 2025
36a12a5
build: Updating mediawiki/mediawiki-codesniffer to 48.0.0
Sep 8, 2025
e794ae3
Remove ESLint rule no-jquery/no-done-fail and update JavaScript code
Sep 5, 2025
8b04a77
build: Handle excluded ClassAnnotations sniff
umherirrender Sep 17, 2025
65fea38
Add foreign-resouces.cdx.json
reedy Sep 22, 2025
1e9adbf
build: Use MW-standard JSON formatting in CDX mainfest
jdforrester Sep 23, 2025
fcf27fa
Localisation updates from https://translatewiki.net.
translatewiki Sep 26, 2025
a619d5e
Localisation updates from https://translatewiki.net.
translatewiki Sep 29, 2025
21ce879
Add JS hook to allow outside access to VideoJS object
yaronkoren Aug 7, 2025
a80aee4
Localisation updates from https://translatewiki.net.
translatewiki Oct 16, 2025
9e0374c
Localisation updates from https://translatewiki.net.
translatewiki Oct 17, 2025
5288333
Localisation updates from https://translatewiki.net.
translatewiki Oct 20, 2025
508a320
Localisation updates from https://translatewiki.net.
translatewiki Oct 21, 2025
df4b2d1
Localisation updates from https://translatewiki.net.
translatewiki Oct 22, 2025
cf56768
Localisation updates from https://translatewiki.net.
translatewiki Oct 23, 2025
ce48341
Upgrading james-heinrich/getid3 (v1.9.23 => v1.9.24)
reedy Oct 16, 2025
767d6d0
Localisation updates from https://translatewiki.net.
translatewiki Nov 6, 2025
b60acb8
Localisation updates from https://translatewiki.net.
translatewiki Nov 20, 2025
fe55cfd
build: Updating js-yaml to 3.14.2, 4.1.1
Nov 23, 2025
0d667c0
Localisation updates from https://translatewiki.net.
translatewiki Dec 4, 2025
4f9ea69
Localisation updates from https://translatewiki.net.
translatewiki Dec 18, 2025
75b0d70
Localisation updates from https://translatewiki.net.
translatewiki Dec 25, 2025
a0b297a
Handle null from TimedTextPage::getLanguageKey
umherirrender Jan 3, 2026
cec81f9
Localisation updates from https://translatewiki.net.
translatewiki Jan 8, 2026
1fabe0b
Localisation updates from https://translatewiki.net.
translatewiki Jan 15, 2026
353cdd5
Localisation updates from https://translatewiki.net.
translatewiki Jan 22, 2026
e1c56c6
build: Updating lodash to 4.17.23
Jan 23, 2026
e25555b
Localisation updates from https://translatewiki.net.
translatewiki Jan 29, 2026
ab24c5b
Localisation updates from https://translatewiki.net.
translatewiki Feb 5, 2026
df83d80
Localisation updates from https://translatewiki.net.
translatewiki Feb 26, 2026
d0aca7c
build: Updating npm dependencies
Feb 27, 2026
e66b3c6
Localisation updates from https://translatewiki.net.
translatewiki Mar 5, 2026
93ab688
build: Updating npm dependencies
Mar 6, 2026
271a2b5
TimedMediaThumbnail: Set physical width and height
Ladsgroup Jan 20, 2026
e1020ca
Localisation updates from https://translatewiki.net.
translatewiki Mar 12, 2026
b212ab9
Localisation updates from https://translatewiki.net.
translatewiki Mar 19, 2026
0b297c8
build: Updating flatted to 3.4.2
Mar 20, 2026
20cd986
Localisation updates from https://translatewiki.net.
translatewiki Mar 26, 2026
a7d983f
Localisation updates from https://translatewiki.net.
translatewiki Apr 2, 2026
b74baa9
Require getid3 1.9.25 for php 8.5 compatiblity
hartman Apr 2, 2026
601ae7d
Localisation updates from https://translatewiki.net.
translatewiki Apr 9, 2026
938a26c
build: Updating npm dependencies
Apr 10, 2026
abf7eb9
Localisation updates from https://translatewiki.net.
translatewiki Apr 16, 2026
4b578e8
build: Updating npm dependencies
Apr 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 7 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
docs
jsdoc-plugins/*
resources/videojs/*
resources/lib/video.js/*
resources/videojs-ogvjs/*
resources/ogv.js/
resources/lib/ogv.js/
vendor/

# Language files written automatically by TranslateWiki
/i18n/**/*.json
!/i18n/**/en.json
!/i18n/**/qqq.json
32 changes: 1 addition & 31 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,6 @@
{
"root": true,
"plugins": [
"no-jquery"
],
"extends": [
"plugin:no-jquery/deprecated",
"plugin:no-jquery/slim",
"wikimedia/client-es6",
"wikimedia/jquery",
"wikimedia/mediawiki"
],
"env": {
"browser": true
},
"globals": {
"videojs": true
},
"parserOptions": {
"sourceType": "module"
},
"rules": {
"jsdoc/no-undefined-types": "off",
"no-restricted-properties": "warn",
"compat/compat": "warn",
"es-x/no-array-prototype-fill": "warn"
},
"overrides": [
{
"files": [
"i18n/*"
],
"rules": { "security/detect-bidi-characters": "off" }
}
"wikimedia/server"
]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/vendor/
/composer.lock
.eslintcache
/.stylelintcache
6 changes: 6 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# See: https://git-scm.com/docs/git-shortlog#_mapping_authors
#
Brooke Vibber <bvibber@wikimedia.org>
Brooke Vibber <bvibber@wikimedia.org> <brion@wikimedia.org>
Brooke Vibber <bvibber@wikimedia.org> <brion@pobox.com>
Brooke Vibber <bvibber@wikimedia.org> <brion@users.mediawiki.org>
7 changes: 0 additions & 7 deletions .phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,4 @@
'pcntl' => $IP . '/.phan/internal_stubs/pcntl.phan_php',
];

$cfg['exclude_analysis_directory_list'] = array_merge(
$cfg['exclude_analysis_directory_list'],
[
'includes/Handlers/OggHandler/File_Ogg',
]
);

return $cfg;
4 changes: 1 addition & 3 deletions .phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?xml version="1.0"?>
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="MediaWiki.Usage.ForbiddenFunctions.exec" />
</rule>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
<file>.</file>
<arg name="extensions" value="php"/>
<arg name="encoding" value="UTF-8"/>
Expand Down
2 changes: 2 additions & 0 deletions .svgo.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* https://www.mediawiki.org/wiki/Manual:Coding_conventions/SVG#Exemplified_safe_configuration
*/

'use strict';

module.exports = {
plugins: [
{
Expand Down
49 changes: 8 additions & 41 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* eslint-env node, es6 */
'use strict';

module.exports = function ( grunt ) {
const conf = grunt.file.readJSON( 'extension.json' );

grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-contrib-copy' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-exec' );
grunt.loadNpmTasks( 'grunt-patcher' );
Expand All @@ -12,15 +12,20 @@ module.exports = function ( grunt ) {
grunt.initConfig( {
eslint: {
options: {
cache: true
cache: true,
fix: grunt.option( 'fix' )
},
all: '.'
},
stylelint: {
options: {
cache: true
},
all: [
'**/*.{css,less}',
'!resources/mw-info-button/**',
// Third party resources
'!resources/lib/**',
'!resources/videojs*/**',
'!node_modules/**',
'!vendor/**'
Expand All @@ -31,47 +36,9 @@ module.exports = function ( grunt ) {
requireLowerCase: false
},
all: conf.MessagesDirs.TimedMediaHandler
},
copy: {
'ogv.js': {
expand: true,
cwd: 'node_modules/ogv/dist/',
src: [
'**'
],
dest: 'resources/ogv.js/'
},
'video.js': {
expand: true,
cwd: 'node_modules/video.js/dist/',
src: [
'**',
'!video.js',
'!alt/video.core.js',
'!alt/video.debug.js',
'!alt/*.css',
'!alt/*.novtt.js',
'!alt/*.novtt.min.js',
'!examples/**',
'!font/**',
'!types/**',
'!*.zip',
'!*.swf',
'!lang/*.json',
'!*.min.js',
'!**/*.min.css',
'!**/*.js.map',
'!**/*.cjs.js',
'!**/*.es.js',
'!ie8/**'
],
dest: 'resources/videojs/'
}
}
} );

grunt.registerTask( 'update-videojs', [ 'copy:video.js' ] );
grunt.registerTask( 'update-ogvjs', [ 'copy:ogv.js' ] );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,20 @@ sometimes hours, which prevents that processing to be handled as a web service.
Instead, the extension implements an asynchronous job, named webVideoTranscode,
which you must be running regularly as your web server user.

The job can be run using the MediaWiki `maintenance/runJobs.php` utility (do not
The job can be run using the MediaWiki `maintenance/run.php` utility (do not
forget to su as a webserver user):

```
php runJobs.php --type webVideoTranscode --maxjobs 1
php runJobs.php --type webVideoTranscodePrioritized --maxjobs 1
php run.php runJobs --type webVideoTranscode --maxjobs 1
php run.php runJobs --type webVideoTranscodePrioritized --maxjobs 1
```

Exclude these jobs from the default tasks your webserver executes
by setting the following options in your `LocalSettings.php`.

```
$wgJobTypesExcludedFromDefaultQueue[] = 'webVideoTranscode';
$wgJobTypesExcludedFromDefaultQueue[] = 'webVideoTranscodePrioritized';
```

## Included software or dependencies
Expand All @@ -96,14 +104,14 @@ Video.js code is released under the Apache 2.0 License:
http://www.apache.org/licenses/LICENSE-2.0

### Ogv.js decoder
Brion Vibber, a Wikimedia developer, created the JavaScript
Brooke Vibber, a Wikimedia developer, created the JavaScript
compatibility shim Ogv.js. It is a software decoding
library for the file formats Ogg and WebM and the Vorbis,
Theora, VP8 and VP9 codecs. It allows web browser without native
HTML5 video support like iOS to support these formats.

For more information about ogv.js visit:
https://github.com/brion/ogv.js/
https://github.com/bvibber/ogv.js/

Ogv.js code is released under the MIT license:
https://opensource.org/licenses/MIT
Expand Down
21 changes: 10 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
{
"repositories": [
{
"url": "https://github.com/wikimedia/getID3.git",
"type": "git"
}
],
"require": {
"wikimedia/getid3": "^v1.9.22"
"james-heinrich/getid3": "~1.9.25"
},
"require-dev": {
"mediawiki/mediawiki-codesniffer": "41.0.0",
"mediawiki/mediawiki-phan-config": "0.13.0",
"mediawiki/minus-x": "1.1.1",
"mediawiki/mediawiki-codesniffer": "48.0.0",
"mediawiki/mediawiki-phan-config": "0.17.0",
"mediawiki/minus-x": "1.1.3",
"php-parallel-lint/php-console-highlighter": "1.0.0",
"php-parallel-lint/php-parallel-lint": "1.3.2"
"php-parallel-lint/php-parallel-lint": "1.4.0"
},
"scripts": {
"test": [
Expand All @@ -27,5 +21,10 @@
],
"phan": "phan -d . --long-progress-bar",
"phpcs": "phpcs -sp --cache"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
Loading