aboutsummaryrefslogtreecommitdiff
path: root/course/chapters/06-files-cloud.json
diff options
context:
space:
mode:
authorAgando <roduccomm@gmail.com>2026-10-18 14:05:18 +0200
committerAgando <roduccomm@gmail.com>2026-10-18 14:05:18 +0200
commit0d0d936e7b5cd41a31773069540b1ddb8836ef44 (patch)
tree273e7ee9a72453655119bf0f63efb9b61e193d7f /course/chapters/06-files-cloud.json
parent526c420f4591f0a58f805b473fa76d3da2981eae (diff)
newOS4: interactive AI course (terminal module, portal, atlas, telemetry, daily maintenance+cron) + free store card
Diffstat (limited to 'course/chapters/06-files-cloud.json')
-rw-r--r--course/chapters/06-files-cloud.json132
1 files changed, 132 insertions, 0 deletions
diff --git a/course/chapters/06-files-cloud.json b/course/chapters/06-files-cloud.json
new file mode 100644
index 0000000..697a5f5
--- /dev/null
+++ b/course/chapters/06-files-cloud.json
@@ -0,0 +1,132 @@
+{
+ "id": "06-files-cloud",
+ "title": "Files, editor, WebDAV",
+ "icon": "☁",
+ "level": "intermediate",
+ "lessons": [
+ {
+ "id": "6.1",
+ "title": "Edit and compare files",
+ "objective": "Use the editor and diff tools on the VFS.",
+ "minutes": 9,
+ "commands": [
+ "edit",
+ "diff",
+ "find",
+ "files"
+ ],
+ "blocks": [
+ {
+ "type": "text",
+ "text": "`edit` opens the VFS editor. `diff` compares two files. `find` searches names; `filemgr` opens the visual browser."
+ },
+ {
+ "type": "cmd",
+ "text": "edit hello.txt"
+ },
+ {
+ "type": "cmd",
+ "text": "find hello"
+ },
+ {
+ "type": "cmd",
+ "text": "diff hello.txt hello.txt"
+ },
+ {
+ "type": "tip",
+ "text": "The editor calls the tutorial/file-saved hook, so exercise progress can be detected from a save."
+ },
+ {
+ "type": "cmd",
+ "text": "files"
+ }
+ ],
+ "exercise": {
+ "instruction": "Search for your file by name.",
+ "accept": [
+ "find hello",
+ "find hello.txt"
+ ],
+ "check": {
+ "type": "command"
+ },
+ "hint": "Type: find hello"
+ },
+ "quiz": {
+ "q": "Which command opens the visual file manager?",
+ "options": [
+ "filemgr",
+ "ls",
+ "cat"
+ ],
+ "answer": 0
+ },
+ "sources": [
+ "modules/ext/editor.js",
+ "modules/ext/diff.js",
+ "modules/ext/filemgr.js"
+ ]
+ },
+ {
+ "id": "6.2",
+ "title": "Cloud sync and login",
+ "objective": "Understand WebDAV auth, the space token, and the 401 self-heal path.",
+ "minutes": 14,
+ "commands": [
+ "webdav-login",
+ "webdav-config",
+ "webdav-status",
+ "webdav-push",
+ "webdav-backup"
+ ],
+ "blocks": [
+ {
+ "type": "text",
+ "text": "WebDAV syncs your VFS to your space. The module holds a SPACE token, not your personal token; it refreshes on 401."
+ },
+ {
+ "type": "cmd",
+ "text": "webdav-status"
+ },
+ {
+ "type": "cmd",
+ "text": "webdav-login"
+ },
+ {
+ "type": "warn",
+ "text": "Sessions do not cross browser contexts. If a push 401s, run `webdav-login` in THIS browser, then retry."
+ },
+ {
+ "type": "cmd",
+ "text": "webdav-push"
+ },
+ {
+ "type": "cmd",
+ "text": "webdav-backup"
+ }
+ ],
+ "exercise": {
+ "instruction": "Check the WebDAV status.",
+ "accept": [
+ "webdav-status"
+ ],
+ "check": {
+ "type": "command"
+ },
+ "hint": "Type: webdav-status"
+ },
+ "quiz": {
+ "q": "A 401 push usually means…",
+ "options": [
+ "the file is too big",
+ "no session/token in this browser context",
+ "WebDAV is disabled"
+ ],
+ "answer": 1
+ },
+ "sources": [
+ "modules/ext/webdav.js"
+ ]
+ }
+ ]
+} \ No newline at end of file