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

Change webcomponents to non-minified version #1

Merged
merged 2 commits into from
Jan 12, 2019

Conversation

cvium
Copy link
Member

@cvium cvium commented Jan 10, 2019

I used git diff 7579d6c 280f1e9 MediaBrowser.WebDashboard/dashboard-ui/bower_components/emby-webcomponents/ in the main repo to find all changes related to emby-components done before this PR.

Please make sure that I didn't miss something. This is a re-implementation of jellyfin/jellyfin#341.

Edit by @JustAMan: I have split the original PR in two commits - one is plain unminification using 1.5.323 from emby-webcomponents, other is applying our fixes on top of that.

@JustAMan JustAMan force-pushed the deuglify_webcomponents branch from a246acd to 500cfe2 Compare January 10, 2019 12:44
@JustAMan JustAMan requested a review from dkanada January 10, 2019 12:51
Copy link
Member

@joshuaboniface joshuaboniface left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM assuming @dkanada approves as well!

Copy link
Member

@dkanada dkanada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't go over every line of code but it looks like nothing has changed besides the minification. There are a lot of css properties that might need to be added back in for older browsers like the webkit fields but I can't say for sure. I believe there is a webpack plugin to add css support for older browsers that might add these in.

Copy link
Contributor

@JustAMan JustAMan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't go through unminification commit - too many changes, and we had already taken previous Emby version for granted, this one is no different - just take what is there and fix bugs when they're found.

Other comments should probably be addressed in separate PRs.

serverId: serverId,
syncDialog.showMenu({
items: [item],
serverId: serverId,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this messes up indentation

serverId: serverId,
syncDialog.showMenu({
items: [item],
serverId: serverId,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

serverId: serverId,
syncDialog.showMenu({
items: [item],
serverId: serverId,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@@ -281,7 +254,7 @@

function showOverLimitAlert() {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should eventually be cleaned up, for now a TODO should suffice.
Same for similar changes below.

@@ -2,7 +2,7 @@ define(function () {
'use strict';

// hack to work around the server's auto-redirection feature
var addRedirectPrevention = self.dashboardVersion != null && self.Dashboard && !self.Dashboard.isConnectMode();
var addRedirectPrevention = self.dashboardVersion != null && self.Dashboard && !self.AppInfo.isNativeApp;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks strange, should probably be checking for self.AppInfo instead of self.Dashboard and self.dashboardVersion.
What was the point of this change anyway?..

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function isConnectMode was removed recently and I can confirm isNativeApp is the best solution for now. It was part of the connect removal, but I can't comment on why it checks the value here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case we don't need the checks for self.dashboardVersion and self.Dashboard, right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would think so, not 100% sure though.

background-size: 100% 100%;
.backgroundContainer,
.dialog {
background: url(https://github.com/MediaBrowser/Emby.Resources/raw/master/images/wallpaper/atv1-1080.png) center center no-repeat #D5E9F2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this URL has to go

Copy link
Member

@EraYaN EraYaN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might need a linter to go over it automatically to fix some of that indenting. But I think it's good to go in. We can put out fires as they show up.

This will need autoprefixer in for example webpack with a correct browser list to add all those prefixes back. But adding that build is for another PR.

@JustAMan
Copy link
Contributor

@EraYaN can you please make this webpack thing happen then?

@EraYaN
Copy link
Member

EraYaN commented Jan 11, 2019

I'll give it a shot this weekend. I'll make an issue and self assign.

@JustAMan
Copy link
Contributor

I'm marking as resolved my questions regarding no-prefix stuff to make this cleaner to view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants