Major 2025 Update: PostgreSQL now recommends identity columns over serial types. Drizzle has fully embraced this change.
import { pgTable, integer, text, timestamp, varchar } from 'drizzle-orm/pg-core';Major 2025 Update: PostgreSQL now recommends identity columns over serial types. Drizzle has fully embraced this change.
import { pgTable, integer, text, timestamp, varchar } from 'drizzle-orm/pg-core';| <!-- generated via npm run build && npx create-polyfill-service-url analyse --file public/bundle.js --> | |
| <script crossorigin="anonymous" src="https://cdn.polyfill.io/v3/polyfill.min.js?features=Array.from,Array.isArray,Array.prototype.entries,Array.prototype.fill,Array.prototype.filter,Array.prototype.forEach,Array.prototype.indexOf,Array.prototype.keys,Array.prototype.map,ArrayBuffer,console,DataView,Date.prototype.toISOString,document,fetch,Function.prototype.bind,globalThis,Map,Object.create,Object.defineProperties,Object.defineProperty,Object.entries,Object.getOwnPropertyDescriptor,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.getPrototypeOf,Object.keys,Object.setPrototypeOf,Promise,Reflect,Reflect.construct,Set,Symbol,Symbol.iterator,WeakMap,WeakSet"></script> |
| <script> | |
| /* This is a quick test of Pts (https://ptsjs.org) with Svelte (https://svelte.dev) */ | |
| import { onMount } from "svelte"; | |
| import { CanvasSpace, Rectangle } from "pts"; | |
| let container, space, form; | |
| onMount(() => { | |
| space = new CanvasSpace(container).setup({bgcolor: "#52f"}); | |
| form = space.getForm(); | |
| space.add( time => { |
grep for .icnsSimilarly you could run this command, but it may take several minutes to complete:
| // Calculates a curve that goes through a number of points. | |
| // There are lots of mathematical approaches to do so | |
| // (see: https://en.wikipedia.org/wiki/Cubic_Hermite_spline). | |
| // The most commonly used seems to be the Catmull–Rom spline. | |
| // My approch here is not intended to be a new general | |
| // solution to this problem, but it should fit some geometrical | |
| // and graphical needs. See | |
| // https://hartmut-bohnacker.de/projects/points-to-curve | |
| // for more explanation. |
const searchHistory = query => {console.dir(JSON.parse(localStorage.getItem('consoleHistory')).filter(function(item){ return ~item.indexOf(query);}))}
searchHistory('token')| { | |
| Title: 'My awesome markdown file', | |
| Author: 'Me', | |
| Scripts: [ | |
| 'js/doStuff.js', | |
| 'js/doMoreStuff.js' | |
| ] | |
| } |
I've been deceiving you all. I had you believe that Svelte was a UI framework — unlike React and Vue etc, because it shifts work out of the client and into the compiler, but a framework nonetheless.
But that's not exactly accurate. In my defense, I didn't realise it myself until very recently. But with Svelte 3 around the corner, it's time to come clean about what Svelte really is.
Svelte is a language.
Specifically, Svelte is an attempt to answer a question that many people have asked, and a few have answered: what would it look like if we had a language for describing reactive user interfaces?
A few projects that have answered this question: