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 setDev = (name: string) => {
|
||||
const newName = (name ?? '').replace(/(\r\n|\n|\r)/gm, '').trim()
|
||||
const newName = (name || '').trim()
|
||||
isDev1 ? setDev1(newName) : setDev2(newName)
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
<div class="zone-music">
|
||||
<div class="pm-field">
|
||||
<label for="use-music" data-pm-holder>
|
||||
<span :class="{ disabled: withMusic }">focus</span>
|
||||
<span :class="{ selected: !withMusic, disabled: withMusic }"
|
||||
>focus</span
|
||||
>
|
||||
<input
|
||||
type="checkbox"
|
||||
name="use-music"
|
||||
@@ -11,7 +13,9 @@
|
||||
@change="setWithMusic(!withMusic)"
|
||||
data-pm-checkbox-toggle
|
||||
/>
|
||||
<span :class="{ disabled: !withMusic }">chill</span>
|
||||
<span :class="{ selected: withMusic, disabled: !withMusic }"
|
||||
>chill</span
|
||||
>
|
||||
</label>
|
||||
</div>
|
||||
<ChilledMusic v-if="withMusic" :play="play" @play="play" @pause="pause" />
|
||||
@@ -60,6 +64,9 @@ label[data-pm-holder] {
|
||||
|
||||
span {
|
||||
flex: 1;
|
||||
&.selected {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
.disabled {
|
||||
|
||||
Reference in New Issue
Block a user