[Add User] Revamped db
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class JoinForm extends Shadow {
|
||||
class SignupForm extends Shadow {
|
||||
|
||||
inputStyles(el) {
|
||||
return el
|
||||
@@ -82,4 +82,4 @@ class JoinForm extends Shadow {
|
||||
}
|
||||
}
|
||||
|
||||
register(JoinForm)
|
||||
register(SignupForm)
|
||||
@@ -1,5 +1,5 @@
|
||||
import "../components/NavBar.js"
|
||||
import "../components/JoinForm.js"
|
||||
import "../components/SignupForm.js"
|
||||
import "./Why.js"
|
||||
import "./Events.js"
|
||||
import "./Join.js"
|
||||
@@ -57,7 +57,7 @@ class Home extends Shadow {
|
||||
|
||||
default:
|
||||
if(window.location.pathname.startsWith("/signup")) {
|
||||
JoinForm()
|
||||
SignupForm()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user