Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
No EOL
458 B
Text
33 lines
No EOL
458 B
Text
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
|
|
class Node {
|
|
constructor(name, parent) {
|
|
this.name = name;
|
|
this.parent = parent;
|
|
}
|
|
|
|
get path() {
|
|
const path = [];
|
|
let node = this;
|
|
|
|
while (node) {
|
|
path.push(node.name);
|
|
node = node.parent;
|
|
}
|
|
|
|
return path.reverse().join('/');
|
|
}
|
|
|
|
get isRoot() {
|
|
return !this.parent;
|
|
}
|
|
|
|
}
|
|
|
|
exports.default = Node;
|
|
; |