mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 01:43:45 +08:00
2f9879a9a1
We're fetching "total rows count" from root attributes only if meta object not found. 2b78bd01ab/app/assets/javascripts/discourse/models/store.js (L236)
613 lines
15 KiB
JavaScript
613 lines
15 KiB
JavaScript
export default {
|
|
directory_items: {
|
|
directory_items: [
|
|
{
|
|
id: 32,
|
|
username: "codinghorror",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "55d",
|
|
likes_received: 9370,
|
|
likes_given: 7725,
|
|
topics_entered: 11453,
|
|
topic_count: 184,
|
|
post_count: 12263
|
|
},
|
|
{
|
|
id: 1,
|
|
username: "sam",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "52d",
|
|
likes_received: 7834,
|
|
likes_given: 2693,
|
|
topics_entered: 11024,
|
|
topic_count: 276,
|
|
post_count: 7802
|
|
},
|
|
{
|
|
id: 19,
|
|
username: "eviltrout",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "25d",
|
|
likes_received: 2383,
|
|
likes_given: 319,
|
|
topics_entered: 8041,
|
|
topic_count: 34,
|
|
post_count: 1602
|
|
},
|
|
{
|
|
id: 6626,
|
|
username: "riking",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "17d",
|
|
likes_received: 2101,
|
|
likes_given: 2756,
|
|
topics_entered: 9055,
|
|
topic_count: 163,
|
|
post_count: 2548
|
|
},
|
|
{
|
|
id: 1995,
|
|
username: "zogstrip",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "32d",
|
|
likes_received: 1838,
|
|
likes_given: 4588,
|
|
topics_entered: 10823,
|
|
topic_count: 16,
|
|
post_count: 2050
|
|
},
|
|
{
|
|
id: 8300,
|
|
username: "cpradio",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "11d",
|
|
likes_received: 1538,
|
|
likes_given: 1001,
|
|
topics_entered: 6121,
|
|
topic_count: 111,
|
|
post_count: 1430
|
|
},
|
|
{
|
|
id: 2,
|
|
username: "neil",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "24d",
|
|
likes_received: 1238,
|
|
likes_given: 684,
|
|
topics_entered: 3250,
|
|
topic_count: 27,
|
|
post_count: 969
|
|
},
|
|
{
|
|
id: 4263,
|
|
username: "mcwumbly",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "15d",
|
|
likes_received: 1223,
|
|
likes_given: 1296,
|
|
topics_entered: 5924,
|
|
topic_count: 81,
|
|
post_count: 1031
|
|
},
|
|
{
|
|
id: 5351,
|
|
username: "erlend_sh",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "9d",
|
|
likes_received: 1115,
|
|
likes_given: 747,
|
|
topics_entered: 3260,
|
|
topic_count: 154,
|
|
post_count: 721
|
|
},
|
|
{
|
|
id: 5559,
|
|
username: "downey",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "5d",
|
|
likes_received: 983,
|
|
likes_given: 1713,
|
|
topics_entered: 2995,
|
|
topic_count: 131,
|
|
post_count: 850
|
|
},
|
|
{
|
|
id: 2770,
|
|
username: "awesomerobot",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "9d",
|
|
likes_received: 952,
|
|
likes_given: 195,
|
|
topics_entered: 2411,
|
|
topic_count: 13,
|
|
post_count: 402
|
|
},
|
|
{
|
|
id: 9775,
|
|
username: "elberet",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "7d",
|
|
likes_received: 930,
|
|
likes_given: 159,
|
|
topics_entered: 4077,
|
|
topic_count: 28,
|
|
post_count: 755
|
|
},
|
|
{
|
|
id: 8222,
|
|
username: "techAPJ",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "12d",
|
|
likes_received: 791,
|
|
likes_given: 1005,
|
|
topics_entered: 3691,
|
|
topic_count: 43,
|
|
post_count: 463
|
|
},
|
|
{
|
|
id: 6060,
|
|
username: "lightyear",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "3d",
|
|
likes_received: 708,
|
|
likes_given: 330,
|
|
topics_entered: 1717,
|
|
topic_count: 34,
|
|
post_count: 312
|
|
},
|
|
{
|
|
id: 8,
|
|
username: "geek",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "20d",
|
|
likes_received: 634,
|
|
likes_given: 152,
|
|
topics_entered: 920,
|
|
topic_count: 48,
|
|
post_count: 298
|
|
},
|
|
{
|
|
id: 464,
|
|
username: "DeanMarkTaylor",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "10d",
|
|
likes_received: 578,
|
|
likes_given: 299,
|
|
topics_entered: 2976,
|
|
topic_count: 116,
|
|
post_count: 485
|
|
},
|
|
{
|
|
id: 11160,
|
|
username: "boomzilla",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "1d",
|
|
likes_received: 561,
|
|
likes_given: 398,
|
|
topics_entered: 822,
|
|
topic_count: 23,
|
|
post_count: 185
|
|
},
|
|
{
|
|
id: 4457,
|
|
username: "Lee_Ars",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "3d",
|
|
likes_received: 530,
|
|
likes_given: 163,
|
|
topics_entered: 2250,
|
|
topic_count: 46,
|
|
post_count: 327
|
|
},
|
|
{
|
|
id: 8571,
|
|
username: "tobiaseigen",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "6d",
|
|
likes_received: 524,
|
|
likes_given: 1275,
|
|
topics_entered: 2545,
|
|
topic_count: 140,
|
|
post_count: 435
|
|
},
|
|
{
|
|
id: 3,
|
|
username: "supermathie",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "20d",
|
|
likes_received: 510,
|
|
likes_given: 312,
|
|
topics_entered: 1733,
|
|
topic_count: 62,
|
|
post_count: 438
|
|
},
|
|
{
|
|
id: 8493,
|
|
username: "PJH",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "3d",
|
|
likes_received: 458,
|
|
likes_given: 96,
|
|
topics_entered: 1219,
|
|
topic_count: 74,
|
|
post_count: 318
|
|
},
|
|
{
|
|
id: 8617,
|
|
username: "Mittineague",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "16d",
|
|
likes_received: 415,
|
|
likes_given: 291,
|
|
topics_entered: 6662,
|
|
topic_count: 22,
|
|
post_count: 757
|
|
},
|
|
{
|
|
id: 10778,
|
|
username: "Lid",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "8d",
|
|
likes_received: 398,
|
|
likes_given: 296,
|
|
topics_entered: 1771,
|
|
topic_count: 82,
|
|
post_count: 307
|
|
},
|
|
{
|
|
id: 6548,
|
|
username: "michaeld",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "3d",
|
|
likes_received: 387,
|
|
likes_given: 165,
|
|
topics_entered: 1407,
|
|
topic_count: 48,
|
|
post_count: 330
|
|
},
|
|
{
|
|
id: 471,
|
|
username: "BhaelOchon",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "22d",
|
|
likes_received: 386,
|
|
likes_given: 765,
|
|
topics_entered: 8051,
|
|
topic_count: 55,
|
|
post_count: 486
|
|
},
|
|
{
|
|
id: 4881,
|
|
username: "gerhard",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "6d",
|
|
likes_received: 360,
|
|
likes_given: 393,
|
|
topics_entered: 3030,
|
|
topic_count: 57,
|
|
post_count: 250
|
|
},
|
|
{
|
|
id: 5707,
|
|
username: "trident",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "6d",
|
|
likes_received: 344,
|
|
likes_given: 181,
|
|
topics_entered: 4905,
|
|
topic_count: 2,
|
|
post_count: 549
|
|
},
|
|
{
|
|
id: 3987,
|
|
username: "Sander78",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "3d",
|
|
likes_received: 326,
|
|
likes_given: 276,
|
|
topics_entered: 3613,
|
|
topic_count: 94,
|
|
post_count: 392
|
|
},
|
|
{
|
|
id: 3415,
|
|
username: "radq",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "3d",
|
|
likes_received: 299,
|
|
likes_given: 110,
|
|
topics_entered: 2503,
|
|
topic_count: 16,
|
|
post_count: 157
|
|
},
|
|
{
|
|
id: 2989,
|
|
username: "meglio",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "3d",
|
|
likes_received: 280,
|
|
likes_given: 436,
|
|
topics_entered: 1086,
|
|
topic_count: 198,
|
|
post_count: 458
|
|
},
|
|
{
|
|
id: 4,
|
|
username: "stienman",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "15d",
|
|
likes_received: 276,
|
|
likes_given: 100,
|
|
topics_entered: 291,
|
|
topic_count: 13,
|
|
post_count: 132
|
|
},
|
|
{
|
|
id: 10855,
|
|
username: "abarker",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "1d",
|
|
likes_received: 270,
|
|
likes_given: 131,
|
|
topics_entered: 703,
|
|
topic_count: 14,
|
|
post_count: 77
|
|
},
|
|
{
|
|
id: 9653,
|
|
username: "TechnoBear",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "4d",
|
|
likes_received: 263,
|
|
likes_given: 507,
|
|
topics_entered: 2931,
|
|
topic_count: 51,
|
|
post_count: 220
|
|
},
|
|
{
|
|
id: 7948,
|
|
username: "probus",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "6d",
|
|
likes_received: 261,
|
|
likes_given: 71,
|
|
topics_entered: 2399,
|
|
topic_count: 51,
|
|
post_count: 206
|
|
},
|
|
{
|
|
id: 9741,
|
|
username: "chapel",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "2d",
|
|
likes_received: 239,
|
|
likes_given: 169,
|
|
topics_entered: 1228,
|
|
topic_count: 11,
|
|
post_count: 167
|
|
},
|
|
{
|
|
id: 8810,
|
|
username: "fantasticfears",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "4d",
|
|
likes_received: 213,
|
|
likes_given: 184,
|
|
topics_entered: 2161,
|
|
topic_count: 29,
|
|
post_count: 227
|
|
},
|
|
{
|
|
id: 38,
|
|
username: "frandallfarmer",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "19d",
|
|
likes_received: 212,
|
|
likes_given: 104,
|
|
topics_entered: 3169,
|
|
topic_count: 6,
|
|
post_count: 114
|
|
},
|
|
{
|
|
id: 8085,
|
|
username: "watchmanmonitor",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "2d",
|
|
likes_received: 202,
|
|
likes_given: 654,
|
|
topics_entered: 1453,
|
|
topic_count: 73,
|
|
post_count: 278
|
|
},
|
|
{
|
|
id: 8909,
|
|
username: "AdamCapriola",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "3d",
|
|
likes_received: 200,
|
|
likes_given: 179,
|
|
topics_entered: 1689,
|
|
topic_count: 49,
|
|
post_count: 169
|
|
},
|
|
{
|
|
id: 14,
|
|
username: "clay",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "14d",
|
|
likes_received: 183,
|
|
likes_given: 103,
|
|
topics_entered: 780,
|
|
topic_count: 24,
|
|
post_count: 97
|
|
},
|
|
{
|
|
id: 6613,
|
|
username: "haiku",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "3d",
|
|
likes_received: 183,
|
|
likes_given: 308,
|
|
topics_entered: 1919,
|
|
topic_count: 33,
|
|
post_count: 188
|
|
},
|
|
{
|
|
id: 13132,
|
|
username: "purldator",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "4d",
|
|
likes_received: 178,
|
|
likes_given: 685,
|
|
topics_entered: 1891,
|
|
topic_count: 20,
|
|
post_count: 299
|
|
},
|
|
{
|
|
id: 810,
|
|
username: "ChrisHanel",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "16d",
|
|
likes_received: 169,
|
|
likes_given: 42,
|
|
topics_entered: 639,
|
|
topic_count: 9,
|
|
post_count: 94
|
|
},
|
|
{
|
|
id: 2625,
|
|
username: "kpfleming",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "10d",
|
|
likes_received: 165,
|
|
likes_given: 288,
|
|
topics_entered: 2539,
|
|
topic_count: 15,
|
|
post_count: 233
|
|
},
|
|
{
|
|
id: 7717,
|
|
username: "lake54",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "2d",
|
|
likes_received: 148,
|
|
likes_given: 440,
|
|
topics_entered: 1604,
|
|
topic_count: 33,
|
|
post_count: 194
|
|
},
|
|
{
|
|
id: 8018,
|
|
username: "shivermetimbers",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "15h",
|
|
likes_received: 139,
|
|
likes_given: 40,
|
|
topics_entered: 185,
|
|
topic_count: 30,
|
|
post_count: 181
|
|
},
|
|
{
|
|
id: 2316,
|
|
username: "pakl",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "14d",
|
|
likes_received: 135,
|
|
likes_given: 198,
|
|
topics_entered: 1034,
|
|
topic_count: 46,
|
|
post_count: 130
|
|
},
|
|
{
|
|
id: 3681,
|
|
username: "Ajarn",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "3d",
|
|
likes_received: 126,
|
|
likes_given: 664,
|
|
topics_entered: 1893,
|
|
topic_count: 46,
|
|
post_count: 291
|
|
},
|
|
{
|
|
id: 7229,
|
|
username: "DavidGNavas",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "4d",
|
|
likes_received: 124,
|
|
likes_given: 210,
|
|
topics_entered: 2032,
|
|
topic_count: 17,
|
|
post_count: 60
|
|
},
|
|
{
|
|
id: 3062,
|
|
username: "Sailsman63",
|
|
uploaded_avatar_id: null,
|
|
avatar_template: "/images/avatar.png",
|
|
time_read: "8d",
|
|
likes_received: 124,
|
|
likes_given: 139,
|
|
topics_entered: 4257,
|
|
topic_count: 10,
|
|
post_count: 146
|
|
}
|
|
],
|
|
meta: {
|
|
last_updated_at: "2020-04-02T02:19:20.000Z",
|
|
total_rows_directory_items: 12546,
|
|
load_more_directory_items:
|
|
"/directory_items?id=all&order=likes_received&page=1"
|
|
}
|
|
}
|
|
};
|