Remove obsolete lucky number

This commit is contained in:
Mikołaj Pich 2019-09-10 13:43:32 +02:00
parent bd6c5f5bea
commit e9815dc67d
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA
4 changed files with 0 additions and 26 deletions

13
package-lock.json generated
View file

@ -2982,19 +2982,6 @@
"minimist": "0.0.8"
}
},
"moment": {
"version": "2.24.0",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz",
"integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg=="
},
"moment-timezone": {
"version": "0.5.26",
"resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.26.tgz",
"integrity": "sha512-sFP4cgEKTCymBBKgoxZjYzlSovC20Y6J7y3nanDc5RoBIXKlZhoYwBoZGe3flwU6A372AcRwScH8KiwV6zjy1g==",
"requires": {
"moment": ">= 2.9.0"
}
},
"morgan": {
"version": "1.9.1",
"resolved": "https://registry.npmjs.org/morgan/-/morgan-1.9.1.tgz",

View file

@ -19,7 +19,6 @@
"express-subdomain": "^1.0.5",
"lodash": "latest",
"md5": "^2.2.1",
"moment-timezone": "^0.5.26",
"morgan": "~1.9.1",
"node-sass-middleware": "^0.11.0",
"pug": "^2.0.4",

View file

@ -1,7 +1,6 @@
const express = require('express');
const router = express.Router();
const protocol = require('../utils/connection');
const moment = require('moment-timezone');
router.get("/", (req, res) => {
res.render("log-exception", {
@ -35,10 +34,8 @@ router.post("(/*)?", (req, res) => {
});
router.get("/Default/Start.mvc/Index", (req, res) => {
let now = moment().tz('Europe/Warsaw');
res.render("homepage", {
title: "Uonet+",
luckyNumber: now.hour() >= 7 ? now.date() : null,
uonetplusOpiekun: protocol(req) + "://" + req.get('host').replace("uonetplus", "uonetplus-opiekun"),
uonetplusUczen: protocol(req) + "://" + req.get('host').replace("uonetplus", "uonetplus-uczen")
});

View file

@ -59,12 +59,3 @@ block content
.directLink
#idEmptyAppUczenExt
.name Uczeń NOWOŚĆ
if luckyNumber
div.panel.szczesliweNumery.klient
.imagedHeader
.name Szczęśliwy numer w dzienniku
.subDiv.pCont
.subDiv.pCont
.header SP
.subDiv Szczęśliwy numer w dzienniku: #{luckyNumber}