ReviewOS

also looking at this

stacks/ts-analytics

Migrate x-text/:text bindings to {⁠{ }} interpolation (stx 0.2.72)

#120
Merged glennmichael123 wants to merge chore/migrate-text-to-mustache into main
31 files +179 -171
resources/components/dashboard/AccountSettings.stxmodified+8-8
Changes to resources/components/dashboard/AccountSettings.stx
@@ -107,8 +107,8 @@ onMount(() => {
107107<div class="col-span-full max-w-[640px]">
108108 <h3 class="text-base font-semibold text-text mb-1">Account</h3>
109109 <p class="text-xs text-muted mb-6">
110 Signed in as <span class="text-text" x-text="email()"></span>
111 <span class="text-[0.625rem] font-semibold py-0.5 px-[7px] rounded uppercase tracking-wide bg-bg-3 text-text-2 ml-1" x-text="plan()"></span>
110 Signed in as <span class="text-text">{{ email() }}</span>
111 <span class="text-[0.625rem] font-semibold py-0.5 px-[7px] rounded uppercase tracking-wide bg-bg-3 text-text-2 ml-1">{{ plan() }}</span>
112112 <span x-show="!emailVerified()" class="text-warning ml-1">— email not verified</span>
113113 </p>
114114
@@ -121,8 +121,8 @@ onMount(() => {
121121 </div>
122122 <button type="submit" class="btn btn-primary text-[0.8125rem] py-2 px-4">Save</button>
123123 </form>
124 <p x-show="profileMsg()" class="text-xs text-success mt-2" x-text="profileMsg()"></p>
125 <p x-show="profileErr()" class="text-xs text-error mt-2" x-text="profileErr()"></p>
124 <p x-show="profileMsg()" class="text-xs text-success mt-2">{{ profileMsg() }}</p>
125 <p x-show="profileErr()" class="text-xs text-error mt-2">{{ profileErr() }}</p>
126126 </div>
127127
128128 <div class="panel mb-4">
@@ -138,8 +138,8 @@ onMount(() => {
138138 </div>
139139 <button type="submit" class="btn btn-primary text-[0.8125rem] py-2 px-4 self-start">Change password</button>
140140 </form>
141 <p x-show="passwordMsg()" class="text-xs text-success mt-2" x-text="passwordMsg()"></p>
142 <p x-show="passwordErr()" class="text-xs text-error mt-2" x-text="passwordErr()"></p>
141 <p x-show="passwordMsg()" class="text-xs text-success mt-2">{{ passwordMsg() }}</p>
142 <p x-show="passwordErr()" class="text-xs text-error mt-2">{{ passwordErr() }}</p>
143143 </div>
144144
145145 <div class="panel mb-4">
@@ -155,8 +155,8 @@ onMount(() => {
155155 </div>
156156 <button type="submit" class="btn btn-primary text-[0.8125rem] py-2 px-4 self-start">Change email</button>
157157 </form>
158 <p x-show="emailMsg()" class="text-xs text-success mt-2" x-text="emailMsg()"></p>
159 <p x-show="emailErr()" class="text-xs text-error mt-2" x-text="emailErr()"></p>
158 <p x-show="emailMsg()" class="text-xs text-success mt-2">{{ emailMsg() }}</p>
159 <p x-show="emailErr()" class="text-xs text-error mt-2">{{ emailErr() }}</p>
160160 </div>
161161
162162 <div class="panel">