[Add User] Revamped db

This commit is contained in:
metacryst
2025-11-21 00:04:11 -06:00
parent 30faf12b20
commit 525642d04e
10 changed files with 269 additions and 81 deletions

View File

@@ -1,6 +1,7 @@
/*
Sam Russell
Captured Sun
11.20.25 - Added "pct" style unit, added alignVertical and alignHorizontal for flex boxes
11.19.25 - Allowing for "auto" values in otherwise numeric styles, adding vmin and vmax units
11.17.25.3 - Adding styles() and fixing dynamic function from earlier
11.17.25.2 - Fixing onNavigate() and onAppear()
@@ -219,6 +220,7 @@ HTMLElement.prototype.rerender = function() {
/* Styling */
window.pct = "%"
window.vmin = "vmin"
window.vmax = "vmax"
window.vh = "vh"
@@ -517,6 +519,36 @@ HTMLElement.prototype.centerY = function () {
return this;
};
HTMLElement.prototype.alignVertical = function (value) {
const direction = getComputedStyle(this).flexDirection;
if(!direction) {
throw new Error("alignVertical can be only be used on HStacks or VStacks!")
}
if (direction === "column" || direction === "column-reverse") {
console.log("using justify")
this.style.justifyContent = value;
} else {
this.style.alignItems = value;
}
return this
}
HTMLElement.prototype.alignHorizontal = function (value) {
const direction = getComputedStyle(this).flexDirection;
if(!direction) {
throw new Error("alignHorizontal can be only be used on HStacks or VStacks!")
}
if (direction === "column" || direction === "column-reverse") {
this.style.alignItems = value;
} else {
this.style.justifyContent = value;
}
return this
}
/* Elements */
quill.setChildren = function(el, innerContent) {