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
基本上,我很高兴您能使用图像,设计和名称(金属地图)以外的任何东西。
有关详细信息,请参见版权和关联的许可证文件。