added in License

This commit is contained in:
2024-11-18 20:53:13 +05:30
parent 9d40c9d7ec
commit a2739dbbcd
38 changed files with 222 additions and 39 deletions

View File

@@ -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 {

View File

@@ -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]
});
}

View File

@@ -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.

View 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();

View File

@@ -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>