mgtypes 1.0.88 → 1.0.90
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/package.json
CHANGED
package/types/Content.ts
CHANGED
|
@@ -16,6 +16,7 @@ export interface mgPost {
|
|
|
16
16
|
userVote?: mgVote;
|
|
17
17
|
indent?: number;
|
|
18
18
|
parent?: mgPost;
|
|
19
|
+
referencingContents: mgContentReference[];
|
|
19
20
|
pages?: {
|
|
20
21
|
feed:
|
|
21
22
|
| { main?: number; shared?: number; user?: number; friends?: number }
|
|
@@ -39,6 +40,19 @@ export interface mgThread {
|
|
|
39
40
|
threader: mgUser;
|
|
40
41
|
}
|
|
41
42
|
|
|
43
|
+
export interface mgContentReference {
|
|
44
|
+
id: number;
|
|
45
|
+
referencingContentId: number;
|
|
46
|
+
referencedContentId: number;
|
|
47
|
+
createdAt: string;
|
|
48
|
+
updatedAt: string;
|
|
49
|
+
referencedContent: {
|
|
50
|
+
content:mgContent;
|
|
51
|
+
tags: mgTag[];
|
|
52
|
+
contentable: mgContentable;
|
|
53
|
+
user: mgUser;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
42
56
|
export interface mgContent {
|
|
43
57
|
id: number;
|
|
44
58
|
latitude: number | string; // should be a number but is coming back from db as a string for some reason
|
|
@@ -59,8 +73,6 @@ export interface mgContent {
|
|
|
59
73
|
mainFeedPlacement: number;
|
|
60
74
|
userFeedPlacement: number;
|
|
61
75
|
|
|
62
|
-
|
|
63
|
-
|
|
64
76
|
fakeUpvotes: number;
|
|
65
77
|
fakeThreadCount: number;
|
|
66
78
|
fakeShareCount: number;
|
|
@@ -113,8 +125,8 @@ export interface mgContentable {
|
|
|
113
125
|
coordinates?: Position[];
|
|
114
126
|
|
|
115
127
|
// Embed
|
|
116
|
-
embeddedContent
|
|
117
|
-
embeddedContentId
|
|
128
|
+
embeddedContent?: mgPost;
|
|
129
|
+
embeddedContentId?: number;
|
|
118
130
|
}
|
|
119
131
|
|
|
120
132
|
export interface mgPinHour {
|
|
@@ -245,7 +257,7 @@ export interface mgMapBillboards {
|
|
|
245
257
|
|
|
246
258
|
export interface mgList {
|
|
247
259
|
title: string;
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
260
|
+
description: string;
|
|
261
|
+
icon: string;
|
|
262
|
+
orderedContentIds: number[];
|
|
263
|
+
}
|
|
@@ -13,8 +13,49 @@ export interface mgClientConfiguration {
|
|
|
13
13
|
PROFILES: mgProfilesConfig;
|
|
14
14
|
CONTENT: mgContentConfig;
|
|
15
15
|
PLACEHOLDERS: mgPlaceholdersConfig;
|
|
16
|
+
COMPONENTS: mgComponentsConfig;
|
|
16
17
|
}
|
|
17
18
|
|
|
19
|
+
export interface mgComponentsConfig {
|
|
20
|
+
BOTTOM_NAV: {
|
|
21
|
+
buttonSize: number;
|
|
22
|
+
height: number;
|
|
23
|
+
iconSize: number;
|
|
24
|
+
};
|
|
25
|
+
FEED: {
|
|
26
|
+
HEADER: {
|
|
27
|
+
height: number;
|
|
28
|
+
GRAPHIC_PADDING: {
|
|
29
|
+
top: number;
|
|
30
|
+
right: number;
|
|
31
|
+
bottom: number;
|
|
32
|
+
left: number;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
NOTIFICATION: {
|
|
36
|
+
height: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
MAP: { mapIconButtonSize: number };
|
|
40
|
+
|
|
41
|
+
STICKY: {
|
|
42
|
+
height: number;
|
|
43
|
+
SEARCH_BAR: { fontSize: number; height: number };
|
|
44
|
+
BOTTOM: { height: number };
|
|
45
|
+
};
|
|
46
|
+
UI: {
|
|
47
|
+
CARD: {
|
|
48
|
+
avatarImageSize: number;
|
|
49
|
+
mediaHeight: number;
|
|
50
|
+
mapHeight: number;
|
|
51
|
+
voteIconButtonSize: number;
|
|
52
|
+
};
|
|
53
|
+
CUSTOM_CHIP: {
|
|
54
|
+
height: number;
|
|
55
|
+
iconSize: number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}
|
|
18
59
|
export interface mgPlaceholdersConfig {
|
|
19
60
|
networkFailureMessage: string;
|
|
20
61
|
FEED_NOTIFICATION: {
|
|
@@ -269,8 +310,7 @@ export interface mgFontTextStyle {
|
|
|
269
310
|
*
|
|
270
311
|
* @property displayMedium: Nothing, could be
|
|
271
312
|
* back up for app title on splash/login
|
|
272
|
-
* @property displaySmall:
|
|
273
|
-
* modal text, feed header APP_ALIAS
|
|
313
|
+
* @property displaySmall: Nothing,
|
|
274
314
|
*
|
|
275
315
|
* @property titleMedium: page titles
|
|
276
316
|
* @property titleSmall: modal titles
|
|
@@ -282,7 +322,7 @@ export interface mgFontTextStyle {
|
|
|
282
322
|
* Billboard "ZOOM IN", custom chip,
|
|
283
323
|
* other small-font instructions/labels,
|
|
284
324
|
*
|
|
285
|
-
* @property bodyLarge: TextInput,
|
|
325
|
+
* @property bodyLarge: TextInput, Loading modal text,
|
|
286
326
|
* @property bodyMedium: avatar and modal text, card primary text,
|
|
287
327
|
* @property bodySmall: smallest normal text. Still needs to be legible.
|
|
288
328
|
*
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
// COMPONENT DIMENSIONS
|
|
2
|
-
// VALUES ARE NUMBER ONLY!
|
|
3
|
-
export interface mgComponentConfiguration {
|
|
4
|
-
authentication: mgAuthenticationComponentConfig;
|
|
5
|
-
feed: mgFeedComponentConfig;
|
|
6
|
-
map: mgMapComponentConfig;
|
|
7
|
-
other: mgOtherComponentConfig;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface mgMapComponentConfig {
|
|
11
|
-
mapIconButtonSize: number;
|
|
12
|
-
}
|
|
13
|
-
export interface mgAuthenticationComponentConfig {
|
|
14
|
-
THIS_INTERFACE_HAS_NO_PROPERTIES: undefined;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface mgFeedComponentConfig {
|
|
18
|
-
HEADER: {
|
|
19
|
-
height: number;
|
|
20
|
-
graphicPadding: {
|
|
21
|
-
top: number;
|
|
22
|
-
right: number;
|
|
23
|
-
bottom: number;
|
|
24
|
-
left: number;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
NOTIFICATION: {
|
|
28
|
-
height: number;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface mgOtherComponentConfig {
|
|
33
|
-
STICKY: {
|
|
34
|
-
height: number;
|
|
35
|
-
SEARCH_BAR: { fontSize: number; height: number; };
|
|
36
|
-
BOTTOM: { height: number };
|
|
37
|
-
};
|
|
38
|
-
CARD: {
|
|
39
|
-
avatarImageSize: number;
|
|
40
|
-
mediaHeight: number;
|
|
41
|
-
mapHeight: number;
|
|
42
|
-
voteIconButtonSize: number;
|
|
43
|
-
};
|
|
44
|
-
CUSTOM_CHIP: {
|
|
45
|
-
height: number;
|
|
46
|
-
iconSize: number;
|
|
47
|
-
};
|
|
48
|
-
BOTTOM_NAV: {
|
|
49
|
-
buttonSize: number;
|
|
50
|
-
height: number;
|
|
51
|
-
iconSize: number;
|
|
52
|
-
};
|
|
53
|
-
}
|