@glissandoo/lib 1.16.5 → 1.16.7
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/lang/ca.json +5 -0
- package/lang/de.json +5 -0
- package/lang/en.json +5 -0
- package/lang/es.json +5 -0
- package/lang/eu.json +5 -0
- package/lang/gl.json +5 -0
- package/lang/index.d.ts +35 -0
- package/lang/pt.json +5 -0
- package/models/Group/Repertory/index.d.ts +7 -5
- package/models/Group/Repertory/index.js +6 -4
- package/models/Group/Repertory/types.d.ts +1 -1
- package/models/Group/index.d.ts +1 -0
- package/models/Group/index.js +6 -0
- package/models/Group/types.d.ts +7 -0
- package/models/Group/types.js +9 -1
- package/package.json +2 -2
package/lang/ca.json
CHANGED
|
@@ -213,6 +213,11 @@
|
|
|
213
213
|
"practices.players.add.title": "Nous assajos",
|
|
214
214
|
"practices.players.remove.text": "Us han eliminat d'una sèrie d'assajos entre {date:event.0.datetime:shortDate} i {date:event.1.datetime:shortDate}",
|
|
215
215
|
"practices.players.remove.title": "Assajos eliminats",
|
|
216
|
+
"repertoireTags.1": "1st",
|
|
217
|
+
"repertoireTags.2": "2nd",
|
|
218
|
+
"repertoireTags.3": "3rd",
|
|
219
|
+
"repertoireTags.4": "4th",
|
|
220
|
+
"repertoireTags.principal": "Principal",
|
|
216
221
|
"sections.all": "All",
|
|
217
222
|
"theme.claim.new.text": "{string:user.0.displayName} ha reclamat la partitura de {instrument:extra.instrumentId} de l'obra \"{string:extra.title}\"",
|
|
218
223
|
"theme.claim.new.title": "Han demanat una partitura",
|
package/lang/de.json
CHANGED
|
@@ -213,6 +213,11 @@
|
|
|
213
213
|
"practices.players.add.title": "Neue Proben",
|
|
214
214
|
"practices.players.remove.text": "Du wurdest aus einer Reihe von Proben von {date:event.0.datetime:shortDate} bis {date:event.1.datetime:shortDate} entfernt.",
|
|
215
215
|
"practices.players.remove.title": "Die Proben wurden entfernt",
|
|
216
|
+
"repertoireTags.1": "1st",
|
|
217
|
+
"repertoireTags.2": "2nd",
|
|
218
|
+
"repertoireTags.3": "3rd",
|
|
219
|
+
"repertoireTags.4": "4th",
|
|
220
|
+
"repertoireTags.principal": "Principal",
|
|
216
221
|
"sections.all": "All",
|
|
217
222
|
"theme.claim.new.text": "{string:user.0.displayName} beanspruchte die Noten \nvon {instrument:extra.instrumentld} des Stücks \"{string:extra.title}“",
|
|
218
223
|
"theme.claim.new.title": "Noten wurden angefordert",
|
package/lang/en.json
CHANGED
|
@@ -213,6 +213,11 @@
|
|
|
213
213
|
"practices.players.add.title": "New rehearsals",
|
|
214
214
|
"practices.players.remove.text": "You have been removed from several rehearsals between {date:event.0.datetime:shortDate} and {date:event.1.datetime:shortDate}",
|
|
215
215
|
"practices.players.remove.title": "Rehearsals removed",
|
|
216
|
+
"repertoireTags.1": "1st",
|
|
217
|
+
"repertoireTags.2": "2nd",
|
|
218
|
+
"repertoireTags.3": "3rd",
|
|
219
|
+
"repertoireTags.4": "4th",
|
|
220
|
+
"repertoireTags.principal": "Principal",
|
|
216
221
|
"sections.all": "All",
|
|
217
222
|
"theme.claim.new.text": "{string:user.0.displayName} has claimed a review on {instrument:extra.instrumentId} for \"{string:extra.title}\"",
|
|
218
223
|
"theme.claim.new.title": "A music sheet review has been submitted by a musician",
|
package/lang/es.json
CHANGED
|
@@ -213,6 +213,11 @@
|
|
|
213
213
|
"practices.players.add.title": "Nuevos ensayos",
|
|
214
214
|
"practices.players.remove.text": "Has sido eliminado de una serie de ensayos entre {date:event.0.datetime:shortDate} y {date:event.1.datetime:shortDate}",
|
|
215
215
|
"practices.players.remove.title": "Ensayos eliminados",
|
|
216
|
+
"repertoireTags.1": "1st",
|
|
217
|
+
"repertoireTags.2": "2nd",
|
|
218
|
+
"repertoireTags.3": "3rd",
|
|
219
|
+
"repertoireTags.4": "4th",
|
|
220
|
+
"repertoireTags.principal": "Principal",
|
|
216
221
|
"sections.all": "All",
|
|
217
222
|
"theme.claim.new.text": "{string:user.0.displayName} ha reclamado la partitura de {instrument:extra.instrumentId} de la obra \"{string:extra.title}\"",
|
|
218
223
|
"theme.claim.new.title": "Han pedido una partitura",
|
package/lang/eu.json
CHANGED
|
@@ -213,6 +213,11 @@
|
|
|
213
213
|
"practices.players.add.title": "Entsegu berriak",
|
|
214
214
|
"practices.players.remove.text": "{date:event.0.datetime:shortDate} eta {date:event.1.datetime:shortDate} egunen arteko entsegu batzuetatik ezabatua izan zara",
|
|
215
215
|
"practices.players.remove.title": "Bertan behera utzi diren entseguak",
|
|
216
|
+
"repertoireTags.1": "1st",
|
|
217
|
+
"repertoireTags.2": "2nd",
|
|
218
|
+
"repertoireTags.3": "3rd",
|
|
219
|
+
"repertoireTags.4": "4th",
|
|
220
|
+
"repertoireTags.principal": "Principal",
|
|
216
221
|
"sections.all": "All",
|
|
217
222
|
"theme.claim.new.text": "{string:user.0.displayName} erabiltzaileak \"{string:extra.title}\" obrako {instrument:extra.instrumentId} instrumentuaren partitura eskatu du",
|
|
218
223
|
"theme.claim.new.title": "Partitura bat eskatu da",
|
package/lang/gl.json
CHANGED
|
@@ -213,6 +213,11 @@
|
|
|
213
213
|
"practices.players.add.title": "Novas probas",
|
|
214
214
|
"practices.players.remove.text": "Elimináronte dunha serie de ensaios entre {date:event.0.datetime:shortDate} e {date:event.1.datetime:shortDate}",
|
|
215
215
|
"practices.players.remove.title": "Quitáronse os ensaios",
|
|
216
|
+
"repertoireTags.1": "1st",
|
|
217
|
+
"repertoireTags.2": "2nd",
|
|
218
|
+
"repertoireTags.3": "3rd",
|
|
219
|
+
"repertoireTags.4": "4th",
|
|
220
|
+
"repertoireTags.principal": "Principal",
|
|
216
221
|
"sections.all": "All",
|
|
217
222
|
"theme.claim.new.text": "{string:user.0.displayName} ha reclamado la partitura de {instrument:extra.instrument} de la obra \"{string:extra.title}\"",
|
|
218
223
|
"theme.claim.new.title": "Han pedido una partitura",
|
package/lang/index.d.ts
CHANGED
|
@@ -227,6 +227,11 @@ declare const languageProvider: {
|
|
|
227
227
|
"practices.players.add.title": string;
|
|
228
228
|
"practices.players.remove.text": string;
|
|
229
229
|
"practices.players.remove.title": string;
|
|
230
|
+
"repertoireTags.1": string;
|
|
231
|
+
"repertoireTags.2": string;
|
|
232
|
+
"repertoireTags.3": string;
|
|
233
|
+
"repertoireTags.4": string;
|
|
234
|
+
"repertoireTags.principal": string;
|
|
230
235
|
"sections.all": string;
|
|
231
236
|
"theme.claim.new.text": string;
|
|
232
237
|
"theme.claim.new.title": string;
|
|
@@ -459,6 +464,11 @@ declare const languageProvider: {
|
|
|
459
464
|
"practices.players.add.title": string;
|
|
460
465
|
"practices.players.remove.text": string;
|
|
461
466
|
"practices.players.remove.title": string;
|
|
467
|
+
"repertoireTags.1": string;
|
|
468
|
+
"repertoireTags.2": string;
|
|
469
|
+
"repertoireTags.3": string;
|
|
470
|
+
"repertoireTags.4": string;
|
|
471
|
+
"repertoireTags.principal": string;
|
|
462
472
|
"sections.all": string;
|
|
463
473
|
"theme.claim.new.text": string;
|
|
464
474
|
"theme.claim.new.title": string;
|
|
@@ -691,6 +701,11 @@ declare const languageProvider: {
|
|
|
691
701
|
"practices.players.add.title": string;
|
|
692
702
|
"practices.players.remove.text": string;
|
|
693
703
|
"practices.players.remove.title": string;
|
|
704
|
+
"repertoireTags.1": string;
|
|
705
|
+
"repertoireTags.2": string;
|
|
706
|
+
"repertoireTags.3": string;
|
|
707
|
+
"repertoireTags.4": string;
|
|
708
|
+
"repertoireTags.principal": string;
|
|
694
709
|
"sections.all": string;
|
|
695
710
|
"theme.claim.new.text": string;
|
|
696
711
|
"theme.claim.new.title": string;
|
|
@@ -923,6 +938,11 @@ declare const languageProvider: {
|
|
|
923
938
|
"practices.players.add.title": string;
|
|
924
939
|
"practices.players.remove.text": string;
|
|
925
940
|
"practices.players.remove.title": string;
|
|
941
|
+
"repertoireTags.1": string;
|
|
942
|
+
"repertoireTags.2": string;
|
|
943
|
+
"repertoireTags.3": string;
|
|
944
|
+
"repertoireTags.4": string;
|
|
945
|
+
"repertoireTags.principal": string;
|
|
926
946
|
"sections.all": string;
|
|
927
947
|
"theme.claim.new.text": string;
|
|
928
948
|
"theme.claim.new.title": string;
|
|
@@ -1155,6 +1175,11 @@ declare const languageProvider: {
|
|
|
1155
1175
|
"practices.players.add.title": string;
|
|
1156
1176
|
"practices.players.remove.text": string;
|
|
1157
1177
|
"practices.players.remove.title": string;
|
|
1178
|
+
"repertoireTags.1": string;
|
|
1179
|
+
"repertoireTags.2": string;
|
|
1180
|
+
"repertoireTags.3": string;
|
|
1181
|
+
"repertoireTags.4": string;
|
|
1182
|
+
"repertoireTags.principal": string;
|
|
1158
1183
|
"sections.all": string;
|
|
1159
1184
|
"theme.claim.new.text": string;
|
|
1160
1185
|
"theme.claim.new.title": string;
|
|
@@ -1387,6 +1412,11 @@ declare const languageProvider: {
|
|
|
1387
1412
|
"practices.players.add.title": string;
|
|
1388
1413
|
"practices.players.remove.text": string;
|
|
1389
1414
|
"practices.players.remove.title": string;
|
|
1415
|
+
"repertoireTags.1": string;
|
|
1416
|
+
"repertoireTags.2": string;
|
|
1417
|
+
"repertoireTags.3": string;
|
|
1418
|
+
"repertoireTags.4": string;
|
|
1419
|
+
"repertoireTags.principal": string;
|
|
1390
1420
|
"sections.all": string;
|
|
1391
1421
|
"theme.claim.new.text": string;
|
|
1392
1422
|
"theme.claim.new.title": string;
|
|
@@ -1619,6 +1649,11 @@ declare const languageProvider: {
|
|
|
1619
1649
|
"practices.players.add.title": string;
|
|
1620
1650
|
"practices.players.remove.text": string;
|
|
1621
1651
|
"practices.players.remove.title": string;
|
|
1652
|
+
"repertoireTags.1": string;
|
|
1653
|
+
"repertoireTags.2": string;
|
|
1654
|
+
"repertoireTags.3": string;
|
|
1655
|
+
"repertoireTags.4": string;
|
|
1656
|
+
"repertoireTags.principal": string;
|
|
1622
1657
|
"sections.all": string;
|
|
1623
1658
|
"theme.claim.new.text": string;
|
|
1624
1659
|
"theme.claim.new.title": string;
|
package/lang/pt.json
CHANGED
|
@@ -213,6 +213,11 @@
|
|
|
213
213
|
"practices.players.add.title": "Novos ensaios",
|
|
214
214
|
"practices.players.remove.text": "Você foi removido de vários ensaios entre {date:event.0.datetime:shortDate} e {date:event.1.datetime:shortDate}",
|
|
215
215
|
"practices.players.remove.title": "Ensaios removidos",
|
|
216
|
+
"repertoireTags.1": "1st",
|
|
217
|
+
"repertoireTags.2": "2nd",
|
|
218
|
+
"repertoireTags.3": "3rd",
|
|
219
|
+
"repertoireTags.4": "4th",
|
|
220
|
+
"repertoireTags.principal": "Principal",
|
|
216
221
|
"sections.all": "All",
|
|
217
222
|
"theme.claim.new.text": "{string:user.0.displayName} uma revisão em {instrument:extra.instrumentId} para “{string:extra.title}”",
|
|
218
223
|
"theme.claim.new.title": "Uma revisão da partitura foi enviada por um músico",
|
|
@@ -20,11 +20,13 @@ export default class GroupRepertory extends Theme<GroupRepertoryData> {
|
|
|
20
20
|
get fileList(): (import("./types").GroupRepertoireFile & {
|
|
21
21
|
id: string;
|
|
22
22
|
})[];
|
|
23
|
-
get
|
|
24
|
-
get
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
get sectionIds(): FileSectionId[];
|
|
24
|
+
get filesPath(): Partial<Record<FileSectionId, import("./types").GroupRepertoireFilePathItem[]>>;
|
|
25
|
+
get filesPathList(): {
|
|
26
|
+
path: string;
|
|
27
|
+
tag: string | null;
|
|
28
|
+
sectionId: FileSectionId;
|
|
29
|
+
}[];
|
|
28
30
|
/** @deprecated use sections */
|
|
29
31
|
get mainFilePath(): string | null;
|
|
30
32
|
get visibility(): GroupRepertoireVisibility;
|
|
@@ -39,14 +39,16 @@ class GroupRepertory extends basic_1.default {
|
|
|
39
39
|
get fileList() {
|
|
40
40
|
return utils_1.objToArray(this.files);
|
|
41
41
|
}
|
|
42
|
+
get sectionIds() {
|
|
43
|
+
return lodash_1.uniq(this.fileList.map((file) => Object.keys(file.sections)).flat());
|
|
44
|
+
}
|
|
42
45
|
get filesPath() {
|
|
43
46
|
return this.data.filesPath || {};
|
|
44
47
|
}
|
|
45
48
|
get filesPathList() {
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return lodash_1.uniq(lodash_1.flatten(this.fileList.map((file) => Object.keys(file.sections))));
|
|
49
|
+
return Object.entries(this.filesPath)
|
|
50
|
+
.map(([sectionId, files]) => (files || []).map((file) => ({ sectionId: sectionId, ...file })))
|
|
51
|
+
.flat();
|
|
50
52
|
}
|
|
51
53
|
/** @deprecated use sections */
|
|
52
54
|
get mainFilePath() {
|
|
@@ -68,7 +68,7 @@ export interface GroupRepertoryData extends ThemeBasicData {
|
|
|
68
68
|
/** @deprecated */
|
|
69
69
|
identifyAt: Timestamp | null;
|
|
70
70
|
files: Record<string, GroupRepertoireFile>;
|
|
71
|
-
filesPath: Record<FileSectionId, GroupRepertoireFilePathItem[]
|
|
71
|
+
filesPath: Partial<Record<FileSectionId, GroupRepertoireFilePathItem[]>>;
|
|
72
72
|
votes: Record<string, number>;
|
|
73
73
|
thumbnailURL: string | null;
|
|
74
74
|
editedAt: Timestamp | null;
|
package/models/Group/index.d.ts
CHANGED
package/models/Group/index.js
CHANGED
|
@@ -168,5 +168,11 @@ class Group extends basic_1.default {
|
|
|
168
168
|
get repertoireTagsList() {
|
|
169
169
|
return utils_1.objToArray(this.repertoireTags);
|
|
170
170
|
}
|
|
171
|
+
getRepertoireTagName(id) {
|
|
172
|
+
if (!(id in this.repertoireTags))
|
|
173
|
+
return null;
|
|
174
|
+
const tag = this.repertoireTags[id];
|
|
175
|
+
return tag.default ? lang_1.getTranslation(tag.title, this.lang) : tag.title;
|
|
176
|
+
}
|
|
171
177
|
}
|
|
172
178
|
exports.default = Group;
|
package/models/Group/types.d.ts
CHANGED
|
@@ -66,6 +66,13 @@ export interface GroupBasicData extends GroupTinyData {
|
|
|
66
66
|
export declare enum GroupRepertoireTagReserved {
|
|
67
67
|
NoTag = "$noTag"
|
|
68
68
|
}
|
|
69
|
+
export declare enum GroupRepertoireTagDefault {
|
|
70
|
+
First = "repertoireTags.1",
|
|
71
|
+
Second = "repertoireTags.2",
|
|
72
|
+
Third = "repertoireTags.3",
|
|
73
|
+
Fourth = "repertoireTags.4",
|
|
74
|
+
Principal = "repertoireTags.principal"
|
|
75
|
+
}
|
|
69
76
|
export interface GroupRepertoireTag {
|
|
70
77
|
title: string;
|
|
71
78
|
default: boolean;
|
package/models/Group/types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GroupRepertoireTagReserved = exports.SocialNetwork = exports.GroupStatus = exports.GroupConfig = void 0;
|
|
3
|
+
exports.GroupRepertoireTagDefault = exports.GroupRepertoireTagReserved = exports.SocialNetwork = exports.GroupStatus = exports.GroupConfig = void 0;
|
|
4
4
|
var GroupConfig;
|
|
5
5
|
(function (GroupConfig) {
|
|
6
6
|
GroupConfig["IncludesMembersToEventsWhenJoined"] = "includesMembersToEventsWhenJoined";
|
|
@@ -23,3 +23,11 @@ var GroupRepertoireTagReserved;
|
|
|
23
23
|
(function (GroupRepertoireTagReserved) {
|
|
24
24
|
GroupRepertoireTagReserved["NoTag"] = "$noTag";
|
|
25
25
|
})(GroupRepertoireTagReserved = exports.GroupRepertoireTagReserved || (exports.GroupRepertoireTagReserved = {}));
|
|
26
|
+
var GroupRepertoireTagDefault;
|
|
27
|
+
(function (GroupRepertoireTagDefault) {
|
|
28
|
+
GroupRepertoireTagDefault["First"] = "repertoireTags.1";
|
|
29
|
+
GroupRepertoireTagDefault["Second"] = "repertoireTags.2";
|
|
30
|
+
GroupRepertoireTagDefault["Third"] = "repertoireTags.3";
|
|
31
|
+
GroupRepertoireTagDefault["Fourth"] = "repertoireTags.4";
|
|
32
|
+
GroupRepertoireTagDefault["Principal"] = "repertoireTags.principal";
|
|
33
|
+
})(GroupRepertoireTagDefault = exports.GroupRepertoireTagDefault || (exports.GroupRepertoireTagDefault = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glissandoo/lib",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.7",
|
|
4
4
|
"description": "Glissandoo library js",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"build": "tsc",
|
|
9
9
|
"build:watch": "tsc --watch",
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
-
"format": "prettier --write \"src/**/*.ts\"",
|
|
11
|
+
"format": "prettier --write \"src/**/*.ts\" \"src/lang/*.json\"",
|
|
12
12
|
"format:single": "prettier --write",
|
|
13
13
|
"lint": "eslint --ext .ts ./src",
|
|
14
14
|
"prepare": "rm -rf ./lib && npm run build",
|