saby-customizer 0.0.1 → 0.0.2

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.
@@ -802,7 +802,7 @@ toolbar.addButton({
802
802
 
803
803
  toolbar.addButton({
804
804
  position: 'top',
805
- filter: { names: ['Ошибка', 'Задача'] },
805
+ filter: { names: ['Ошибка', 'Задача', 'ЗадачаДок'] },
806
806
  title: 'Скопировать имя ветки для Git',
807
807
  iconSVG: octicons['git-branch'].toSVG({ width: 18 }),
808
808
  onclick: card => {
@@ -815,7 +815,7 @@ toolbar.addButton({
815
815
  })
816
816
  toolbar.addButton({
817
817
  position: 'top',
818
- filter: { names: ['Ошибка', 'Задача'] },
818
+ filter: { names: ['Ошибка', 'Задача', 'ЗадачаДок'] },
819
819
  title: 'Скопировать описание для Git коммита',
820
820
  iconSVG: octicons['git-commit'].toSVG({ width: 18 }),
821
821
  onclick: card => {
@@ -830,10 +830,11 @@ toolbar.addButton({
830
830
  position: 'top',
831
831
  filter: { names: ['Merge request'] },
832
832
  title: 'Открыть ветки для Review кода',
833
- iconSVG: octicons['codescan'].toSVG({ width: 18 }),
833
+ iconSVG: octicons.codescan.toSVG({ width: 18 }),
834
834
  onclick: card => {
835
835
  const links = []
836
836
  const view = card.element.querySelector('.fed2-DocumentPrint__content-view')?.shadowRoot
837
+
837
838
  if (view) {
838
839
  const rows = Array.from(view.querySelectorAll('.git_row'))
839
840
  const rc = `div[title="rc-${card.data.version}"]`
@@ -853,7 +854,7 @@ toolbar.addButton({
853
854
  window.open(link, '_blank')
854
855
  }
855
856
  } else {
856
- snackbar.show(`Не удалось найти ветки для Review кода`)
857
+ snackbar.show('Не удалось найти ветки для Review кода')
857
858
  }
858
859
  }
859
860
  })
@@ -1,13 +1,14 @@
1
1
  const replaceDocTypeName = {
2
2
  'Error': 'Ошибка',
3
3
  'Task to Development': 'Задача',
4
- 'Задача в разработку': 'Задача'
4
+ 'Задача в разработку': 'Задача',
5
+ 'Изменение документации разработки': 'ЗадачаДок',
6
+ 'Изменение документации': 'ЗадачаДок'
5
7
  }
6
8
 
7
9
 
8
10
  /**
9
11
  * Приведение даты к формату
10
- *
11
12
  * @param {Date} date Дата
12
13
  * @returns {string} dd.mm.yy
13
14
  */
@@ -19,12 +20,13 @@ function getStrDate(date) {
19
20
 
20
21
  return d + '.' + m + '.' + y
21
22
  }
23
+
24
+ return ''
22
25
  }
23
26
 
24
27
 
25
28
  /**
26
29
  * Разбирает формат RichEditor и приводить в нестилизированный текст
27
- *
28
30
  * @param {*} json Объет с RichEditorJSON
29
31
  * @returns {string} Тексто документа
30
32
  */
@@ -103,7 +105,6 @@ function parseRichEditorJSON(json) {
103
105
  */
104
106
  /**
105
107
  * Собирает из верстки страницы список открытых в данный момент карточек документов ЭДО
106
- *
107
108
  * @param {OpenCardsFilter} [filter] Параметры фильтрации документов
108
109
  * @returns {Array<Card>} Список открытых карточке документов
109
110
  */
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "repository": "github:saby-customizer/saby-customizer.github.io",
11
11
  "license": "Unlicense",
12
- "version": "0.0.1",
12
+ "version": "0.0.2",
13
13
  "type": "module",
14
14
  "main": "./userscript.js",
15
15
  "exports": {