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
<script lang="ts"> | |
import { page } from '$app/stores'; | |
import { getInitialUser } from '$lib/Identity/api/auth'; | |
import AuthPageLayout from '$lib/Identity/components/AuthPageLayout.svelte'; | |
import InlineLoader from '@senja/shared/components/InlineLoader.svelte'; | |
import TertiaryButton from '@senja/shared/components/TertiaryButton.svelte'; | |
import { ConvertkitIcon } from '@senja/shared/components/icons/integrations'; | |
import { optimizeImage } from '@senja/shared/utils/cdn'; | |
// This is the first URL ConvertKit will call. It'll contain a redirect URL, a <state> parameter and a client_id. |
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
{ | |
"workbench.colorTheme": "Aura Dark", | |
"workbench.iconTheme": "material-icon-theme", | |
"editor.fontFamily": "'Geist Mono', Menlo, Monaco, 'Courier New', monospace", | |
"apc.listRow": { | |
"height": 24, | |
"fontSize": 11 | |
}, | |
"window.titleBarStyle": "native", | |
"apc.font.family": "Geist Mono", |
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
#your-container *, | |
#your-container ::before, | |
#your-container ::after { | |
box-sizing: border-box; | |
border-width: 0; | |
border-style: solid; | |
border-color: theme("borderColor.DEFAULT", currentColor); | |
} | |
#your-container ::before, |
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
<script lang="ts"> | |
import { toast } from "../utils/toast"; | |
import Icon from "../components/Icon.svelte"; | |
import { ImagePlus, X } from "../components/icons"; | |
import Label from "../components/Label.svelte"; | |
import FileDrop from "filedrop-svelte"; | |
import { scale } from "svelte/transition"; | |
export let files: File[] = []; |
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
<script context="module" lang="ts"> | |
import { getSubscriptionPlan } from '$lib/billing/api'; | |
import { Account, getInitialUser, SubscriptionPlan } from '$lib/core/api'; | |
export const router = false; | |
import type { Load } from '@sveltejs/kit'; | |
import { onMount } from 'svelte'; | |
export const load: Load = async ({ params }) => { | |
const id = params.planId; | |
const result = await getSubscriptionPlan(id); | |
if (result.isErr()) { |
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 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({Key? key}) : super(key: key); | |
@override |
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
<body> | |
<script src="js/renderer_switcher.js"></script> | |
<script> | |
<!-- Service worker code --> | |
<!-- This script installs service_worker.js to provide PWA functionality to application. For more information, see: https://developers.google.com/web/fundamentals/primers/service-workers --> | |
... |
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 'dart:typed_data'; | |
import 'dart:ui' hide Image; | |
import 'package:image/image.dart' as img_lib; | |
import 'dart:math' as math; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
enum ImageFetchState { initial, fetching, fetched } | |
class ImagePlayground extends StatefulWidget { |
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 'dart:math'; | |
import 'package:flutter/gestures.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
const numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; | |
class FlipCardPlayground extends StatelessWidget { | |
@override |