mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-15 10:30:40 +00:00
Move jobs namespace back to http routes
This commit is contained in:
@ -8,8 +8,8 @@
|
||||
filters='rjsmin',
|
||||
output='gen/nopaque.%(version)s.js',
|
||||
'js/index.js',
|
||||
'js/app.js',
|
||||
'js/app/index.js',
|
||||
'js/app/client.js',
|
||||
'js/app/endpoints/index.js',
|
||||
'js/app/endpoints/corpora.js',
|
||||
'js/app/endpoints/jobs.js',
|
||||
@ -80,9 +80,9 @@
|
||||
<script src="{{ ASSET_URL }}"></script>
|
||||
{% endassets -%}
|
||||
|
||||
{# TODO: Think about implementing the following inside a main.js(.j2) #}
|
||||
<script>
|
||||
// TODO: Implement an app.run method and use this for all of the following
|
||||
const app = new nopaque.App();
|
||||
const app = new nopaque.app.Client();
|
||||
app.init();
|
||||
|
||||
{% if current_user.is_authenticated %}
|
||||
|
@ -151,9 +151,9 @@
|
||||
|
||||
{% if current_user.is_administrator %}
|
||||
const jobLogButtonElement = document.querySelector('#job-log-button');
|
||||
const jobLogModalElement = document.querySelector('#job-log-modal');
|
||||
|
||||
jobLogButtonElement.addEventListener('click', async (event) => {
|
||||
const jobLogModalElement = document.querySelector('#job-log-modal');
|
||||
const log = await app.jobs.log({{ job.hashid|tojson }});
|
||||
jobLogModalElement.querySelector('pre code').textContent = log;
|
||||
});
|
||||
|
Reference in New Issue
Block a user