Skip to content

Commit

Permalink
Removed console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
elrumo committed Apr 26, 2022
1 parent 03ae251 commit f6fa008
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 61 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
<script src="https://m.servedby-buysellads.com/monetization.custom.js" type="text/javascript"></script>

<!-- Adobe Coral -->
<link type="text/css" rel="stylesheet" href="/coral.min.css">
<script src="/coral.min.js" data-coral-icons-external="js"></script>
<link async type="text/css" rel="stylesheet" href="/coral.min.css">
<script async src="/coral.min.js" data-coral-icons-external="js"></script>

<!-- heatmap -->
<script async rel="preconnect">
Expand Down
8 changes: 0 additions & 8 deletions src/components/AccountDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ export default {
},
setYourName(e){
console.log(e.target.value);
this.yourName = e.target.value
},
Expand Down Expand Up @@ -402,20 +401,13 @@ export default {
mounted: async function(){
let parent = this;
// document.getElementById("accountDialog").show()
const store = parent.$store;
let isAuth = store.getters.getUser.isAuth
let curerntUser = Parse.User.current();
if (!isAuth) {
// console.log("Not logged in");
} else{
}
// curerntUser.set("username", "Elias")
// curerntUser.save().then((data)=>{
// }).catch(e=>{
// console.log(e);
// })
},
computed:{
Expand Down
2 changes: 0 additions & 2 deletions src/components/CarbonAd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,8 @@ export default {
let newNodeList = document.querySelector("#"+adId).children
if(newNodeList.length > 1){
console.log(newNodeList.length);
el.parentNode.removeChild(el);
} else{
// console.log(newNodeList.length);
return
}
Expand Down
1 change: 0 additions & 1 deletion src/components/Dialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ export default {
fileName = Math.round(Math.random()*10000 + d.getTime() )
fileName = fileName.toString()
}
console.log(fileName, file.name);
const Icons = Parse.Object.extend("Icons2");
const icons = new Icons()
Expand Down
43 changes: 7 additions & 36 deletions src/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ export default {
},
isDialog(){
console.log(document.getElementByTagName("coral-dialog").open);
document.getElementByTagName("coral-dialog").open;
return true;
},
Expand Down Expand Up @@ -865,20 +865,16 @@ export default {
},
changeSortOrder(){
let parent = this
let sortByName = parent.sortByName
let date = parent.icons.date
let namingOrder = parent.icons.namingOrder
console.log(sortByName);
let date = this.icons.date
let namingOrder = this.icons.namingOrder
if (parent.sortByName) {
parent.icons.iconsOrder = date
if (this.sortByName) {
this.icons.iconsOrder = date
} else{
parent.icons.iconsOrder = namingOrder
this.icons.iconsOrder = namingOrder
}
parent.sortByName = !parent.sortByName
this.sortByName = !this.sortByName
},
Expand Down Expand Up @@ -925,8 +921,6 @@ export default {
setTimeout(() => {
let page = this.page
this.page = page + 1
console.log("page:", this.page);
parent.algoliaSearch({page: parent.page, concat: true})
parent.scrolledToBottom = true
}, 800)
Expand Down Expand Up @@ -1004,17 +998,13 @@ export default {
id = icon.algoliaID
}
console.log(icon);
console.log(id);
const IconsBase = Parse.Object.extend("Icons2");
const query = new Parse.Query(IconsBase);
const docToEdit = await query.get(id)
docToEdit.set({ [field]: newName }) // Save icnsToStore obj with .icns file and its url to Parse server
docToEdit.save().then(() =>{
console.log(field, "updated.");
}).catch((e) =>{
document.getElementById("error").show()
})
Expand All @@ -1023,7 +1013,6 @@ export default {
changeDate(icon, e){
let date = e.target.value
console.log(icon);
// Get new input date and convert it to Unix miliseconds
let day = date[0]+date[1]
Expand All @@ -1033,9 +1022,6 @@ export default {
let newDate = new Date(month + "/" + day + "/" + year)
let newTimeStamp = newDate.getTime()
console.log(newDate);
console.log(newTimeStamp);
db.collection("submissions").doc(icon.id).update({
timeStamp: newTimeStamp
}).then(function() {
Expand All @@ -1052,7 +1038,6 @@ export default {
searchString: {
handler(val, oldVal) {
console.log(val);
this.page = 0;
if (this.$route.name != "Home" && this.$route.name != "Search") return;
Expand Down Expand Up @@ -1095,8 +1080,6 @@ export default {
]),
isMobile(){
let parent = this;
// console.log("this.windowWidth: ", this.windowWidth);
return this.windowWidth <= 820
},
Expand All @@ -1122,12 +1105,6 @@ export default {
}
},
async getTotalRestore(){
// let numIcons = await query.count()
// const query = new Parse.Query(Icons)
// query.exists("icnsFile")
// console.log(numIcons);
},
getParseObj(){
return Icons
Expand All @@ -1146,12 +1123,6 @@ export default {
parent.noIcons = false
}
// If searchString is empty (no search by the user), return the full list of icons
// if(!parent.searchString || parent.searchString.length == 0){
// parent.isSearch = false
// return parent.selectedIcons
// }
return parent.selectedIcons
},
Expand Down
1 change: 1 addition & 0 deletions src/components/UserIconCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
target="_blank"
>
<img
:alt="icon.appName + ' icon'"
v-lazy="{
src: lazyOptions.src,
loading: lazyOptions.loading,
Expand Down
13 changes: 1 addition & 12 deletions src/store/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,6 @@ export default createStore({
},

setData(store, data){
// console.log("data.state: ", data);
// Set data, syntax: Array[objectKey] = data
if (data.key) {
store.commit('setDataToArr', {arr: data.state, key: data.key, data: data.data})
} else{
Expand Down Expand Up @@ -428,7 +426,6 @@ export default createStore({
approvedQuery.descending("downloads");
} else if (category.id) {
let categoryParse = await store.dispatch('queryCategory', {id: category.id});
console.log('category: ', category);
approvedQuery.descending("timeStamp");
approvedQuery.equalTo("category", categoryParse);
}else{
Expand Down Expand Up @@ -529,7 +526,7 @@ export default createStore({
}

if (!result.get('type')) {
console.log("icon.type: ", result.get('appName'));
// console.log("icon.type: ", result.get('appName'));
}

for(let data in icon){
Expand All @@ -554,14 +551,10 @@ export default createStore({

async addClickCount(store, icon){

console.log("store.state.downloads: ", store.state.downloads);
console.log("icon: ", icon);
if (store.state.downloads.indexOf(icon.id) == -1) {
store.commit('setDataToArr', {arr: 'downloads', data: icon.id})
// store.state.downloads.push(icon.id)
console.log(store.state.downloads.indexOf(icon.id));
var id
console.log("icon.appName: ", icon.appName);
if (icon.id) {
id = icon.id
} else{
Expand Down Expand Up @@ -712,8 +705,6 @@ export default createStore({

adClick(store, data){
let currentPathName = router.currentRoute.value.name
console.log("router: ", currentPathName);
console.log(data.adPosition);
window.plausible("adClick", {props: {
path: currentPathName,
position: data.position,
Expand Down Expand Up @@ -853,9 +844,7 @@ export default createStore({
return 1;
}
return 0;
// return a.name.length - b.name.length;
});
// console.log(ordered);
return ordered
},

Expand Down

0 comments on commit f6fa008

Please sign in to comment.