Merge branch 'master' of github.com:jcalixte/bons-programmeurs
This commit is contained in:
@@ -32,7 +32,7 @@ export default defineComponent({
|
|||||||
const dev = isDev1 ? dev1 : dev2
|
const dev = isDev1 ? dev1 : dev2
|
||||||
|
|
||||||
const setDev = (name: string) => {
|
const setDev = (name: string) => {
|
||||||
const newName = (name ?? '').replace(/(\r\n|\n|\r)/gm, '').trim()
|
const newName = (name || '').trim()
|
||||||
isDev1 ? setDev1(newName) : setDev2(newName)
|
isDev1 ? setDev1(newName) : setDev2(newName)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,9 @@
|
|||||||
<div class="zone-music">
|
<div class="zone-music">
|
||||||
<div class="pm-field">
|
<div class="pm-field">
|
||||||
<label for="use-music" data-pm-holder>
|
<label for="use-music" data-pm-holder>
|
||||||
<span :class="{ disabled: withMusic }">focus</span>
|
<span :class="{ selected: !withMusic, disabled: withMusic }"
|
||||||
|
>focus</span
|
||||||
|
>
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
name="use-music"
|
name="use-music"
|
||||||
@@ -11,7 +13,9 @@
|
|||||||
@change="setWithMusic(!withMusic)"
|
@change="setWithMusic(!withMusic)"
|
||||||
data-pm-checkbox-toggle
|
data-pm-checkbox-toggle
|
||||||
/>
|
/>
|
||||||
<span :class="{ disabled: !withMusic }">chill</span>
|
<span :class="{ selected: withMusic, disabled: !withMusic }"
|
||||||
|
>chill</span
|
||||||
|
>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<ChilledMusic v-if="withMusic" :play="play" @play="play" @pause="pause" />
|
<ChilledMusic v-if="withMusic" :play="play" @play="play" @pause="pause" />
|
||||||
@@ -60,6 +64,9 @@ label[data-pm-holder] {
|
|||||||
|
|
||||||
span {
|
span {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
&.selected {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.disabled {
|
.disabled {
|
||||||
|
|||||||
Reference in New Issue
Block a user