2.0.1 Beta

This commit is contained in:
Colin McLeod
2016-02-13 22:48:48 -08:00
parent d783a38588
commit 9175fb60af
67 changed files with 1042 additions and 1112 deletions

View File

@@ -0,0 +1,21 @@
/**
* Generates a URL for the outiffing page
* @param {String} shipId Ship Id
* @param {String} code [optional] Serliazed build code
* @param {String} buildName [optional] Build name
* @return {String} URL
*/
export function outfitURL(shipId, code, buildName) {
let parts = ['/outfit/', shipId];
if (code) {
parts.push('/', code);
}
if (buildName) {
parts.push('?bn=', encodeURIComponent(buildName));
}
return parts.join('');
}