mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 06:27:59 +01:00
Merged development into master
This commit is contained in:
commit
bbfcb16961
3 changed files with 16 additions and 5 deletions
|
@ -42,10 +42,14 @@
|
|||
$bundle->ensureFilter(new UglifyCssFilter(Config::get('app.uglify-css'), Config::get('app.node')));
|
||||
$bundle->setTargetPath('styles');
|
||||
} else {
|
||||
$node = Config::get('app.node');
|
||||
if ($node == null)
|
||||
$node = 'node';
|
||||
|
||||
$filePath = trim($_GET['file'], '/');
|
||||
$lastModifiedCollection = new AssetCollection([new GlobAsset("styles/*.less")]);
|
||||
$bundle = new AssetCollection([new FileAsset($filePath), new CacheBusterAsset($lastModifiedCollection->getLastModified())],
|
||||
[new LessFilter(Config::get('app.node'), Config::get('app.node_paths'))]);
|
||||
[new LessFilter($node, Config::get('app.node_paths'))]);
|
||||
$bundle->setTargetPath($filePath);
|
||||
}
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ angular.module('ponyfm').factory('upload', [
|
|||
if xhr.status != 200
|
||||
error =
|
||||
if xhr.getResponseHeader('content-type') == 'application/json'
|
||||
$.parseJSON(xhr.responseText).message
|
||||
$.parseJSON(xhr.responseText).errors.track.join ', '
|
||||
else
|
||||
'There was an unknown error!'
|
||||
|
||||
|
|
|
@ -3,13 +3,21 @@
|
|||
<p>Drop files here to begin your upload!</p>
|
||||
</div>
|
||||
|
||||
<p>FLAC, WAV, and AIFF files will be accepted. Each file can be up to 200 MB in size.</p>
|
||||
|
||||
<p>Tracks must be a <strong>minimum</strong> of 30 seconds long.</p>
|
||||
|
||||
<p>Please note that you need to publish your tracks after uploading them before they will become available to the public.</p>
|
||||
|
||||
<ul class="uploads">
|
||||
<li ng-repeat="upload in data.queue" ng-class="{'uploading': upload.isUploading, 'has-error': upload.error != null, 'is-processing': upload.isUploading && upload.error == null && upload.progress >= 100}" ng-animate="'upload-queue'">
|
||||
<p>
|
||||
<span ng-show="!upload.success">
|
||||
<strong ng-show="upload.isUploading && upload.error == null && upload.progress >= 100">Processing</strong>
|
||||
<strong ng-hide="upload.isUploading && upload.error == null && upload.progress >= 100">Uploading</strong>
|
||||
{{upload.name}}
|
||||
<strong ng-show="upload.isUploading && upload.error == null && upload.progress < 100">Uploading</strong>
|
||||
<strong ng-show="upload.error != null">Error</strong>
|
||||
{{upload.name}} -
|
||||
<strong ng-show="upload.error != null">{{upload.error}}</strong>
|
||||
</span>
|
||||
<span ng-show="upload.success">
|
||||
<a href="/account/tracks/edit/{{upload.trackId}}" class="btn btn-small btn-primary">
|
||||
|
@ -18,7 +26,6 @@
|
|||
{{upload.name}}
|
||||
</span>
|
||||
</p>
|
||||
<p ng-show="upload.error != null">{{upload.error}}</p>
|
||||
<div class="bar" pfm-progress-bar="upload.progress"></div>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue