cleanup: remove logs

This commit is contained in:
Liyas Thomas
2021-05-15 06:47:13 +00:00
committed by GitHub
parent 8e3ecb4c25
commit 76866f78f0
13 changed files with 5 additions and 45 deletions

View File

@@ -369,7 +369,6 @@ export default {
this.collectionsType.selectedTeam.id this.collectionsType.selectedTeam.id
) )
} }
console.log(this.collectionJson)
return this.collectionJson return this.collectionJson
}, },
exportJSON() { exportJSON() {

View File

@@ -281,9 +281,6 @@ export default {
document.addEventListener("keydown", this._keyListener.bind(this)) document.addEventListener("keydown", this._keyListener.bind(this))
this.$subscribeTo(this.teamCollectionAdapter.collections$, (colls) => { this.$subscribeTo(this.teamCollectionAdapter.collections$, (colls) => {
console.log("new tree!")
console.log(colls)
this.teamCollectionsNew = cloneDeep(colls) this.teamCollectionsNew = cloneDeep(colls)
}) })
}, },
@@ -564,7 +561,6 @@ export default {
} }
}, },
expandCollection(collectionID) { expandCollection(collectionID) {
console.log(collectionID)
this.teamCollectionAdapter.expandCollection(collectionID) this.teamCollectionAdapter.expandCollection(collectionID)
}, },
removeCollection({ collectionsType, collectionIndex, collectionID }) { removeCollection({ collectionsType, collectionIndex, collectionID }) {
@@ -597,7 +593,6 @@ export default {
this.$toast.success(this.$t("deleted"), { this.$toast.success(this.$t("deleted"), {
icon: "delete", icon: "delete",
}) })
console.log(data)
}) })
.catch((error) => { .catch((error) => {
// Error // Error

View File

@@ -181,7 +181,6 @@ export default {
this.$toast.success(this.$t("deleted"), { this.$toast.success(this.$t("deleted"), {
icon: "delete", icon: "delete",
}) })
console.log(data)
this.$emit("update-team-collections") this.$emit("update-team-collections")
this.confirmRemove = false this.confirmRemove = false
}) })

View File

@@ -56,7 +56,6 @@ export default {
}, },
methods: { methods: {
addNewTeam() { addNewTeam() {
console.log("addNewTeam start")
// We save the user input in case of an error // We save the user input in case of an error
const name = this.name const name = this.name
// We clear it early to give the UI a snappy feel // We clear it early to give the UI a snappy feel
@@ -65,7 +64,6 @@ export default {
this.$toast.error(this.$t("string_length_insufficient"), { this.$toast.error(this.$t("string_length_insufficient"), {
icon: "error", icon: "error",
}) })
console.log("String length less than 6")
return return
} }
// Call to the graphql mutation // Call to the graphql mutation
@@ -74,7 +72,6 @@ export default {
.then((data) => { .then((data) => {
// Result // Result
this.hideModal() this.hideModal()
console.log(data)
}) })
.catch((error) => { .catch((error) => {
// Error // Error

View File

@@ -184,7 +184,6 @@ export default {
}, },
mounted() { mounted() {
this.membersAdapter.members$.subscribe((list) => { this.membersAdapter.members$.subscribe((list) => {
console.log(list)
this.members = cloneDeep(list) this.members = cloneDeep(list)
}) })
}, },
@@ -208,13 +207,11 @@ export default {
}, },
methods: { methods: {
updateRole(id, role) { updateRole(id, role) {
console.log(this.members, id)
this.members[id].role = role this.members[id].role = role
}, },
addTeamMember() { addTeamMember() {
let value = { key: "", value: "" } let value = { key: "", value: "" }
this.newMembers.push(value) this.newMembers.push(value)
console.log("addTeamMember")
}, },
removeExistingTeamMember(userID) { removeExistingTeamMember(userID) {
team_utils team_utils
@@ -236,7 +233,6 @@ export default {
}, },
removeTeamMember(index) { removeTeamMember(index) {
this.newMembers.splice(index, 1) this.newMembers.splice(index, 1)
console.log("removeTeamMember")
}, },
validateEmail(emailID) { validateEmail(emailID) {
if (/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(emailID)) { if (/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(emailID)) {
@@ -249,7 +245,6 @@ export default {
this.$toast.error(this.$t("string_length_insufficient"), { this.$toast.error(this.$t("string_length_insufficient"), {
icon: "error", icon: "error",
}) })
console.log("String length less than 6")
return return
} }
this.$data.newMembers.forEach((element) => { this.$data.newMembers.forEach((element) => {
@@ -257,7 +252,6 @@ export default {
this.$toast.error(this.$t("invalid_emailID_format"), { this.$toast.error(this.$t("invalid_emailID_format"), {
icon: "error", icon: "error",
}) })
console.log("Email id format invalid")
return return
} }
}) })

View File

@@ -111,7 +111,6 @@ export default {
} }
reader.readAsText(this.$refs.inputChooseFileToReplaceWith.files[0]) reader.readAsText(this.$refs.inputChooseFileToReplaceWith.files[0])
this.fileImported() this.fileImported()
this.syncToFBTeams()
}, },
importFromJSON() { importFromJSON() {
let reader = new FileReader() let reader = new FileReader()
@@ -125,7 +124,6 @@ export default {
} }
} }
reader.readAsText(this.$refs.inputChooseFileToImportFrom.files[0]) reader.readAsText(this.$refs.inputChooseFileToImportFrom.files[0])
this.syncToFBTeams()
}, },
importFromPostwoman(teams) { importFromPostwoman(teams) {
let confirmation = this.$t("file_imported") let confirmation = this.$t("file_imported")
@@ -160,9 +158,6 @@ export default {
syncTeams() { syncTeams() {
this.fileImported() this.fileImported()
}, },
syncToFBTeams() {
console.log("syncToFBTeams")
},
fileImported() { fileImported() {
this.$toast.info(this.$t("file_imported"), { this.$toast.info(this.$t("file_imported"), {
icon: "folder_shared", icon: "folder_shared",

View File

@@ -73,7 +73,6 @@ export default {
methods: { methods: {
deleteTeam() { deleteTeam() {
if (!confirm("Are you sure you want to remove this team?")) return if (!confirm("Are you sure you want to remove this team?")) return
console.log("deleteTeam", this.teamID)
// Call to the graphql mutation // Call to the graphql mutation
team_utils team_utils
.deleteTeam(this.$apollo, this.teamID) .deleteTeam(this.$apollo, this.teamID)
@@ -82,7 +81,6 @@ export default {
this.$toast.success(this.$t("new_team_created"), { this.$toast.success(this.$t("new_team_created"), {
icon: "done", icon: "done",
}) })
console.log(data)
}) })
.catch((error) => { .catch((error) => {
// Error // Error
@@ -94,7 +92,6 @@ export default {
}, },
exitTeam() { exitTeam() {
if (!confirm("Are you sure you want to exit this team?")) return if (!confirm("Are you sure you want to exit this team?")) return
console.log("leaveTeam", this.teamID)
team_utils team_utils
.exitTeam(this.$apollo, this.teamID) .exitTeam(this.$apollo, this.teamID)
.then((data) => { .then((data) => {
@@ -102,7 +99,6 @@ export default {
this.$toast.success(this.$t("team_exited"), { this.$toast.success(this.$t("team_exited"), {
icon: "done", icon: "done",
}) })
console.log(data)
}) })
.catch((error) => { .catch((error) => {
// Error // Error

View File

@@ -135,17 +135,13 @@ export default {
this.showModalImportExport = shouldDisplay this.showModalImportExport = shouldDisplay
}, },
editTeam(team, teamID) { editTeam(team, teamID) {
console.log("editTeamStart", team)
this.editingTeam = team this.editingTeam = team
this.editingteamID = team.id this.editingteamID = team.id
this.displayModalEdit(true) this.displayModalEdit(true)
this.syncTeams()
}, },
resetSelectedData() { resetSelectedData() {
console.log("resetSelectedData") this.$data.editingTeam = undefined
}, this.$data.editingteamID = undefined
syncTeams() {
console.log("syncTeams")
}, },
}, },
beforeDestroy() { beforeDestroy() {

View File

@@ -8,8 +8,6 @@ let authToken: String | null = null
export function registerApolloAuthUpdate() { export function registerApolloAuthUpdate() {
fb.idToken$.subscribe((token: String | null) => { fb.idToken$.subscribe((token: String | null) => {
console.log(token, "from sub")
authToken = token authToken = token
}) })
} }
@@ -18,8 +16,6 @@ export function registerApolloAuthUpdate() {
* Injects auth token if available * Injects auth token if available
*/ */
const authLink = setContext((_, { headers }) => { const authLink = setContext((_, { headers }) => {
console.log(authToken)
if (authToken) { if (authToken) {
return { return {
headers: { headers: {

View File

@@ -44,12 +44,10 @@ export const currentUserInfo$ = new BehaviorSubject<UserInfo | null>(null)
*/ */
export async function initUserInfo() { export async function initUserInfo() {
await updateUserInfo() await updateUserInfo()
console.log("updated")
fb.idToken$.subscribe((token) => { fb.idToken$.subscribe((token) => {
if (token) { if (token) {
updateUserInfo() updateUserInfo()
console.log(token, "updateUserInfo")
} else { } else {
currentUserInfo$.next(null) currentUserInfo$.next(null)
} }
@@ -75,8 +73,6 @@ async function updateUserInfo() {
`, `,
}) })
console.log(data)
currentUserInfo$.next({ currentUserInfo$.next({
uid: data.me.uid, uid: data.me.uid,
displayName: data.me.displayName, displayName: data.me.displayName,

View File

@@ -104,8 +104,6 @@ export default class TeamMemberAdapter {
}, },
}) })
.subscribe(({ data }) => { .subscribe(({ data }) => {
console.log(data)
this.members$.next( this.members$.next(
this.members$.value.filter((el) => el.user.uid !== data.teamMemberRemoved) this.members$.value.filter((el) => el.user.uid !== data.teamMemberRemoved)
) )

View File

@@ -52,7 +52,6 @@ export async function getLiveTeamMembersList(apollo, teamID) {
}, },
}) })
.subscribe(({ data }) => { .subscribe(({ data }) => {
console.log(data)
subject.next([...subject.value, data.teamMemberAdded]) subject.next([...subject.value, data.teamMemberAdded])
}) })

View File

@@ -595,9 +595,9 @@ export default {
} }
this.showSaveRequestModal = true this.showSaveRequestModal = true
}, },
useSelectedEnvironment(event) { // useSelectedEnvironment(event) {
console.log("use selected environment") // console.log("use selected environment")
}, // },
handleUseHistory(entry) { handleUseHistory(entry) {
this.url = entry.url this.url = entry.url
this.headers = entry.headers this.headers = entry.headers