remove logic that has moved to the server
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import { getParentPathFromServerPath } from './parent-path-from-server-path.function.js';
|
||||
|
||||
export class UmbServerPathUniqueSerializer {
|
||||
#magicDot = '%dot%';
|
||||
|
||||
@@ -14,22 +12,6 @@ export class UmbServerPathUniqueSerializer {
|
||||
return encodeURIComponent(urlSafeServerPath);
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts a server path to the a unique parent path URL friendly string that can be used in the client
|
||||
* @param {string} serverPath
|
||||
* @return {*} {(string | null)}
|
||||
* @memberof UmbServerPathUniqueSerializer
|
||||
*/
|
||||
toParentUnique(serverPath: string): string | null {
|
||||
const parentPath = getParentPathFromServerPath(serverPath);
|
||||
|
||||
if (parentPath) {
|
||||
return this.toUnique(parentPath);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts a unique URL friendly string to a server path
|
||||
* @param {string} serverPathUnique
|
||||
|
||||
Reference in New Issue
Block a user