-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guide tool #424
base: webpack-build
Are you sure you want to change the base?
Guide tool #424
Conversation
…ixes (CIDARLAB#402) * Root commit * Object naming fix, viewManagerDelegate instances * paperLayers handling fix * Menu fixes/additions Co-authored-by: Liam Murray <[email protected]> Co-authored-by: Liam Murray <[email protected]> Co-authored-by: Liam Murray <[email protected]> Co-authored-by: Liam Murray <[email protected]>
This commit fixes the style issues introduced in eef85e7 according to the output from standardjs and prettier. Details: https://deepsource.io/gh/CIDARLAB/3DuF/transform/fafe459c-d2c2-4997-9138-a80a3172f322/ Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Created new visualizer for guide tool Moved all old guide code generating errors into the old folder under guide
… and StateMachine
@@ -62,6 +62,7 @@ | |||
"vue-select": "^3.13.0", | |||
"vuetify": "^2.5.8", | |||
"vuex": "^3.6.2", | |||
"webpack-build": "^1.0.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why this got added to the dependencies, please revert this back to whats in webpack-build
branch.
@@ -6,7 +6,7 @@ | |||
|
|||
<script> | |||
import Visualiser from "./components/Visualiser.vue"; | |||
import LayoutSidebar from "./views/layouts/SplitLayout.vue"; | |||
import LayoutSidebar from "./views/layouts/GuideToolLayout.vue"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will need to create a router and make sure your app is navigable.
- Add vue router
- Add button on the design page
let newlayers = []; | ||
newlayers[0] = new Layer({ z_offset: 0, flip: false }, this.currentDevice.generateNewName("LayerFlow"), LogicalLayerType.FLOW, groupNum.toString()); | ||
newlayers[1] = new Layer({ z_offset: 0, flip: false }, this.currentDevice.generateNewName("LayerControl"), LogicalLayerType.CONTROL, groupNum.toString()); | ||
newlayers[2] = new Layer({ z_offset: 0, flip: false }, this.currentDevice.generateNewName("LayerIntegration"), LogicalLayerType.INTEGRATION, groupNum.toString()); | ||
// Add model layers to current device | ||
//Add model layers to current device | ||
Registry.currentDevice.createNewLayerBlock(newlayers); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can revert these changes, there's no use for them
@@ -7,29 +7,42 @@ | |||
</template> | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can revert all the changes in this file too
<v-text-field v-model="componentName" label="Name" type="input" /> | ||
<v-btn x-small depressed @click="cancelRename"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can revert these changes too
@@ -4,7 +4,7 @@ | |||
<thead v-show="showRename"> | |||
<v-col> | |||
<v-row align-start> | |||
<v-text-field v-model="connectionName" label="Name" type="input"> </v-text-field> | |||
<v-text-field v-model="connectionName" label="Name" type="input" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can revert this
protected _ComponentInfo: Component; | ||
|
||
// state: 0 means false, 1 means true, 2 means no state now | ||
protected _State: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change into Enum : TRUE, FALSE, DONT_CARE
protected _StateList: Array<ComponentState>; | ||
protected _ModeId: number; | ||
protected _ModeDescription: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to camelCase : _StateList
-> _stateList
this._ModeId = value; | ||
} | ||
// return Mode ID from current Device state | ||
get ModeId() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Convert all setters and getters into camelCase
} | ||
|
||
// add a constraint list into _StateListAll | ||
addElement(NewELement: DeviceState) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Argument name should be newState
that would be easier to read.
Also do JSDoc standard formatting
No description provided.