mgtypes 1.0.89 → 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
|
+
}
|
|
@@ -310,8 +310,7 @@ export interface mgFontTextStyle {
|
|
|
310
310
|
*
|
|
311
311
|
* @property displayMedium: Nothing, could be
|
|
312
312
|
* back up for app title on splash/login
|
|
313
|
-
* @property displaySmall:
|
|
314
|
-
* modal text, feed header APP_ALIAS
|
|
313
|
+
* @property displaySmall: Nothing,
|
|
315
314
|
*
|
|
316
315
|
* @property titleMedium: page titles
|
|
317
316
|
* @property titleSmall: modal titles
|
|
@@ -323,7 +322,7 @@ export interface mgFontTextStyle {
|
|
|
323
322
|
* Billboard "ZOOM IN", custom chip,
|
|
324
323
|
* other small-font instructions/labels,
|
|
325
324
|
*
|
|
326
|
-
* @property bodyLarge: TextInput,
|
|
325
|
+
* @property bodyLarge: TextInput, Loading modal text,
|
|
327
326
|
* @property bodyMedium: avatar and modal text, card primary text,
|
|
328
327
|
* @property bodySmall: smallest normal text. Still needs to be legible.
|
|
329
328
|
*
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// COMPONENT DIMENSIONS
|
|
2
|
-
// VALUES ARE NUMBER ONLY!
|
|
3
|
-
// TODO:delete after refactor
|
|
4
|
-
// export interface mgComponentConfiguration {
|
|
5
|
-
// authentication: mgAuthenticationComponentConfig;
|
|
6
|
-
// feed: mgFeedComponentConfig;
|
|
7
|
-
// map: mgMapComponentConfig;
|
|
8
|
-
// other: mgOtherComponentConfig;
|
|
9
|
-
// }
|
|
10
|
-
|
|
11
|
-
// export interface mgMapComponentConfig {
|
|
12
|
-
// mapIconButtonSize: number;
|
|
13
|
-
// }
|
|
14
|
-
// export interface mgAuthenticationComponentConfig {
|
|
15
|
-
// THIS_INTERFACE_HAS_NO_PROPERTIES: undefined;
|
|
16
|
-
// }
|
|
17
|
-
|
|
18
|
-
// export interface mgFeedComponentConfig {
|
|
19
|
-
// HEADER: {
|
|
20
|
-
// height: number;
|
|
21
|
-
// graphicPadding: {
|
|
22
|
-
// top: number;
|
|
23
|
-
// right: number;
|
|
24
|
-
// bottom: number;
|
|
25
|
-
// left: number;
|
|
26
|
-
// };
|
|
27
|
-
// };
|
|
28
|
-
// NOTIFICATION: {
|
|
29
|
-
// height: number;
|
|
30
|
-
// };
|
|
31
|
-
// }
|
|
32
|
-
|
|
33
|
-
// export interface mgOtherComponentConfig {
|
|
34
|
-
// STICKY: {
|
|
35
|
-
// height: number;
|
|
36
|
-
// SEARCH_BAR: { fontSize: number; height: number; };
|
|
37
|
-
// BOTTOM: { height: number };
|
|
38
|
-
// };
|
|
39
|
-
// CARD: {
|
|
40
|
-
// avatarImageSize: number;
|
|
41
|
-
// mediaHeight: number;
|
|
42
|
-
// mapHeight: number;
|
|
43
|
-
// voteIconButtonSize: number;
|
|
44
|
-
// };
|
|
45
|
-
// CUSTOM_CHIP: {
|
|
46
|
-
// height: number;
|
|
47
|
-
// iconSize: number;
|
|
48
|
-
// };
|
|
49
|
-
// BOTTOM_NAV: {
|
|
50
|
-
// buttonSize: number;
|
|
51
|
-
// height: number;
|
|
52
|
-
// iconSize: number;
|
|
53
|
-
// };
|
|
54
|
-
// }
|