implement getBlobPathFromHex
This commit is contained in:
@@ -266,5 +266,9 @@ Version 2
|
|||||||
return hex;
|
return hex;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var getBlobPath = Hash.getBlobPathFromHex = function (id) {
|
||||||
|
return '/blob/' + id.slice(0,2) + '/' + id;
|
||||||
|
};
|
||||||
|
|
||||||
return Hash;
|
return Hash;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ define([
|
|||||||
var hrefToHexChannelId = common.hrefToHexChannelId = Hash.hrefToHexChannelId;
|
var hrefToHexChannelId = common.hrefToHexChannelId = Hash.hrefToHexChannelId;
|
||||||
var parseHash = common.parseHash = Hash.parseHash;
|
var parseHash = common.parseHash = Hash.parseHash;
|
||||||
var getRelativeHref = common.getRelativeHref = Hash.getRelativeHref;
|
var getRelativeHref = common.getRelativeHref = Hash.getRelativeHref;
|
||||||
|
common.getBlobPathFromHex = Hash.getBlobPathFromHex;
|
||||||
|
|
||||||
common.getEditHashFromKeys = Hash.getEditHashFromKeys;
|
common.getEditHashFromKeys = Hash.getEditHashFromKeys;
|
||||||
common.getViewHashFromKeys = Hash.getViewHashFromKeys;
|
common.getViewHashFromKeys = Hash.getViewHashFromKeys;
|
||||||
|
|||||||
Reference in New Issue
Block a user