integrate all js files into assets

This commit is contained in:
Patrick Jentsch
2023-10-12 14:13:47 +02:00
parent c40e428eb2
commit bf249193af
8 changed files with 107 additions and 99 deletions

View File

@ -7,9 +7,17 @@
{%- assets
filters='rjsmin',
output='gen/app.%(version)s.js',
'js/App.js',
'js/Utils.js',
'js/XMLtoObject.js'
'js/app/index.js',
'js/app/app.js'
%}
<script src="{{ ASSET_URL }}"></script>
{%- endassets %}
{%- assets
filters='rjsmin',
output='gen/utils.%(version)s.js',
'js/utils/index.js',
'js/utils/utils.js'
%}
<script src="{{ ASSET_URL }}"></script>
{%- endassets %}
@ -110,7 +118,7 @@
<script>
// TODO: Implement an app.run method and use this for all of the following
const app = new App();
const app = new App.App();
{%- if current_user.is_authenticated %}
const currentUserId = {{ current_user.hashid|tojson }};

View File

@ -148,7 +148,8 @@
return response.text();
})
.then((responseText) => {return new DOMParser().parseFromString(responseText, 'application/xml');})
.then((xmlDocument) => {return xmlDocument.toObject();})
// .then((xmlDocument) => {return xmlDocument.toObject();})
.then((xmlDocument) => {return {};})
.then((feed) => {resolve(feed);});
});
}