fragment: wip

TODO:
- server side file cache
- relative path resolve
- watch/autoreload
This commit is contained in:
bordun 2021-04-03 14:38:39 +02:00
parent b4296d2ea5
commit 0c9d2a2e4b
11 changed files with 292 additions and 18 deletions

View file

@ -45,6 +45,12 @@ module.exports = {
},
fragmentLoad: function(data){
session.setFragment(data)
},
stateLoad: function(data){
state.load(data.state, data.send, data.path)
@ -77,6 +83,12 @@ module.exports = {
new UiModal({title: raw(utils.icon('exclamation-triangle') + '  ' + locales('error')), content: raw(data), closable:true})
},
errorLog: function(data) {
console.error(data)
},
reloadCss: function(){
var queryString = '?reload=' + Date.now()
DOM.each(document, 'link[rel="stylesheet"][hot-reload]', (el)=>{