mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-13 17:57:06 +00:00
e8a403e342
* Following up on the work from Idf90ee2a0f1c1d08a31cf50099c0bebc7b67e619, this commit renames the storybook files/storybook names to their respective component name. e.g. personalNavigation.stories.js => PersonalMenu.stories.js Bug: T243281 Change-Id: I68054663c5a597f90a826b6f75bf399382dca609
63 lines
2.3 KiB
JavaScript
63 lines
2.3 KiB
JavaScript
import vectorMenuTemplate from '!!raw-loader!../includes/templates/VectorMenu.mustache';
|
|
import { htmluserlangattributes } from './utils';
|
|
|
|
export { vectorMenuTemplate };
|
|
|
|
export const moreData = {
|
|
'empty-portlet': '',
|
|
'msg-label': 'More',
|
|
'menu-id': 'p-cactions',
|
|
'menu-label-id': 'p-cactions-label',
|
|
'html-userlangattributes': htmluserlangattributes,
|
|
'html-items': `<li id="ca-delete">
|
|
<a href="/w/index.php?title=Main_Page&action=delete"
|
|
title="Delete this page [⌃⌥d]" accesskey="d">Delete</a>
|
|
</li>
|
|
<li id="ca-move">
|
|
<a href="/w/index.php/Special:MovePage/Main_Page"
|
|
title="Move this page [⌃⌥m]" accesskey="m">Move</a>
|
|
</li>
|
|
<li id="ca-protect">
|
|
<a href="/w/index.php?title=Main_Page&action=protect"
|
|
title="Protect this page [⌃⌥=]" accesskey="=">Protect</a>
|
|
</li>`
|
|
};
|
|
|
|
export const variantsData = {
|
|
'msg-label': '新加坡简体',
|
|
'menu-id': 'p-variants',
|
|
'menu-label-id': 'p-variants-label',
|
|
'html-userlangattributes': htmluserlangattributes,
|
|
'html-items': `<li id="ca-varlang-0">
|
|
<a href="/zh/%E4%B8%AD%E5%8D%8E%E4%BA%BA%E6%B0%91%E5%85%B1%E5%92%8C%E5%9B%BD"
|
|
hreflang="zh" lang="zh">不转换</a></li>
|
|
<li id="ca-varlang-1">
|
|
<a href="/zh-hans/%E4%B8%AD%E5%8D%8E%E4%BA%BA%E6%B0%91%E5%85%B1%E5%92%8C%E5%9B%BD"
|
|
hreflang="zh-Hans" lang="zh-Hans">简体</a>
|
|
</li>
|
|
<li id="ca-varlang-2">
|
|
<a href="/zh-hant/%E4%B8%AD%E5%8D%8E%E4%BA%BA%E6%B0%91%E5%85%B1%E5%92%8C%E5%9B%BD"
|
|
hreflang="zh-Hant" lang="zh-Hant">繁體</a>
|
|
</li>
|
|
<li id="ca-varlang-3">
|
|
<a href="/zh-cn/%E4%B8%AD%E5%8D%8E%E4%BA%BA%E6%B0%91%E5%85%B1%E5%92%8C%E5%9B%BD"
|
|
hreflang="zh-Hans-CN" lang="zh-Hans-CN">大陆简体</a>
|
|
</li>
|
|
<li id="ca-varlang-4">
|
|
<a href="/zh-hk/%E4%B8%AD%E5%8D%8E%E4%BA%BA%E6%B0%91%E5%85%B1%E5%92%8C%E5%9B%BD"
|
|
hreflang="zh-Hant-HK" lang="zh-Hant-HK">香港繁體</a>
|
|
</li>
|
|
<li id="ca-varlang-5">
|
|
<a href="/zh-mo/%E4%B8%AD%E5%8D%8E%E4%BA%BA%E6%B0%91%E5%85%B1%E5%92%8C%E5%9B%BD"
|
|
hreflang="zh-Hant-MO" lang="zh-Hant-MO">澳門繁體</a>
|
|
</li>
|
|
<li id="ca-varlang-7" class="selected">
|
|
<a href="/zh-sg/%E4%B8%AD%E5%8D%8E%E4%BA%BA%E6%B0%91%E5%85%B1%E5%92%8C%E5%9B%BD"
|
|
hreflang="zh-Hans-SG" lang="zh-Hans-SG">新加坡简体</a>
|
|
</li>
|
|
<li id="ca-varlang-8">
|
|
<a href="/zh-tw/%E4%B8%AD%E5%8D%8E%E4%BA%BA%E6%B0%91%E5%85%B1%E5%92%8C%E5%9B%BD"
|
|
hreflang="zh-Hant-TW" lang="zh-Hant-TW">臺灣正體</a>
|
|
</li>`
|
|
};
|