fragment: wip
TODO: - server side file cache - relative path resolve - watch/autoreload
This commit is contained in:
parent
b4296d2ea5
commit
0c9d2a2e4b
11 changed files with 292 additions and 18 deletions
|
|
@ -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)=>{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue