Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ID Property changes #119

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions leaves.app/client/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,48 @@ html {
display: inline-block;
}

#snackbar {
visibility: hidden;
min-width: 250px;
margin-left: -125px;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 2px;
padding: 8px;
position: fixed;
z-index: 99;
left: 50%;
top: 30px;
font-size: 16px;
}

#snackbar.show {
visibility: visible;
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
from {bottom: 0; opacity: 0;}
to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
from {bottom: 0; opacity: 0;}
to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
from {bottom: 30px; opacity: 1;}
to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
from {bottom: 30px; opacity: 1;}
to {bottom: 0; opacity: 0;}
}

.logo-title {
cursor: pointer;
}
Expand Down
173 changes: 88 additions & 85 deletions leaves.app/client/index.html
Original file line number Diff line number Diff line change
@@ -1,85 +1,88 @@
<!DOCTYPE html>
<html ng-app="leavesNext" ng-controller="rootController">

<head>
<title>Leaves.Lite App</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Appleseed Leaves.Lite</title>

<link rel="stylesheet" type="text/css" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="bower_components/angular-bootstrap/ui-bootstrap-csp.css">
<link rel="stylesheet" type="text/css" href="bower_components/components-font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="bower_components/angular-ui-tab-scroll/angular-ui-tab-scroll.css">

<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/chrome-tabs.css">
<link href="https://fonts.googleapis.com/css?family=Vollkorn|Montserrat" rel="stylesheet">
<!-- <base href="/"> -->
</head>

<body ng-controller="mainController" id="body">
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KD9CDQS" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<leaves-nav></leaves-nav>
<div class="leaves-container">
<div class="side-tag-section" id="sideTagSection">
<br>
<div class="tag-search-input">
<input type="text" ng-model="tag_name" placeholder="Search by tag">
</div>
<ul>
<li ng-repeat="tag in tags | filter:tag_name" ui-sref="home({tag:tag.slug})">{{tag.label}}</li>
</ul>
</div>
<div class="leaves-cards" id="leavesCards">
<ui-view id="injecter"></ui-view>
</div>
</div>
<div id="contentInIframe" class="second-layer">
<center><button class="minimizeButton" type="submit" onclick="closeIframe()" title="minimize"><i class="fa fa-close"></i></button></center>
<div id="originalContent"></div>
</div>
</body>
<script type="text/javascript" src="js/vendor.bundle.js"></script>
<script type="text/javascript" src="js/app.bundle.js"></script>
<script>
$(function() {
$('#myTab a:last').tab('show')
})

function closeIframe() {
document.getElementById("contentInIframe").style.height = "0%";
document.body.style.overflow = 'scroll';
document.getElementById("originalContent").innerHTML = ''
}
function outerClickHide() {
document.getElementById('shareModal').style.display = "none";
}

function copyThisShortLink() {
var copyText = document.getElementById("bitlyLink");
copyText.select();
document.execCommand("Copy");
document.getElementById("showCopiedMsg").innerHTML = 'copied'
setTimeout(function() {
$('#showCopiedMsg').fadeOut('fast');
}, 1000);
}
</script>
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-database.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyBeK_YwXpRuv0qEXbmN8J7umHPbOZyi_J0",
authDomain: "anant-leaves-next.firebaseapp.com",
databaseURL: "https://anant-leaves-next.firebaseio.com",
projectId: "anant-leaves-next",
storageBucket: "anant-leaves-next.appspot.com",
messagingSenderId: "397443834338"
};
firebase.initializeApp(config);
</script>

</html>
<!DOCTYPE html>
<html ng-app="leavesNext">

<head>
<title>Leaves.Lite App</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Appleseed Leaves.Lite</title>

<link rel="stylesheet" type="text/css" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="bower_components/angular-bootstrap/ui-bootstrap-csp.css">
<link rel="stylesheet" type="text/css" href="bower_components/components-font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="bower_components/angular-ui-tab-scroll/angular-ui-tab-scroll.css">

