diff --git a/webclient/src/Home.js b/webclient/src/Home.js index dc94a0b..b3d8d78 100644 --- a/webclient/src/Home.js +++ b/webclient/src/Home.js @@ -229,102 +229,104 @@ export function Home(props) { } + - -
Quick Links
-

Main Website

-

Protospace Wiki[register]

-

Protospace Forum[register]

- {!!user &&

Google Drive

} - {!!user && isAdmin(user) &&

Property Management Portal

} + {user.member.set_details && + +
Quick Links
+

Main Website

+

Protospace Wiki[register]

+

Protospace Forum[register]

+ {!!user &&

Google Drive

} + {!!user && isAdmin(user) &&

Property Management Portal

} - refreshStats()} /> + refreshStats()} /> -
-
Protospace Stats
-

Next member meeting: {getDateStat('next_meeting')}

-

Next monthly clean: {getDateStat('next_clean')}

-

Member count: {getStat('member_count')} [more]

-

Green members: {getStat('green_count')}

-

Card scans today: {getZeroStat('card_scans')}

+
+
Protospace Stats
+

Next member meeting: {getDateStat('next_meeting')}

+

Next monthly clean: {getDateStat('next_clean')}

+

Member count: {getStat('member_count')} [more]

+

Green members: {getStat('green_count')}

+

Card scans today: {getZeroStat('card_scans')}

-

- Minecraft players: {mcPlayers.length} {mcPlayers.length > 5 && '🔥'} -

- Server IP:
- games.protospace.ca -

-

- Players:
- {mcPlayers.length ? mcPlayers.map(x => {x}
) : 'None'} -

- - } trigger={[more]} /> - {' '}[map] -

+

+ Minecraft players: {mcPlayers.length} {mcPlayers.length > 5 && '🔥'} +

+ Server IP:
+ games.protospace.ca +

+

+ Players:
+ {mcPlayers.length ? mcPlayers.map(x => {x}
) : 'None'} +

+ + } trigger={[more]} /> + {' '}[map] +

- {stats && stats.hasOwnProperty('mumble_users') &&

- Mumble users: {mumbleUsers.length} -

- Server IP:
- mumble.protospace.ca -

-

- Users:
- {mumbleUsers.length ? mumbleUsers.map(x => {x}
) : 'None'} -

- - } trigger={[more]} /> -

} + {stats && stats.hasOwnProperty('mumble_users') &&

+ Mumble users: {mumbleUsers.length} +

+ Server IP:
+ mumble.protospace.ca +

+

+ Users:
+ {mumbleUsers.length ? mumbleUsers.map(x => {x}
) : 'None'} +

+ + } trigger={[more]} /> +

} -

- Trotec availability: {getTrackStat('TROTECS300')} -

- Last use:
- {getTrackLast('TROTECS300')}
- {getTrackAgo('TROTECS300')}
- by {getTrackName('TROTECS300')} -

- - } trigger={[more]} /> -

+

+ Trotec availability: {getTrackStat('TROTECS300')} +

+ Last use:
+ {getTrackLast('TROTECS300')}
+ {getTrackAgo('TROTECS300')}
+ by {getTrackName('TROTECS300')} +

+ + } trigger={[more]} /> +

-

- Rabbit availability: {getTrackStat('FRICKIN-LASER')} -

- Last use:
- {getTrackLast('FRICKIN-LASER')}
- {getTrackAgo('FRICKIN-LASER')}
- by {getTrackName('FRICKIN-LASER')} -

- - } trigger={[more]} /> -

+

+ Rabbit availability: {getTrackStat('FRICKIN-LASER')} +

+ Last use:
+ {getTrackLast('FRICKIN-LASER')}
+ {getTrackAgo('FRICKIN-LASER')}
+ by {getTrackName('FRICKIN-LASER')} +

+ + } trigger={[more]} /> +

-

- Precix availability: {getTrackStat('CNC-PRECIX')} -

- Last use:
- {getTrackLast('CNC-PRECIX')}
- {getTrackAgo('CNC-PRECIX')}
- by {getTrackName('CNC-PRECIX')} -

- - } trigger={[more]} /> -

+

+ Precix availability: {getTrackStat('CNC-PRECIX')} +

+ Last use:
+ {getTrackLast('CNC-PRECIX')}
+ {getTrackAgo('CNC-PRECIX')}
+ by {getTrackName('CNC-PRECIX')} +

+ + } trigger={[more]} /> +

- {user &&

Alarm status: {alarmStat()}{doorOpenStat()}

} -
+ {user &&

Alarm status: {alarmStat()}{doorOpenStat()}

} +
- - -
+ +
+ }