added in License
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
// Copyright 2024 Patial Tech. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
import { gql } from '@urql/svelte';
|
||||
export const Me = gql`
|
||||
query Me {
|
||||
|
@@ -1,8 +1,12 @@
|
||||
// Copyright 2024 Patial Tech. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
import { Client, cacheExchange, fetchExchange } from '@urql/svelte';
|
||||
|
||||
export function newClient(url: string) {
|
||||
return new Client({
|
||||
url,
|
||||
exchanges: [ fetchExchange]
|
||||
exchanges: [fetchExchange]
|
||||
});
|
||||
}
|
||||
|
@@ -0,0 +1,3 @@
|
||||
// Copyright 2024 Patial Tech. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
@@ -1 +1,5 @@
|
||||
// Copyright 2024 Patial Tech. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
export let authUser = $state();
|
||||
|
@@ -1,12 +1,15 @@
|
||||
<script lang="ts">
|
||||
import { type Snippet } from "svelte";
|
||||
import { type Snippet } from 'svelte';
|
||||
|
||||
interface Props {
|
||||
children: Snippet
|
||||
}
|
||||
const { children }:Props = $props();
|
||||
interface Props {
|
||||
children: Snippet;
|
||||
}
|
||||
const { children }: Props = $props();
|
||||
</script>
|
||||
|
||||
// Copyright 2024 Patial Tech. All rights reserved. // Use of this source code is governed by a BSD-style // license
|
||||
that can be found in the LICENSE file.
|
||||
|
||||
<button>
|
||||
{@render children()}
|
||||
</button>
|
||||
|
Reference in New Issue
Block a user