route MIME types from data, e.g file location, to service directly #5

Open
opened 2 years ago by utopiah · 3 comments
Owner

can have a local lookup table, associating a type with a local or remote

good example could be otherwise unknown types, e.g .lines on reMarkable, to well known types, e.g JSON

can have a local lookup table, associating a type with a local or remote good example could be otherwise unknown types, e.g .lines on reMarkable, to well known types, e.g JSON
Poster
Owner

for unknown types could send the file as-is and if an editor is present (and the file detected as non binary) display it within e.g

fetch('/localfs/Prototypes/offline-octopus/cloudinit') // within routes for local or remote filesystem (via sshfs)
.then(r=>r.text())
.then(r=>updateCodeEditorWithContent(r))

for https://git.benetou.fr/utopiah/text-code-xr-engine in either its editor or reader (simplified editor) or /editor.html for the 2D version.

for unknown types could send the file as-is and if an editor is present (and the file detected as non binary) display it within e.g ```javascript fetch('/localfs/Prototypes/offline-octopus/cloudinit') // within routes for local or remote filesystem (via sshfs) .then(r=>r.text()) .then(r=>updateCodeEditorWithContent(r)) ``` for https://git.benetou.fr/utopiah/text-code-xr-engine in either its editor or reader (simplified editor) or `/editor.html` for the 2D version.
Poster
Owner

Consider also getting JSON out of CLI utils https://github.com/kellyjonbrazil/jc and thus possible more easily facilitating the output of exec commands in e.g. WebXR.

Consider also getting JSON out of CLI utils https://github.com/kellyjonbrazil/jc and thus possible more easily facilitating the output of exec commands in e.g. WebXR.
Poster
Owner

See companion.js and public/index.html in the fot-sloan-companion branch as the most complete version.

See `companion.js` and `public/index.html` in the [fot-sloan-companion branch](https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/fot-sloan-companion/) as the most complete version.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: utopiah/offline-octopus#5
Loading…
There is no content yet.