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
import { NextRequest, NextResponse } from 'next/server'; | |
import * as base64Url from './encoding/base64Url'; | |
/** | |
* Necessary to verify the signature of a request. | |
*/ | |
type ReceiverConfig = { | |
/** | |
* The current signing key. Get it from `https://console.upstash.com/qstash | |
*/ |
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
+------------------------+-------------------------+ | |
| TABLE_NAME | COLUMN_NAME | | |
+------------------------+-------------------------+ | |
| proposition | author_id | | |
| vote | author_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
<?php | |
namespace Application\Migrations; | |
use Doctrine\DBAL\Schema\Schema; | |
use CapCollectif\IdToUuid\IdToUuidMigration; | |
class VersionXYZ extends IdToUuidMigration | |
{ | |
public function postUp(Schema $schema) |
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
class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
newTodo: "", | |
todos: [ | |
{ | |
id: 1, | |
name: "Todo 1", | |
dueDate: new Date() |
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 id="app" class="App"> | |
<p class="my-component"> | |
Je suis mon premier composant | |
</p> | |
<ul> | |
<li v-for="todo in todos" :key="todo.id"> | |
{{ todo.name }} - {{ todo.dueDate.toLocaleString() }} | |
</li> | |
</ul> |
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
<div className="App"> | |
<p className="my-component">Je suis mon premier composant</p> | |
<ul> | |
{this.state.todos.length > 0 && | |
this.state.todos.map(todo => ( | |
<li key={todo.id}> | |
{" "} | |
{todo.name} - {todo.dueDate.toLocaleString()}{" "} | |
</li> | |
))} |
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 id="app" class="App"> | |
<p class="my-component"> | |
Je suis mon premier composant | |
</p> | |
<ul> | |
<li v-for="todo in todos" :key="todo.id" v-if="todos.length > 0"> | |
{{ todo.name }} - {{ todo.dueDate.toLocaleString() }} | |
</li> | |
</ul> |
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 id="app" class="App"> | |
<p class="my-component"> | |
Je suis mon premier composant | |
</p> | |
<ul> | |
<li v-for="todo in todos" :key="todo.id"> | |
{{ todo.name }} - {{ todo.dueDate.toLocaleString() }} | |
</li> | |
</ul> |
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
import React, { Component } from "react"; | |
import "./App.css"; | |
class App extends Component { | |
state = { | |
newTodo: "", | |
todos: [ | |
{ | |
id: 1, | |
name: "Todo 1", |
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
<div class="before" style="background: red; position: absolute;" title="stuff" /> | |
<div class="after" style="background: green; position: absolute;" title="stuff" /> |
NewerOlder