Skip to content

Commit

Permalink
MPL headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Robonau committed Oct 1, 2023
1 parent 4a252db commit 8a76566
Show file tree
Hide file tree
Showing 58 changed files with 291 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// See https://kit.svelte.dev/docs/types#app


Expand Down
5 changes: 5 additions & 0 deletions src/app.sass
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
@tailwind base
@tailwind components
@tailwind utilities
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/

@layer components
.tab-active
Expand Down
5 changes: 5 additions & 0 deletions src/lib/ErrorText.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
export let err: string | undefined = undefined;
</script>

Expand Down
5 changes: 5 additions & 0 deletions src/lib/Image.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { onMount } from 'svelte';
export let src: string;
Expand Down
5 changes: 5 additions & 0 deletions src/lib/IntersectionObserver.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { onMount } from 'svelte';
import { createEventDispatcher } from 'svelte';
const dispatch = createEventDispatcher<{
Expand Down
5 changes: 5 additions & 0 deletions src/lib/Loading.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
export let label: string | undefined = undefined;
</script>

Expand Down
5 changes: 5 additions & 0 deletions src/lib/MainLayout.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import MenuItems from '$lib/MenuItems.svelte';
import Icon from '@iconify/svelte';
import { title } from './titleStore';
Expand Down
5 changes: 5 additions & 0 deletions src/lib/MangaMeta.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { deleteMangaMeta, setMangaMeta, type MetaType } from "./generated";
import { writable, type Writable } from 'svelte/store';

Expand Down
5 changes: 5 additions & 0 deletions src/lib/MenuItems.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import Icon from '@iconify/svelte';
export let data: {
href: string;
Expand Down
5 changes: 5 additions & 0 deletions src/lib/MetaStore.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { writable } from 'svelte/store';
import { Asyncmetas, setGlobalMeta, deleteGlobalMeta, type MetaType } from './generated';

Expand Down
5 changes: 5 additions & 0 deletions src/lib/Options.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
export const modeOptions = [
{ label: 'RTL', value: 'rtl' },
{ label: 'LTR', value: 'ltr' },
Expand Down
5 changes: 5 additions & 0 deletions src/lib/TriStateCheck.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import Icon from '@iconify/svelte';
import { createEventDispatcher } from 'svelte';
import { ifTriState } from './ifTriState';
Expand Down
5 changes: 5 additions & 0 deletions src/lib/apollo.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { ApolloClient, InMemoryCache, split, type ApolloLink } from '@apollo/client/core';
import { createUploadLink } from 'apollo-upload-client'
import { GraphQLWsLink } from '@apollo/client/link/subscriptions';
Expand Down
5 changes: 5 additions & 0 deletions src/lib/ifTriState.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
export function ifTriState(x: number): x is TriState {
return [0, 1, 2].includes(x, 0);
}
5 changes: 5 additions & 0 deletions src/lib/titleStore.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { writable } from 'svelte/store';
export const title = writable('loading...');
5 changes: 5 additions & 0 deletions src/routes/(app)/[email protected]
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import type { LayoutData } from './$types';
export let data: LayoutData;
import MainLayout from '$lib/MainLayout.svelte';
Expand Down
5 changes: 5 additions & 0 deletions src/routes/(app)/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import ErrorText from '$lib/ErrorText.svelte';
import Image from '$lib/Image.svelte';
import IntersectionObserver from '$lib/IntersectionObserver.svelte';
Expand Down
5 changes: 5 additions & 0 deletions src/routes/(app)/+page.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/

import { Asynccategories } from "$lib/generated"
import { error } from '@sveltejs/kit';
Expand Down
5 changes: 5 additions & 0 deletions src/routes/(app)/browse/extentions/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import Icon from '@iconify/svelte';
import { Meta, jsonInitMeta, updateMeta } from '$lib/MetaStore';
import {
Expand Down
5 changes: 5 additions & 0 deletions src/routes/(app)/browse/sources/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import ErrorText from '$lib/ErrorText.svelte';
import Icon from '@iconify/svelte';
import { Meta, jsonInitMeta, updateMeta } from '$lib/MetaStore';
Expand Down
5 changes: 5 additions & 0 deletions src/routes/(app)/browse/sources/[SourceID]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import CheckBox from './Filters/CheckBox.svelte';
import type { PageData } from './$types';
export let data: PageData;
Expand Down
5 changes: 5 additions & 0 deletions src/routes/(app)/browse/sources/[SourceID]/+page.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { error } from '@sveltejs/kit';
import type { PageLoad } from './$types';
export const load = (({ params }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import type { SourceQuery } from '$lib/generated';
import { createEventDispatcher } from 'svelte';
export let filter: Extract<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import CheckBox from './CheckBox.svelte';
import Separator from './Separator.svelte';
import Sort from './Sort.svelte';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import type { SourceQuery } from '$lib/generated';
export let filter: Extract<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import type { SourceQuery } from '$lib/generated';
import { createEventDispatcher } from 'svelte';
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
<!-- /*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
-->
<div class="divider" />
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import type { SourceQuery } from '$lib/generated';
import { createEventDispatcher } from 'svelte';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import type { SourceQuery } from '$lib/generated';
export let filter: Extract<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import TriStateCheck from '$lib/TriStateCheck.svelte';
import { TriState as Tri, type SourceQuery } from '$lib/generated';
import { createEventDispatcher } from 'svelte';
Expand Down
5 changes: 5 additions & 0 deletions src/routes/(app)/browse/sources/[SourceID]/Filters/Types.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
interface sourcefilter {
type: string,
filter: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { updateSourcePreference, type SourceQuery } from '$lib/generated';
export let pref: Extract<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { updateSourcePreference, type SourceQuery } from '$lib/generated';
export let pref: Extract<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { updateSourcePreference, type SourceQuery } from '$lib/generated';
export let pref: Extract<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { updateSourcePreference, type SourceQuery } from '$lib/generated';
export let pref: Extract<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { updateSourcePreference, type SourceQuery } from '$lib/generated';
export let pref: Extract<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
interface sourcepref {
props: {
key: string
Expand Down
5 changes: 5 additions & 0 deletions src/routes/(app)/browse/sources/global/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import ErrorText from '$lib/ErrorText.svelte';
import Loading from '$lib/Loading.svelte';
import { Meta, jsonInitMeta, updateMeta } from '$lib/MetaStore';
Expand Down
5 changes: 5 additions & 0 deletions src/routes/(app)/browse/sources/migrate/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import ErrorText from '$lib/ErrorText.svelte';
import Loading from '$lib/Loading.svelte';
import { AsyncsourcesMigration, type SourcesMigrationQuery } from '$lib/generated';
Expand Down
5 changes: 5 additions & 0 deletions src/routes/(app)/browse/sources/migrate/MangaMigration.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import type { SourceMigrationQuery } from '$lib/generated';
import { writable } from 'svelte/store';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import Loading from '$lib/Loading.svelte';
import { sourceMigration } from '$lib/generated';
import type { PageData } from './$types';
Expand Down
Loading

0 comments on commit 8a76566

Please sign in to comment.