Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix: v0.2.8 #4774

Merged
merged 8 commits into from
Jul 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

-----

## 0.2.8 (2018-07-28)

#### Fixes
- Fixed tabs on home page when using the split home layout ([#4764](https://github.com/pymedusa/Medusa/pull/4764))
- Fixed black screen after update ([#4774](https://github.com/pymedusa/Medusa/pull/4774))
- Fixed error when trying to rename episodes ([#4774](https://github.com/pymedusa/Medusa/pull/4774))

-----

## 0.2.7 (2018-07-27)

#### New Features
Expand Down
2 changes: 1 addition & 1 deletion medusa/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
# To enable, set SPOOF_USER_AGENT = True
SPOOF_USER_AGENT = False
INSTANCE_ID = str(uuid.uuid1())
VERSION = '0.2.7'
VERSION = '0.2.8'
USER_AGENT = 'Medusa/{version} ({system}; {release}; {instance})'.format(
version=VERSION, system=platform.system(), release=platform.release(),
instance=INSTANCE_ID)
Expand Down
2 changes: 2 additions & 0 deletions themes-default/slim/static/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ const UTIL = {
UTIL.exec('common'); // Load common
UTIL.exec(controller); // Load MEDUSA[controller]
UTIL.exec(controller, action); // Load MEDUSA[controller][action]

window.dispatchEvent(new Event('medusa-loaded'));
}
};

Expand Down
57 changes: 30 additions & 27 deletions themes-default/slim/views/home.mako
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,38 @@
<%block name="scripts">
<script>
window.app = {};
const startVue = () => {
window.app = new Vue({
store,
el: '#vue-wrap',
metaInfo: {
title: 'Home'
},
data() {
return {
header: 'Show List'
};
},
computed: Object.assign({
layout: {
get() {
const { config } = this;
return config.layout.home;
},
set(layout) {
const { $store } = this;
const page = 'home';
$store.dispatch('setLayout', { page, layout });
}
window.app = new Vue({
store,
el: '#vue-wrap',
metaInfo: {
title: 'Home'
},
data() {
return {
header: 'Show List'
};
},
computed: Object.assign({
layout: {
get() {
const { config } = this;
return config.layout.home;
},
set(layout) {
const { $store } = this;
const page = 'home';
$store.dispatch('setLayout', { page, layout });
}
}),
mounted() {
}
});
};
}),
mounted() {
const postLoad = () => {
// Update VueInViewport
window.dispatchEvent(new Event('scroll'));
};
window.addEventListener('medusa-loaded', postLoad, { once: true });
}
});
</script>
</%block>
<%block name="metas">
Expand Down
26 changes: 13 additions & 13 deletions themes-default/slim/views/layouts/main.mako
Original file line number Diff line number Diff line change
Expand Up @@ -115,18 +115,18 @@

## Add Vue component x-templates here
## @NOTE: These will be usable on all pages
<script src="js/lib/vue.js"></script>
<script src="js/lib/http-vue-loader.js"></script>
<script src="js/lib/vue-async-computed@3.3.0.js"></script>
<script src="js/lib/vue-in-viewport-mixin.min.js"></script>
<script src="js/lib/vue-router.min.js"></script>
<script src="js/lib/vue-meta.min.js"></script>
<script src="js/lib/vue-snotify.min.js"></script>
<script src="js/lib/vue-js-toggle-button.js"></script>
<script src="js/lib/vuex.js"></script>
<script src="js/lib/vue-native-websocket-2.0.7.js"></script>
<script src="js/notifications.js"></script>
<script src="js/store.js"></script>
<script src="js/lib/vue.js?${sbPID}"></script>
<script src="js/lib/http-vue-loader.js?${sbPID}"></script>
<script src="js/lib/vue-async-computed@3.3.0.js?${sbPID}"></script>
<script src="js/lib/vue-in-viewport-mixin.min.js?${sbPID}"></script>
<script src="js/lib/vue-router.min.js?${sbPID}"></script>
<script src="js/lib/vue-meta.min.js?${sbPID}"></script>
<script src="js/lib/vue-snotify.min.js?${sbPID}"></script>
<script src="js/lib/vue-js-toggle-button.js?${sbPID}"></script>
<script src="js/lib/vuex.js?${sbPID}"></script>
<script src="js/lib/vue-native-websocket-2.0.7.js?${sbPID}"></script>
<script src="js/notifications.js?${sbPID}"></script>
<script src="js/store.js?${sbPID}"></script>
<script>
Vue.component('app-header', httpVueLoader('js/templates/app-header.vue'));
Vue.component('scroll-buttons', httpVueLoader('js/templates/scroll-buttons.vue'));
Expand Down Expand Up @@ -202,7 +202,7 @@
}
</script>
<%block name="scripts" />
<script src="js/router.js"></script>
<script src="js/router.js?${sbPID}"></script>
<script>
if (!window.app) {
console.info('Loading Vue with router since window.app is missing.');
Expand Down
4 changes: 2 additions & 2 deletions themes-default/slim/views/testRename.mako
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,15 @@ const startVue = () => {
<tbody>
<%
odd = not odd
epStr = str(cur_ep_obj.season) + "x" + str(cur_ep_obj.episode)
epStr = 's{season}e{episode}'.format(season=cur_ep_obj.season, episode=cur_ep_obj.episode)
epList = sorted([cur_ep_obj.episode] + [x.episode for x in cur_ep_obj.related_episodes])
if len(epList) > 1:
epList = [min(epList), max(epList)]
%>
<tr class="season-${cur_season} ${'good' if curLoc == newLoc else 'wanted'} seasonstyle">
<td class="col-checkbox">
% if curLoc != newLoc:
<input type="checkbox" class="epCheck" id="${str(cur_ep_obj.season) + 'x' + str(cur_ep_obj.episode)}" name="${str(cur_ep_obj.season) + "x" + str(cur_ep_obj.episode)}" />
<input type="checkbox" class="epCheck" id="${epStr}" name="${epStr}" />
% endif
</td>
<td align="center" valign="top" class="nowrap">${"-".join(map(str, epList))}</td>
Expand Down
2 changes: 2 additions & 0 deletions themes/dark/assets/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ const UTIL = {
UTIL.exec('common'); // Load common
UTIL.exec(controller); // Load MEDUSA[controller]
UTIL.exec(controller, action); // Load MEDUSA[controller][action]

window.dispatchEvent(new Event('medusa-loaded'));
}
};

Expand Down
2 changes: 1 addition & 1 deletion themes/dark/assets/js/core.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 30 additions & 27 deletions themes/dark/templates/home.mako
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,38 @@
<%block name="scripts">
<script>
window.app = {};
const startVue = () => {
window.app = new Vue({
store,
el: '#vue-wrap',
metaInfo: {
title: 'Home'
},
data() {
return {
header: 'Show List'
};
},
computed: Object.assign({
layout: {
get() {
const { config } = this;
return config.layout.home;
},
set(layout) {
const { $store } = this;
const page = 'home';
$store.dispatch('setLayout', { page, layout });
}
window.app = new Vue({
store,
el: '#vue-wrap',
metaInfo: {
title: 'Home'
},
data() {
return {
header: 'Show List'
};
},
computed: Object.assign({
layout: {
get() {
const { config } = this;
return config.layout.home;
},
set(layout) {
const { $store } = this;
const page = 'home';
$store.dispatch('setLayout', { page, layout });
}
}),
mounted() {
}
});
};
}),
mounted() {
const postLoad = () => {
// Update VueInViewport
window.dispatchEvent(new Event('scroll'));
};
window.addEventListener('medusa-loaded', postLoad, { once: true });
}
});
</script>
</%block>
<%block name="metas">
Expand Down
26 changes: 13 additions & 13 deletions themes/dark/templates/layouts/main.mako
Original file line number Diff line number Diff line change
Expand Up @@ -115,18 +115,18 @@

## Add Vue component x-templates here
## @NOTE: These will be usable on all pages
<script src="js/lib/vue.js"></script>
<script src="js/lib/http-vue-loader.js"></script>
<script src="js/lib/vue-async-computed@3.3.0.js"></script>
<script src="js/lib/vue-in-viewport-mixin.min.js"></script>
<script src="js/lib/vue-router.min.js"></script>
<script src="js/lib/vue-meta.min.js"></script>
<script src="js/lib/vue-snotify.min.js"></script>
<script src="js/lib/vue-js-toggle-button.js"></script>
<script src="js/lib/vuex.js"></script>
<script src="js/lib/vue-native-websocket-2.0.7.js"></script>
<script src="js/notifications.js"></script>
<script src="js/store.js"></script>
<script src="js/lib/vue.js?${sbPID}"></script>
<script src="js/lib/http-vue-loader.js?${sbPID}"></script>
<script src="js/lib/vue-async-computed@3.3.0.js?${sbPID}"></script>
<script src="js/lib/vue-in-viewport-mixin.min.js?${sbPID}"></script>
<script src="js/lib/vue-router.min.js?${sbPID}"></script>
<script src="js/lib/vue-meta.min.js?${sbPID}"></script>
<script src="js/lib/vue-snotify.min.js?${sbPID}"></script>
<script src="js/lib/vue-js-toggle-button.js?${sbPID}"></script>
<script src="js/lib/vuex.js?${sbPID}"></script>
<script src="js/lib/vue-native-websocket-2.0.7.js?${sbPID}"></script>
<script src="js/notifications.js?${sbPID}"></script>
<script src="js/store.js?${sbPID}"></script>
<script>
Vue.component('app-header', httpVueLoader('js/templates/app-header.vue'));
Vue.component('scroll-buttons', httpVueLoader('js/templates/scroll-buttons.vue'));
Expand Down Expand Up @@ -202,7 +202,7 @@
}
</script>
<%block name="scripts" />
<script src="js/router.js"></script>
<script src="js/router.js?${sbPID}"></script>
<script>
if (!window.app) {
console.info('Loading Vue with router since window.app is missing.');
Expand Down
4 changes: 2 additions & 2 deletions themes/dark/templates/testRename.mako
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,15 @@ const startVue = () => {
<tbody>
<%
odd = not odd
epStr = str(cur_ep_obj.season) + "x" + str(cur_ep_obj.episode)
epStr = 's{season}e{episode}'.format(season=cur_ep_obj.season, episode=cur_ep_obj.episode)
epList = sorted([cur_ep_obj.episode] + [x.episode for x in cur_ep_obj.related_episodes])
if len(epList) > 1:
epList = [min(epList), max(epList)]
%>
<tr class="season-${cur_season} ${'good' if curLoc == newLoc else 'wanted'} seasonstyle">
<td class="col-checkbox">
% if curLoc != newLoc:
<input type="checkbox" class="epCheck" id="${str(cur_ep_obj.season) + 'x' + str(cur_ep_obj.episode)}" name="${str(cur_ep_obj.season) + "x" + str(cur_ep_obj.episode)}" />
<input type="checkbox" class="epCheck" id="${epStr}" name="${epStr}" />
% endif
</td>
<td align="center" valign="top" class="nowrap">${"-".join(map(str, epList))}</td>
Expand Down
Loading