Remove obsolete lucky number
This commit is contained in:
parent
bd6c5f5bea
commit
e9815dc67d
4 changed files with 0 additions and 26 deletions
13
package-lock.json
generated
13
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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")
|
||||
});
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue