corpushub-design-system 0.0.3 → 0.0.6

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.
Files changed (37) hide show
  1. package/dist/common/AppTable/styles.scss +6 -2
  2. package/dist/configs/Localization.js +2 -0
  3. package/dist/configs/localization/BackupTexts.d.ts +74 -0
  4. package/dist/configs/localization/BackupTexts.js +74 -0
  5. package/dist/configs/localization/CommentsTexts.d.ts +145 -145
  6. package/dist/configs/localization/CommentsTexts.js +145 -145
  7. package/dist/features/Backup/BackupCreate/BackupCreate.d.ts +11 -0
  8. package/dist/features/Backup/BackupCreate/BackupCreate.js +26 -0
  9. package/dist/features/Backup/BackupCreate/index.d.ts +2 -0
  10. package/dist/features/Backup/BackupCreate/index.js +2 -0
  11. package/dist/features/Backup/BackupCreate/style.scss +0 -0
  12. package/dist/features/Backup/BackupInfo/BackupInfo.d.ts +8 -0
  13. package/dist/features/Backup/BackupInfo/BackupInfo.js +36 -0
  14. package/dist/features/Backup/BackupInfo/index.d.ts +2 -0
  15. package/dist/features/Backup/BackupInfo/index.js +2 -0
  16. package/dist/features/Backup/BackupInfo/style.scss +23 -0
  17. package/dist/features/Backup/BackupRestore/BackupRestore.d.ts +7 -0
  18. package/dist/features/Backup/BackupRestore/BackupRestore.js +52 -0
  19. package/dist/features/Backup/BackupRestore/index.d.ts +3 -0
  20. package/dist/features/Backup/BackupRestore/index.js +2 -0
  21. package/dist/features/Backup/BackupRestore/style.scss +17 -0
  22. package/dist/features/Backup/BackupService.d.ts +18 -0
  23. package/dist/features/Backup/BackupService.js +39 -0
  24. package/dist/features/Backup/BackupTable/BackupSearchFilter.d.ts +5 -0
  25. package/dist/features/Backup/BackupTable/BackupSearchFilter.js +4 -0
  26. package/dist/features/Backup/BackupTable/BackupTable.d.ts +8 -0
  27. package/dist/features/Backup/BackupTable/BackupTable.js +121 -0
  28. package/dist/features/Backup/BackupTable/index.d.ts +4 -0
  29. package/dist/features/Backup/BackupTable/index.js +3 -0
  30. package/dist/features/Backup/BackupTable/style.scss +19 -0
  31. package/dist/features/Backup/index.d.ts +7 -0
  32. package/dist/features/Backup/index.js +4 -0
  33. package/dist/features/Backup/types/Backup.d.ts +14 -0
  34. package/dist/features/Backup/types/Backup.js +1 -0
  35. package/dist/features/index.d.ts +2 -0
  36. package/dist/features/index.js +1 -0
  37. package/package.json +1 -1
@@ -13,6 +13,10 @@
13
13
 
14
14
  .MuiTableCell-root {
15
15
  height: 42px;
16
+
17
+ &:last-child {
18
+ padding-right: 12px;
19
+ }
16
20
  }
17
21
 
18
22
  .MuiTableRow-root {
@@ -34,14 +38,14 @@
34
38
  .MuiTableCell-head {
35
39
  @include tag-medium-2;
36
40
  color: var(--text-primary);
37
- font-family: "Lora";
41
+ font-family: 'Lora';
38
42
  }
39
43
  }
40
44
 
41
45
  .MuiTableCell-body {
42
46
  @include label-medium-1;
43
47
  color: var(--text-primary);
44
- font-family: "Work Sans";
48
+ font-family: 'Work Sans';
45
49
  cursor: pointer;
46
50
  }
47
51
  }
@@ -1,6 +1,7 @@
1
1
  import i18n from "i18next";
2
2
  import languageDetector from "i18next-browser-languagedetector";
