Commit ebb4c93f authored by Professor Chaos's avatar Professor Chaos

chore(release): 0.2.15

parent d3372488
......@@ -2,6 +2,11 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
<a name="0.2.15"></a>
## [0.2.15](https://github.com/pikkumyy/iltapeto/compare/v0.2.14...v0.2.15) (2018-03-24)
<a name="0.2.14"></a>
## [0.2.14](https://github.com/pikkumyy/iltapeto/compare/v0.2.13...v0.2.14) (2018-03-12)
......
{"appName":{"message":"Iltapeto"},"appShortName":{"message":"Iltapeto"},"appDesc":{"message":"Iltapeto tekee iltalehden lukemisesta mukavampaa. Älä ole tavallinen Pertsa. Asenna Iltapeto."},"ctx_more":{"message":"Lisää appeja"},"ctx_rate":{"message":"👍👎 Arvostele Iltapeto"},"ctx_share_fb":{"message":"Jaa Facebookissa"},"ctx_share_tw":{"message":"Jaa Twitterissä"},"ctx_share_gp":{"message":"Jaa Googlessa"}}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
body, html {
width: 100% !important;
overflow-x: hidden !important; }
#mainos,
#container_vasen,
#js-recommended-toaster,
.alma-menu-nav-button,
.play-spinner, div.play-widget-fixed {
display: none !important; }
#container_navi .main-nav {
display: flex !important;
flex-direction: row;
flex-wrap: wrap;
align-content: center;
justify-content: flex-start;
height: auto !important; }
#alanavi ul a, .sub-nav a,
#container_navi .main-nav a {
border-left: none !important; }
#content, #container_footer {
width: 95vw !important;
max-width: 1280px !important;
margin: 0 auto !important; }
#content {
display: flex !important;
flex-direction: row;
flex-wrap: wrap;
align-content: flex-start;
justify-content: space-between; }
#content > #container_oikea div,
#content > #container_oikea p.mielipide,
#alapalkki, #almafooteri {
width: 100% !important; }
#content > * {
flex: 1 1 100%; }
#content > #container_keski {
max-width: calc(1280px - 320px);
flex: 1 1 60% !important;
width: 60% !important;
box-sizing: border-box !important;
margin: 0 !important;
padding: 0 !important;
border-left: none !important; }
#content > #container_oikea {
flex: 0 0 320px !important;
width: 320px !important;
min-width: 320px !important;
box-sizing: border-box !important;
margin: 0 !important;
padding: 0 0 0 10px !important;
overflow: hidden; }
#container_mega .drfront.df-skin-il-centerplot,
#container_mega .drfront.df-skin-il-centerplot-testi,
#container_keski .drfront.df-skin-il-centerplot,
#container_keski .drfront.df-skin-il-centerplot-testi {
max-width: 100% !important;
box-sizing: border-box;
padding: 10px; }
#container_oikea .drfront.df-skin-il-site-links-right {
max-width: 100% !important;
width: 100% !important; }
#container_keski .df-img-container,
#container_keski .df-img-container img,
#container_oikea .df-img-container,
#container_oikea .df-img-container img {
width: 100% !important;
height: auto !important; }
.drfront .df-container.df-skin-osastot-luetuimmat .drfront__link-list p {
width: 100% !important; }
.drfront .df-container.df-skin-osastot-luetuimmat .drfront__link-list p a:nth-child(2) {
width: calc(100% - 150px) !important; }
.article {
box-sizing: border-box;
padding: 10px; }
@media (max-width: 678px) {
#content > #container_keski {
flex: 1 1 100% !important;
width: 100% !important;
border-right: none !important; }
#content > #container_oikea {
flex: 0 0 100% !important;
width: 100% !important;
padding: 0 !important; } }
{"name":"__MSG_appName__","short_name":"__MSG_appShortName__","description":"__MSG_appDesc__","version":"0.2.14","version_name":"0.2.14","manifest_version":2,"default_locale":"fi","minimum_chrome_version":"31","homepage_url":"https://chrome.google.com/webstore/detail/fpgledhgeoicapmcammhdbmcmngbpkll","permissions":["contextMenus","system.display","declarativeContent"],"icons":{"128":"icons/128x128.png"},"background":{"scripts":["background.js"],"persistent":false},"page_action":{"default_icon":{"16":"icons/16x16.png","24":"icons/24x24.png","32":"icons/32x32.png"},"default_title":"__MSG_appName__"},"content_scripts":[{"matches":["*://www.iltalehti.fi/*"],"js":["content_end.js"],"run_at":"document_end"},{"matches":["*://www.iltalehti.fi/*"],"css":["./css/styles.css"],"run_at":"document_start"}]}
\ No newline at end of file
{
"name": "iltapeto",
"version": "0.2.14",
"version": "0.2.15",
"license": "MIT",
"author": "Professor Chaos",
"description": "Iltapeto tekee Iltalehden lueskelusta mukavampaa",
......
......@@ -83,25 +83,15 @@ class Comments {
*/
static fbInit(target) {
if (!target) {
// console.log('must provide parent element!');
return;
}
let el = document.createElement('div');
el.className += 'fb-comments fb-comments-lightscheme';
el.setAttribute('data-href', Comments.canonicalUrl());
el.setAttribute('data-width', target.style.minHeight);
el.setAttribute('data-numposts', '10');
// console.log('inserting comments plugin');
el.innerHTML = '';
target.insertBefore(el, target.firstChild);
let com = document.getElementsByClassName('.fb-comments');
if (com.length) {
com[0].innerHTML = '';
}
// console.log('inserted comments plugin');
Utils.appendCodeFragment(commentsJson.fbInit);
Utils.appendCodeFragment(commentsJson.fbParse);
......@@ -160,25 +150,11 @@ class Comments {
*/
static findReferenceNode() {
let referenceNode = document.getElementById('il_luetuimmat-artikkeli-wrapper');
if (referenceNode) {
return referenceNode;
}
let classes = document.getElementsByClassName('author');
if (classes.length) {
return classes[0];
}
let tvclasses = document.getElementsByClassName('iltv-article');
if (tvclasses.length) {
return tvclasses[0];
}
return null;
return referenceNode || classes[0] || tvclasses[0] || null;
}
}
export default Comments;
......@@ -59,10 +59,18 @@ describe('Content Modules', () => {
div.className += " iltv-article";
document.getElementsByTagName("body")[0].appendChild(div);
let sdk = document.createElement('div');
sdk.setAttribute("id","facebook-jssdk");
document.getElementsByTagName("body")[0].appendChild(sdk);
let meta3 = document.createElement("meta");
meta3.setAttribute("property", "fb:pages");
document.getElementsByTagName("head")[0].appendChild(meta3);
let link = document.createElement("link");
link.setAttribute("rel", "canonical");
link.setAttribute("href", "http://www.iltalehti.fi");
document.getElementsByTagName("head")[0].appendChild(link);
expect(() => {
new Comments()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment