Merge branch 'PretendoNetwork:master' into locale-switcher-bugfixes

This commit is contained in:
Monty
2021-08-23 15:19:09 +02:00
committed by GitHub
35 changed files with 328 additions and 64 deletions

View File

@@ -1,5 +1,6 @@
const { Router } = require('express');
const util = require('../util');
const { boards } = require('../../boards/boards.json');
const router = new Router();
const { getTrelloCache } = require('../trello');
@@ -13,9 +14,10 @@ router.get('/', async (request, response) => {
response.render('home', {
layout: 'main',
featuredFeatureList: cache.sections[0],
boards,
locale,
localeString: reqLocale.toString(),
featuredFeatureList: cache.sections[0]
});
});

View File

@@ -1,5 +1,6 @@
const { Router } = require('express');
const util = require('../util');
const { boards } = require('../../boards/boards.json');
const router = new Router();
const { getTrelloCache } = require('../trello');
@@ -15,6 +16,7 @@ router.get('/', async (request, response) => {
response.render('progress', {
layout: 'main',
boards,
locale,
localeString,
progressLists: cache

View File

@@ -31,6 +31,7 @@ async function updateTrelloCache() {
for (const board of boards) {
const meta = {
title: '',
id: '',
percentage_complete: 0,
progress: {
not_started: [],
@@ -40,6 +41,7 @@ async function updateTrelloCache() {
};
meta.title = board.name;
meta.id = board.shortLink;
const lists = await trello.getListsOnBoard(board.id);
const cards = await trello.getCardsOnBoard(board.id);