3
3
  import { initReactI18next } from "react-i18next";
4
+ import { BackupTexts } from "./localization/BackupTexts";
4
5
  import { BaseTexts } from "./localization/BaseTexts";
5
6
  import { CommentsTexts } from "./localization/CommentsTexts";
6
7
  import { CommonTexts } from "./localization/CommonTexts";
@@ -32,6 +33,7 @@ const CORE_NAMESPACES = {
32
33
  consent: ConsentTexts,
33
34
  };
34
35
  const FEATURE_NAMESPACES = {
36
+ backup: BackupTexts,
35
37
  comments: CommentsTexts,
36
38
  'conllu-graph': ConlluGraphTexts,
37
39
  'corpus-owner': CorpusOwnerTexts,
@@ -0,0 +1,74 @@
1
+ export declare const BackupTexts: {
2
+ en: {
3
+ 'label.title': string;
4
+ 'button.create': string;
5
+ 'placeholder.empty': string;
6
+ 'backup.field.filename': string;
7
+ 'backup.field.status': string;
8
+ 'backup.field.user.name': string;
9
+ 'backup.field.log': string;
10
+ 'backup.field.id': string;
11
+ 'backup.field.download': string;
12
+ 'backup.label.log': string;
13
+ 'backup.status.error': string;
14
+ 'backup.status.processing': string;
15
+ 'backup.status.finished': string;
16
+ 'modal.title': string;
17
+ 'modal.description': string;
18
+ 'modal.button.close': string;
19
+ 'modal.title.info': string;
20
+ 'modal.restore.title': string;
21
+ 'modal.restore.message.corpus': string;
22
+ 'modal.restore.message.lexicon': string;
23
+ 'modal.restore.message.parser': string;
24
+ 'modal.restore.confirm': string;
25
+ };
26
+ 'pt-BR': {
27
+ 'label.title': string;
28
+ 'button.create': string;
29
+ 'placeholder.empty': string;
30
+ 'backup.field.id': string;
31
+ 'backup.field.filename': string;
32
+ 'backup.field.user.name': string;
33
+ 'backup.field.status': string;
34
+ 'backup.field.download': string;
35
+ 'backup.field.log': string;
36
+ 'backup.label.log': string;
37
+ 'backup.status.error': string;
38
+ 'backup.status.processing': string;
39
+ 'backup.status.finished': string;
40
+ 'modal.title': string;
41
+ 'modal.description': string;
42
+ 'modal.button.close': string;
43
+ 'modal.title.info': string;
44
+ 'modal.restore.title': string;
45
+ 'modal.restore.message.corpus': string;
46
+ 'modal.restore.message.lexicon': string;
47
+ 'modal.restore.message.parser': string;
48
+ 'modal.restore.confirm': string;
49
+ };
50
+ it: {
51
+ 'label.title': string;
52
+ 'button.create': string;
53
+ 'placeholder.empty': string;
54
+ 'backup.field.filename': string;
55
+ 'backup.field.status': string;
56
+ 'backup.field.user.name': string;
57
+ 'backup.field.log': string;
58
+ 'backup.field.id': string;
59
+ 'backup.field.download': string;
60
+ 'backup.label.log': string;
61
+ 'backup.status.error': string;
62
+ 'backup.status.processing': string;
63
+ 'backup.status.finished': string;
64
+ 'modal.title': string;
65
+ 'modal.description': string;
66
+ 'modal.button.close': string;
67
+ 'modal.title.info': string;
68
+ 'modal.restore.title': string;
69
+ 'modal.restore.message.corpus': string;
70
+ 'modal.restore.message.lexicon': string;
71
+ 'modal.restore.message.parser': string;
72
+ 'modal.restore.confirm': string;
73
+ };
74
+ };
@@ -0,0 +1,74 @@
1
+ export const BackupTexts = {
2
+ en: {
3
+ 'label.title': 'Backups',
4
+ 'button.create': 'Create new',
5
+ 'placeholder.empty': 'No backups available',
6
+ 'backup.field.filename': 'File name',
7
+ 'backup.field.status': 'Status',
8
+ 'backup.field.user.name': 'User',
9
+ 'backup.field.log': 'Log',
10
+ 'backup.field.id': 'Date',
11
+ 'backup.field.download': 'Actions',
12
+ 'backup.label.log': 'Log',
13
+ 'backup.status.error': 'error',
14
+ 'backup.status.processing': 'processing',
15
+ 'backup.status.finished': 'finished',
16
+ 'modal.title': 'Create Backup',
17
+ 'modal.description': 'This action will generate a new backup. This process may take some time.',
18
+ 'modal.button.close': 'Close',
19
+ 'modal.title.info': 'Backup Information',
20
+ 'modal.restore.title': 'Confirm Restore',
21
+ 'modal.restore.message.corpus': 'This corpus is already present on the platform. All data will be overwritten.',
22
+ 'modal.restore.message.lexicon': 'This lexicon is already present on the platform. All data will be overwritten.',
23
+ 'modal.restore.message.parser': 'This parser is already present on the platform. All data will be overwritten.',
24
+ 'modal.restore.confirm': 'Are you sure you want to continue? This action is irreversible.',
25
+ },
26
+ 'pt-BR': {
27
+ 'label.title': 'Backups',
28
+ 'button.create': 'Criar novo',
29
+ 'placeholder.empty': 'Nenhum backup disponível',
30
+ 'backup.field.id': 'Data',
31
+ 'backup.field.filename': 'Nome do arquivo',
32
+ 'backup.field.user.name': 'Usuário',
33
+ 'backup.field.status': 'Status',
34
+ 'backup.field.download': 'Ações',
35
+ 'backup.field.log': 'Log',
36
+ 'backup.label.log': 'Log',
37
+ 'backup.status.error': 'erro',
38
+ 'backup.status.processing': 'processando',
39
+ 'backup.status.finished': 'concluído',
40
+ 'modal.title': 'Criar Backup',
41
+ 'modal.description': 'Esta ação irá gerar um novo backup. Esse processo pode levar algum tempo.',
42
+ 'modal.button.close': 'Fechar',
43
+ 'modal.title.info': 'Informações do Backup',
44
+ 'modal.restore.title': 'Confirmar Restauração',
45
+ 'modal.restore.message.corpus': 'Este corpus já está presente na plataforma. Todos os dados serão sobrescritos.',
46
+ 'modal.restore.message.lexicon': 'Este léxico já está presente na plataforma. Todos os dados serão sobrescritos.',
47
+ 'modal.restore.message.parser': 'Este parser já está presente na plataforma. Todos os dados serão sobrescritos.',
48
+ 'modal.restore.confirm': 'Tem certeza de que deseja continuar? Esta ação é irreversível.',
49
+ },
50
+ it: {
51
+ 'label.title': 'Backup',
52
+ 'button.create': 'Crea nuovo',
53
+ 'placeholder.empty': 'Nessun backup disponibile',
54
+ 'backup.field.filename': 'Nome del file',
55
+ 'backup.field.status': 'Stato',
56
+ 'backup.field.user.name': 'Utente',
57
+ 'backup.field.log': 'Log',
58
+ 'backup.field.id': 'Data',
59
+ 'backup.field.download': 'Azioni',
60
+ 'backup.label.log': 'Log',
61
+ 'backup.status.error': 'errore',
62
+ 'backup.status.processing': 'in elaborazione',
63
+ 'backup.status.finished': 'completato',
64
+ 'modal.title': 'Crea Backup',
65
+ 'modal.description': 'Questa azione genererà un nuovo backup. Questo processo potrebbe richiedere del tempo.',
66
+ 'modal.button.close': 'Chiudi',
67
+ 'modal.title.info': 'Informazioni sul Backup',
68
+ 'modal.restore.title': 'Conferma Ripristino',
69
+ 'modal.restore.message.corpus': 'Questo corpus è già presente sulla piattaforma. Tutti i dati verranno sovrascritti.',
70
+ 'modal.restore.message.lexicon': 'Questo lessico è già presente sulla piattaforma. Tutti i dati verranno sovrascritti.',
71
+ 'modal.restore.message.parser': 'Questo parser è già presente sulla piattaforma. Tutti i dati verranno sovrascritti.',
72
+ 'modal.restore.confirm': 'Sei sicuro di voler continuare? Questa azione è irreversibile.',
73
+ },
74
+ };
@@ -1,152 +1,152 @@
1
1
  export declare const CommentsTexts: {
2
2
  en: {
3
- "label.title.comments": string;
4
- "label.header.add": string;
5
- "placeholder.comment.text": string;
6
- "placeholder.comment.title": string;
7
- "placeholder.comment.person": string;
8
- "label.button.add": string;
9
- "label.button.update": string;
10
- "label.requested.to": string;
11
- "label.posted.on": string;
12
- "label.on": string;
13
- "placeholder.comments.empty": string;
14
- "tooltip.edit": string;
15
- "tooltip.delete": string;
16
- "tooltip.read": string;
17
- "tooltip.reply": string;
18
- "tooltip.resolve": string;
19
- "tooltip.details": string;
20
- "modal.title.details": string;
21
- "label.author": string;
22
- "label.edited.on": string;
23
- "label.read": string;
24
- "label.unread": string;
25
- "label.read.on": string;
26
- "label.requested": string;
27
- "modal.title.footnote": string;
28
- "placeholder.footnote.text": string;
29
- "modal.title.footnote.remove": string;
30
- "modal.text.footnote.remove": string;
31
- "button.add": string;
32
- "input.value": string;
33
- "input.title": string;
34
- "input.user": string;
35
- "input.user.reply": string;
36
- "button.discard": string;
37
- "notification.title": string;
38
- "notification.unread": string;
39
- "notification.all": string;
40
- "notification.empty": string;
41
- "notification.text": string;
42
- "label.edited": string;
43
- "label.resolved": string;
44
- "tab.write": string;
45
- "tab.preview": string;
46
- "placeholder.preview.empty": string;
47
- "menu.undock": string;
48
- "menu.dock.left": string;
49
- "menu.dock.bottom": string;
50
- "menu.dock.right": string;
3
+ 'label.title.comments': string;
4
+ 'label.header.add': string;
5
+ 'placeholder.comment.text': string;
6
+ 'placeholder.comment.title': string;
7
+ 'placeholder.comment.person': string;
8
+ 'label.button.add': string;
9
+ 'label.button.update': string;
10
+ 'label.requested.to': string;
11
+ 'label.posted.on': string;
12
+ 'label.on': string;
13
+ 'placeholder.comments.empty': string;
14
+ 'tooltip.edit': string;
15
+ 'tooltip.delete': string;
16
+ 'tooltip.read': string;
17
+ 'tooltip.reply': string;
18
+ 'tooltip.resolve': string;
19
+ 'tooltip.details': string;
20
+ 'modal.title.details': string;
21
+ 'label.author': string;
22
+ 'label.edited.on': string;
23
+ 'label.read': string;
24
+ 'label.unread': string;
25
+ 'label.read.on': string;
26
+ 'label.requested': string;
27
+ 'modal.title.footnote': string;
28
+ 'placeholder.footnote.text': string;
29
+ 'modal.title.footnote.remove': string;
30
+ 'modal.text.footnote.remove': string;
31
+ 'button.add': string;
32
+ 'input.value': string;
33
+ 'input.title': string;
34
+ 'input.user': string;
35
+ 'input.user.reply': string;
36
+ 'button.discard': string;
37
+ 'notification.title': string;
38
+ 'notification.unread': string;
39
+ 'notification.all': string;
40
+ 'notification.empty': string;
41
+ 'notification.text': string;
42
+ 'label.edited': string;
43
+ 'label.resolved': string;
44
+ 'tab.write': string;
45
+ 'tab.preview': string;
46
+ 'placeholder.preview.empty': string;
47
+ 'menu.undock': string;
48
+ 'menu.dock.left': string;
49
+ 'menu.dock.bottom': string;
50
+ 'menu.dock.right': string;
51
51
  };
52
- "pt-BR": {
53
- "label.title.comments": string;
54
- "label.header.add": string;
55
- "placeholder.comment.text": string;
56
- "placeholder.comment.title": string;
57
- "placeholder.comment.person": string;
58
- "label.button.add": string;
59
- "label.button.update": string;
60
- "label.requested.to": string;
61
- "label.posted.on": string;
62
- "label.on": string;
63
- "placeholder.comments.empty": string;
64
- "tooltip.edit": string;
65
- "tooltip.delete": string;
66
- "tooltip.read": string;
67
- "tooltip.reply": string;
68
- "tooltip.resolve": string;
69
- "tooltip.details": string;
70
- "modal.title.details": string;
71
- "label.author": string;
72
- "label.edited.on": string;
73
- "label.read": string;
74
- "label.unread": string;
75
- "label.read.on": string;
76
- "label.requested": string;
77
- "modal.title.footnote": string;
78
- "placeholder.footnote.text": string;
79
- "modal.title.footnote.remove": string;
80
- "modal.text.footnote.remove": string;
81
- "button.add": string;
82
- "input.value": string;
83
- "input.title": string;
84
- "input.user": string;
85
- "input.user.reply": string;
86
- "button.discard": string;
87
- "notification.title": string;
88
- "notification.unread": string;
89
- "notification.all": string;
90
- "notification.empty": string;
91
- "notification.text": string;
92
- "label.edited": string;
93
- "label.resolved": string;
94
- "tab.write": string;
95
- "tab.preview": string;
96
- "placeholder.preview.empty": string;
97
- "menu.undock": string;
98
- "menu.dock.left": string;
99
- "menu.dock.bottom": string;
100
- "menu.dock.right": string;
52
+ 'pt-BR': {
53
+ 'label.title.comments': string;
54
+ 'label.header.add': string;
55
+ 'placeholder.comment.text': string;
56
+ 'placeholder.comment.title': string;
57
+ 'placeholder.comment.person': string;
58
+ 'label.button.add': string;
59
+ 'label.button.update': string;
60
+ 'label.requested.to': string;
61
+ 'label.posted.on': string;
62
+ 'label.on': string;
63
+ 'placeholder.comments.empty': string;
64
+ 'tooltip.edit': string;
65
+ 'tooltip.delete': string;
66
+ 'tooltip.read': string;
67
+ 'tooltip.reply': string;
68
+ 'tooltip.resolve': string;
69
+ 'tooltip.details': string;
70
+ 'modal.title.details': string;
71
+ 'label.author': string;
72
+ 'label.edited.on': string;
73
+ 'label.read': string;
74
+ 'label.unread': string;
75
+ 'label.read.on': string;
76
+ 'label.requested': string;
77
+ 'modal.title.footnote': string;
78
+ 'placeholder.footnote.text': string;
79
+ 'modal.title.footnote.remove': string;
80
+ 'modal.text.footnote.remove': string;
81
+ 'button.add': string;
82
+ 'input.value': string;
83
+ 'input.title': string;
84
+ 'input.user': string;
85
+ 'input.user.reply': string;
86
+ 'button.discard': string;
87
+ 'notification.title': string;
88
+ 'notification.unread': string;
89
+ 'notification.all': string;
90
+ 'notification.empty': string;
91
+ 'notification.text': string;
92
+ 'label.edited': string;
93
+ 'label.resolved': string;
94
+ 'tab.write': string;
95
+ 'tab.preview': string;
96
+ 'placeholder.preview.empty': string;
97
+ 'menu.undock': string;
98
+ 'menu.dock.left': string;
99
+ 'menu.dock.bottom': string;
100
+ 'menu.dock.right': string;
101
101
  };
102
102
  it: {
103
- "label.title.comments": string;
104
- "label.header.add": string;
105
- "placeholder.comment.text": string;
106
- "placeholder.comment.title": string;
107
- "placeholder.comment.person": string;
108
- "label.button.add": string;
109
- "label.button.update": string;
110
- "label.requested.to": string;
111
- "label.posted.on": string;
112
- "label.on": string;
113
- "placeholder.comments.empty": string;
114
- "tooltip.edit": string;
115
- "tooltip.delete": string;
116
- "tooltip.read": string;
117
- "tooltip.reply": string;
118
- "tooltip.resolve": string;
119
- "tooltip.details": string;
120
- "modal.title.details": string;
121
- "label.author": string;
122
- "label.edited.on": string;
123
- "label.read": string;
124
- "label.unread": string;
125
- "label.read.on": string;
126
- "label.requested": string;
127
- "modal.title.footnote": string;
128
- "placeholder.footnote.text": string;
129
- "modal.title.footnote.remove": string;
130
- "modal.text.footnote.remove": string;
131
- "button.add": string;
132
- "input.value": string;
133
- "input.title": string;
134
- "input.user": string;
135
- "input.user.reply": string;
136
- "button.discard": string;
137
- "notification.title": string;
138
- "notification.unread": string;
139
- "notification.all": string;
140
- "notification.empty": string;
141
- "notification.text": string;
142
- "label.edited": string;
143
- "label.resolved": string;
144
- "tab.write": string;
145
- "tab.preview": string;
146
- "placeholder.preview.empty": string;
147
- "menu.undock": string;
148
- "menu.dock.left": string;
149
- "menu.dock.bottom": string;
150
- "menu.dock.right": string;
103
+ 'label.title.comments': string;
104
+ 'label.header.add': string;
105
+ 'placeholder.comment.text': string;
106
+ 'placeholder.comment.title': string;
107
+ 'placeholder.comment.person': string;
108
+ 'label.button.add': string;
109
+ 'label.button.update': string;
110
+ 'label.requested.to': string;
111
+ 'label.posted.on': string;
112
+ 'label.on': string;
113
+ 'placeholder.comments.empty': string;
114
+ 'tooltip.edit': string;
115
+ 'tooltip.delete': string;
116
+ 'tooltip.read': string;
117
+ 'tooltip.reply': string;
118
+ 'tooltip.resolve': string;
119
+ 'tooltip.details': string;
120
+ 'modal.title.details': string;
121
+ 'label.author': string;
122
+ 'label.edited.on': string;
123
+ 'label.read': string;
124
+ 'label.unread': string;
125
+ 'label.read.on': string;
126
+ 'label.requested': string;
127
+ 'modal.title.footnote': string;
128
+ 'placeholder.footnote.text': string;
129
+ 'modal.title.footnote.remove': string;
130
+ 'modal.text.footnote.remove': string;
131
+ 'button.add': string;
132
+ 'input.value': string;
133
+ 'input.title': string;
134
+ 'input.user': string;
135
+ 'input.user.reply': string;
136
+ 'button.discard': string;
137
+ 'notification.title': string;
138
+ 'notification.unread': string;
139
+ 'notification.all': string;
140
+ 'notification.empty': string;
141
+ 'notification.text': string;
142
+ 'label.edited': string;
143
+ 'label.resolved': string;
144
+ 'tab.write': string;
145
+ 'tab.preview': string;
146
+ 'placeholder.preview.empty': string;
147
+ 'menu.undock': string;
148
+ 'menu.dock.left': string;
149
+ 'menu.dock.bottom': string;
150
+ 'menu.dock.right': string;
151
151
  };
152
152
  };