Skip to content

Commit

Permalink
fix(smart): add crome origin trails for Summarization API
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Nov 12, 2024
1 parent 634077f commit 39dd565
Show file tree
Hide file tree
Showing 8 changed files with 262 additions and 258 deletions.
11 changes: 10 additions & 1 deletion apps/smart/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@
<html lang="%paraglide.lang%" dir="%paraglide.textDirection%">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.svg" />
<link rel="icon" type="image/svg+xml" href="%sveltekit.assets%/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<!-- google origin-trial for Language Detector API. TODO: remove it later -->
<!--Language Detector API for console.traefik.me:5173 -->
<meta http-equiv="origin-trial" content="AiVFWMnV7QYA5pqGdezep1T1h22k0ufTHeg/nqn5nIwj9Hx7bgZC/R/9BwkcykLwK2Vc1pKgQSbD/9yn/XY4yA8AAAB0eyJvcmlnaW4iOiJodHRwczovL2NvbnNvbGUudHJhZWZpay5tZTo1MTczIiwiZmVhdHVyZSI6Ikxhbmd1YWdlRGV0ZWN0aW9uQVBJIiwiZXhwaXJ5IjoxNzQ5NTk5OTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZX0=">
<!--Language Detector API for spectacular-console.vercel.app -->
<meta http-equiv="origin-trial" content="AlUflGB5JNI846dE4S6Us0sb7u/i8wXLaN4NL/zpq9O1qIxEhg1C0C7gV56wRmGpWtbDq48RWwoY93RyojNrWA4AAAB/eyJvcmlnaW4iOiJodHRwczovL3NwZWN0YWN1bGFyLWNvbnNvbGUudmVyY2VsLmFwcDo0NDMiLCJmZWF0dXJlIjoiTGFuZ3VhZ2VEZXRlY3Rpb25BUEkiLCJleHBpcnkiOjE3NDk1OTk5OTksImlzU3ViZG9tYWluIjp0cnVlfQ==">
<!-- Summarization API for console.traefik.me:5173 -->
<meta http-equiv="origin-trial" content="AhRX/1kbfhyJeDOwiIL2iOxVM0G0eSlfsJMnTUxmhxcbnkfJY2GjmJnMADNGCG4EKvy+l8cUFpCWt2Cx0ty7MgQAAAByeyJvcmlnaW4iOiJodHRwczovL2NvbnNvbGUudHJhZWZpay5tZTo1MTczIiwiZmVhdHVyZSI6IkFJU3VtbWFyaXphdGlvbkFQSSIsImV4cGlyeSI6MTc1MzE0MjQwMCwiaXNTdWJkb21haW4iOnRydWV9">
<!-- Summarization API for spectacular-console.vercel.app -->
<meta http-equiv="origin-trial" content="Arw+7FaZF8eDO8gO0KRWUp6fXWPCF3K72a0XoNET055K1UNG3xyPflq44VTz3glRAAsq8ZpPsoySHiM/I3RwMAsAAAB9eyJvcmlnaW4iOiJodHRwczovL3NwZWN0YWN1bGFyLWNvbnNvbGUudmVyY2VsLmFwcDo0NDMiLCJmZWF0dXJlIjoiQUlTdW1tYXJpemF0aW9uQVBJIiwiZXhwaXJ5IjoxNzUzMTQyNDAwLCJpc1N1YmRvbWFpbiI6dHJ1ZX0=">
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
Expand Down
2 changes: 1 addition & 1 deletion apps/smart/src/routes/examples/data-table/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import DataTable from "./data-table.svelte";
import DataTable from './data-table.svelte';
</script>

<div class="container mx-auto py-10">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts">
import DotsHorizontal from "svelte-radix/DotsHorizontal.svelte";
import { Button } from "@spectacular/ui/components/button";
import * as DropdownMenu from '@spectacular/ui/components/dropdown-menu';
import DotsHorizontal from 'svelte-radix/DotsHorizontal.svelte';
import { Button } from '@spectacular/ui/components/button';
import * as DropdownMenu from '@spectacular/ui/components/dropdown-menu';
let { id }: { id: string } = $props();
let { id }: { id: string } = $props();
</script>

<DropdownMenu.Root>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
<script lang="ts">
import type { ComponentProps } from "svelte";
import { Checkbox } from "@spectacular/ui/components/checkbox";
import type { ComponentProps } from 'svelte';
import { Checkbox } from '@spectacular/ui/components/checkbox';
let {
checked = false,
controlledChecked = true,
...restProps
}: ComponentProps<typeof Checkbox> = $props();
let { checked = false, controlledChecked = true, ...restProps }: ComponentProps<typeof Checkbox> = $props();
</script>

<Checkbox {checked} {controlledChecked} {...restProps} />
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts">
import type { ComponentProps } from "svelte";
import CaretSort from "svelte-radix/CaretSort.svelte";
import { Button } from "@spectacular/ui/components/button";
import type { ComponentProps } from 'svelte';
import CaretSort from 'svelte-radix/CaretSort.svelte';
import { Button } from '@spectacular/ui/components/button';
let { variant = "ghost", ...restProps }: ComponentProps<typeof Button> = $props();
let { variant = 'ghost', ...restProps }: ComponentProps<typeof Button> = $props();
</script>

<Button {variant} {...restProps}>
Expand Down
Loading

0 comments on commit 39dd565

Please sign in to comment.