Remove unused htmx/json-enc vendor libs; fix missing htm.js symlink
- Remove vendor/htmx-2.0.4.min.js and vendor/json-enc-2.0.0.js (unused) - Remove webui/static/htmx.min.js and webui/static/json-enc.js symlinks - Add webui/static/vendor/htm.js symlink pointing to project root vendor/htm.js, fixing the module script MIME type error caused by hoover/html.js importing from a non-existent path
This commit is contained in:
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
-12
@@ -1,12 +0,0 @@
|
|||||||
htmx.defineExtension('json-enc', {
|
|
||||||
onEvent: function(name, evt) {
|
|
||||||
if (name === 'htmx:configRequest') {
|
|
||||||
evt.detail.headers['Content-Type'] = 'application/json'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
encodeParameters: function(xhr, parameters, elt) {
|
|
||||||
xhr.overrideMimeType('text/json')
|
|
||||||
return (JSON.stringify(parameters))
|
|
||||||
}
|
|
||||||
})
|
|
||||||
Vendored
-1
@@ -1 +0,0 @@
|
|||||||
../../vendor/htmx-2.0.4.min.js
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../vendor/json-enc-2.0.0.js
|
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
../../../vendor/htm.js
|
||||||
Reference in New Issue
Block a user