2019-09-04 17:49:22 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
|
2020-09-18 20:16:18 +00:00
|
|
|
# MediaWiki skin LESS variables, defaults in core, we're using Vector's skin.variables.
|
2023-03-30 22:29:56 +00:00
|
|
|
curl -sSL "https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/master/resources/src/mediawiki.less/mediawiki.skin.defaults.less?format=TEXT" | base64 --decode > .storybook/mocks/mediawiki.skin.defaults.less.tmp
|
2023-03-22 18:32:25 +00:00
|
|
|
curl -sSL "https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/skins/Vector/+/master/resources/mediawiki.less/vector-2022/mediawiki.skin.variables.less?format=TEXT" | base64 --decode > .storybook/mocks/mediawiki.skin.variables.less
|
2023-06-30 06:19:00 +00:00
|
|
|
curl -sSL "https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/master/resources/lib/codex-design-tokens/theme-wikimedia-ui.less?format=TEXT" | base64 --decode > .storybook/mocks/mediawiki.skin.codex-design-tokens/theme-wikimedia-ui.less
|
2023-03-22 18:32:25 +00:00
|
|
|
curl -sSL "https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/master/resources/lib/codex-design-tokens/theme-wikimedia-ui-legacy.less?format=TEXT" | base64 --decode > .storybook/mocks/mediawiki.skin.codex-design-tokens/theme-wikimedia-ui-legacy.less
|
2023-03-30 22:29:56 +00:00
|
|
|
sed "s/..\/..\/lib\/codex/@wikimedia\/codex/g" .storybook/mocks/mediawiki.skin.defaults.less.tmp > .storybook/mocks/mediawiki.skin.defaults.less
|
2020-09-18 20:16:18 +00:00
|
|
|
|
|
|
|
# MediaWiki LESS mixins
|
2019-09-04 17:49:22 +00:00
|
|
|
curl https://raw.githubusercontent.com/wikimedia/mediawiki/master/resources/src/mediawiki.less/mediawiki.mixins.less -o .storybook/mocks/mediawiki.mixins.less
|
2020-09-18 20:16:18 +00:00
|
|
|
|
2020-10-27 16:34:01 +00:00
|
|
|
# OOUI/WikimediaUI theme icons
|
2023-09-01 16:24:11 +00:00
|
|
|
curl "https://en.wikipedia.org/w/load.php?modules=ext.popups.images&only=styles&debug=true" -o .storybook/mocks/production-icons.less
|