diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 1/1.1-Island.a2w b/docs/pass/assets/victorz/dl/Alice/Chapter 1/1.1-Island.a2w deleted file mode 100644 index d3ea0ac8..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 1/1.1-Island.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 1/1.3-Snow_People.a2w b/docs/pass/assets/victorz/dl/Alice/Chapter 1/1.3-Snow_People.a2w deleted file mode 100644 index 90879019..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 1/1.3-Snow_People.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 1/1.5-Soldier.a2w b/docs/pass/assets/victorz/dl/Alice/Chapter 1/1.5-Soldier.a2w deleted file mode 100644 index 4352211a..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 1/1.5-Soldier.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 2/2.4-Circling_Fish.a2w b/docs/pass/assets/victorz/dl/Alice/Chapter 2/2.4-Circling_Fish.a2w deleted file mode 100644 index f58fbbec..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 2/2.4-Circling_Fish.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 2/2.5-Tortoise.a2w b/docs/pass/assets/victorz/dl/Alice/Chapter 2/2.5-Tortoise.a2w deleted file mode 100644 index 644a5c06..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 2/2.5-Tortoise.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 3.1/3.1.1-Robot_to_Lunar_Lander.a2w b/docs/pass/assets/victorz/dl/Alice/Chapter 3.1/3.1.1-Robot_to_Lunar_Lander.a2w deleted file mode 100644 index 8ef27888..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 3.1/3.1.1-Robot_to_Lunar_Lander.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 3.1/3.1.3-Hop.a2w b/docs/pass/assets/victorz/dl/Alice/Chapter 3.1/3.1.3-Hop.a2w deleted file mode 100644 index a5877529..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 3.1/3.1.3-Hop.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 3.2/3.2.5-Robot_Walk.a2w b/docs/pass/assets/victorz/dl/Alice/Chapter 3.2/3.2.5-Robot_Walk.a2w deleted file mode 100644 index 8e059c2c..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 3.2/3.2.5-Robot_Walk.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 3.2/3.2.6-Blimp_and_Dragon.a2w b/docs/pass/assets/victorz/dl/Alice/Chapter 3.2/3.2.6-Blimp_and_Dragon.a2w deleted file mode 100644 index e96c6eb1..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 3.2/3.2.6-Blimp_and_Dragon.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 4/4.1.1-Snowpeople_Fliphat.a2w b/docs/pass/assets/victorz/dl/Alice/Chapter 4/4.1.1-Snowpeople_Fliphat.a2w deleted file mode 100644 index 741553ac..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 4/4.1.1-Snowpeople_Fliphat.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 4/4.2.8-Dragons.a2w b/docs/pass/assets/victorz/dl/Alice/Chapter 4/4.2.8-Dragons.a2w deleted file mode 100644 index 23eace09..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 4/4.2.8-Dragons.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 4/4.3.11-Chicken_Dance.a2w b/docs/pass/assets/victorz/dl/Alice/Chapter 4/4.3.11-Chicken_Dance.a2w deleted file mode 100644 index ab49fa09..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 4/4.3.11-Chicken_Dance.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 4/4.3.11-Chicken_ExportedClass.a2c b/docs/pass/assets/victorz/dl/Alice/Chapter 4/4.3.11-Chicken_ExportedClass.a2c deleted file mode 100644 index 5f529b62..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 4/4.3.11-Chicken_ExportedClass.a2c and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 5/5.1.8-Cat.a2w b/docs/pass/assets/victorz/dl/Alice/Chapter 5/5.1.8-Cat.a2w deleted file mode 100644 index b6691f02..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 5/5.1.8-Cat.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 5/5.2.14-Penguin.a2w b/docs/pass/assets/victorz/dl/Alice/Chapter 5/5.2.14-Penguin.a2w deleted file mode 100644 index abac2d04..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 5/5.2.14-Penguin.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 6/6.1.3-Bee.a2w b/docs/pass/assets/victorz/dl/Alice/Chapter 6/6.1.3-Bee.a2w deleted file mode 100644 index 108ff5be..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 6/6.1.3-Bee.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 6/6.2.12-Switch.a2w b/docs/pass/assets/victorz/dl/Alice/Chapter 6/6.2.12-Switch.a2w deleted file mode 100644 index 38612c0f..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 6/6.2.12-Switch.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 7-8/7.2.5-Frog_Ladybug.a2w b/docs/pass/assets/victorz/dl/Alice/Chapter 7-8/7.2.5-Frog_Ladybug.a2w deleted file mode 100644 index 79d5b1f1..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 7-8/7.2.5-Frog_Ladybug.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Chapter 7-8/8.1.2-Butterfly.a2w b/docs/pass/assets/victorz/dl/Alice/Chapter 7-8/8.1.2-Butterfly.a2w deleted file mode 100644 index 762bac4f..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Chapter 7-8/8.1.2-Butterfly.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Projects/Flight.a2w b/docs/pass/assets/victorz/dl/Alice/Projects/Flight.a2w deleted file mode 100644 index 2296d396..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Projects/Flight.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/Projects/Meteor.a2w b/docs/pass/assets/victorz/dl/Alice/Projects/Meteor.a2w deleted file mode 100644 index b9aa9184..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/Projects/Meteor.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/trollface.a2w b/docs/pass/assets/victorz/dl/Alice/trollface.a2w deleted file mode 100644 index 965cfe41..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/trollface.a2w and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/trollface.jpg b/docs/pass/assets/victorz/dl/Alice/trollface.jpg deleted file mode 100644 index a9a52c2f..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/trollface.jpg and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Alice/trollface.png b/docs/pass/assets/victorz/dl/Alice/trollface.png deleted file mode 100644 index 1ec2b3e4..00000000 Binary files a/docs/pass/assets/victorz/dl/Alice/trollface.png and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/2007/Catch the Ghost.zip b/docs/pass/assets/victorz/dl/Games/2007/Catch the Ghost.zip deleted file mode 100644 index 36e8e5cc..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/2007/Catch the Ghost.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/2007/Evil Clutches.zip b/docs/pass/assets/victorz/dl/Games/2007/Evil Clutches.zip deleted file mode 100644 index 5ea8ac65..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/2007/Evil Clutches.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/2007/Galactic Mail.zip b/docs/pass/assets/victorz/dl/Games/2007/Galactic Mail.zip deleted file mode 100644 index 12649ac6..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/2007/Galactic Mail.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/2007/Maze Game.zip b/docs/pass/assets/victorz/dl/Games/2007/Maze Game.zip deleted file mode 100644 index b4b00d5b..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/2007/Maze Game.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/2007/Scrolling Shooter.zip b/docs/pass/assets/victorz/dl/Games/2007/Scrolling Shooter.zip deleted file mode 100644 index 32e573ba..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/2007/Scrolling Shooter.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/2P/Airplane 1v1.zip b/docs/pass/assets/victorz/dl/Games/2P/Airplane 1v1.zip deleted file mode 100644 index cf884201..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/2P/Airplane 1v1.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/2P/SWAT vs FBI.zip b/docs/pass/assets/victorz/dl/Games/2P/SWAT vs FBI.zip deleted file mode 100644 index 9fdb7544..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/2P/SWAT vs FBI.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/2P/Space Shooter.zip b/docs/pass/assets/victorz/dl/Games/2P/Space Shooter.zip deleted file mode 100644 index 8fa383ea..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/2P/Space Shooter.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/Airplane Fighting Game.zip b/docs/pass/assets/victorz/dl/Games/Airplane Fighting Game.zip deleted file mode 100644 index 07ffa50f..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/Airplane Fighting Game.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/Deprecated/Clicking Game 2.zip b/docs/pass/assets/victorz/dl/Games/Deprecated/Clicking Game 2.zip deleted file mode 100644 index aee6d6eb..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/Deprecated/Clicking Game 2.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/Deprecated/Clicking Game 3 BETA.zip b/docs/pass/assets/victorz/dl/Games/Deprecated/Clicking Game 3 BETA.zip deleted file mode 100644 index 02d0c64c..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/Deprecated/Clicking Game 3 BETA.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/Deprecated/Fps Guide.gm6 b/docs/pass/assets/victorz/dl/Games/Deprecated/Fps Guide.gm6 deleted file mode 100644 index d8f2ffce..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/Deprecated/Fps Guide.gm6 and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/Deprecated/Obsolete/Exploding Game.zip b/docs/pass/assets/victorz/dl/Games/Deprecated/Obsolete/Exploding Game.zip deleted file mode 100644 index 99b324e6..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/Deprecated/Obsolete/Exploding Game.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/Deprecated/Obsolete/Grand Theft Airplane.zip b/docs/pass/assets/victorz/dl/Games/Deprecated/Obsolete/Grand Theft Airplane.zip deleted file mode 100644 index 9e93280b..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/Deprecated/Obsolete/Grand Theft Airplane.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/Deprecated/Obsolete/Invisible Maze.zip b/docs/pass/assets/victorz/dl/Games/Deprecated/Obsolete/Invisible Maze.zip deleted file mode 100644 index 85a4e02e..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/Deprecated/Obsolete/Invisible Maze.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/Deprecated/Obsolete/Platform Game 6.zip b/docs/pass/assets/victorz/dl/Games/Deprecated/Obsolete/Platform Game 6.zip deleted file mode 100644 index 18dea388..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/Deprecated/Obsolete/Platform Game 6.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/Deprecated/Obsolete/Platform Game Last.zip b/docs/pass/assets/victorz/dl/Games/Deprecated/Obsolete/Platform Game Last.zip deleted file mode 100644 index 524f45a7..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/Deprecated/Obsolete/Platform Game Last.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/Deprecated/Obsolete/Spliting Shooting Game.zip b/docs/pass/assets/victorz/dl/Games/Deprecated/Obsolete/Spliting Shooting Game.zip deleted file mode 100644 index a24110ad..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/Deprecated/Obsolete/Spliting Shooting Game.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/Killing Game/Killing Game 2.zip b/docs/pass/assets/victorz/dl/Games/Killing Game/Killing Game 2.zip deleted file mode 100644 index 02b2f44a..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/Killing Game/Killing Game 2.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/Killing Game/Killing Game Hard.zip b/docs/pass/assets/victorz/dl/Games/Killing Game/Killing Game Hard.zip deleted file mode 100644 index a46642d3..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/Killing Game/Killing Game Hard.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/Killing Game/Killing Game.zip b/docs/pass/assets/victorz/dl/Games/Killing Game/Killing Game.zip deleted file mode 100644 index e8e3ed39..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/Killing Game/Killing Game.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/Victor Is Great.zip b/docs/pass/assets/victorz/dl/Games/Victor Is Great.zip deleted file mode 100644 index 493780eb..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/Victor Is Great.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Games/Walking Game.zip b/docs/pass/assets/victorz/dl/Games/Walking Game.zip deleted file mode 100644 index f29783da..00000000 Binary files a/docs/pass/assets/victorz/dl/Games/Walking Game.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/Pranks/Annoying.bat b/docs/pass/assets/victorz/dl/Pranks/Annoying.bat deleted file mode 100644 index a4c03f31..00000000 --- a/docs/pass/assets/victorz/dl/Pranks/Annoying.bat +++ /dev/null @@ -1,8 +0,0 @@ -@ECHO off -:Begin -msg * "Hi" -:BEGIN2 -msg * "You got pwned!" -msg * "How are you gonna close this?" -msg * "Good luck..." -GOTO BEGIN2 \ No newline at end of file diff --git a/docs/pass/assets/victorz/dl/Pranks/CapsToggle.vbs b/docs/pass/assets/victorz/dl/Pranks/CapsToggle.vbs deleted file mode 100644 index 40e6fb2c..00000000 --- a/docs/pass/assets/victorz/dl/Pranks/CapsToggle.vbs +++ /dev/null @@ -1,5 +0,0 @@ -Set wshShell = wscript.CreateObject("WScript.Shell") -do - wscript.sleep 500 - wshShell.sendkeys "{CAPSLOCK}{NUMLOCK}{SCROLLLOCK}" -loop \ No newline at end of file diff --git a/docs/pass/assets/victorz/dl/Pranks/EjectOptical.vbs b/docs/pass/assets/victorz/dl/Pranks/EjectOptical.vbs deleted file mode 100644 index 76132744..00000000 --- a/docs/pass/assets/victorz/dl/Pranks/EjectOptical.vbs +++ /dev/null @@ -1,11 +0,0 @@ -Set player = CreateObject("WMPlayer.OCX.7") -Set cds = player.CdromCollection -If cds.Count >= 1 then - Do - For i = 0 to cds.Count - 1 - cds.Item(i).Eject - cds.Item(i).Eject - Next - wscript.sleep 5000 - Loop -End If \ No newline at end of file diff --git a/docs/pass/assets/victorz/dl/Pranks/Old/Logoff.vbs b/docs/pass/assets/victorz/dl/Pranks/Old/Logoff.vbs deleted file mode 100644 index 7195b3e1..00000000 --- a/docs/pass/assets/victorz/dl/Pranks/Old/Logoff.vbs +++ /dev/null @@ -1,12 +0,0 @@ -set nLogOff = 0 -set nReboot = 2 -set nForceLogOff = 4 -set nForceReboot = 6 -set nPowerDown = 8 -set nForcePowerDown = 12 - -Set oOS = GetObject("winmgmts:{(Shutdown)}").ExecQuery("Select * from Win32_OperatingSystem") - -For Each oOperatingSystem in oOS -oOperatingSystem.Win32Shutdown(nForceLogOff) -Next \ No newline at end of file diff --git a/docs/pass/assets/victorz/dl/Pranks/Old/Reboot.vbs b/docs/pass/assets/victorz/dl/Pranks/Old/Reboot.vbs deleted file mode 100644 index 78de7e0d..00000000 --- a/docs/pass/assets/victorz/dl/Pranks/Old/Reboot.vbs +++ /dev/null @@ -1,12 +0,0 @@ -set nLogOff = 0 -set nReboot = 2 -set nForceLogOff = 4 -set nForceReboot = 6 -set nPowerDown = 8 -set nForcePowerDown = 12 - -Set oOS = GetObject("winmgmts:{(Shutdown)}").ExecQuery("Select * from Win32_OperatingSystem") - -For Each oOperatingSystem in oOS -oOperatingSystem.Win32Shutdown(nForceReboot) -Next \ No newline at end of file diff --git a/docs/pass/assets/victorz/dl/Pranks/Old/Shutdown.vbs b/docs/pass/assets/victorz/dl/Pranks/Old/Shutdown.vbs deleted file mode 100644 index 492c519a..00000000 --- a/docs/pass/assets/victorz/dl/Pranks/Old/Shutdown.vbs +++ /dev/null @@ -1,12 +0,0 @@ -set nLogOff = 0 -set nReboot = 2 -set nForceLogOff = 4 -set nForceReboot = 6 -set nPowerDown = 8 -set nForcePowerDown = 12 - -Set oOS = GetObject("winmgmts:{(Shutdown)}").ExecQuery("Select * from Win32_OperatingSystem") - -For Each oOperatingSystem in oOS -oOperatingSystem.Win32Shutdown(nForcePowerDown) -Next \ No newline at end of file diff --git a/docs/pass/assets/victorz/dl/Pranks/Shutdown.bat b/docs/pass/assets/victorz/dl/Pranks/Shutdown.bat deleted file mode 100644 index 7edf6ee9..00000000 --- a/docs/pass/assets/victorz/dl/Pranks/Shutdown.bat +++ /dev/null @@ -1 +0,0 @@ -shutdown /s /c "Error! You are too stupid!" \ No newline at end of file diff --git a/docs/pass/assets/victorz/dl/Pranks/rot180.zip b/docs/pass/assets/victorz/dl/Pranks/rot180.zip deleted file mode 100644 index 1706360e..00000000 Binary files a/docs/pass/assets/victorz/dl/Pranks/rot180.zip and /dev/null differ diff --git a/docs/pass/assets/victorz/dl/i/_unused_old/folder2.png b/docs/pass/assets/victorz/dl/i/folder2.png similarity index 100% rename from docs/pass/assets/victorz/dl/i/_unused_old/folder2.png rename to docs/pass/assets/victorz/dl/i/folder2.png diff --git a/docs/pass/assets/victorz/dl/i/_unused_old/link.png b/docs/pass/assets/victorz/dl/i/link.png similarity index 100% rename from docs/pass/assets/victorz/dl/i/_unused_old/link.png rename to docs/pass/assets/victorz/dl/i/link.png diff --git a/docs/pass/assets/victorz/dl/i/_unused_old/loading.png b/docs/pass/assets/victorz/dl/i/loading.png similarity index 100% rename from docs/pass/assets/victorz/dl/i/_unused_old/loading.png rename to docs/pass/assets/victorz/dl/i/loading.png diff --git a/docs/pass/assets/victorz/dl/i/style.css b/docs/pass/assets/victorz/dl/i/style.css index d9f019e6..7b3088a1 100644 --- a/docs/pass/assets/victorz/dl/i/style.css +++ b/docs/pass/assets/victorz/dl/i/style.css @@ -1,7 +1,10 @@ .file-root, .file-up, .file-dir, -.file-file { +.file-dir2, +.file-file, +.file-link, +.file-loading { background-position: left; background-repeat: no-repeat; padding-left: 24px; @@ -10,7 +13,10 @@ .file-root { background-image: url('root.png'); } .file-up { background-image: url('up.png'); } .file-dir { background-image: url('folder.png'); } +.file-dir2 { background-image: url('folder2.png'); } .file-file { background-image: url('unknown.png'); } +.file-link { background-image: url('link.png'); } +.file-loading { background-image: url('loading.png'); } .file-file[data-ext='jpg'], .file-file[data-ext='jpeg'] { background-image: url('jpg.png'); } .file-file[data-ext='bmp'] { background-image: url('bmp.png'); } diff --git a/scripts/misc/dl/AppMiscDL.svelte b/scripts/misc/dl/AppMiscDL.svelte index 07596afd..5b8db5b3 100644 --- a/scripts/misc/dl/AppMiscDL.svelte +++ b/scripts/misc/dl/AppMiscDL.svelte @@ -1,11 +1,13 @@ @@ -139,40 +155,58 @@ browseLocationHash() - {#if curPath.length > 2} - up(curPath.length - 1)}> - - event.preventDefault()} href="" class="file-root">. (root) - {formatSize(fileRoot.size)} - Go to the top! - {formatDateTime(fileRoot.mtime)} - - {/if} - {#if curPath.length > 1} - up(1)}> - event.preventDefault()} href="#{getPathString(curPath.slice(0, -1))}" class="file-up">.. (up) - {formatSize(curParent.size)} - Move up the tree! - {formatDateTime(curParent.mtime)} - - {/if} - {#each curNode.children.slice().sort((a, b) => cmpProp(a, b, 'type') || cmpProp(a, b, curSort, curSortReverse)) as child} - {#if child.type === 'dir'} - enterChild(child)}> - event.preventDefault()} href="#{getChildPath(curPath, child)}" class="file-dir">{child.name} - {formatSize(child.size)} - {child.remark} - {formatDateTime(child.mtime)} + {#if fileRoot} + {#if curPath.length > 2} + up(curPath.length - 1)}> + + event.preventDefault()} href="" class="file-root">. (root) + {formatSize(fileRoot.size)} + Go to the top! + {formatDateTime(fileRoot.mtime)} - {:else} - - {child.name} - {formatSize(child.size)} - {child.remark} - {formatDateTime(child.mtime)} + {/if} + {#if curPath.length > 1} + {@const curParent = curPath[curPath.length - 2]} + up(1)}> + event.preventDefault()} href="#{getPathString(curPath.slice(0, -1))}" class="file-up">.. (up) + {formatSize(curParent.size)} + Move up the tree! + {formatDateTime(curParent.mtime)} {/if} - {/each} + {#each curNode?.children.slice().sort((a, b) => cmpProp(a, b, 'type') || cmpProp(a, b, curSort, curSortReverse)) as child} + {#if child.type === 'd'} + enterChild(child)}> + event.preventDefault()} href="#{getChildPath(curPath, child)}" class="file-dir">{child.name} + {formatSize(child.size)} + {child.remark} + {formatDateTime(child.mtime)} + + {:else if child.type === 'f'} + + {child.name} + {formatSize(child.size)} + {child.remark} + {formatDateTime(child.mtime)} + + {:else if child.type === 'l'} + + {child.name} + - + {child.remark} + {formatDateTime(child.mtime)} + + {/if} + {/each} + {:else} + + + [Loading] + Unknown + Possible malfunction! + {formatDateTime(Date.now())} + + {/if} diff --git a/scripts/misc/dl/fileList.ts b/scripts/misc/dl/fileList.ts deleted file mode 100644 index cfad8893..00000000 --- a/scripts/misc/dl/fileList.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { d, f } from './nodeTypes' - -export default d('root', '', 0, - d('Alice', 'Some Alice files', 0, - d('Chapter 1', 'layouts, does nothing', 0, - f('1.1-Island.a2w', 'an island with a fish', 213110, 1320421864000), - f('1.3-Snow_People.a2w', 'a stack of 3 snowpeople', 354493, 1320079714000), - f('1.5-Soldier.a2w', 'four soldiers on a battleship', 469107, 1320422284000), - ), - d('Chapter 2', 'basic movements', 0, - f('2.4-Circling_Fish.a2w', 'circle, circle island, jump', 237417, 1320422758000), - f('2.5-Tortoise.a2w', 'walk to stool to take cookie', 807594, 1320346376000), - ), - d('Chapter 3.1', 'functions', 0, - f('3.1.1-Robot_to_Lunar_Lander.a2w', 'go to a rock, then halfway to the lander', 2082346, 1320346100000), - f('3.1.3-Hop.a2w', 'kangaroo hops onto a crate', 611253, 1320686136000), - ), - d('Chapter 3.2', 'looping', 0, - f('3.2.5-Robot_Walk.a2w', '3.1.1 with loops', 2114398, 1320348570000), - f('3.2.6-Blimp_and_Dragon.a2w', 'dragon flys to and circles a blimp 3 times', 961669, 1320688300000), - ), - d('Chapter 4', 'methods/parameters', 0, - f('4.1.1-Snowpeople_Fliphat.a2w', 'two snowpeople flip hats', 316329, 1320770084000), - f('4.2.8-Dragons.a2w', 'dragons switch places', 5855764, 1320874520000), - f('4.3.11-Chicken_Dance.a2w', 'chicken moonjump!', 488267, 1322004454000), - f('4.3.11-Chicken_ExportedClass.a2c', 'only the moonjumping chicken', 87164, 1322004454000), - ), - d('Chapter 5', 'interaction', 0, - f('5.1.8-Cat.a2w', 'only his teeth cannot disappear', 730765, 1322004528000), - f('5.2.14-Penguin.a2w', 'click on them and they will slide', 3880355, 1322004528000), - ), - d('Chapter 6', 'more interaction', 0, - f('6.1.3-Bee.a2w', 'infinite circles', 4761824, 1322109462000), - f('6.2.12-Switch.a2w', 'switch a light', 149162, 1322109464000), - ), - d('Chapter 7-8', 'conditions/recursion', 0, - f('7.2.5-Frog_Ladybug.a2w', 'drag the ladybug, the frog follows', 780303, 1322694690000), - f('8.1.2-Butterfly.a2w', 'the butterfly moves randomly and is chased', 351619, 1322694690000), - ), - d('Projects', 'combining skills', 0, - f('Meteor.a2w', 'Project 1', 1478761, 1323714468000), - f('Flight.a2w', 'Project 2', 12674074, 1321561734000), - ), - f('trollface.a2w', 'the best troll...', 1080078, 1323463700000), - f('trollface.jpg', 'troll the trollface...', 200205, 1321921972000), - f('trollface.png', 'trolololololol...', 786173, 1392341090000), - ), - d('Games', 'Zipped "Gamer Maker" games!', 0, - d('2P', 'Two-player fun!', 0, - f('Airplane 1v1.zip', 'sort of stupid, made long ago', 1052213, 1322522546000), - f('Space Shooter.zip', 'duel in space!', 1196165, 1322522914000), - f('SWAT vs FBI.zip', 'fight to the death!', 2964072, 1322524116000), - ), - d('2007', 'All created during a summer camp', 0, - f('Catch the Ghost.zip', 'at super speed!', 1273395, 1322522194000), - f('Evil Clutches.zip', 'rescue your own, dodge the rest!', 2061990, 1322522274000), - f('Galactic Mail.zip', 'postal services in space!', 2693116, 1322522306000), - f('Maze Game.zip', 'with ghosts!', 1263757, 1322522316000), - f('Scrolling Shooter.zip', 'fight off enemies!', 1236302, 1322522324000), - ), - d('Deprecated', 'Older games, unbalanced', 0, - d('Obsolete', 'Very old games, some compatibility issues', 0, - f('Exploding Game.zip', '-', 1084351, 1322522870000), - f('Grand Theft Airplane.zip', '-', 1284314, 1322522880000), - f('Invisible Maze.zip', '-', 1310365, 1322522888000), - f('Platform Game 6.zip', '-', 1947347, 1322522894000), - f('Platform Game Last.zip', '-', 3070957, 1322522906000), - f('Spliting Shooting Game.zip', '-', 1373252, 1322522924000), - ), - f('Clicking Game 2.zip', 'crashes with 300 clicks...', 19526, 1322522756000), - f('Clicking Game 3 BETA.zip', 'fixed the 300 clicks, still has ENTER glitch', 13189, 1322522758000), - f('Fps Guide.gm6', '-', 533951, 1173542214000), - ), - d('Killing Game', '-', 0, - f('Killing Game 2.zip', 'should be "Killing Game 0"', 1277587, 1322522626000), - f('Killing Game Hard.zip', 'at least the boss is!', 9697750, 1322522652000), - f('Killing Game.zip', '3 blood options!', 9683393, 1322522678000), - ), - - f('Airplane Fighting Game.zip', 'Endless mayhem!', 1505703, 1322522382000), - f('Victor Is Great.zip', 'I am!', 1095354, 1322522386000), - f('Walking Game.zip', 'SPACE if you get stuck!', 1257002, 1322522396000), - ), - d('Pranks', 'VBScripting fun!', 0, - d('Old', "These older ones aren't so modern!", 0, - f('Logoff.vbs', 'Does what it says on the tin.', 305, 1571609622637.1147), - f('Reboot.vbs', 'Waste time and electricity!', 305, 1571609622624.1233), - f('Shutdown.vbs', 'Go back to where you started when you unboxed it!', 308, 1571609622631.1187), - ), - f('Annoying.bat', 'Annoying popup messages!', 129, 1571609754408.964), - f('CapsToggle.vbs', 'Toggles CapsLock, NumLock, and ScrollLock!', 132, 1571609622589.176), - f('EjectOptical.vbs', 'Ejects and closes optical drives every 5 seconds!', 215, 1571609622617.128), - f('rot180.zip', 'Rotates the screen by 180 degrees (2 flips) + source code', 8358, 1347051126000), - f('Shutdown.bat', 'Includes a funny remark (displayed to user)!', 43, 1332866430000), - ), -) diff --git a/scripts/misc/dl/nodeTypes.ts b/scripts/misc/dl/nodeTypes.ts index dae7f81e..11cbbd08 100644 --- a/scripts/misc/dl/nodeTypes.ts +++ b/scripts/misc/dl/nodeTypes.ts @@ -1,41 +1,93 @@ -import { sum } from '@/util' +// Client tree -export type NodeBrowse = NodeFile | NodeDirectory +export type NodeBrowse = NodeFile | NodeDirectory | NodeLink -export type NodeFile = { - type: 'file' +type NodeBase = { + type: T name: string size: number mtime: number remark: string } -export type NodeDirectory = { - type: 'dir' - name: string - size: number - remark: string - mtime: number +export interface NodeFile extends NodeBase<'f'> {} + +export interface NodeDirectory extends NodeBase<'d'> { children: NodeBrowse[] } -export function d (name: string, remark: string, mtime: 0, ...children: NodeBrowse[]): NodeDirectory { +export interface NodeLink extends NodeBase<'l'> { + href: string +} + +// Server tree + +type Manifest = ManifestEntry[] + +type ManifestEntry = ManifestFile | ManifestLink | ManifestDirectory + +type ManifestFile = ['f', name: string, remark: string, size: number, mtime: number] + +type ManifestLink = ['l', name: string, remark: string, href: string] + +type ManifestDirectory = ['d', name: string, remark: string, ...ManifestEntry[]] + +// Server manifest to client node parser + +export function parseManifest (manifest: Manifest): NodeDirectory { + return parseManifestDirectory(['d', 'root', '', ...manifest]) +} + +function parseManifestFile (entry: ManifestFile): NodeFile { + const [type, name, remark, size, mtime] = entry return { - type: 'dir', + type, name, - size: sum(children.map((child) => child.size)), + size, remark, mtime, - children, } } -export function f (name: string, remark: string, size: number, mtime: number): NodeFile { +function parseManifestLink (entry: ManifestLink): NodeLink { + const [type, name, remark, href] = entry return { - type: 'file', + type, + name, + size: 0, + remark, + mtime: 0, + href, + } +} + +function parseManifestDirectory (entry: ManifestDirectory): NodeDirectory { + const [type, name, remark] = entry + + let size = 0 + const children = (entry.slice(3) as ManifestEntry[]).map((c) => { + const n = parseManifestEntry(c) + if (n.name != '1337') size += n.size + return n + }) + + return { + type, name, size, remark, - mtime, + mtime: 0, + children, + } +} + +function parseManifestEntry (entry: ManifestEntry): NodeBrowse { + switch (entry[0]) { + case 'f': + return parseManifestFile(entry) + case 'd': + return parseManifestDirectory(entry) + case 'l': + return parseManifestLink(entry) } }