Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Commit

Permalink
- removed devMode in config
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbaum committed Mar 5, 2019
1 parent 3ee8193 commit 231260d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 20 deletions.
2 changes: 1 addition & 1 deletion resources/js/components/Dashboard.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>

<div class="view--inner" v-if="$store.getters.isDevMode">
<div class="view--inner">

<!-- List with patterns to review -->
<status-list
Expand Down
8 changes: 0 additions & 8 deletions resources/js/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ export default {
*/
apiUri: `${workshopUri}/api/v1`,

/*
|--------------------------------------------------------------------------
| Development mode
|--------------------------------------------------------------------------
| Enable/disable development mode.
*/
devMode: true,

/*
|--------------------------------------------------------------------------
| Environment
Expand Down
8 changes: 4 additions & 4 deletions resources/js/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ import config from './config';
export default {

/**
* Dubug logging if devMode is enabled.
* Dubug logging if environment is 'development'.
* @param params
*/
debug: function(...params) {
if (config.devMode) {
if (config.environment === 'development') {
console.log(...params);
}
},

/**
* Error logging if devMode is enabled.
* Error logging if environment is 'development'.
* @param params
*/
error: function (...params) {
if (config.devMode) {
if (config.environment === 'development') {
console.error(...params);
}
}
Expand Down
7 changes: 0 additions & 7 deletions resources/js/store/getters.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
export default {

/**
* Return the devMode.
* @param state
* @returns {boolean}
*/
isDevMode: state => state.config.devMode,

/**
* Get the Laravel app name.
* @param state
Expand Down

0 comments on commit 231260d

Please sign in to comment.