@bhsd/codemirror-mediawiki 2.15.5 → 2.16.0

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.
package/i18n/en.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.15.5",
2
+ "version": "2.16.0",
3
3
  "lang": "en",
4
4
  "i18n-failed": "Failed to fetch the translation file in $1.",
5
5
  "title": "CodeMirror Addons",
@@ -7,7 +7,7 @@
7
7
  "feedback": "Bug reports or suggestions are welcome at <a href=\"https://github.com/bhsd-harry/$1/issues\" target=\"_blank\">GitHub</a> .",
8
8
  "contentmodel": "Please indicate the content model:",
9
9
  "addon-allowMultipleSelections": "Allow multiple selections",
10
- "addon-autocompletion": "<span title=\"Ctrl-Space\">Autocompletion</span>",
10
+ "addon-autocompletion": "<span title=\"Shift-Enter\">Autocompletion</span>",
11
11
  "addon-bracketMatching": "Highlight matching/non-matching brackets",
12
12
  "addon-closeBrackets": "Auto-close brackets and quotes",
13
13
  "addon-codeFolding": "<span title=\"Ctrl-Shift-[ : fold\nCtrl-Shift-] : unfold\nCtrl-Alt-[ : fold all\nCtrl-Alt-] : unfold all\">Code folding</span>",
package/i18n/zh-hans.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.15.5",
2
+ "version": "2.16.0",
3
3
  "lang": "zh-hans",
4
4
  "i18n-failed": "获取 $1 的语言文件失败。",
5
5
  "title": "CodeMirror插件",
@@ -7,7 +7,7 @@
7
7
  "feedback": "欢迎将错误报告或是改进建议提交到 <a href=\"https://github.com/bhsd-harry/$1/issues\" target=\"_blank\">GitHub</a> !",
8
8
  "contentmodel": "请输入内容模型:",
9
9
  "addon-allowMultipleSelections": "允许选择多个片段",
10
- "addon-autocompletion": "<span title=\"Ctrl-Space\">自动填充</span>",
10
+ "addon-autocompletion": "<span title=\"Shift-Enter\">自动填充</span>",
11
11
  "addon-bracketMatching": "高亮显示匹配和未匹配的括号",
12
12
  "addon-closeBrackets": "自动闭合括号和引号",
13
13
  "addon-codeFolding": "<span title=\"Ctrl-Shift-[ : 折叠\nCtrl-Shift-] : 展开\nCtrl-Alt-[ : 折叠所有\nCtrl-Alt-] : 展开所有\">代码折叠</span>",
@@ -42,14 +42,14 @@
42
42
  "json-error": "JSON格式错误:$1",
43
43
  "phrase-Find": "查找",
44
44
  "phrase-next": "下一个",
45
- "phrase-previous": "前一个",
46
- "phrase-all": "所有",
45
+ "phrase-previous": "上一个",
46
+ "phrase-all": "全部",
47
47
  "phrase-match-case": "区分大小写",
48
48
  "phrase-regexp": "正则表达式",
49
- "phrase-by-word": "全字匹配",
49
+ "phrase-by-word": "逐字",
50
50
  "phrase-Replace": "替换",
51
51
  "phrase-replace": "替换",
52
- "phrase-replace-all": "替换所有",
52
+ "phrase-replace-all": "全部替换",
53
53
  "phrase-unfold": "展开",
54
54
  "phrase-Fold-line": "折叠行",
55
55
  "phrase-Unfold-line": "展开行",
package/i18n/zh-hant.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.15.5",
2
+ "version": "2.16.0",
3
3
  "lang": "zh-hant",
4
4
  "i18n-failed": "取得 $1 的語言檔案失敗。",
5
5
  "title": "CodeMirror外掛程式",
@@ -7,7 +7,7 @@
7
7
  "feedback": "歡迎將錯誤報告或是改進建議提交到 <a href=\"https://github.com/bhsd-harry/$1/issues\" target=\"_blank\">GitHub</a> !",
8
8
  "contentmodel": "請輸入內容模型:",
9
9
  "addon-allowMultipleSelections": "允許選擇多個片段",
10
- "addon-autocompletion": "<span title=\"Ctrl-Space\">自動填入</span>",
10
+ "addon-autocompletion": "<span title=\"Shift-Enter\">自動填入</span>",
11
11
  "addon-bracketMatching": "突出顯示匹配和未匹配的括號",
12
12
  "addon-closeBrackets": "自動閉合括號和引號",
13
13
  "addon-codeFolding": "<span title=\"Ctrl-Shift-[ : 摺疊\nCtrl-Shift-] : 展開\nCtrl-Alt-[ : 摺疊全部\nCtrl-Alt-] : 展開全部\">程式碼折疊</span>",
@@ -40,13 +40,13 @@
40
40
  "Stylelint-config": "JSON格式的Stylelint設定:",
41
41
  "and": "和",
42
42
  "json-error": "JSON格式錯誤:$1",
43
- "phrase-Find": "搜尋",
44
- "phrase-next": "下一筆",
45
- "phrase-previous": "前一筆",
43
+ "phrase-Find": "尋找",
44
+ "phrase-next": "下一個",
45
+ "phrase-previous": "上一個",
46
46
  "phrase-all": "全部",
47
- "phrase-match-case": "大小寫須相符",
48
- "phrase-regexp": "正規表示法",
49
- "phrase-by-word": "符合整個字詞",
47
+ "phrase-match-case": "區分大小寫",
48
+ "phrase-regexp": "正規表示式",
49
+ "phrase-by-word": "逐字",
50
50
  "phrase-Replace": "取代",
51
51
  "phrase-replace": "取代",
52
52
  "phrase-replace-all": "全部取代",
package/mediawiki.css CHANGED
@@ -1,6 +1,11 @@
1
1
  .cm-editor {
2
2
  background-color: #fff;
3
3
  }
4
+ .cm-search .cm-textfield,
5
+ .cm-search .cm-button,
6
+ .cm-panels > .cm-search.cm-panel label {
7
+ font-size: inherit;
8
+ }
4
9
  .cm-tooltip-fold {
5
10
  cursor: pointer;
6
11
  line-height: 1.2;
@@ -92,7 +97,7 @@
92
97
 
93
98
  /* miscellaneous */
94
99
  .cm-mw-skipformatting {
95
- background-color: #adf;
100
+ background-color: rgba(134, 206, 255, .3);
96
101
  }
97
102
  .cm-mw-redirect,
98
103
  .cm-mw-list {
@@ -104,7 +109,7 @@
104
109
  .cm-mw-hr {
105
110
  color: #0076dd;
106
111
  font-weight: bold;
107
- background-color: #eee;
112
+ background-color: rgba(0, 0, 0, .07);
108
113
  }
109
114
  .cm-mw-comment {
110
115
  color: #7b8c8f;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bhsd/codemirror-mediawiki",
3
- "version": "2.15.5",
3
+ "version": "2.16.0",
4
4
  "description": "Modified CodeMirror mode based on wikimedia/mediawiki-extensions-CodeMirror",
5
5
  "keywords": [
6
6
  "mediawiki",