Refactor to use plain GoStyleCamelCase instead of json_style_snake_case.

This commit is contained in:
Zed A. Shaw 2025-09-18 15:44:53 -04:00
parent 931c493928
commit 051474bdc9
12 changed files with 60 additions and 61 deletions

View file

@ -11,12 +11,12 @@
<block x-data="Games">
<template x-for="item in contents">
<grid class="two-panel">
<a data-testid="game-link" x-bind:href="`/game/${item.id}/${item.slug}/`">
<img x-bind:src="item.image" />
<a data-testid="game-link" x-bind:href="`/game/${item.Id}/${item.Slug}/`">
<img x-bind:src="item.Image" />
</a>
<block>
<h3 x-text="item.title"></h3>
<p x-text="item.description"></p>
<h3 x-text="item.Title"></h3>
<p x-text="item.Description"></p>
</block>
</grid>
</template>

View file

@ -14,8 +14,8 @@
<tr class="table-header"><th>URL</th><th>Description</th></tr>
<template x-for="item in links">
<tr class="table-row">
<td class="p-2"><a x-text="item.url" x-bind:href="item.url" target="_blank"></a></td>
<td class="p-2" x-text="item.description"></td>
<td class="p-2"><a x-text="item.Url" x-bind:href="item.Url" target="_blank"></a></td>
<td class="p-2" x-text="item.Description"></td>
</tr>
</template>
</table>
@ -29,9 +29,9 @@
<card class="card">
<top>Submit a Link</top>
<middle>
<input id="stream_id" name="stream_id" type="hidden" value="1">
<input id="url" name="url" type="text" placeholder="Link Url">
<input id="description" name="description" type="text" placeholder="Description">
<input id="StreamId" name="StreamId" type="hidden" value="1">
<input id="Url" name="Url" type="text" placeholder="Link Url">
<input id="Description" name="Description" type="text" placeholder="Description">
</middle>
<bottom>
<button id="submit" type="submit">Send It</button>

View file

@ -3,10 +3,10 @@
<card>
<top><h2 style="color: white">Login</h2></top>
<middle>
<label for="username">Username</label>
<input id="username" name="username" placeholder="Username" type="text">
<label for="password">Password</label>
<input id="password" name="password" placeholder="Password" type="password">
<label for="Username">Username</label>
<input id="Username" name="Username" placeholder="Username" type="text">
<label for="Password">Password</label>
<input id="Password" name="Password" placeholder="Password" type="password">
</middle>
<bottom>
<button class="hover:btn-alert" type="button">Cancel</button>

View file

@ -3,12 +3,12 @@
<card>
<top><h2 style="color: white">Register</h2></top>
<middle>
<label for="username">Username</label>
<input id="username" name="username" placeholder="Username" type="text">
<label for="email">FAKE! Email</label>
<input id="email" name="email" placeholder="fake@faker.com" type="text">
<label for="password">Password</label>
<input id="password" name="password" placeholder="Password" type="password">
<label for="Username">Username</label>
<input id="Username" name="Username" placeholder="Username" type="text">
<label for="Email">FAKE! Email</label>
<input id="Email" name="Email" placeholder="fake@faker.com" type="text">
<label for="Password">Password</label>
<input id="Password" name="Password" placeholder="Password" type="password">
</middle>
<bottom>
<button class="hover:btn-alert" type="button">Cancel</button>

View file

@ -12,9 +12,9 @@
<stream class="flex p-3 gap-4 bg-gray-300 dark:bg-gray-800">
<shape class="xxs bg-gray-400! dark:bg-gray-300">Stream Thumbnail</shape>
<info>
<date x-text="item.date"></date>
<p x-text="item.description"></p>
<a style="text-align: right" x-bind:href="'/stream/' + item.id + '/'">View This Stream</a>
<date x-text="item.Date"></date>
<p x-text="item.Description"></p>
<a style="text-align: right" x-bind:href="'/stream/' + item.Id + '/'">View This Stream</a>
</info>
</stream>
</template>