This file contains 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
const prisma = require('@prisma/client') | |
/** | |
* | |
* @typedef { import("@prisma/client").PrismaClient } PrismaClient | |
* @typedef {{prisma: PrismaClient}} Context | |
*/ | |
/** | |
* |
This file contains 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
generator client { | |
provider = "prisma-client-js" | |
} | |
datasource db { | |
provider = "sqlite" | |
url = "file:./dev.db" | |
} | |
model User { |
This file contains 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> | |
<div class="page"> | |
<h1>My Blog</h1> | |
<main></main> | |
<p v-if="$fetchState.pending"> | |
<span class="loading"></span> | |
</p> | |
<p v-else-if="$fetchState.error">Error while fetching feed 🤬</p> | |
<ul v-else> | |
<li v-for="post in feed" :key="post.id"> |
This file contains 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
const express = require('express'); | |
const router = express.Router(); | |
const options = { | |
apiKey: process.env.AT_API_KEY, | |
username: 'sandbox' | |
} | |
const shortCode = '32531' |
This file contains 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
(function($) { // Begin jQuery | |
$(function() { // DOM ready | |
// If a link has a dropdown, add sub menu toggle. | |
$('nav ul li a:not(:only-child)').click(function(e) { | |
$(this).siblings('.nav-dropdown').toggle(); | |
// Close one dropdown when selecting another | |
$('.nav-dropdown').not($(this).siblings()).hide(); | |
e.stopPropagation(); | |
}); |