meteor3: purge dead client packages — web UI renders on 3.1
alanning:roles removed (client crashed the whole bundle; plain user.roles checks instead), selaias:cookie-consent replaced by in-repo React banner, publish-performant-counts vendored with countAsync, Meteor.autorun dropped (App)/Tracker.autorun (FiresMap), and the map publications not covered by the REST smoke (activefiresmyloc, activefiresunionmyloc, fireAlerts, oauth.verifyConfiguration) converted to async APIs. Verified in browser: / and /fires render with map + cookie banner, zero uncaught exceptions. REST smoke byte-identical (12/12).
This commit is contained in:
parent
0ff9848cd4
commit
eb3aec82ae
16 changed files with 194 additions and 50 deletions
9
packages/publish-performant-counts/client.js
Normal file
9
packages/publish-performant-counts/client.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/* global Counter:true */
|
||||
|
||||
Counter = {};
|
||||
Counter.collection = new Mongo.Collection('counters-collection');
|
||||
|
||||
Counter.get = function (name) {
|
||||
const doc = Counter.collection.findOne(name);
|
||||
return doc ? doc.count : 0;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue