Compare commits

...

2 Commits

Author SHA1 Message Date
DanyLE
0974679023 Merge branch 'master' of github.com:lxsang/antos-backend
All checks were successful
gitea-sync/antos-backend/pipeline/head This commit looks good
2023-01-27 15:46:17 +01:00
DanyLE
8c7e2c4e3d add mimes.json 2023-01-27 15:46:06 +01:00
2 changed files with 79 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -25,7 +25,7 @@ pipeline{
[ -d build ] && rm -rf build
mkdir -p build/opt/www/htdocs/os
export BUILDDIR="$WORKSPACE/build/opt/www/htdocs/os"
cp router.lua "$BUILDDIR"
cp router.lua mimes.json "$BUILDDIR"
cp -rf controllers "$BUILDDIR"
cp -rf libs "$BUILDDIR"
'''

78
mimes.json Normal file
View File

@ -0,0 +1,78 @@
{
"odt": {
"mime": "application/vnd.oasis.opendocument.text",
"binary": true
},
"docx": {
"mime": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"binary": true
},
"doc": {
"mime": "application/msword",
"binary": true
},
"xls": {
"mime": "application/vnd.ms-excel",
"binary": true
},
"xlsx": {
"mime": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"binary": true
},
"ppt": {
"mime": "application/vnd.ms-powerpoint",
"binary": true
},
"pptx": {
"mime": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
"binary": true
},
"epub": {
"mime": "application/epub+zip",
"binary": true
},
"csv": {
"mime": "text/csv",
"binary": false
},
"ods": {
"mime": "application/vnd.oasis.opendocument.spreadsheet",
"binary": true
},
"odp": {
"mime": "application/vnd.oasis.opendocument.presentation",
"binary": true
},
"viz": {
"mime": "text/vnd.graphviz",
"binary": false
},
"py": {
"mime": "text/x-python",
"binary": false
},
"coffee": {
"mime": "text/vnd.coffeescript",
"binary": false
},
"apj": {
"mime": "text/antos-project",
"binary": false
},
"wasm": {
"mime": "application/wasm",
"binary": true
},
"glb": {
"mime": "model/gltf-binary",
"binary": true
},
"ts":{
"mime": "text/x.typescript",
"binary": false
},
"map":{
"mime": "application/json",
"binary": false
}
}