mapofmetal
1.0.0
該項目包含2009年首次啟動的金屬網站地圖的源代碼和數據。金屬歷史的交互式地圖和有影響力的頻段,有助於塑造我們今天所知道的流派。
要提交錯誤報告,請訪問https://github.com/patrickgalbraith/mapofmetal/issues/new
所有播放列表都存儲在/數據/流派INFO/Directory中。
每種類型都存儲為具有以下結構的單獨json文件:
{
// Genre Title
"title" : "Heavy Metal" ,
// Genre Description - May contain HTML
"description" : "Heavy metal (often referred to simply as metal)..." ,
// List of tracks
"tracklist" : [
{
"artist" : "Black Sabbath" , // Track artist name
"title" : "Black Sabbath" , // Track name
"year" : "1970" , // Year released
"videos" : [ // List of YouTube video IDs
"0lVdMbUx1_k" , // The ID can be found in the URL https://www.youtube.com/watch?v=[THIS BIT]
"2KnyL4IFcwo" , // If a video fails to play the next video in the list is tried
"qrVKmTPFYZ8"
]
} ,
// ...and so on
] ,
// Genre ID
"id" : "heavymetal"
}要進行更改,請按照以下說明進行更改https://help.github.com/articles/editing-files-in--in-another-user-user-s-repository/。
在提交JSON數據文件的任何更改之前,請確保通過將內容粘貼到https://jsonlint.com/中,以確保其有效。
我很高興收到有關新類型的建議,但是由於涉及的工作量,我希望至少提供以下內容。
請注意,在地圖上添加新類型可能需要時間,因為它需要對基礎地圖設計進行更改。
要求
NodeJS & NPM - https://nodejs.org
安裝
安裝軟件包:
npm install
通過複製靜態資產來設置dist目錄:
mkdir -p dist && cp -r ./tiles ./dist/tiles && cp -r ./static ./dist/static && cp -r ./data ./dist/data
跑步
npm run dev
建造
npm run build
基本上,我很高興您能使用圖像,設計和名稱(金屬地圖)以外的任何東西。
有關詳細信息,請參見版權和關聯的許可證文件。