@@ -51,3 +51,11 @@
|
|||||||
/>
|
/>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<title>Featured Adventures | AdventureLog</title>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Featured Adventure Locations from around the world. Add them to your visited list!"
|
||||||
|
/>
|
||||||
|
</svelte:head>
|
||||||
|
|||||||
@@ -117,7 +117,7 @@
|
|||||||
console.log("Success:", data);
|
console.log("Success:", data);
|
||||||
// update local array with new data
|
// update local array with new data
|
||||||
adventures = adventures.map((adventure) =>
|
adventures = adventures.map((adventure) =>
|
||||||
adventure.id === event.detail.id ? event.detail : adventure,
|
adventure.id === event.detail.id ? event.detail : adventure
|
||||||
);
|
);
|
||||||
editId = NaN;
|
editId = NaN;
|
||||||
editName = "";
|
editName = "";
|
||||||
@@ -132,7 +132,7 @@
|
|||||||
|
|
||||||
function editAdventure(event: { detail: number }) {
|
function editAdventure(event: { detail: number }) {
|
||||||
const adventure = adventures.find(
|
const adventure = adventures.find(
|
||||||
(adventure) => adventure.id === event.detail,
|
(adventure) => adventure.id === event.detail
|
||||||
);
|
);
|
||||||
if (adventure) {
|
if (adventure) {
|
||||||
editId = adventure.id;
|
editId = adventure.id;
|
||||||
@@ -206,7 +206,7 @@
|
|||||||
console.log("Success:", data);
|
console.log("Success:", data);
|
||||||
// remove adventure from array where id matches
|
// remove adventure from array where id matches
|
||||||
adventures = adventures.filter(
|
adventures = adventures.filter(
|
||||||
(adventure) => adventure.id !== event.detail,
|
(adventure) => adventure.id !== event.detail
|
||||||
);
|
);
|
||||||
showToast("Adventure removed successfully!");
|
showToast("Adventure removed successfully!");
|
||||||
visitCount.update((n) => n - 1);
|
visitCount.update((n) => n - 1);
|
||||||
@@ -312,3 +312,11 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<title>My Log | AdventureLog</title>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Displays the user's visited adventure locations."
|
||||||
|
/>
|
||||||
|
</svelte:head>
|
||||||
|
|||||||
@@ -68,3 +68,11 @@
|
|||||||
<!-- <footer class="text-sm">- Steve Jobs</footer> -->
|
<!-- <footer class="text-sm">- Steve Jobs</footer> -->
|
||||||
</blockquote>
|
</blockquote>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<title>Login | AdventureLog</title>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Login to your AdventureLog account to start logging your adventures!"
|
||||||
|
/>
|
||||||
|
</svelte:head>
|
||||||
|
|||||||
@@ -70,3 +70,11 @@
|
|||||||
<small class="text-center"
|
<small class="text-center"
|
||||||
><b>For Debug Use:</b> UUID={user_id} Signup Date={signup_date} Role={role}</small
|
><b>For Debug Use:</b> UUID={user_id} Signup Date={signup_date} Role={role}</small
|
||||||
>
|
>
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<title>User Settings | AdventureLog</title>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Update your user account settings here. Change your username, first name, last name, and profile icon."
|
||||||
|
/>
|
||||||
|
</svelte:head>
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ export const actions: Actions = {
|
|||||||
let adminUser = await db
|
let adminUser = await db
|
||||||
.select()
|
.select()
|
||||||
.from(userTable)
|
.from(userTable)
|
||||||
.where(eq(userTable.role, 'admin'))
|
.where(eq(userTable.role, "admin"))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
if (adminUser != null && adminUser.length > 0) {
|
if (adminUser != null && adminUser.length > 0) {
|
||||||
|
|||||||
@@ -42,3 +42,11 @@
|
|||||||
<button class="py-2 px-4 btn btn-primary">Signup</button>
|
<button class="py-2 px-4 btn btn-primary">Signup</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<title>Setup | AdventureLog</title>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Setup AdventureLog with your admin account"
|
||||||
|
/>
|
||||||
|
</svelte:head>;
|
||||||
|
|||||||
@@ -29,3 +29,11 @@
|
|||||||
/>
|
/>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<title>Shared List by {data.name} | AdventureLog</title>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Shared Adventure List from around the world. Add them to your visited list!"
|
||||||
|
/>
|
||||||
|
</svelte:head>
|
||||||
|
|||||||
@@ -54,3 +54,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- username first last pass -->
|
<!-- username first last pass -->
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<title>Signup | AdventureLog</title>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Signup for AdventureLog to start logging your adventures!"
|
||||||
|
/>
|
||||||
|
</svelte:head>;
|
||||||
|
|||||||
@@ -25,3 +25,11 @@
|
|||||||
>
|
>
|
||||||
<!-- <p>Name: {item.name}, Continent: {item.continent}</p> -->
|
<!-- <p>Name: {item.name}, Continent: {item.continent}</p> -->
|
||||||
{/each}
|
{/each}
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<title>WorldTravel | AdventureLog</title>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Explore the world and add countries to your visited list!"
|
||||||
|
/>
|
||||||
|
</svelte:head>;
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
name={region.name}
|
name={region.name}
|
||||||
on:markVisited={markVisited}
|
on:markVisited={markVisited}
|
||||||
visited={data.visitedRegions.some(
|
visited={data.visitedRegions.some(
|
||||||
(visitedRegion) => visitedRegion.region_id === region.id,
|
(visitedRegion) => visitedRegion.region_id === region.id
|
||||||
)}
|
)}
|
||||||
on:removeVisit={removeVisit}
|
on:removeVisit={removeVisit}
|
||||||
/>
|
/>
|
||||||
@@ -107,3 +107,13 @@
|
|||||||
<Us on:marked={markVisited} />
|
<Us on:marked={markVisited} />
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<title>{countryCodeToName(data.countrycode)} Regions | AdventureLog</title>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Explore the regions in {countryCodeToName(
|
||||||
|
data.countrycode
|
||||||
|
)} and add them to your visited list!"
|
||||||
|
/>
|
||||||
|
</svelte:head>
|
||||||
|
|||||||
10
static/robots.txt
Normal file
10
static/robots.txt
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
User-agent: *
|
||||||
|
Allow: /
|
||||||
|
|
||||||
|
# Google adsbot ignores robots.txt unless specifically named!
|
||||||
|
User-agent: AdsBot-Google
|
||||||
|
Allow: /
|
||||||
|
|
||||||
|
|
||||||
|
User-agent: GPTBot
|
||||||
|
Disallow: /
|
||||||
Reference in New Issue
Block a user