Skip to content

Commit

Permalink
Merge branch 'main' into text.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaMajmudar authored Jan 4, 2024
2 parents bac67d1 + 1f06486 commit 16741fb
Show file tree
Hide file tree
Showing 60 changed files with 129 additions and 197 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"postinstall": "husky install"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.4",
"@fortawesome/fontawesome-free": "^6.5.1",
"@mdi/font": "5.9.55",
"@tiptap/core": "^2.0.3",
"@tiptap/extension-character-count": "^2.0.3",
Expand Down
1 change: 0 additions & 1 deletion src/components/MessageBox/messageBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@

<script lang="ts" setup>
import BooleanTable from '@/DialogBox/BooleanTable.vue'
import { defineProps, defineEmits } from 'vue'
defineEmits(['buttonClick'])
Expand Down
4 changes: 1 addition & 3 deletions src/components/Navbar/Hamburger/Hamburger.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@

<script lang="ts" setup></script>

<style>
@import url('./Hamburger.css');
</style>
<style></style>
1 change: 0 additions & 1 deletion src/components/ReportIssue/ReportIssueButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
</template>

<script lang="ts" setup>
import { defineEmits } from 'vue'
const emit = defineEmits(['openReportModal'])
Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/ALU.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,5 +196,5 @@ ALU.prototype.tooltipText =
* @type {string}
* @category modules
*/
ALU.prototype.helplink = 'https://docs.circuitverse.org/#/miscellaneous?id=alu'
ALU.prototype.helplink = 'https://docs.circuitverse.org/#/chapter4/8misc?id=alu'
ALU.prototype.objectType = 'ALU'
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Adder.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,5 @@ export default class Adder extends CircuitElement {
*/
Adder.prototype.tooltipText = 'Adder ToolTip : Performs addition of numbers.'
Adder.prototype.helplink =
'https://docs.circuitverse.org/#/miscellaneous?id=adder'
'https://docs.circuitverse.org/#/chapter4/8misc?id=adder'
Adder.prototype.objectType = 'Adder'
2 changes: 1 addition & 1 deletion src/simulator/src/modules/AndGate.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,5 @@ AndGate.prototype.verilogType = 'and'
* @category modules
*/
AndGate.prototype.changeInputSize = changeInputSize
AndGate.prototype.helplink = 'https://docs.circuitverse.org/#/gates?id=and-gate'
AndGate.prototype.helplink = 'https://docs.circuitverse.org/#/chapter4/4gates?id=and-gate'
AndGate.prototype.objectType = 'AndGate'
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Arrow.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ export default class Arrow extends CircuitElement {
*/
Arrow.prototype.tooltipText = 'Arrow ToolTip : Arrow Selected.'
Arrow.prototype.propagationDelayFixed = true
Arrow.prototype.helplink = 'https://docs.circuitverse.org/#/annotation?id=arrow'
Arrow.prototype.helplink = 'https://docs.circuitverse.org/#/chapter4/7annotation?id=arrow'
Arrow.prototype.objectType = 'Arrow'
2 changes: 1 addition & 1 deletion src/simulator/src/modules/BitSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default class BitSelector extends CircuitElement {
BitSelector.prototype.tooltipText =
'BitSelector ToolTip : Divides input bits into several equal-sized groups.'
BitSelector.prototype.helplink =
'https://docs.circuitverse.org/#/decodersandplexers?id=bit-selector'
'https://docs.circuitverse.org/#/chapter4/5muxandplex?id=bitselector'

/**
* @memberof BitSelector
Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,5 @@ export default class Buffer extends CircuitElement {
Buffer.prototype.tooltipText =
'Buffer ToolTip : Isolate the input from the output.'
Buffer.prototype.helplink =
'https://docs.circuitverse.org/#/miscellaneous?id=buffer'
'https://docs.circuitverse.org/#/chapter4/8misc?id=buffer'
Buffer.prototype.objectType = 'Buffer'
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Button.prototype.tooltipText =
* @category modules
*/
Button.prototype.helplink =
'https://docs.circuitverse.org/#/inputElements?id=button'
'https://docs.circuitverse.org/#/chapter4/2input?id=button'

/**
* @memberof Button
Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/ConstantVal.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ ConstantVal.prototype.tooltipText =
* @category modules
*/
ConstantVal.prototype.helplink =
'https://docs.circuitverse.org/#/inputElements?id=constantval'
'https://docs.circuitverse.org/#/chapter4/2input?id=constantval'

/**
* @memberof ConstantVal
Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Counter.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default class Counter extends CircuitElement {
Counter.prototype.tooltipText =
'Counter: a binary counter from zero to a given maximum value'
Counter.prototype.helplink =
'https://docs.circuitverse.org/#/inputElements?id=counter'
'https://docs.circuitverse.org/#/chapter4/2input?id=counter'
Counter.prototype.objectType = 'Counter'
Counter.prototype.objectType = 'Counter'
Counter.prototype.canShowInSubcircuit = true
Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,5 +287,5 @@ export default class Decoder extends CircuitElement {
Decoder.prototype.tooltipText =
'Decoder ToolTip : Converts coded inputs into coded outputs.'
Decoder.prototype.helplink =
'https://docs.circuitverse.org/#/decodersandplexers?id=decoder'
'https://docs.circuitverse.org/#/chapter4/5muxandplex?id=decoder'
Decoder.prototype.objectType = 'Decoder'
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Demultiplexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,5 +320,5 @@ export default class Demultiplexer extends CircuitElement {
Demultiplexer.prototype.tooltipText =
'DeMultiplexer ToolTip : Multiple outputs and a single line input.'
Demultiplexer.prototype.helplink =
'https://docs.circuitverse.org/#/decodersandplexers?id=demultiplexer'
'https://docs.circuitverse.org/#/chapter4/5muxandplex?id=demultiplexer'
Demultiplexer.prototype.objectType = 'Demultiplexer'
2 changes: 1 addition & 1 deletion src/simulator/src/modules/DigitalLed.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ DigitalLed.prototype.tooltipText =
* @category modules
*/
DigitalLed.prototype.helplink =
'https://docs.circuitverse.org/#/outputs?id=digital-led'
'https://docs.circuitverse.org/#/chapter4/3output?id=digital-led'

/**
* @memberof DigitalLed
Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Flag.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ Flag.prototype.helplink =
* @category modules
*/
Flag.prototype.helplink =
'https://docs.circuitverse.org/#/miscellaneous?id=tunnel'
'https://docs.circuitverse.org/#/chapter4/8misc?id=tunnel'

/**
* @memberof Flag
Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Ground.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Ground.prototype.tooltipText = 'Ground: All bits are Low(0).'
* @category modules
*/
Ground.prototype.helplink =
'https://docs.circuitverse.org/#/inputElements?id=ground'
'https://docs.circuitverse.org/#/chapter4/2input?id=ground'

/**
* @memberof Ground
Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/HexDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ HexDisplay.prototype.tooltipText =
* @category modules
*/
HexDisplay.prototype.helplink =
'https://docs.circuitverse.org/#/outputs?id=hex-display'
'https://docs.circuitverse.org/#/chapter4/3output?id=hexdisplay'
HexDisplay.prototype.objectType = 'HexDisplay'
HexDisplay.prototype.canShowInSubcircuit = true
HexDisplay.prototype.layoutProperties = {
Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ Input.prototype.tooltipText =
* @category modules
*/
Input.prototype.helplink =
'https://docs.circuitverse.org/#/inputElements?id=input'
'https://docs.circuitverse.org/#/chapter4/2input?id=input'

/**
* @memberof Input
Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/LSB.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,5 @@ export default class LSB extends CircuitElement {
LSB.prototype.tooltipText =
'LSB ToolTip : The least significant bit or the low-order bit.'
LSB.prototype.helplink =
'https://docs.circuitverse.org/#/decodersandplexers?id=least-significant-bit-lsb-detector'
'https://docs.circuitverse.org/#/chapter4/5muxandplex?id=least-significant-bit-lsb-detector'
LSB.prototype.objectType = 'LSB'
2 changes: 1 addition & 1 deletion src/simulator/src/modules/MSB.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,5 @@ export default class MSB extends CircuitElement {
MSB.prototype.tooltipText =
'MSB ToolTip : The most significant bit or the high-order bit.'
MSB.prototype.helplink =
'https://docs.circuitverse.org/#/decodersandplexers?id=most-significant-bit-msb-detector'
'https://docs.circuitverse.org/#/chapter4/5muxandplex?id=most-significant-bit-msb-detector'
MSB.prototype.objectType = 'MSB'
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Multiplexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export default class Multiplexer extends CircuitElement {
Multiplexer.prototype.tooltipText =
'Multiplexer ToolTip : Multiple inputs and a single line output.'
Multiplexer.prototype.helplink =
'https://docs.circuitverse.org/#/decodersandplexers?id=multiplexer'
'https://docs.circuitverse.org/#/chapter4/5muxandplex?id=multiplexer'

/**
* @memberof Multiplexer
Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/NandGate.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,5 +165,5 @@ NandGate.prototype.changeInputSize = changeInputSize
*/
NandGate.prototype.verilogType = 'nand'
NandGate.prototype.helplink =
'https://docs.circuitverse.org/#/gates?id=nand-gate'
'https://docs.circuitverse.org/#/chapter4/4gates?id=nand-gate'
NandGate.prototype.objectType = 'NandGate'
2 changes: 1 addition & 1 deletion src/simulator/src/modules/NorGate.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,5 @@ NorGate.prototype.changeInputSize = changeInputSize
* @category modules
*/
NorGate.prototype.verilogType = 'nor'
NorGate.prototype.helplink = 'https://docs.circuitverse.org/#/gates?id=nor-gate'
NorGate.prototype.helplink = 'https://docs.circuitverse.org/#/chapter4/4gates?id=nor-gate'
NorGate.prototype.objectType = 'NorGate'
2 changes: 1 addition & 1 deletion src/simulator/src/modules/NotGate.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@ export default class NotGate extends CircuitElement {
*/
NotGate.prototype.tooltipText =
'Not Gate Tooltip : Inverts the input digital signal.'
NotGate.prototype.helplink = 'https://docs.circuitverse.org/#/gates?id=not-gate'
NotGate.prototype.helplink = 'https://docs.circuitverse.org/#/chapter4/4gates?id=not-gate'
NotGate.prototype.objectType = 'NotGate'
NotGate.prototype.verilogType = 'not'
2 changes: 1 addition & 1 deletion src/simulator/src/modules/OrGate.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,5 +171,5 @@ OrGate.prototype.alwaysResolve = true
* @category modules
*/
OrGate.prototype.verilogType = 'or'
OrGate.prototype.helplink = 'https://docs.circuitverse.org/#/gates?id=or-gate'
OrGate.prototype.helplink = 'https://docs.circuitverse.org/#/chapter4/4gates?id=or-gate'
OrGate.prototype.objectType = 'OrGate'
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Output.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ Output.prototype.tooltipText =
* @type {string}
* @category modules
*/
Output.prototype.helplink = 'https://docs.circuitverse.org/#/outputs?id=output'
Output.prototype.helplink = 'https://docs.circuitverse.org/#/chapter4/3output?id=output'

/**
* @memberof Output
Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Power.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Power.prototype.tooltipText = 'Power: All bits are High(1).'
* @category modules
*/
Power.prototype.helplink =
'https://docs.circuitverse.org/#/inputElements?id=power'
'https://docs.circuitverse.org/#/chapter4/2input?id=power'

/**
* @memberof Power
Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/PriorityEncoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,5 +272,5 @@ export default class PriorityEncoder extends CircuitElement {
PriorityEncoder.prototype.tooltipText =
'Priority Encoder ToolTip : Compresses binary inputs into a smaller number of outputs.'
PriorityEncoder.prototype.helplink =
'https://docs.circuitverse.org/#/decodersandplexers?id=priority-encoder'
'https://docs.circuitverse.org/#/chapter4/5muxandplex?id=priority-encoder'
PriorityEncoder.prototype.objectType = 'PriorityEncoder'
2 changes: 1 addition & 1 deletion src/simulator/src/modules/RGBLed.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,6 @@ RGBLed.prototype.tooltipText =
* @type {string}
* @category modules
*/
RGBLed.prototype.helplink = 'https://docs.circuitverse.org/#/outputs?id=rgb-led'
RGBLed.prototype.helplink = 'https://docs.circuitverse.org/#/chapter4/3output?id=rgbled'
RGBLed.prototype.objectType = 'RGBLed'
RGBLed.prototype.canShowInSubcircuit = true
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Random.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default class Random extends CircuitElement {
Random.prototype.tooltipText = 'Random ToolTip : Random Selected.'

Random.prototype.helplink =
'https://docs.circuitverse.org/#/inputElements?id=random'
'https://docs.circuitverse.org/#/chapter4/2input?id=random'

Random.prototype.objectType = 'Random'

Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Rectangle.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default class Rectangle extends CircuitElement {
Rectangle.prototype.tooltipText =
'Rectangle ToolTip : Used to Box the Circuit or area you want to highlight.'
Rectangle.prototype.helplink =
'https://docs.circuitverse.org/#/annotation?id=rectangle'
'https://docs.circuitverse.org/#/chapter4/7annotation?id=rectangle'
Rectangle.prototype.propagationDelayFixed = true

/**
Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/SevenSegDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ SevenSegDisplay.prototype.tooltipText =
* @category modules
*/
SevenSegDisplay.prototype.helplink =
'https://docs.circuitverse.org/#/outputs?id=seven-segment-display'
'https://docs.circuitverse.org/#/chapter4/3output?id=sevensegdisplay'
SevenSegDisplay.prototype.objectType = 'SevenSegDisplay'
SevenSegDisplay.prototype.canShowInSubcircuit = true
SevenSegDisplay.prototype.layoutProperties = {
Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/SixteenSegDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ SixteenSegDisplay.prototype.tooltipText =
* @category modules
*/
SixteenSegDisplay.prototype.helplink =
'https://docs.circuitverse.org/#/outputs?id=sixteen-segment-display'
'https://docs.circuitverse.org/#/chapter4/3output?id=sixteensegdisplay'
SixteenSegDisplay.prototype.objectType = 'SixteenSegDisplay'
SixteenSegDisplay.prototype.canShowInSubcircuit = true
SixteenSegDisplay.prototype.layoutProperties = {
Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Splitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,5 +358,5 @@ Splitter.prototype.tooltipText =
* @type {string}
* @category modules
*/
Splitter.prototype.helplink = 'https://docs.circuitverse.org/#/splitter'
Splitter.prototype.helplink = 'https://docs.circuitverse.org/#/chapter4/8misc?id=splitter'
Splitter.prototype.objectType = 'Splitter'
2 changes: 1 addition & 1 deletion src/simulator/src/modules/SquareRGBLed.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ SquareRGBLed.prototype.tooltipText =
* @category modules
*/
SquareRGBLed.prototype.helplink =
'https://docs.circuitverse.org/#/outputs?id=square-rgb-led'
'https://docs.circuitverse.org/#/chapter4/3output?id=squarergbled'
SquareRGBLed.prototype.objectType = 'SquareRGBLed'
SquareRGBLed.prototype.canShowInSubcircuit = true
SquareRGBLed.prototype.layoutProperties = {
Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Stepper.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,5 @@ Stepper.prototype.tooltipText =
* @category modules
*/
Stepper.prototype.helplink =
'https://docs.circuitverse.org/#/inputElements?id=stepper'
'https://docs.circuitverse.org/#/chapter4/2input?id=stepper'
Stepper.prototype.objectType = 'Stepper'
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Text.prototype.tooltipText = 'Text ToolTip: Use this to document your circuit.'
* @category modules
*/
Text.prototype.helplink =
'https://docs.circuitverse.org/#/annotation?id=adding-labels'
'https://docs.circuitverse.org/#/chapter4/7annotation?id=text'

/**
* @memberof Text
Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/TriState.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,5 @@ export default class TriState extends CircuitElement {
TriState.prototype.tooltipText =
'TriState ToolTip : Effectively removes the output from the circuit.'
TriState.prototype.helplink =
'https://docs.circuitverse.org/#/miscellaneous?id=tri-state-buffer'
'https://docs.circuitverse.org/#/chapter4/8misc?id=tristate-buffer'
TriState.prototype.objectType = 'TriState'
2 changes: 1 addition & 1 deletion src/simulator/src/modules/Tunnel.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export default class Tunnel extends CircuitElement {
*/
Tunnel.prototype.tooltipText = 'Tunnel ToolTip : Tunnel Selected.'
Tunnel.prototype.helplink =
'https://docs.circuitverse.org/#/miscellaneous?id=tunnel'
'https://docs.circuitverse.org/#/chapter4/8misc?id=tunnel'

Tunnel.prototype.overrideDirectionRotation = true

Expand Down
2 changes: 1 addition & 1 deletion src/simulator/src/modules/VariableLed.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,6 @@ VariableLed.prototype.mutableProperties = {
* @category modules
*/
VariableLed.prototype.helplink =
'https://docs.circuitverse.org/#/outputs?id=variable-led'
'https://docs.circuitverse.org/#/chapter4/3output?id=variableled'
VariableLed.prototype.objectType = 'VariableLed'
VariableLed.prototype.canShowInSubcircuit = true
2 changes: 1 addition & 1 deletion src/simulator/src/modules/XnorGate.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,5 @@ XnorGate.prototype.changeInputSize = changeInputSize
*/
XnorGate.prototype.verilogType = 'xnor'
XnorGate.prototype.helplink =
'https://docs.circuitverse.org/#/gates?id=xnor-gate'
'https://docs.circuitverse.org/#/chapter4/4gates?id=xnor-gate'
XnorGate.prototype.objectType = 'XnorGate'
2 changes: 1 addition & 1 deletion src/simulator/src/modules/XorGate.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,5 +183,5 @@ XorGate.prototype.changeInputSize = changeInputSize
* @category modules
*/
XorGate.prototype.verilogType = 'xor'
XorGate.prototype.helplink = 'https://docs.circuitverse.org/#/gates?id=xor-gate'
XorGate.prototype.helplink = 'https://docs.circuitverse.org/#/chapter4/4gates?id=xor-gate'
XorGate.prototype.objectType = 'XorGate'
2 changes: 1 addition & 1 deletion src/simulator/src/sequential/DflipFlop.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,6 @@ endmodule
DflipFlop.prototype.tooltipText =
'D FlipFlop ToolTip : Introduces delay in timing circuit.'
DflipFlop.prototype.helplink =
'https://docs.circuitverse.org/#/Sequential?id=d-flip-flop'
'https://docs.circuitverse.org/#/chapter4/6sequentialelements?id=d-flip-flop'

DflipFlop.prototype.objectType = 'DflipFlop'
Loading

0 comments on commit 16741fb

Please sign in to comment.