mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
hide console log
This commit is contained in:
parent
e4e6cf967e
commit
a1a79041c3
@ -21,7 +21,7 @@ export default {
|
||||
created () {
|
||||
console.log('%cWillkommen bei Gradido %cgreen text', 'font-weight:bold', 'color: green')
|
||||
if ( $cookies.isKey("gdd_session_id") == true) {
|
||||
console.log('%cWillkommen zurück %c'+$cookies.get("gdd_u")+'', 'font-weight:bold', 'color: orange')
|
||||
console.log('%cHey %c'+$cookies.get("gdd_u")+'', 'font-weight:bold', 'color: orange')
|
||||
this.$store.commit('session_id', $cookies.get("gdd_session_id"))
|
||||
this.$store.commit('email', $cookies.get("gdd_u"))
|
||||
this.$router.push("overview")
|
||||
|
||||
@ -3,9 +3,7 @@ import CONFIG from '../config'
|
||||
|
||||
const apiGet = async (url) => {
|
||||
try {
|
||||
console.log("comm api url",url)
|
||||
const result = await axios.get(url);
|
||||
console.log("comm api result",result)
|
||||
if(result.status !== 200){
|
||||
throw new Error('HTTP Status Error '+result.status)
|
||||
}
|
||||
|
||||
@ -67,15 +67,15 @@ export const store = new Vuex.Store({
|
||||
// Asyncronous actions - used for api calls
|
||||
actions: {
|
||||
login: async ({ dispatch, commit }, data) => {
|
||||
console.log('action: login')
|
||||
// console.log('action: login')
|
||||
|
||||
axios.post("http://localhost/login_api/unsecureLogin/",
|
||||
{"email": data.email, "password":data.password }).then((result) => {
|
||||
console.log("store login result", result)
|
||||
// console.log("store login result", result)
|
||||
|
||||
// const result = await loginAPI.login(data.email,data.password)
|
||||
console.log('result.data.state',result.data.state)
|
||||
console.log('result.data.session_id',result.data.session_id)
|
||||
// console.log('result.data.state',result.data.state)
|
||||
// console.log('result.data.session_id',result.data.session_id)
|
||||
|
||||
|
||||
if( result.data.state == "success"){
|
||||
@ -86,7 +86,7 @@ export const store = new Vuex.Store({
|
||||
router.push('/overview')
|
||||
} else {
|
||||
// Register failed, we perform a logout
|
||||
console.log('action login to logout start')
|
||||
// console.log('action login to logout start')
|
||||
dispatch('logout')
|
||||
}
|
||||
}, (error) => {
|
||||
@ -102,7 +102,7 @@ export const store = new Vuex.Store({
|
||||
// http://localhost/transaction-creations/ajaxCreate
|
||||
},
|
||||
createUser: async ({ commit, dispatch }, data) => {
|
||||
console.log('action: createUser')
|
||||
// console.log('action: createUser')
|
||||
const result = await loginAPI.create(data.email,data.first_name,data.last_name,data.password)
|
||||
if( result.success ){
|
||||
commit('session_id', result.result.data.session_id)
|
||||
@ -112,7 +112,7 @@ export const store = new Vuex.Store({
|
||||
router.push('/overview')
|
||||
} else {
|
||||
// Register failed, we perform a logout
|
||||
console.log('action createUser to logout start')
|
||||
// console.log('action createUser to logout start')
|
||||
dispatch('logout')
|
||||
}
|
||||
},
|
||||
@ -134,7 +134,7 @@ export const store = new Vuex.Store({
|
||||
//console.log('action: ajaxCreate')
|
||||
state.ajaxCreateData.amount = (state.ajaxCreateData.amount)*10000
|
||||
axios.post("http://localhost/transaction-send-coins/ajaxCreate", state.ajaxCreateData).then((result) => {
|
||||
console.log("store ajaxCreate result", result)
|
||||
//console.log("store ajaxCreate result", result)
|
||||
|
||||
if( result.success ){
|
||||
// TODO
|
||||
@ -150,14 +150,14 @@ export const store = new Vuex.Store({
|
||||
// const result = await communityAPI.transactions(state.session_id)
|
||||
},
|
||||
accountBalance: async ({ commit, dispatch, state }) => {
|
||||
console.log('action: accountBalance')
|
||||
console.log('action: dispatch', dispatch)
|
||||
console.log('action: state.session_id', state.session_id)
|
||||
console.log(" action: $cookies.get('gdd_session_id') ", $cookies.get("gdd_session_id") )
|
||||
// commit('session_id', $cookies.get("gdd_session_id"))
|
||||
// commit('email', $cookies.get("gdd_u"))
|
||||
// console.log('action: accountBalance')
|
||||
// console.log('action: dispatch', dispatch)
|
||||
// console.log('action: state.session_id', state.session_id)
|
||||
// console.log(" action: $cookies.get('gdd_session_id') ", $cookies.get("gdd_session_id") )
|
||||
// commit('session_id', $cookies.get("gdd_session_id"))
|
||||
// commit('email', $cookies.get("gdd_u"))
|
||||
const result = await communityAPI.balance($cookies.get("gdd_session_id"))
|
||||
console.log("accountBalance result", result)
|
||||
// console.log("accountBalance result", result)
|
||||
if(result.success) {
|
||||
commit('user_balance', result.result.data.balance)
|
||||
} else {
|
||||
|
||||
@ -13,12 +13,10 @@
|
||||
</b-row>
|
||||
<b-row>
|
||||
<qrcode-stream @decode="onDecode" @detect="onDetect" ></qrcode-stream>
|
||||
<b-alert show variant="secondary">
|
||||
|
||||
<b-alert show variant="secondary">
|
||||
<span class="alert-text"><strong>QR Code Scanner</strong> - Scanne den QR Code deines Partners</span>
|
||||
</b-alert>
|
||||
<b-alert show variant="warning" >
|
||||
|
||||
<b-alert show variant="warning" >
|
||||
<span class="alert-text" @click="scan=false"><strong>abrechen!</strong></span>
|
||||
</b-alert>
|
||||
</b-row>
|
||||
@ -38,10 +36,8 @@
|
||||
size="lg"
|
||||
class="mb-3"
|
||||
>
|
||||
<b-input-group-prepend>
|
||||
|
||||
<img src="img/icons/gradido/qr-scan-pure.png" width="80" height="auto" @click="scan=true"/>
|
||||
|
||||
<b-input-group-prepend>
|
||||
<img src="img/icons/gradido/qr-scan-pure.png" width="80" height="auto" @click="scan=true"/>
|
||||
</b-input-group-prepend>
|
||||
<b-form-input
|
||||
id="input-1"
|
||||
@ -75,17 +71,13 @@
|
||||
</b-form-input>
|
||||
|
||||
<b-input-group-prepend>
|
||||
|
||||
<div class="h1">GDD</div>
|
||||
|
||||
</b-input-group-prepend>
|
||||
|
||||
</b-input-group>
|
||||
<b-input-group>
|
||||
<b-input-group-prepend>
|
||||
|
||||
<b-icon icon="chat-right-text" class="display-1"></b-icon>
|
||||
|
||||
<b-input-group-prepend>
|
||||
<b-icon icon="chat-right-text" class="display-1"></b-icon>
|
||||
</b-input-group-prepend>
|
||||
<b-form-textarea v-model="form.memo"></b-form-textarea>
|
||||
</b-input-group>
|
||||
@ -97,7 +89,6 @@
|
||||
<br>
|
||||
</b-form>
|
||||
</validation-observer>
|
||||
|
||||
</b-card>
|
||||
</b-collapse>
|
||||
</b-col>
|
||||
@ -133,14 +124,13 @@ export default {
|
||||
async onDecode (decodedString) {
|
||||
console.log('onDecode JSON.parse(decodedString)',JSON.parse(decodedString) )
|
||||
const arr = JSON.parse(decodedString)
|
||||
console.log('arr',arr[0].email )
|
||||
// console.log('arr',arr[0].email )
|
||||
this.modal.h4 = 'Scan erfolgreich'
|
||||
this.modal.p = arr
|
||||
this.form.email = arr[0].email
|
||||
this.form.amount1 = arr[0].amount
|
||||
console.log('arr mail',arr.email)
|
||||
console.log('arr mail',arr.amount)
|
||||
|
||||
// console.log('arr mail',arr.email)
|
||||
// console.log('arr mail',arr.amount)
|
||||
this.modals2 = true
|
||||
},
|
||||
async onDetect (promise) {
|
||||
|
||||
@ -57,13 +57,12 @@ export default {
|
||||
axios.get("http://localhost/state-balances/ajaxListTransactions/"+ this.$store.state.session_id).then((result) => {
|
||||
//console.log("result",result)
|
||||
//console.log("result.state",result.data.state)
|
||||
//
|
||||
//console.log("result.data.state == 'success'",result.data.state == "success")
|
||||
|
||||
//console.log("result.count",result.data.count)
|
||||
// console.log("result.gdtSum",result.data.gdtSum)
|
||||
console.log("result.transactions",typeof(result.data.transactions))
|
||||
//commit('transactions', result.data.transactions)
|
||||
//console.log("result.count",result.data.count)
|
||||
//console.log("result.gdtSum",result.data.gdtSum)
|
||||
//console.log("result.transactions",typeof(result.data.transactions))
|
||||
//commit('transactions', result.data.transactions)
|
||||
this.$store.state.user.balance_gdt = result.data.gdtSum
|
||||
this.items = result.data.transactions
|
||||
this.count = result.data.count
|
||||
@ -76,7 +75,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
filteredItems(a) {
|
||||
console.log("filteredItems date",a.items)
|
||||
// console.log("filteredItems date",a.items)
|
||||
return a.items
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user