From 955e6cda516b6cebe600b6c9656b3a397491a3b6 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 30 Dec 2014 14:16:01 -0500 Subject: [PATCH] implement sync item removals --- .../css/images/items/folders/edit.png | Bin 2124 -> 0 bytes .../css/images/items/folders/report.png | Bin 1259 -> 0 bytes dashboard-ui/css/librarymenu.css | 50 ++---------------- dashboard-ui/scripts/librarymenu.js | 44 ++++++++++++--- dashboard-ui/wizardstart.html | 15 ++++-- 5 files changed, 52 insertions(+), 57 deletions(-) delete mode 100644 dashboard-ui/css/images/items/folders/edit.png delete mode 100644 dashboard-ui/css/images/items/folders/report.png diff --git a/dashboard-ui/css/images/items/folders/edit.png b/dashboard-ui/css/images/items/folders/edit.png deleted file mode 100644 index e48e0e1d1c6e349fdc1ff3494e3783a5e8eccf86..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2124 zcmV-S2($NzP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D2jNLXK~#8N?VV3( z6jvO_&F%^@wBVr!g_>k_*94k_f`X+D7^+~wf+Cm{0p#?2^ z5JVI_#L|`)VriuTa}XLZ#$8ue4>@?qL2wV7Y`@>k&vkcpX6N6V$G>FN0j#Sx<>GOD#&?J55EJYF*>UoDr*x5mcCs`7p)tccJM z`6MoKT+B{jDwRqd$!4>&Vk;*l$H?eFk;#swrKSIh#p0RC$;ph=DJ9Yt-Jv2k0atP} zm&<)1rZOUH(Qy!&;2ihjTt6058IiPT7a~7HOZr^Op@RRDfj@o=#}S;8_eGcq1Lc(4=ab`h^Zsj7o>QtCoNbse4VF7o;OEd;?) z6rUM2ufTclnVp?|L(IU0CUjhU^5)H(pQ81i5VMgCuyiec2u0|)i2RaDrE(L8mJSQ9 zVOWZRQ7&}cL?$C6BhPWTYgkPT$T2WVg^r`h4N&aRP$qQDMGhS$LTizo2`sc0*&Ts| z)*`#dx6oQ-Z}<{gi|ifGLTi!z;YnyMvVU9)twj!oE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zVr+NoJGqQt!-fsaLb$n!6VI#F>ZsqD62CYKO~g%b=rJ;0ym;}t+o}AQ%+1XmLQCbW zifsyt4$fip{4R?b8LosTA~r7~^p=g*Jdf7AUQADL@)T}|5BgX=Q}P3Rdn7-sW2S8| zYy>BG9lM~Wu`eZ9dyz(Dm=N4 zl>}dZbGMtWgv+$v6}zK}h0t8n3|G-I;fgx0K$@g`FlsuNSO^Ut+it>@zfXAn;lqdL z884)+Gx diff --git a/dashboard-ui/css/images/items/folders/report.png b/dashboard-ui/css/images/items/folders/report.png deleted file mode 100644 index 441b7fd5cbf2060816b08d9f5de01ed2066b1510..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1259 zcmeAS@N?(olHy`uVBq!ia0vp^Q6S901|%(3I5Gh##^NA%Cx&(BWL^R}Ea{HEjtmSN z`?>!lvI6;>1s;*b3=DjSL74G){)!Z!ng&l7$B>G+w{z_?gac)c&t7trMMuM8#}?DQ zTT)Iec(6br<6vk(K|sI---`zi`nn$UlnIfMkqOm#p`fvYL$D;EKx2mDlJG?fo12@O z0~Y>#{5`$S%crP(@3Xu5<EqPi_zVoD;lB`ZU2%{rMf zZ_)hI#Zy`KPw@INTYl2XCqkEY=a_kyuFKihFSqMO(nbqAQ`4_p?DaENw=ua)oqhJ% z%%4Ahevi32-Gi@9=jX`{s=^j+HCj`vc5m8L)V#XK$mF8zr2fKC2?_UIOgE49XJ#x~ zzI=Ipt51>o_tQ^5@%8l@h+NDt+&(cjXS&nLzRu3h(=yVIH3lUUV~#g$I<=7{^N;)6 zCp+Z5r=`Aq_(Oi;j8Ywa{rE#Buf)XvAAar7ydY@ho5LS3^rTCNmj)fro_sfW--Yv5 z1r6eJRrtAQoq9M!u5jb*k8XBY7=AHK$ZRXFOU46JP z=c5Sk$#g}_6;~%N-MV#au*`9(@QZt_iu$|V4nDU#U!D|6{1!{JK{5 zg;m#yUvV=g#PBKep8IIEDf{iE{|RPWF4zVnpSd(YtVI%>{G5=|X2=!+ttbxCg}yALu z?;|a%i5^od-Ykq;KmUorrhw#wmR9fVnJ)G{e=mML|AE%jQzt{TT%~tfZEO*_dB1qE z>HD^f<+19yr#C&bkdp|%xGh(_Kw@2^?PNnBs2JpJ@V<-U1^g;Q3TOZD!S zkv>>_t#RKEnN1Pz%dfOs$MqL|>Rz64FXR~4^_>2`>wgU#2`3Ouw^sj6|CvVGcrww><_?Y_*|dt5-~ ff?9iW@_xpT$ELL0=u~w97ElbHu6{1-oD!M'; - html += '' + Globalize.translate('ButtonMetadataManager') + ''; - html += '' + Globalize.translate('ButtonReports') + ''; + + html += '' + Globalize.translate('ButtonMetadataManager') + ''; + html += '' + Globalize.translate('ButtonReports') + ''; html += ''; return html; @@ -131,7 +131,7 @@ var html = items.map(function (i) { - var viewMenuCssClass = (i.CollectionType || 'general') + 'ViewMenu'; + var iconCssClass = 'fa'; var itemId = i.Id; @@ -143,10 +143,37 @@ } if (i.Type == 'Channel') { - viewMenuCssClass = 'channelsViewMenu'; } - return '' + i.Name + ''; + if (i.CollectionType == "photos") { + iconCssClass += ' fa-photo'; + } + else if (i.CollectionType == "music" || i.CollectionType == "musicvideos") { + iconCssClass += ' fa-music'; + } + else if (i.CollectionType == "books") { + iconCssClass += ' fa-book'; + } + else if (i.CollectionType == "playlists") { + iconCssClass += ' fa-list'; + } + else if (i.CollectionType == "games") { + iconCssClass += ' fa-gamepad'; + } + else if (i.CollectionType == "movies") { + iconCssClass += ' fa-film'; + } + else if (i.CollectionType == "channels" || i.Type == 'Channel') { + iconCssClass += ' fa-globe'; + } + else if (i.CollectionType == "tvshows" || i.CollectionType == "livetv") { + iconCssClass += ' fa-video-camera'; + } + else { + iconCssClass += ' fa-folder-open-o'; + } + + return '' + i.Name + ''; }).join(''); @@ -154,7 +181,10 @@ $('.viewMenuTextLink', elem).on('click', function () { - $('.libraryMenuButtonText').html(this.innerHTML); + var section = $('.sectionName', this)[0]; + var text = section ? section.innerHTML : this.innerHTML; + + $('.libraryMenuButtonText').html(text); }); }); diff --git a/dashboard-ui/wizardstart.html b/dashboard-ui/wizardstart.html index 02d5191cdf..d21c44c5c5 100644 --- a/dashboard-ui/wizardstart.html +++ b/dashboard-ui/wizardstart.html @@ -8,18 +8,23 @@
-
+
-

- ${WelcomeToMediaBrowser}

+
+

+ ${WelcomeToMediaBrowser} +

+ ${ButtonQuickStartGuide} +
+ +

${ThisWizardWillGuideYou}

  • - +