<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/chrome-tabs.css">
<link href="https://fonts.googleapis.com/css?family=Vollkorn|Montserrat" rel="stylesheet">
<!-- <base href="/"> -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-125368255-3"></script><script>window.dataLayer=window.dataLayer || []; function gtag(){dataLayer.push(arguments);}gtag("js", new Date()); gtag("config", "UA-125368255-3");</script>
</head>
<body ng-controller="mainController" id="body">
<script type="text/javascript">
window._pt_lt=new Date().getTime(); window._pt_sp_2=[]; _pt_sp_2.push("setAccount,35ee64ef"); var _protocol=(("https:"==document.location.protocol) ? " https://" : " http://"); (function(){var atag=document.createElement("script"); atag.type="text/javascript"; atag.async=true; atag.src=_protocol + "cjs.ptengine.com/pta_en.js"; var s=document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(atag, s);})();
</script>
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KD9CDQS" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<leaves-nav></leaves-nav>
<div class="leaves-container">
<div class="side-tag-section" id="sideTagSection">
<br>
<div class="tag-search-input" id="searchInput">
<input type="text" id="inputText" ng-model="tag_name" placeholder="Search by tag">
</div>
<ul>
<li ng-repeat="tag in tags | filter:tag_name" ui-sref="home({tag:tag.slug})">{{tag.label}}</li>
</ul>
</div>
<div class="leaves-cards" id="leavesCards">
<ui-view id="injecter"></ui-view>
</div>
</div>
<div id="contentInIframe" class="second-layer">
<center><button class="minimizeButton" id="minButton" type="submit" onclick="closeIframe()" title="minimize"><i class="fa fa-close"></i></button></center>
<div id="originalContent"></div>
</div>
<div id="snackbar">It's already added. Check Reader Panel</div>
<script type="text/javascript" src="vendor.bundle.js"></script><script type="text/javascript" src="js/app.bundle.js"></script><script type="text/javascript" src="js/vendor.bundle.js"></script><script type="text/javascript" src="js/app.bundle.js"></script><script type="text/javascript" src="js/vendor.bundle.js"></script><script type="text/javascript" src="js/app.bundle.js"></script></body>
<script type="text/javascript" src="./env.js"></script>
<script type="text/javascript" src="js/vendor.bundle.js"></script>
<script type="text/javascript" src="js/app.bundle.js"></script>
<script>
$(function() {
$('#myTab a:last').tab('show')
})
function closeIframe() {
document.getElementById("contentInIframe").style.height = "0%";
document.body.style.overflow = 'scroll';
document.getElementById("originalContent").innerHTML = ''
}
function outerClickHide() {
document.getElementById('shareModal').style.display = "none";
}
function copyThisShortLink() {
var copyText = document.getElementById("bitlyLink");
copyText.select();
document.execCommand("Copy");
document.getElementById("showCopiedMsg").innerHTML = 'copied'
setTimeout(function() {
$('#showCopiedMsg').fadeOut('fast');
}, 1000);
}
</script>
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-database.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyBeK_YwXpRuv0qEXbmN8J7umHPbOZyi_J0",
authDomain: "anant-leaves-next.firebaseapp.com",
databaseURL: "https://anant-leaves-next.firebaseio.com",
projectId: "anant-leaves-next",
storageBucket: "anant-leaves-next.appspot.com",
messagingSenderId: "397443834338"
};
firebase.initializeApp(config);
</script>

</html>
14 changes: 11 additions & 3 deletions leaves.app/client/js/app.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -91352,10 +91352,16 @@ app.controller('leavesCardCtrl', ['$scope', '$state', '$rootScope', function($sc
var param = { ids: listarr }
$state.go('home.reader', param)
}else{
alert("Already Added.");
toastMessage()
}
}

function toastMessage() {
var x = document.getElementById("snackbar");
x.className = "show";
setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000);
}

$scope.getExternalLink = function(data){
var link;
if(data.domain_name === 'www.youtube.com'){
Expand Down Expand Up @@ -91394,7 +91400,7 @@ var app = angular.module('leavesNext');
LEAVES_API_URL: 'http://leaves.anant.us:82',
LEAVES_API_ACCESSTOKEN: 'N2Y1YmFlNzY4OTM3ZjE2OGMwODExODQ1ZDhiYmQ5OWYzMjhkZjhiMDgzZWU2Y2YyYzNkYzA5MDQ2NWRhNDIxYw',
BITLY_API_ACCESSTOKEN: '2902c7b1d82061bab0d8732473d3b37a4477a253',
GOOGLE_ANALYTICS_CODE: 'GTM-KD9CDQS'
GOOGLE_ANALYTICS_CODE: false
});

disableLogging.$inject = ['$logProvider', 'ENV'];
Expand All @@ -91405,7 +91411,9 @@ function disableLogging($logProvider, ENV) {
}

