This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<p>Hello, {%= @user.name %}!</p> | |
<div id="replace-me"></div> | |
</template> | |
<script> | |
document.getElementById("replace-me").innerHTML = "Welcome to the future."; | |
</script> | |
<style scoped> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sys": { | |
"type": "Array" | |
}, | |
"total": 1, | |
"skip": 0, | |
"limit": 100, | |
"items": [ | |
{ | |
"sys": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// API call | |
// https://cdn.contentful.com/spaces/spoqsaf9291f/environments/master/entries?sys.id=5R8jRmZhFypDxCs0oVjV3D&include=4 | |
// Response | |
{ | |
"sys": { | |
"type": "Array" | |
}, | |
"total": 1, | |
"skip": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// API Call | |
// https://preview.contentful.com/spaces/spoqsaf9291f/environments/master/entries?sys.id=5R8jRmZhFypDxCs0oVjV3D&include=4 | |
// Response | |
{ | |
"sys": { | |
"type": "Array" | |
}, | |
"total": 1, | |
"skip": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set prevSibling = craft.entries().prevSiblingOf(entry).one() %} | |
{% set nextSibling = craft.entries().nextSiblingOf(entry).one() %} | |
{% set prevEntry = prevSibling ? prevSibling : craft.entries().section('work').inReverse().one() %} | |
{% set nextEntry = nextSibling ? nextSibling : craft.entries().section('work').one() %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { SupabaseBucket, SUPBABASE_BUCKETS } from "@helpers/fileHelpers" | |
import { createRouteHandlerClient } from "@supabase/auth-helpers-nextjs" | |
import { createClient } from "@supabase/supabase-js" | |
import { cookies } from "next/headers" | |
import { NextRequest, NextResponse } from "next/server" | |
import { Database } from "../../../../types/supabase" | |
/** | |
* DELETE to: | |
* http://localhost:3000/api/actions/delete-account |
OlderNewer