Skip to content

Commit

Permalink
GAPI-24540: v-model fixes and disable live edit
Browse files Browse the repository at this point in the history
  • Loading branch information
cadgerfeast committed Oct 26, 2020
1 parent 5053fd1 commit 5e49050
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/components/Circuit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</div>
<div class="mollitia-circuit-request">
<div>Simulate Request</div>
<div>Time: <input v-model="time" type="number"/></div>
<div>Time: <input v-model.number="time" type="number"/></div>
<div>
<button @click="triggerSuccess" :disabled="active">Success</button>
<button @click="triggerFailure" :disabled="active">Failure</button>
Expand Down
4 changes: 2 additions & 2 deletions docs/components/module/RateLimit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<div class="mollitia-module-rate-limit-config">
<div class="form-control">
<label for="limitPeriod">Limit Period</label>
<input v-model="limitPeriod" id="limitPeriod" @input="update" type="number"/>
<input v-model.number="limitPeriod" id="limitPeriod" @input="update" type="number"/>
</div>
<div class="form-control">
<label for="limitForPeriod">Limit For Period</label>
<input v-model="limitForPeriod" id="limitForPeriod" @input="update" type="number"/>
<input v-model.number="limitForPeriod" id="limitForPeriod" @input="update" type="number"/>
</div>
</div>
<div class="mollitia-module-rate-limit-visual">
Expand Down
2 changes: 1 addition & 1 deletion docs/components/module/Timeout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</div>
<div class="mollitia-module-timeout-content">
<div class="mollitia-module-timeout-config">
<div>Delay: <input v-model="delay" @input="update" type="number"/></div>
<div>Delay: <input v-model.number="delay" @input="update" type="number"/></div>
</div>
<div class="mollitia-module-timeout-visual">
<div class="mollitia-module-timeout-percentage">
Expand Down
16 changes: 8 additions & 8 deletions docs/components/module/breaker/Sliding.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,35 @@
<div class="mollitia-module-sliding-window-breaker-config">
<div class="form-control">
<label for="windowSize">Window Size</label>
<input v-model="slidingWindowSize" id="windowSize" @input="update" type="number"/>
<input v-model.number="slidingWindowSize" id="windowSize" @input="update" type="number"/>
</div>
<div class="form-control">
<label for="minNumberOfCalls">Min nb calls</label>
<input v-model="minimumNumberOfCalls" id="minNumberOfCalls" @input="update" type="number"/>
<input v-model.number="minimumNumberOfCalls" id="minNumberOfCalls" @input="update" type="number"/>
</div>
<div class="form-control">
<label for="failureRateThreshold">Failure Rate Threshold</label>
<input v-model="failureRateThreshold" id="failureRateThreshold" @input="update" type="number"/>
<input v-model.number="failureRateThreshold" id="failureRateThreshold" @input="update" type="number"/>
</div>
<div class="form-control">
<label for="slowCallDurationThreshold">Slow Call Duration Threshold (in ms)</label>
<input v-model="slowCallDurationThreshold" id="slowCallDurationThreshold" @input="update" type="number"/>
<input v-model.number="slowCallDurationThreshold" id="slowCallDurationThreshold" @input="update" type="number"/>
</div>
<div class="form-control">
<label for="slowCallRateThreshold">Slow Call Rate Threshold</label>
<input v-model="slowCallRateThreshold" id="slowCallRateThreshold" @input="update" type="number"/>
<input v-model.number="slowCallRateThreshold" id="slowCallRateThreshold" @input="update" type="number"/>
</div>
<div class="form-control">
<label for="permittedNumberOfCallsInHalfOpenState">Number Of Calls in Half Open State</label>
<input v-model="permittedNumberOfCallsInHalfOpenState" id="permittedNumberOfCallsInHalfOpenState" @input="update" type="number"/>
<input v-model.number="permittedNumberOfCallsInHalfOpenState" id="permittedNumberOfCallsInHalfOpenState" @input="update" type="number"/>
</div>
<div class="form-control">
<label for="openStateDelay">Delay to stay in Open State</label>
<input v-model="openStateDelay" id="openStateDelay" @input="update" type="number"/>
<input v-model.number="openStateDelay" id="openStateDelay" @input="update" type="number"/>
</div>
<div class="form-control">
<label for="halfOpenStateMaxDelay">Max Delay to stay in Half Open State</label>
<input v-model="halfOpenStateMaxDelay" id="halfOpenStateMaxDelay" @input="update" type="number"/>
<input v-model.number="halfOpenStateMaxDelay" id="halfOpenStateMaxDelay" @input="update" type="number"/>
</div>
</div>
<div class="mollitia-module-sliding-window-breaker-visual">
Expand Down
1 change: 1 addition & 0 deletions docs/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default {

// Content module configuration (https://go.nuxtjs.dev/config-content)
content: {
liveEdit: false,
markdown: {
prism: {
theme: 'prism-themes/themes/prism-vsc-dark-plus.css'
Expand Down

0 comments on commit 5e49050

Please sign in to comment.