mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +01:00
Make HTML entities into v-html strings, because Rollup does weird magic when rolling up
Merge branch 'new-ui-work' of github.com:webrecorder/pywb into new-ui-work # Conflicts: # pywb/static/vue/vueui.js
This commit is contained in:
commit
8a40c436a3
File diff suppressed because one or more lines are too long
@ -84,7 +84,7 @@
|
|||||||
<h3>{{month.getReadableId()}} ({{month.snapshotCount}})</h3>
|
<h3>{{month.getReadableId()}} ({{month.snapshotCount}})</h3>
|
||||||
<div v-if="month.snapshotCount">
|
<div v-if="month.snapshotCount">
|
||||||
<span v-for="(day) in ['S', 'M', 'T', 'W', 'H', 'F', 'S']" class="day" :style="dayStyle">{{day}}</span><br/>
|
<span v-for="(day) in ['S', 'M', 'T', 'W', 'H', 'F', 'S']" class="day" :style="dayStyle">{{day}}</span><br/>
|
||||||
<span v-for="(day,i) in days"><br v-if="i && i % 7===0"/><span class="day" :class="{empty: !day || !day.snapshotCount}" :style="dayStyle" @click="gotoDay(day)"><template v-if="day"><span class="size" v-if="day.snapshotCount" :style="getDayCountCircleStyle(day.snapshotCount)"> </span><span class="day-id">{{day.id}}</span><span v-if="day.snapshotCount" class="count">{{day.snapshotCount}} capture<span v-if="day.snapshotCount!==1">s</span></span></template><template v-else> </template></span></span>
|
<span v-for="(day,i) in days"><br v-if="i && i % 7===0"/><span class="day" :class="{empty: !day || !day.snapshotCount}" :style="dayStyle" @click="gotoDay(day)"><template v-if="day"><span class="size" v-if="day.snapshotCount" :style="getDayCountCircleStyle(day.snapshotCount)"> </span><span class="day-id">{{day.id}}</span><span v-if="day.snapshotCount" class="count">{{day.snapshotCount}} capture<span v-if="day.snapshotCount!==1">s</span></span></template><template v-else v-html="' '"></template></span></span>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="empty">no captures</div>
|
<div v-else class="empty">no captures</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="timeline">
|
<div class="timeline">
|
||||||
<div class="arrow previous" :class="{disabled: isScrollZero && !previousPeriod}" @click="scrollPrev" @dblclick.stop.prevent>◀</div>
|
<div v-html="'◀'" class="arrow previous" :class="{disabled: isScrollZero && !previousPeriod}" @click="scrollPrev" @dblclick.stop.prevent></div>
|
||||||
<div class="scroll" ref="periodScroll" :class="{highlight: highlight}">
|
<div class="scroll" ref="periodScroll" :class="{highlight: highlight}">
|
||||||
<div class="periods" ref="periods">
|
<div class="periods" ref="periods">
|
||||||
<div v-for="subPeriod in period.children"
|
<div v-for="subPeriod in period.children"
|
||||||
@ -28,7 +28,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="arrow next" :class="{disabled: isScrollMax && !nextPeriod}" @click="scrollNext" @dblclick.stop.prevent>▶</div>
|
<div v-html="'▶'" class="arrow next" :class="{disabled: isScrollMax && !nextPeriod}" @click="scrollNext" @dblclick.stop.prevent></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ export default{
|
|||||||
previousPeriod: null,
|
previousPeriod: null,
|
||||||
nextPeriod: null,
|
nextPeriod: null,
|
||||||
isScrollZero: true,
|
isScrollZero: true,
|
||||||
isScrollMax: true,
|
isScrollMax: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created: function() {
|
created: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user