From e7408fa931756dd3c248b8a5439e77e109b5a7e8 Mon Sep 17 00:00:00 2001 From: acetone Date: Tue, 22 Nov 2022 18:42:11 +0300 Subject: [PATCH] css updated --- src/html/main.css | 2 +- src/socketrunnable.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/html/main.css b/src/html/main.css index 0267e4d..fae287b 100644 --- a/src/html/main.css +++ b/src/html/main.css @@ -1 +1 @@ -*{box-sizing:border-box;outline:none;z-index:1}*:hover{outline:none}*:focus{outline:none}html{width:100%;font-size:16px;scroll-behavior:smooth}body{line-height:1.42;margin:0;background-color:#fff;color:#000;font-family:monospace;font-size:16px}@media screen and (max-width: 480px){body{font-size:14px}}@media screen and (max-width: 380px){body{font-size:12px}}ul,ol{padding:0;margin:0}li{list-style:none}a{text-decoration:none;color:inherit}a:hover{text-decoration:none}button{cursor:pointer;background-color:rgba(0,0,0,0);border:0px solid rgba(0,0,0,0);padding:0}button:focus,input:focus,a:focus,textarea:focus{text-decoration:none}button,input,textarea{font-family:inherit;font-size:inherit}textarea{resize:none}p{margin:0}h1,h2,h3,h4,h5{margin-top:0;margin-bottom:0;font-weight:normal;font-size:100%}img{display:block;max-width:100%;height:auto}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit}table{border-collapse:collapse}input[type=checkbox]{margin:0}.wrapper{height:100%;padding:16px 0;flex:1}.container{max-width:648px;margin:0 auto;padding:0 15px}@media screen and (max-width: 480px){.container{max-width:460px;padding:0 10px}}@media screen and (max-width: 380px){.container{max-width:370px;padding:0 5px}}.section{margin-bottom:35px}@media screen and (max-width: 480px){.section{margin-bottom:25px}}@media screen and (max-width: 380px){.section{margin-bottom:25px}}.section__title{margin-bottom:10px;font-size:20px;font-weight:bold}@media screen and (max-width: 480px){.section__title{margin-bottom:8px;font-size:18px}}@media screen and (max-width: 380px){.section__title{margin-bottom:6px;font-size:16px}}.proxyService__title{text-align:center;font-size:50px;padding:12px 0;font-weight:bold}@media screen and (max-width: 480px){.proxyService__title{font-size:35px;padding:6px 0}}@media screen and (max-width: 380px){.proxyService__title{font-size:20px;padding:4px 0}}.handledTraffic{width:100%}.handledTraffic__blocks{width:100%;display:flex;flex-flow:row nowrap;align-items:start;justify-content:center;gap:10px}@media screen and (max-width: 480px){.handledTraffic__blocks{gap:5px}}.handledTraffic__block{width:calc(50% - 5px)}.handledTraffic__block_download .handledTraffic__svg{fill:lime}.handledTraffic__block_upload .handledTraffic__svg{fill:red}.handledTraffic__title{text-transform:uppercase;font-weight:bold;background-color:#ddd;padding:3px 5px;font-size:20px}@media screen and (max-width: 480px){.handledTraffic__title{font-size:16px}}@media screen and (max-width: 380px){.handledTraffic__title{font-size:14px}}.handledTraffic__amount{display:flex;flex-flow:row nowrap;align-items:stretch;justify-content:center;background-color:#aaa;padding:10px;border-top:1px solid #000;border-bottom:1px solid #000}@media screen and (max-width: 480px){.handledTraffic__amount{padding:4px}}.handledTraffic__icon{text-align:center;display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;padding:3px 8px;margin-right:8px}.handledTraffic__icon .handledTraffic__svg{height:35px}@media screen and (max-width: 480px){.handledTraffic__icon .handledTraffic__svg{height:25px}}.handledTraffic__number{line-height:1;font-size:56px;font-weight:bold;text-transform:uppercase}@media screen and (max-width: 480px){.handledTraffic__number{font-size:40px}}@media screen and (max-width: 380px){.handledTraffic__number{font-size:28px}}.handledTraffic__decimal{line-height:1.3;align-self:end;font-size:28px;margin-right:12px}@media screen and (max-width: 480px){.handledTraffic__decimal{font-size:20px}}@media screen and (max-width: 380px){.handledTraffic__decimal{font-size:14px;line-height:1.7}}.handledTraffic__measure{font-size:18px;font-weight:bold;align-self:end;line-height:1.6}@media screen and (max-width: 480px){.handledTraffic__measure{font-size:16px}}@media screen and (max-width: 380px){.handledTraffic__measure{font-size:14px}}.handledTraffic__total{background-color:#ddd;padding:8px;font-size:16px;text-align:right}.handledTraffic__totalTitle{text-transform:uppercase;font-weight:bold}.accordeo__radio{display:none}.accordeo__radio:checked~.accordeo__dropdown{display:block}.accordeo__dropdown{display:none}.blockedDestinations__item{background-color:#ddd;overflow:hidden;white-space:nowrap;margin-bottom:5px;text-overflow:ellipsis}.blockedDestinations__url{display:block;width:100%;padding:3px 6px;cursor:pointer}.blockedDestinations__ipList{background-color:#aaa;padding-left:10px}.blockedDestinations__ipItem{padding:4px}.information__text{word-break:break-all}.lastDestinations{width:100%;padding:5px 0}.lastDestinations__list{width:100%}.lastDestinations__item{width:100%;margin-bottom:5px;padding:3px 6px;overflow:hidden;text-overflow:ellipsis}.lastDestinations__item:last-child{margin-bottom:0}.lastDestinations__item_blocked{background-color:#888}.lastDestinations__item_allowed{background-color:#ddd}.topDestinations__block{margin-bottom:14px}.topDestinations__block:last-child{margin-bottom:0}.topDestinations__title{font-weight:bold;margin-bottom:10px}.topDestinations__item{display:flex;justify-content:start;align-items:center;flex-flow:row nowrap;margin-bottom:5px;background-color:#ddd}.topDestinations__destination{padding:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex-grow:0}.topDestinations__counter{flex-grow:0;margin-left:auto;padding:4px;background-color:#e0e0e0;color:#888;text-align:right}.copyright{padding:10px 0;text-align:center;color:#888}/*# sourceMappingURL=main.min.css.map */ \ No newline at end of file +*{box-sizing:border-box;outline:none;z-index:1}*:hover{outline:none}*:focus{outline:none}html{width:100%;font-size:16px;scroll-behavior:smooth}body{line-height:1.42;margin:0;background-color:#fff;color:#000;font-family:monospace;font-size:16px}@media screen and (max-width: 480px){body{font-size:14px}}@media screen and (max-width: 380px){body{font-size:12px}}ul,ol{padding:0;margin:0}li{list-style:none}a{text-decoration:none;color:inherit}a:hover{text-decoration:none}button{cursor:pointer;background-color:rgba(0,0,0,0);border:0px solid rgba(0,0,0,0);padding:0}button:focus,input:focus,a:focus,textarea:focus{text-decoration:none}button,input,textarea{font-family:inherit;font-size:inherit}textarea{resize:none}p{margin:0}h1,h2,h3,h4,h5{margin-top:0;margin-bottom:0;font-weight:normal;font-size:100%}img{display:block;max-width:100%;height:auto}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit}table{border-collapse:collapse}input[type=checkbox]{margin:0}.wrapper{height:100%;padding:16px 0;flex:1}.container{max-width:648px;margin:0 auto;padding:0 15px}@media screen and (max-width: 480px){.container{max-width:460px;padding:0 10px}}@media screen and (max-width: 380px){.container{max-width:370px;padding:0 5px}}.section{margin-bottom:35px}@media screen and (max-width: 480px){.section{margin-bottom:25px}}@media screen and (max-width: 380px){.section{margin-bottom:25px}}.section__title{margin-bottom:10px;font-size:20px;font-weight:bold}@media screen and (max-width: 480px){.section__title{margin-bottom:8px;font-size:18px}}@media screen and (max-width: 380px){.section__title{margin-bottom:6px;font-size:16px}}.proxyService__title{text-align:center;font-size:50px;padding:12px 0;font-weight:bold}@media screen and (max-width: 480px){.proxyService__title{font-size:35px;padding:6px 0}}@media screen and (max-width: 380px){.proxyService__title{font-size:20px;padding:4px 0}}.handledTraffic{width:100%}.handledTraffic__blocks{width:100%;display:flex;flex-flow:row nowrap;align-items:start;justify-content:center;gap:10px}@media screen and (max-width: 480px){.handledTraffic__blocks{gap:5px}}.handledTraffic__block{width:calc(50% - 5px)}.handledTraffic__block_download .handledTraffic__svg{fill:lime}.handledTraffic__block_upload .handledTraffic__svg{fill:red}.handledTraffic__title{text-transform:uppercase;font-weight:bold;background-color:#ddd;padding:3px 5px;font-size:20px}@media screen and (max-width: 480px){.handledTraffic__title{font-size:16px}}@media screen and (max-width: 380px){.handledTraffic__title{font-size:14px}}.handledTraffic__amount{display:flex;flex-flow:row nowrap;align-items:stretch;justify-content:center;background-color:#aaa;padding:10px;border-top:1px solid #000;border-bottom:1px solid #000}@media screen and (max-width: 480px){.handledTraffic__amount{padding:4px}}.handledTraffic__icon{text-align:center;display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;padding:3px 8px;margin-right:8px}.handledTraffic__icon .handledTraffic__svg{height:35px}@media screen and (max-width: 480px){.handledTraffic__icon .handledTraffic__svg{height:25px}}.handledTraffic__number{line-height:1;font-size:56px;font-weight:bold;text-transform:uppercase}@media screen and (max-width: 480px){.handledTraffic__number{font-size:40px}}@media screen and (max-width: 380px){.handledTraffic__number{font-size:28px}}.handledTraffic__decimal{line-height:1.3;align-self:end;font-size:28px;margin-right:12px}@media screen and (max-width: 480px){.handledTraffic__decimal{font-size:20px}}@media screen and (max-width: 380px){.handledTraffic__decimal{font-size:14px;line-height:1.7}}.handledTraffic__measure{font-size:18px;font-weight:bold;align-self:end;line-height:1.6}@media screen and (max-width: 480px){.handledTraffic__measure{font-size:16px}}@media screen and (max-width: 380px){.handledTraffic__measure{font-size:14px}}.handledTraffic__total{background-color:#ddd;padding:8px;font-size:16px;text-align:right}.handledTraffic__totalTitle{text-transform:uppercase;font-weight:bold}.accordeo__radio{display:none}.accordeo__radio:checked~.accordeo__dropdown{display:block}.accordeo__dropdown{display:none}.blockedDestinations__item{background-color:#ddd;overflow:hidden;white-space:nowrap;margin-bottom:5px;text-overflow:ellipsis}.blockedDestinations__url{display:block;width:100%;padding:3px 6px;cursor:pointer}.blockedDestinations__ipList{background-color:#aaa;padding-left:10px}.blockedDestinations__ipItem{padding:4px}.information__text{word-break:break-word}.lastDestinations{width:100%;padding:5px 0}.lastDestinations__list{width:100%}.lastDestinations__item{width:100%;margin-bottom:5px;padding:3px 6px;overflow:hidden;text-overflow:ellipsis}.lastDestinations__item:last-child{margin-bottom:0}.lastDestinations__item_blocked{background-color:#888}.lastDestinations__item_allowed{background-color:#ddd}.topDestinations__block{margin-bottom:14px}.topDestinations__block:last-child{margin-bottom:0}.topDestinations__title{font-weight:bold;margin-bottom:10px}.topDestinations__item{display:flex;justify-content:start;align-items:center;flex-flow:row nowrap;margin-bottom:5px;background-color:#ddd}.topDestinations__destination{padding:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex-grow:0}.topDestinations__counter{flex-grow:0;margin-left:auto;padding:4px;background-color:#eee;color:#888;text-align:right}.copyright{padding:10px 0;text-align:center;color:#888}/*# sourceMappingURL=main.min.css.map */ \ No newline at end of file diff --git a/src/socketrunnable.cpp b/src/socketrunnable.cpp index 3afa37c..c22dfb5 100644 --- a/src/socketrunnable.cpp +++ b/src/socketrunnable.cpp @@ -39,7 +39,7 @@ void SocketRunnable::get() { const QString cookieString = g::getValue(m_headers, "Cookie", g::GetValueType::HttpHeader); quint64 lastTrafficVolume = g::getValue(cookieString, LAST_TRAFFIC_VOLUME_COOKIE).toULongLong(); - qDebug() << "Cookie trafficvolume: raw" << cookieString << "; parsed" << lastTrafficVolume; + qDebug().noquote() << "Cookie trafficvolume:" << lastTrafficVolume << "(from " + cookieString+")"; quint64 currentTrafficVolume = 0; httpDocument().setBody( WebPage::document(lastTrafficVolume, ¤tTrafficVolume) ); httpDocument().setHeader(HttpDocument::CommonHeader::SetCookie,