diff --git a/config/routes/success.js b/config/routes/success.js index 03f8898..0442438 100644 --- a/config/routes/success.js +++ b/config/routes/success.js @@ -13,7 +13,7 @@ module.exports = function(server, db, qiwiApi) { status = data.status.value, email = data.customer.email, method = 'qiwi', - date = data.status.changedDateTime, + date = new Date().toISOString(), amount = parseFloat(data.amount.value); if (status === 'PAID') { diff --git a/dist/public/css/style.css b/dist/public/css/style.css index ed4ac3a..803e954 100644 --- a/dist/public/css/style.css +++ b/dist/public/css/style.css @@ -110,6 +110,13 @@ hr { padding-bottom: 24px; } +#notification > div { + animation: fadein 0.2s; + -moz-animation: fadein 0.2s; /* Firefox */ + -webkit-animation: fadein 0.2s; /* Safari and Chrome */ + -o-animation: fadein 0.2s; /* Opera */ +} + #notification { width: 300px; position: fixed; diff --git a/dist/views/admin/assets/templates/header.pug b/dist/views/admin/assets/templates/header.pug index 231eaeb..a05f858 100644 --- a/dist/views/admin/assets/templates/header.pug +++ b/dist/views/admin/assets/templates/header.pug @@ -40,23 +40,23 @@ header.admin-header .collapsible-body ul li(data-page="items") - a(href='http://'+host+'/control-panel/items') + a(href='/control-panel/items') i.material-icons list | Товары li(data-page="categories") - a(href='http://'+host+'/control-panel/categories') + a(href='/control-panel/categories') i.material-icons category | Категории li(data-page="icons") - a(href='http://'+host+'/control-panel/icons') + a(href='/control-panel/icons') i.material-icons add_photo_alternate | Иконки li(data-page="content") - a(href='http://'+host+'/control-panel/content') + a(href='/control-panel/content') i.material-icons visibility | Контент на сайте li(data-page="theme") - a(href='http://'+host+'/control-panel/theme') + a(href='/control-panel/theme') i.material-icons create | Оформление ul.collapsible @@ -67,7 +67,7 @@ header.admin-header .collapsible-body ul li(data-page="administrators") - a(href='http://'+host+'/control-panel/administrators') + a(href='/control-panel/administrators') i.material-icons supervisor_account | Администратор //- Модальные окна diff --git a/dist/views/admin/theme.pug b/dist/views/admin/theme.pug index 802c20e..533d1a9 100644 --- a/dist/views/admin/theme.pug +++ b/dist/views/admin/theme.pug @@ -11,7 +11,7 @@ body.has-fixed-sidenav #theme.card .card-content .theme-change - h5 Общий цвета + h5 Общие цвета магазина .row form(action="/control-panel/theme/update" method="POST") #color.input-field.col.s12 diff --git a/dist/views/main/assets/scripts.pug b/dist/views/main/assets/scripts.pug index c6c08b0..0011992 100644 --- a/dist/views/main/assets/scripts.pug +++ b/dist/views/main/assets/scripts.pug @@ -1,3 +1,3 @@ // Script JS -script(src="https://cdn.commento.io/js/commento.js") -script(src='../js/main.js') \ No newline at end of file +script(src='../js/main.js') +script(src="https://cdn.commento.io/js/commento.js") \ No newline at end of file