Skip to content

Commit

Permalink
refactor begin, and API new census tracking-exposed/eu19#11
Browse files Browse the repository at this point in the history
  • Loading branch information
vecna committed Feb 7, 2019
1 parent 5ab3a0f commit 5aa6642
Show file tree
Hide file tree
Showing 10 changed files with 163 additions and 849 deletions.
395 changes: 121 additions & 274 deletions bin/content.js

Large diffs are not rendered by default.

39 changes: 0 additions & 39 deletions lib/allversions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,20 @@ var _ = require('lodash');

var apiListVersion1 = {

/* informative GET */
nodeInfo: require('./version1').nodeInfo,
nodeExport: require('./version1').nodeExport,
getRefreshMap: require('./version1').getRefreshMap,
userAnalysis: require('./version1').userAnalysis,
countriesStats: require('./version1').countriesStats,

/* personal page */
getTimelines: require('./personal').getTimelines,
getMetadata: require('./personal').getMetadata,
dietBasic: require('./personal').dietBasic,

/* call by /impact */
getStats: require('./stats').getStats,
getEngagement: require('./stats').getEngagement,

/* ß query capability */
queryContent: require('./opendata').queryContent,
metaxpt: require('./opendata').metaxpt,

/* not API, serving static pages from sections/*.pug */
getImpact: require('./staticpages').getImpact,
getPage: require('./staticpages').getPage,

/* RealityMeter */
getTopPosts: require('./realitymeter').getTopPosts,
postReality: require('./realitymeter').postReality,

/* HTML units */
unitById: require('./htmlunit').unitById,
verifyTimeline: require('./htmlunit').verifyTimeline,

/* RealityCheck */
metadataByTime: require('./personal').mtByTime,
metadataByAmount: require('./personal').mtByAmount,
personalProfile: require('./personal').profile,
metadataLegacy: require('./personal').legacy,

/* - summary - new approach */
getSummaryPage: require('./summary').page,
getSummaryData: require('./summary').data,
getMetadataData: require('./summary').metadata,
getSummaryCSV: require('./summary').csv,

/* alarms */
getAlarms: require('./version1').getAlarms,

/* feeds */
feeds: require('./rss').feeds,

/* reducers */
reducer1: require('./reducer1'),

Expand All @@ -67,9 +31,6 @@ var apiListVersion1 = {
qualitativeUpdate:require('./research').qualitativeUpdate,
qualitativeOverview: require('./research').qualitativeOverview,

/* exported for the new backend */
exportText: require('./integration').exportText,

/* integration to support the development of the new parsers */
glue: require('./glue')
};
Expand Down
224 changes: 0 additions & 224 deletions lib/personal.js

This file was deleted.

43 changes: 0 additions & 43 deletions lib/realitymeter.js

This file was deleted.

Loading

0 comments on commit 5aa6642

Please sign in to comment.