cp swf
1.0.0
การเก็บถาวรแบบโต้ตอบของสโมสรเพนกวิน SWFs ทุกปี
SWF Archive รวมอยู่ในรูปแบบ git submodule สามารถพบที่เก็บได้ที่นี่: CP-SWF-archive
อย่าลังเลที่จะมีส่วนร่วมโดยการเพิ่มไฟล์ที่ขาดหายไป
เว็บไซต์นี้ใช้ ruffle ดังนั้นจึงไม่จำเป็นต้องติดตั้งแฟลช
ก่อนอื่นไฟล์ JSON ที่มีโครงสร้างของโฟลเดอร์ SWF ถูกสร้างขึ้นด้วย tree -J cp-swf-archive ตัวอย่าง:
[
{ "type" : " directory " , "name" : " . " , "contents" :[
{ "type" : " directory " , "name" : " 2017 " , "contents" :[
{ "type" : " directory " , "name" : " default " , "contents" :[
{ "type" : " file " , "name" : " attic.swf " },
// ...
]},
{ "type" : " directory " , "name" : " unknown " , "contents" :[
{ "type" : " file " , "name" : " party10solo.swf " },
// ...
]}
{ "type" : " report " , "directories" : 9 , "files" : 98 }
]จากนั้น JSON นี้จะได้รับการถอดรหัสในประเภทที่กำหนดเองแบบเรียกซ้ำต่อไปนี้:
type alias Archive =
List Node
type Node
= Directory { name : String , contents : List Node }
| File String
| Report { directories : Int , files : Int }สิ่งนี้ให้โครงสร้างต้นไม้ที่จำเป็นเพื่อแสดงไฟล์ลำดับชั้นและจำนวนไฟล์และไดเรกทอรีทั้งหมด
git clone --recursive [email protected]:aBARICHELLO/cp-swf.gitelm-live src/Main.elm --start-page=index.html -- --output=main.js --debugtree -J cp-swf-archive > cp-swf-archive/archive.jsonindex.html เป็น true สิ่งนี้จะเปลี่ยนเส้นทางคำขอเก็บถาวรทั้งหมดไปยัง localhost:8000