-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
1,504 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ A embedded engineering calculator suite that's got your back. | |
|
||
- Author: gbmhunter <[email protected]> (http://www.mbedded.ninja) | ||
- Created: 2015-11-02 | ||
- Last Modified: 2015-11-20 | ||
- Version: v0.1.0 | ||
- Last Modified: 2015-12-06 | ||
- Version: v0.2.0 | ||
- Company: mbedded.ninja | ||
- Project: NinjaTerm | ||
- Language: HTML, js, jsx, LESS | ||
|
@@ -67,8 +67,11 @@ Developing | |
|
||
.. _node: https://nodejs.org/en/ | ||
|
||
To Build The Windows Installer | ||
------------------------------ | ||
Creating Installers | ||
------------------- | ||
|
||
#. Type :code:`npm run release` from the repo root directory. | ||
#. Go make a coffee (or soy latte, no judging) and enjoy the next 5-10 minutes before coming back to find an installer! An installer will be made for the operating system you are currently running on. | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
//! @file calc-actions.js | ||
//! @author Geoffrey Hunter <[email protected]> (www.mbedded.ninja) | ||
//! @created 2015-11-02 | ||
//! @last-modified 2015-11-20 | ||
//! @last-modified 2015-12-01 | ||
//! @brief Contains the "redux" actions for the NinjaCalc app. | ||
//! @details | ||
//! See README.rst in repo root dir for more info. | ||
|
@@ -45,6 +45,45 @@ export function addCalcType(model) { | |
} | ||
} | ||
|
||
//======================================================================// | ||
//===================== setCalcGridVisibility() ========================// | ||
//======================================================================// | ||
|
||
export var SET_CALC_GRID_VISIBILITY = 'SET_CALC_GRID_VISIBILITY'; | ||
|
||
//! @brief Changes the current variable being calculated. | ||
export function setCalcGridVisibility(trueFalse) { | ||
|
||
return (dispatch, getState) => { | ||
console.log('setCalcGridVisibility() thunk called.'); | ||
|
||
dispatch({ | ||
type: SET_CALC_GRID_VISIBILITY, | ||
trueFalse, | ||
}); | ||
} | ||
} | ||
|
||
//======================================================================// | ||
//========================= toggleCategory() ===========================// | ||
//======================================================================// | ||
|
||
export var TOGGLE_CATEGORY = 'TOGGLE_CATEGORY'; | ||
|
||
//! @brief Toggles the visibility of a node in the calculator category tree view. | ||
export function toggleCategory(node, toggled) { | ||
|
||
console.log('toggleCategory() action called.'); | ||
return (dispatch, getState) => { | ||
console.log('toggleCategory() thunk called.'); | ||
dispatch({ | ||
type: TOGGLE_CATEGORY, | ||
node: node, | ||
toggled: toggled, | ||
}); | ||
} | ||
} | ||
|
||
//======================================================================// | ||
//========================= setSearchTerm() ============================// | ||
//======================================================================// | ||
|
@@ -72,7 +111,8 @@ export function setSearchTerm(searchTerm) { | |
|
||
export var OPEN_CALC = 'OPEN_CALC'; | ||
|
||
//! @brief Changes the current variable being calculated. | ||
//! @brief Opens a new calculator, the type being specified by calcId. | ||
//! @details Also closes the calc grid view (so you can start using the calculator straight away). | ||
export function openCalc(calcId) { | ||
|
||
return (dispatch, getState) => { | ||
|
@@ -82,6 +122,13 @@ export function openCalc(calcId) { | |
type: OPEN_CALC, | ||
calcId, | ||
}); | ||
|
||
dispatch({ | ||
type: SET_CALC_GRID_VISIBILITY, | ||
false, | ||
}); | ||
|
||
|
||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.