app.controller('rootController',['ENV', function(ENV){
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer',ENV.GOOGLE_ANALYTICS_CODE);
if(ENV.GOOGLE_ANALYTICS_CODE){
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-KD9CDQS');
}
}])

app.controller('mainController', ['$scope', '$http', '$state', '$location', '$rootScope','ENV', function($scope, $http, $state, $location, $rootScope, ENV) {
Expand Down
8 changes: 7 additions & 1 deletion leaves.app/client/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,16 @@ app.controller('leavesCardCtrl', ['$scope', '$state', '$rootScope', function($sc
var param = { ids: listarr }
$state.go('home.reader', param)
}else{
alert("Already Added.");
toastMessage()
}
}

function toastMessage() {
var x = document.getElementById("snackbar");
x.className = "show";
setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000);
}

$scope.getExternalLink = function(data){
var link;
if(data.domain_name === 'www.youtube.com'){
Expand Down
2 changes: 1 addition & 1 deletion leaves.app/client/js/vendor.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = __webpack_require__.p + "" + chunkId + ".app.bundle.js";
/******/ script.src = __webpack_require__.p + "" + chunkId + ".js/app.bundle.js";
/******/ var timeout = setTimeout(onScriptComplete, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
/******/ function onScriptComplete() {
Expand Down
87 changes: 87 additions & 0 deletions leaves.app/client/template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<!DOCTYPE html>
<html ng-app="leavesNext">

<head>
<title>Leaves.Lite App</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Appleseed Leaves.Lite</title>

<link rel="stylesheet" type="text/css" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="bower_components/angular-bootstrap/ui-bootstrap-csp.css">
<link rel="stylesheet" type="text/css" href="bower_components/components-font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="bower_components/angular-ui-tab-scroll/angular-ui-tab-scroll.css">

<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/chrome-tabs.css">
<link href="https://fonts.googleapis.com/css?family=Vollkorn|Montserrat" rel="stylesheet">
<!-- <base href="/"> -->
<%= htmlWebpackPlugin.options.GA %>
</head>
<body ng-controller="mainController" id="body">
<script type="text/javascript">
<%= htmlWebpackPlugin.options.PTCODE %>
</script>
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KD9CDQS" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<leaves-nav></leaves-nav>
<div class="leaves-container">
<div class="side-tag-section" id="sideTagSection">
<br>
<div class="tag-search-input">
<input type="text" ng-model="tag_name" placeholder="Search by tag">
</div>
<ul>
<li ng-repeat="tag in tags | filter:tag_name" ui-sref="home({tag:tag.slug})">{{tag.label}}</li>
</ul>
</div>
<div class="leaves-cards" id="leavesCards">
<ui-view id="injecter"></ui-view>
</div>
</div>
<div id="contentInIframe" class="second-layer">
<center><button class="minimizeButton" type="submit" onclick="closeIframe()" title="minimize"><i class="fa fa-close"></i></button></center>
<div id="originalContent"></div>
</div>
<script type="text/javascript" src="vendor.bundle.js"></script><script type="text/javascript" src="js/app.bundle.js"></script><script type="text/javascript" src="js/vendor.bundle.js"></script><script type="text/javascript" src="js/app.bundle.js"></script></body>
<script type="text/javascript" src="./env.js"></script>
<script type="text/javascript" src="js/vendor.bundle.js"></script>
<script type="text/javascript" src="js/app.bundle.js"></script>
<script>
$(function() {
$('#myTab a:last').tab('show')
})
function closeIframe() {
document.getElementById("contentInIframe").style.height = "0%";
document.body.style.overflow = 'scroll';
document.getElementById("originalContent").innerHTML = ''
}
function outerClickHide() {
document.getElementById('shareModal').style.display = "none";
}
function copyThisShortLink() {
var copyText = document.getElementById("bitlyLink");
copyText.select();
document.execCommand("Copy");
document.getElementById("showCopiedMsg").innerHTML = 'copied'
setTimeout(function() {
$('#showCopiedMsg').fadeOut('fast');
}, 1000);
}
</script>
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-database.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyBeK_YwXpRuv0qEXbmN8J7umHPbOZyi_J0",
authDomain: "anant-leaves-next.firebaseapp.com",
databaseURL: "https://anant-leaves-next.firebaseio.com",
projectId: "anant-leaves-next",
storageBucket: "anant-leaves-next.appspot.com",
messagingSenderId: "397443834338"
};
firebase.initializeApp(config);
</script>

</html>
Loading