scratch – Diff between revs 75 and 76
?pathlinks?
Rev 75 | Rev 76 | |||
---|---|---|---|---|
Line 35... | Line 35... | |||
35 | <li class="active"><a href="#">Home</a></li> |
35 | <li class="active"><a href="#">Home</a></li> |
|
36 | <li><a href="file.html">File</a></li> |
36 | <li><a href="file.html">File</a></li> |
|
37 | <li><a href="text.html">Text</a></li> |
37 | <li><a href="text.html">Text</a></li> |
|
38 | </ul> |
38 | </ul> |
|
Line 39... | Line -... | |||
39 | |
- | ||
40 | |
39 | |
|
41 | <div class="row"> |
40 | <div class="row"> |
|
42 | <h2>About</h2> |
41 | <h2>About</h2> |
|
43 | <p><strong>scratch</strong> is a platform for small-sized asset sharing developed by <a href="http://grimore.org">Wizardry and Steamworks</a> and published under the <a href="https://creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC 1.0 Universal (CC0 1.0)</a> license. The sharing platform covers images, text snippets, movie clips and any sort of media that can be conveniently shared by generating short, public and obfuscated URLs that are easily accessible.</p> |
42 | <p><strong>scratch copy</strong> is a platform for small-sized asset sharing developed by <a href="http://grimore.org">Wizardry and Steamworks</a> and published under the <a href="https://creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC 1.0 Universal (CC0 1.0)</a> license. The sharing platform covers images, text snippets, movie clips and any sort of media that can be conveniently shared by generating short, public and obfuscated URLs that are easily accessible.</p> |
|
44 | <!-- <p><a class="btn btn-default" href="#" role="button">View details »</a></p> --> |
43 | <!-- <p><a class="btn btn-default" href="#" role="button">View details »</a></p> --> |
|
- | 44 | </div> |
||
45 | </div> |
45 | |
|
46 | <div class="row" ng-app="scratch" ng-controller="scratch-control" > |
46 | <div class="row" ng-app="scratch" ng-controller="scratch-control"> |
|
47 | <h2>Configuration</h2> |
47 | <!-- <h2>Configuration</h2> |
|
48 | <p>The <strong>scratch</strong> platform can</p> |
48 | <p>The <strong>scratch copy</strong> platform can be configured for each usage case. This section is meant to hint to the users what configuration is currently active and specifies the configured lmits and allowances.</p> |
|
49 | <h3>Allowed Files</h3> |
49 | <h3>Allowed Files</h3> |
|
- | 50 | <p>The file extensions <span ng-repeat="extension in extensions" id="box">{{extension}}, </span> are currently accepted for uploading.</p> |
||
- | 51 | <h3>Upload Limits</h3> |
||
- | 52 | <p>The current upload limit is set to {{uploadlimit}}MiB.</p> --> |
||
- | 53 | <h2>Configuration</h2> |
||
- | 54 | <div class="panel panel-default"> |
||
- | 55 | <!-- Default panel contents --> |
||
- | 56 | <div class="panel-heading">Current Configuration Settings</div> |
||
- | 57 | <div class="panel-body"> |
||
- | 58 | <!-- Table --> |
||
- | 59 | <table class="table table-striped table-hover table-condensed table-responsive"> |
||
- | 60 | <thead> |
||
- | 61 | <tr> |
||
- | 62 | <th> |
||
- | 63 | Description |
||
- | 64 | </th> |
||
- | 65 | <th> |
||
- | 66 | Limit |
||
- | 67 | </th> |
||
- | 68 | </tr> |
||
- | 69 | </thead> |
||
- | 70 | <tbody> |
||
- | 71 | <tr> |
||
- | 72 | <td> |
||
- | 73 | File extensions accepted for upload. |
||
- | 74 | </td> |
||
- | 75 | <td> |
||
- | 76 | <span ng-repeat="extension in extensions" id="box">{{extension}} </span> |
||
- | 77 | </td> |
||
- | 78 | </tr> |
||
- | 79 | <tr> |
||
- | 80 | <td> |
||
- | 81 | Allowed file size upload limit. |
||
- | 82 | </td> |
||
- | 83 | <td> |
||
- | 84 | <p>{{uploadlimit}}MiB</p> |
||
- | 85 | </td> |
||
- | 86 | </tr> |
||
- | 87 | </tbody> |
||
- | 88 | </table> |
||
- | 89 | </div> |
||
50 | The following files, expressed as file extensions: <div ng-repeat="extension in extensions"><span id="box">{{extension}}</span></div> are currently accepted for uploading. |
90 | </div> |
|
Line 51... | Line 91... | |||
51 | </div> |
91 | </div> |
|
Line 52... | Line 92... | |||
52 | |
92 | |
|
Line 71... | Line 111... | |||
71 | <script> |
111 | <script> |
|
72 | var app = angular.module('scratch', []); |
112 | var app = angular.module('scratch', []); |
|
73 | app.controller('scratch-control', function($scope, $http) { |
113 | app.controller('scratch-control', function($scope, $http) { |
|
74 | $http.get('config.yaml').then((response) => { |
114 | $http.get('config.yaml').then((response) => { |
|
75 | var doc = YAML.parse(response.data); |
115 | var doc = YAML.parse(response.data); |
|
76 | //alert(JSON.stringify(doc)); |
- | ||
77 | $scope.extensions = doc.ALLOWED_FILE_EXTENSIONS; |
116 | $scope.extensions = doc.ALLOWED_FILE_EXTENSIONS; |
|
- | 117 | $scope.uploadlimit = doc.ALLOWED_ASSET_SIZE; |
||
78 | }); |
118 | }); |
|
79 | }); |
119 | }); |
|
80 | </script> |
120 | </script> |
|
81 | <!-- Jumbotron parallax effect --> |
121 | <!-- Jumbotron parallax effect --> |
|
82 | <script> |
122 | <script> |