Skip to content

Commit 386f2f5

Browse files
committed
vendor js files
1 parent c3cf382 commit 386f2f5

File tree

6 files changed

+178
-2
lines changed

6 files changed

+178
-2
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.min.js binary

homu/assets/jquery.dataTables.min.js

Lines changed: 166 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

homu/assets/jquery.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

homu/html/queue.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ <h1>Homu queue - {% if repo_url %}<a href="{{repo_url}}" target="_blank">{{repo_
116116
</tbody>
117117
</table>
118118

119-
<script src="//code.jquery.com/jquery-2.1.3.min.js"></script>
120-
<script src="//cdn.datatables.net/1.10.4/js/jquery.dataTables.min.js"></script>
119+
<script src="../../assets/jquery.min.js"></script>
120+
<script src="../../assets/jquery.dataTables.min.js"></script>
121121

122122
<script>
123123
document.getElementById('expand-rollup').onclick = function() {

homu/server.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,12 @@ def buildbot():
792792
return 'OK'
793793

794794

795+
@get('/assets/<file:path>')
796+
def server_static(file):
797+
current_path = os.path.dirname(__file__)
798+
return bottle.static_file(file, root=os.path.join(current_path, 'assets'))
799+
800+
795801
def synch(user_gh, state, repo_label, repo_cfg, repo):
796802
try:
797803
if not repo.is_collaborator(user_gh.user().login):

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
package_data={
2222
'homu': [
2323
'html/*.html',
24+
'assets/*',
2425
],
2526
},
2627
entry_points={

0 commit comments

Comments
 (0)