cp swf
1.0.0
클럽 펭귄 SWF의 대화식 아카이브.
SWF 아카이브는 GIT 하위 모듈로 포함되며 저장소는 여기에서 찾을 수 있습니다 : CP-SWF-Archive.
누락 된 파일을 추가하여 자유롭게 기여하십시오.
이 웹 사이트는 주름을 사용하여 플래시 설치가 필요하지 않습니다.
먼저 SWF 폴더의 구조를 가진 JSON 파일은 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 으로 리디렉션합니다.