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>
20 lines
550 B
Text
20 lines
550 B
Text
export class Schema {
|
|
name;
|
|
namespace;
|
|
traits;
|
|
static assign(instance, values) {
|
|
const schema = Object.assign(instance, values);
|
|
return schema;
|
|
}
|
|
static [Symbol.hasInstance](lhs) {
|
|
const isPrototype = this.prototype.isPrototypeOf(lhs);
|
|
if (!isPrototype && typeof lhs === "object" && lhs !== null) {
|
|
const list = lhs;
|
|
return list.symbol === this.symbol;
|
|
}
|
|
return isPrototype;
|
|
}
|
|
getName() {
|
|
return this.namespace + "#" + this.name;
|
|
}
|
|
}
|