Merge pull request #934 from nextcloud/add-cachebusters
Add cachebusters
This commit is contained in:
commit
3b6bbf8159
|
@ -87,26 +87,26 @@
|
||||||
|
|
||||||
/* icons for sidebar */
|
/* icons for sidebar */
|
||||||
.nav-icon-files {
|
.nav-icon-files {
|
||||||
background-image: url('../img/folder.svg');
|
background-image: url('../img/folder.svg?v=1');
|
||||||
}
|
}
|
||||||
.nav-icon-recent {
|
.nav-icon-recent {
|
||||||
background-image: url('../img/recent.svg');
|
background-image: url('../img/recent.svg?v=1');
|
||||||
}
|
}
|
||||||
.nav-icon-favorites {
|
.nav-icon-favorites {
|
||||||
background-image: url('../img/star.svg');
|
background-image: url('../img/star.svg?v=1');
|
||||||
}
|
}
|
||||||
.nav-icon-sharingin,
|
.nav-icon-sharingin,
|
||||||
.nav-icon-sharingout {
|
.nav-icon-sharingout {
|
||||||
background-image: url('../img/share.svg');
|
background-image: url('../img/share.svg?v=1');
|
||||||
}
|
}
|
||||||
.nav-icon-sharinglinks {
|
.nav-icon-sharinglinks {
|
||||||
background-image: url('../img/public.svg');
|
background-image: url('../img/public.svg?v=1');
|
||||||
}
|
}
|
||||||
.nav-icon-extstoragemounts {
|
.nav-icon-extstoragemounts {
|
||||||
background-image: url('../img/external.svg');
|
background-image: url('../img/external.svg?v=1');
|
||||||
}
|
}
|
||||||
.nav-icon-trashbin {
|
.nav-icon-trashbin {
|
||||||
background-image: url('../img/delete.svg');
|
background-image: url('../img/delete.svg?v=1');
|
||||||
}
|
}
|
||||||
|
|
||||||
#app-navigation .nav-files a.nav-icon-files {
|
#app-navigation .nav-files a.nav-icon-files {
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
width: 44px;
|
width: 44px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: none; background-image: url('../img/actions/triangle-s.svg');
|
background: none; background-image: url('../img/actions/triangle-s.svg?v=1');
|
||||||
background-size: 16px; background-repeat: no-repeat; background-position: center;
|
background-size: 16px; background-repeat: no-repeat; background-position: center;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
@ -256,7 +256,7 @@
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-image: url('../img/actions/more.svg');
|
background-image: url('../img/actions/more.svg?v=1');
|
||||||
}
|
}
|
||||||
|
|
||||||
#app-navigation .app-navigation-entry-utils-menu-button:hover button,
|
#app-navigation .app-navigation-entry-utils-menu-button:hover button,
|
||||||
|
@ -497,7 +497,7 @@
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
background-image: url('../img/actions/settings.svg');
|
background-image: url('../img/actions/settings.svg?v=1');
|
||||||
background-position: 14px center;
|
background-position: 14px center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#header .logo {
|
#header .logo {
|
||||||
background-image: url('../img/logo-icon.svg');
|
background-image: url('../img/logo-icon.svg?v=1');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: 175px;
|
background-size: 175px;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
#header .logo-icon {
|
#header .logo-icon {
|
||||||
/* display logo so appname can be shown next to it */
|
/* display logo so appname can be shown next to it */
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
background-image: url('../img/logo-icon.svg');
|
background-image: url('../img/logo-icon.svg?v=1');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center center;
|
background-position: center center;
|
||||||
width: 62px;
|
width: 62px;
|
||||||
|
|
|
@ -26,7 +26,7 @@ body {
|
||||||
#body-login {
|
#body-login {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: #0082c9;
|
background-color: #0082c9;
|
||||||
background-image: url('../img/background.jpg');
|
background-image: url('../img/background.jpg?v=1');
|
||||||
background-position: 50% 50%;
|
background-position: 50% 50%;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
@ -98,7 +98,7 @@ a.two-factor-cancel {
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
padding-left: 25px;
|
padding-left: 25px;
|
||||||
background: transparent url('../img/actions/search-white.svg') no-repeat 6px center;
|
background: transparent url('../img/actions/search-white.svg?v=1') no-repeat 6px center;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
@ -465,7 +465,7 @@ label.infield {
|
||||||
position: absolute !important;
|
position: absolute !important;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
width: 24px;
|
width: 24px;
|
||||||
background-image: url('../img/actions/toggle.svg');
|
background-image: url('../img/actions/toggle.svg?v=1');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
|
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
|
||||||
|
@ -757,15 +757,15 @@ a.bookmarklet { background-color:#ddd; border:1px solid #ccc; padding:5px;paddin
|
||||||
.exception{color:#000;}
|
.exception{color:#000;}
|
||||||
.exception textarea{width:95%;height:200px;background:#ffe;border:0;}
|
.exception textarea{width:95%;height:200px;background:#ffe;border:0;}
|
||||||
|
|
||||||
.ui-icon-circle-triangle-e{ background-image:url('../img/actions/play-next.svg'); }
|
.ui-icon-circle-triangle-e{ background-image:url('../img/actions/play-next.svg?v=1'); }
|
||||||
.ui-icon-circle-triangle-w{ background-image:url('../img/actions/play-previous.svg'); }
|
.ui-icon-circle-triangle-w{ background-image:url('../img/actions/play-previous.svg?v=1'); }
|
||||||
|
|
||||||
.ui-datepicker-prev,.ui-datepicker-next{ border:1px solid #ddd; background:#fff; }
|
.ui-datepicker-prev,.ui-datepicker-next{ border:1px solid #ddd; background:#fff; }
|
||||||
|
|
||||||
/* ---- DIALOGS ---- */
|
/* ---- DIALOGS ---- */
|
||||||
#oc-dialog-filepicker-content .dirtree {width:92%; overflow:hidden; }
|
#oc-dialog-filepicker-content .dirtree {width:92%; overflow:hidden; }
|
||||||
#oc-dialog-filepicker-content .dirtree .home {
|
#oc-dialog-filepicker-content .dirtree .home {
|
||||||
background-image:url('../img/places/home.svg');
|
background-image:url('../img/places/home.svg?v=1');
|
||||||
background-repeat:no-repeat;
|
background-repeat:no-repeat;
|
||||||
background-position: left center;
|
background-position: left center;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
|
@ -848,7 +848,7 @@ span.ui-icon {float: left; margin: 3px 7px 30px 0;}
|
||||||
}
|
}
|
||||||
.popup.topright { top:7em; right:1em; }
|
.popup.topright { top:7em; right:1em; }
|
||||||
.popup.bottomleft { bottom:1em; left:33em; }
|
.popup.bottomleft { bottom:1em; left:33em; }
|
||||||
.popup .close { position:absolute; top:0.2em; right:0.2em; height:20px; width:20px; background:url('../img/actions/close.svg') no-repeat center; }
|
.popup .close { position:absolute; top:0.2em; right:0.2em; height:20px; width:20px; background:url('../img/actions/close.svg?v=1') no-repeat center; }
|
||||||
.popup h2 { font-size:20px; }
|
.popup h2 { font-size:20px; }
|
||||||
.arrow { border-bottom:10px solid white; border-left:10px solid transparent; border-right:10px solid transparent; display:block; height:0; position:absolute; width:0; z-index:201; }
|
.arrow { border-bottom:10px solid white; border-left:10px solid transparent; border-right:10px solid transparent; display:block; height:0; position:absolute; width:0; z-index:201; }
|
||||||
.arrow.left { left:-13px; bottom:1.2em; -webkit-transform:rotate(270deg); -ms-transform:rotate(270deg); transform:rotate(270deg); }
|
.arrow.left { left:-13px; bottom:1.2em; -webkit-transform:rotate(270deg); -ms-transform:rotate(270deg); transform:rotate(270deg); }
|
||||||
|
@ -860,7 +860,7 @@ span.ui-icon {float: left; margin: 3px 7px 30px 0;}
|
||||||
div.crumb {
|
div.crumb {
|
||||||
float: left;
|
float: left;
|
||||||
display: block;
|
display: block;
|
||||||
background-image: url('../img/breadcrumb.svg');
|
background-image: url('../img/breadcrumb.svg?v=1');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: right center;
|
background-position: right center;
|
||||||
height: 44px;
|
height: 44px;
|
||||||
|
|
|
@ -81,14 +81,14 @@
|
||||||
<li>
|
<li>
|
||||||
<a href="<?php print_unescaped($entry['href']); ?>"
|
<a href="<?php print_unescaped($entry['href']); ?>"
|
||||||
<?php if( $entry["active"] ): ?> class="active"<?php endif; ?>>
|
<?php if( $entry["active"] ): ?> class="active"<?php endif; ?>>
|
||||||
<img alt="" src="<?php print_unescaped($entry['icon']); ?>">
|
<img alt="" src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>">
|
||||||
<?php p($entry['name']) ?>
|
<?php p($entry['name']) ?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<li>
|
<li>
|
||||||
<a id="logout" <?php print_unescaped(OC_User::getLogoutAttribute()); ?>>
|
<a id="logout" <?php print_unescaped(OC_User::getLogoutAttribute()); ?>>
|
||||||
<img alt="" src="<?php print_unescaped(image_path('', 'actions/logout.svg')); ?>">
|
<img alt="" src="<?php print_unescaped(image_path('', 'actions/logout.svg') . '?v=' . $_['versionHash']); ?>">
|
||||||
<?php p($l->t('Log out'));?>
|
<?php p($l->t('Log out'));?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -115,7 +115,7 @@
|
||||||
<?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
|
<?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
|
||||||
<svg width="32" height="32" viewBox="0 0 32 32">
|
<svg width="32" height="32" viewBox="0 0 32 32">
|
||||||
<defs><filter id="invert"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs>
|
<defs><filter id="invert"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs>
|
||||||
<image x="0" y="0" width="32" height="32" preserveAspectRatio="xMinYMin meet" filter="url(#invert)" xlink:href="<?php print_unescaped($entry['icon']); ?>" class="app-icon"></image>
|
<image x="0" y="0" width="32" height="32" preserveAspectRatio="xMinYMin meet" filter="url(#invert)" xlink:href="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>" class="app-icon"></image>
|
||||||
</svg>
|
</svg>
|
||||||
<div class="icon-loading-dark" style="display:none;"></div>
|
<div class="icon-loading-dark" style="display:none;"></div>
|
||||||
<span>
|
<span>
|
||||||
|
@ -133,7 +133,7 @@
|
||||||
<?php if( $_['appsmanagement_active'] ): ?> class="active"<?php endif; ?>>
|
<?php if( $_['appsmanagement_active'] ): ?> class="active"<?php endif; ?>>
|
||||||
<svg width="32" height="32" viewBox="0 0 32 32" class="app-icon">
|
<svg width="32" height="32" viewBox="0 0 32 32" class="app-icon">
|
||||||
<defs><filter id="invert"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs>
|
<defs><filter id="invert"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs>
|
||||||
<image x="0" y="0" width="32" height="32" preserveAspectRatio="xMinYMin meet" filter="url(#invert)" xlink:href="<?php print_unescaped(image_path('settings', 'apps.svg')); ?>"></image>
|
<image x="0" y="0" width="32" height="32" preserveAspectRatio="xMinYMin meet" filter="url(#invert)" xlink:href="<?php print_unescaped(image_path('settings', 'apps.svg') . '?v=' . $_['versionHash']); ?>"></image>
|
||||||
</svg>
|
</svg>
|
||||||
<div class="icon-loading-dark" style="display:none;"></div>
|
<div class="icon-loading-dark" style="display:none;"></div>
|
||||||
<span>
|
<span>
|
||||||
|
|
|
@ -153,6 +153,7 @@ class TemplateLayout extends \OC_Template {
|
||||||
$cssFiles = self::findStylesheetFiles(\OC_Util::$styles);
|
$cssFiles = self::findStylesheetFiles(\OC_Util::$styles);
|
||||||
$this->assign('cssfiles', array());
|
$this->assign('cssfiles', array());
|
||||||
$this->assign('printcssfiles', []);
|
$this->assign('printcssfiles', []);
|
||||||
|
$this->assign('versionHash', self::$versionHash);
|
||||||
foreach($cssFiles as $info) {
|
foreach($cssFiles as $info) {
|
||||||
$web = $info[1];
|
$web = $info[1];
|
||||||
$file = $info[2];
|
$file = $info[2];
|
||||||
|
|
|
@ -236,10 +236,10 @@ OC.Settings.Apps = OC.Settings.Apps || {
|
||||||
var img = '<svg width="72" height="72" viewBox="0 0 72 72">';
|
var img = '<svg width="72" height="72" viewBox="0 0 72 72">';
|
||||||
|
|
||||||
if (appfromstore) {
|
if (appfromstore) {
|
||||||
img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" xlink:href="' + url + '" class="app-icon" /></svg>';
|
img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" xlink:href="' + url + '?v=' + oc_config.version + '" class="app-icon" /></svg>';
|
||||||
} else {
|
} else {
|
||||||
img += '<defs><filter id="invertIcon"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs>';
|
img += '<defs><filter id="invertIcon"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs>';
|
||||||
img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" filter="url(#invertIcon)" xlink:href="' + url + '" class="app-icon"></image></svg>';
|
img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" filter="url(#invertIcon)" xlink:href="' + url + '?v=' + oc_config.version + '" class="app-icon"></image></svg>';
|
||||||
}
|
}
|
||||||
return img;
|
return img;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue