Create mode + Source view + UI enhancements
This commit is contained in:
11
client/js/helpers/pages.js
Normal file
11
client/js/helpers/pages.js
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
function makeSafePath(rawPath) {
|
||||
|
||||
let rawParts = _.split(_.trim(rawPath), '/');
|
||||
rawParts = _.map(rawParts, (r) => {
|
||||
return _.kebabCase(_.deburr(_.trim(r)));
|
||||
});
|
||||
|
||||
return _.join(_.filter(rawParts, (r) => { return !_.isEmpty(r); }), '/');
|
||||
|
||||
}
|
Reference in New Issue
Block a user