Bye bye spot.js
This commit is contained in:
@@ -18,7 +18,7 @@ export default {
|
||||
medias: Array,
|
||||
project: Object
|
||||
},
|
||||
inject: ['spot', 'lang'],
|
||||
inject: ['lang', 'consts'],
|
||||
computed: {
|
||||
timeIcon() {
|
||||
return (this.type == 'media')?'image-shot':'time';
|
||||
@@ -45,7 +45,7 @@ export default {
|
||||
</p>
|
||||
<p class="time">
|
||||
<projectRelTime :icon="timeIcon" :localTime="options.formatted_time_local" :siteTime="options.formatted_time" :offset="options.day_offset" />
|
||||
<span v-if="project.mode==spot.consts.modes.blog"> ({{ options.relative_time }})</span>
|
||||
<span v-if="project.mode==consts.modes.blog"> ({{ options.relative_time }})</span>
|
||||
</p>
|
||||
<p class="weather" v-if="options.weather_icon && options.weather_icon!='unknown'" :title="options.weather_cond==''?'':lang.get(options.weather_cond)">
|
||||
<spotIcon :icon="options.weather_icon" :classes="'fa-fw fa-lg'" :text="options.weather_temp+'°C'" />
|
||||
|
||||
Reference in New Issue
Block a user