Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Developer mode #93

Merged
merged 28 commits into from
Oct 18, 2017
Merged

Developer mode #93

merged 28 commits into from
Oct 18, 2017

Conversation

mdtanrikulu
Copy link
Contributor

@mdtanrikulu mdtanrikulu commented Sep 8, 2017

To activate/deactivate developer mode;

Windows, Linux:
Ctrl + Shift + D

Mac:
cmd⌘ + Shift + D

To activate/deactivate debug mode;

Windows, Linux:
Ctrl + Shift + L

Mac:
cmd⌘ + Shift + L

Copy link
Contributor

@maaktweluit maaktweluit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for not focusing much on the app / logic / flows, i'm new to this application so can not see the bigger picture yet.

Most comments are small and good practice proposals I have learned from the past.

@@ -1,40 +1,48 @@
var electron = window.require('electron');
const Config = electron.remote.require('electron-config')
var electron = require('electron');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason not to use const here?

*
* @see https://github.com/sindresorhus/electron-config
*/
export function setConfig(key, value) {
let setConfig = function(key, value) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could keep it simple with just
function setConfig(...
same for getter


module.exports = global.configStorage = configStorage
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no newline at end of file is bad for git diffs

return total
}, {}))

module.exports = global.log = logger
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

white line at eof

@@ -2,6 +2,7 @@ const electron = require('electron');
const fs = require('fs');
const os = require('os');
const path = require('path');
const log = require('./debug_handler.js')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can require().getLogger('FILE_IDENTIFIER') to not repeat the 'MAIN_PROCESS > GOLEM_HANDLER' later

getLogger is pseudo code, not sure if it exists ( yet ;) )

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice idea! I'll implement it soon.

index.js Outdated
@@ -7,7 +7,9 @@ var mkdirp = require('mkdirp');

//require('electron-debug')({showDevTools: true, enabled: true});

const createTray = require('./electron/tray_handler.js')
//const createTray = require('./electron/tray_handler.js')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commented out to stay? we used to only allow commented out code if it has an explanation comment.

@@ -206,14 +221,14 @@ export class TaskDetail extends React.Component {
}

_convertPriceAsHR(price) {
console.log("price", price);
// console.log("price", price);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logs to stay? could become log.debug or log.silly

@@ -1,6 +1,6 @@
import { dict } from './../../actions'

const {SET_FRAMES_WITH_SUBTASKS, SET_SUBTASKS_BORDER, SET_PREVIEW_LIST, SET_SUBTASKS_LIST, SET_SUBTASKS_VISIBILITY, SET_FRAME_ID, NEXT_FRAME, PREVIOUS_FRAME} = dict
const {SET_FRAMES_WITH_SUBTASKS, SET_SUBTASKS_BORDER, SET_PREVIEW_LIST, SET_SUBTASKS_LIST, SET_SUBTASKS_VISIBILITY, SET_FRAME_ID, NEXT_FRAME, PREVIOUS_FRAME, CLEAR_TASK_PLAIN} = dict
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe break down long line?

@@ -161,6 +161,7 @@ export function fetchSubtaskList(session, payload) {
}

export function* subtaskList(session, payload) {
console.log("payload", payload);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log.verbose or more debuggy?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug

*/
export function* statsFlow(session) {
yield fork(fireBase, session)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eof

@CLAassistant
Copy link

CLAassistant commented Oct 13, 2017

CLA assistant check
All committers have signed the CLA.

@badb
Copy link
Contributor

badb commented Oct 13, 2017

@mdtanrikulu Can we merge this, pleaaaase?

@mdtanrikulu
Copy link
Contributor Author

Sure, let me check after merging dev into developer mode, then I'll merge it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants