Refactor to use plain GoStyleCamelCase instead of json_style_snake_case.
This commit is contained in:
parent
931c493928
commit
051474bdc9
12 changed files with 60 additions and 61 deletions
|
|
@ -19,10 +19,10 @@
|
|||
<th x-text="header"></th>
|
||||
</template>
|
||||
</tr>
|
||||
<template x-for="item in contents" :key="item.id">
|
||||
<template x-for="item in contents" :key="item.Id">
|
||||
<tr class="table-row">
|
||||
<td>
|
||||
<a x-bind:href="'/admin/table/{{ .Table }}/' + item.id + '/'">
|
||||
<a x-bind:href="'/admin/table/{{ .Table }}/' + item.Id + '/'">
|
||||
#
|
||||
</a>
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
</middle>
|
||||
<bottom>
|
||||
<button type="button"><a href="/admin/table/{{ .Table }}/">Back</a></button>
|
||||
<button class="hover:btn-alert" type="button" @click.prevent="ConfirmDelete('{{ .Table }}', item.id)">Delete</button>
|
||||
<button class="hover:btn-alert" type="button" @click.prevent="ConfirmDelete('{{ .Table }}', item.Id)">Delete</button>
|
||||
<button class="hover:btn-hover" type="submit">Update</button>
|
||||
</bottom>
|
||||
</card>
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@
|
|||
x-data="{item: {}}"
|
||||
x-init="item = await GetJson('/api/game/1')">
|
||||
|
||||
<h3 x-text="item.title"></h3>
|
||||
<h3 x-text="item.Title"></h3>
|
||||
|
||||
<div class="gap-3 pb-3 flex flex-col lg:flex-row-reverse">
|
||||
<div class="!text-sm !p-0 flex flex-col md:flex-row lg:flex-col">
|
||||
<img :src="item.header_image" />
|
||||
<img :src="item.HeaderImage" />
|
||||
<block>
|
||||
<p class="m-2" x-text="item.description"></p>
|
||||
<p class="m-2" x-text="item.Description"></p>
|
||||
<table>
|
||||
<tr><th class="text-gray-400 text-left">RECENT REVIEWS:</th><td>Insanely Optimistic</td></tr>
|
||||
<tr><th class="text-gray-400 text-left">ENGLISH REVIEWS:</th><td>Probably Racist</td></tr>
|
||||
|
|
@ -20,8 +20,8 @@
|
|||
</div>
|
||||
<div class="flex">
|
||||
<video controls>
|
||||
<template x-if="item.video">
|
||||
<source :src="item.video" type="video/mp4" />
|
||||
<template x-if="item.Video">
|
||||
<source :src="item.Video" type="video/mp4" />
|
||||
</template>
|
||||
</video>
|
||||
</div>
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
<bar class="!p-0 *:!p-0">
|
||||
<block>
|
||||
<table class="flex flex-col">
|
||||
<template x-for="tag in item.tags.split(' ')">
|
||||
<template x-for="tag in item.Tags.split(' ')">
|
||||
<tr>
|
||||
<td style="width: 24px; min-width: 24px; max-width: 24px" class="aspect-square bg-gray-300 p-1"><img src="/icons/baby.svg" /></td>
|
||||
<td class="p-1" x-text="tag"></td>
|
||||
|
|
@ -40,20 +40,20 @@
|
|||
|
||||
<block>
|
||||
<h4>Current Status</h4>
|
||||
<p x-text="item.current_status"></p>
|
||||
<p x-text="item.CurrentStatus"></p>
|
||||
</block>
|
||||
</block>
|
||||
|
||||
<block>
|
||||
<block>
|
||||
<h4>Planned Work</h4>
|
||||
<p x-text="item.planned_work"></p>
|
||||
<p x-text="item.PlannedWork"></p>
|
||||
</block>
|
||||
|
||||
<block>
|
||||
<h4>Read The Code</h4>
|
||||
<p>All of the code for this project is online in my personal git repository. It's not open source, but you can read the code, run the game, and learn from it. Think of it like the programmer's version of a thirst trap on Instagram. You can look but you own nothing.</p>
|
||||
<button><a :href="item.code_url" target="_blank">View the Git</a></button>
|
||||
<button><a :href="item.CodeUrl" target="_blank">View the Git</a></button>
|
||||
</block>
|
||||
</block>
|
||||
</bar>
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@
|
|||
|
||||
<div x-init="item = await Stream.item()" x-data="{item: {}}">
|
||||
<block style="--value: 7">
|
||||
<h1 x-text="item.title"></h1>
|
||||
<h1 x-text="item.Title"></h1>
|
||||
|
||||
<div>
|
||||
<p x-text="item.description"></p>
|
||||
<p x-text="item.Description"></p>
|
||||
</div>
|
||||
</block>
|
||||
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
<ul x-data="Links">
|
||||
<template x-for="item in contents">
|
||||
<li><a x-text="item.description" x-bind:href="item.url"></a></li>
|
||||
<li><a x-text="item.Description" x-bind:href="item.Url"></a></li>
|
||||
</template>
|
||||
</ul>
|
||||
</block>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue