dependencie update

This commit is contained in:
cupcakearmy 2022-03-09 17:20:36 +01:00
parent de45eb5e45
commit 1fe6f14416
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F
7 changed files with 509 additions and 334 deletions

View File

@ -11,24 +11,24 @@
}, },
"type": "module", "type": "module",
"devDependencies": { "devDependencies": {
"@graphql-codegen/cli": "^2.5.0", "@graphql-codegen/cli": "^2.6.2",
"@graphql-codegen/typescript": "^2.4.3", "@graphql-codegen/typescript": "^2.4.7",
"@graphql-codegen/typescript-graphql-request": "^4.3.4", "@graphql-codegen/typescript-graphql-request": "^4.4.2",
"@graphql-codegen/typescript-operations": "^2.2.4", "@graphql-codegen/typescript-operations": "^2.3.4",
"@sveltejs/adapter-static": "next", "@sveltejs/adapter-static": "^1.0.0-next.29",
"@sveltejs/kit": "next", "@sveltejs/kit": "^1.0.0-next.294",
"@types/lunr": "^2.3.4", "@types/lunr": "^2.3.4",
"graphql": "^15.8.0", "graphql": "^15.8.0",
"graphql-request": "^3.7.0", "graphql-request": "^3.7.0",
"graphql-tag": "^2.12.6", "graphql-tag": "^2.12.6",
"svelte": "^3.46.4", "svelte": "^3.46.4",
"svelte-check": "^2.4.2", "svelte-check": "^2.4.5",
"svelte-preprocess": "^4.10.2", "svelte-preprocess": "^4.10.4",
"tslib": "^2.3.1", "tslib": "^2.3.1",
"typescript": "^4.5.5" "typescript": "^4.6.2"
}, },
"dependencies": { "dependencies": {
"dayjs": "^1.10.7", "dayjs": "^1.10.8",
"highlight.js": "^11.4.0", "highlight.js": "^11.4.0",
"lunr": "^2.3.9", "lunr": "^2.3.9",
"svelte-cloudinary": "^0.2.5" "svelte-cloudinary": "^0.2.5"

753
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -45,7 +45,7 @@
</script> </script>
{#if component} {#if component}
<span> <span {...$$restProps}>
<svelte:component this={component} /> <svelte:component this={component} />
</span> </span>
{/if} {/if}

View File

@ -502,6 +502,8 @@ export type GQLCommentRepliesArgs = {
/** A Comment Author object */ /** A Comment Author object */
export type GQLCommentAuthor = GQLCommenter & GQLNode & { export type GQLCommentAuthor = GQLCommenter & GQLNode & {
readonly __typename?: 'CommentAuthor'; readonly __typename?: 'CommentAuthor';
/** Avatar object for user. The avatar object can be retrieved in different sizes by specifying the size argument. */
readonly avatar: Maybe<GQLAvatar>;
/** Identifies the primary key from the database. */ /** Identifies the primary key from the database. */
readonly databaseId: Scalars['Int']; readonly databaseId: Scalars['Int'];
/** The email for the comment author */ /** The email for the comment author */
@ -516,6 +518,14 @@ export type GQLCommentAuthor = GQLCommenter & GQLNode & {
readonly url: Maybe<Scalars['String']>; readonly url: Maybe<Scalars['String']>;
}; };
/** A Comment Author object */
export type GQLCommentAuthorAvatarArgs = {
forceDefault: InputMaybe<Scalars['Boolean']>;
rating: InputMaybe<GQLAvatarRatingEnum>;
size?: InputMaybe<Scalars['Int']>;
};
/** Connection between the Comment type and the Comment type */ /** Connection between the Comment type and the Comment type */
export type GQLCommentToCommentConnection = { export type GQLCommentToCommentConnection = {
readonly __typename?: 'CommentToCommentConnection'; readonly __typename?: 'CommentToCommentConnection';
@ -683,6 +693,8 @@ export type GQLCommentToParentCommentConnectionWhereArgs = {
/** The author of a comment */ /** The author of a comment */
export type GQLCommenter = { export type GQLCommenter = {
/** Avatar object for user. The avatar object can be retrieved in different sizes by specifying the size argument. */
readonly avatar: Maybe<GQLAvatar>;
/** Identifies the primary key from the database. */ /** Identifies the primary key from the database. */
readonly databaseId: Scalars['Int']; readonly databaseId: Scalars['Int'];
/** The email address of the author of a comment. */ /** The email address of the author of a comment. */
@ -737,6 +749,8 @@ export enum GQLCommentsConnectionOrderbyEnum {
export type GQLContentNode = { export type GQLContentNode = {
/** Connection between the ContentNode type and the ContentType type */ /** Connection between the ContentNode type and the ContentType type */
readonly contentType: Maybe<GQLContentNodeToContentTypeConnectionEdge>; readonly contentType: Maybe<GQLContentNodeToContentTypeConnectionEdge>;
/** The name of the Content Type the node belongs to */
readonly contentTypeName: Scalars['String'];
/** The ID of the node in the database. */ /** The ID of the node in the database. */
readonly databaseId: Scalars['Int']; readonly databaseId: Scalars['Int'];
/** Post publishing date. */ /** Post publishing date. */
@ -2041,6 +2055,8 @@ export type GQLMediaItem = GQLContentNode & GQLDatabaseIdentifier & GQLHierarchi
readonly comments: Maybe<GQLMediaItemToCommentConnection>; readonly comments: Maybe<GQLMediaItemToCommentConnection>;
/** Connection between the ContentNode type and the ContentType type */ /** Connection between the ContentNode type and the ContentType type */
readonly contentType: Maybe<GQLContentNodeToContentTypeConnectionEdge>; readonly contentType: Maybe<GQLContentNodeToContentTypeConnectionEdge>;
/** The name of the Content Type the node belongs to */
readonly contentTypeName: Scalars['String'];
/** The unique identifier stored in the database */ /** The unique identifier stored in the database */
readonly databaseId: Scalars['Int']; readonly databaseId: Scalars['Int'];
/** Post publishing date. */ /** Post publishing date. */
@ -2853,6 +2869,8 @@ export type GQLNodeWithExcerptExcerptArgs = {
export type GQLNodeWithFeaturedImage = { export type GQLNodeWithFeaturedImage = {
/** Connection between the ContentNode type and the ContentType type */ /** Connection between the ContentNode type and the ContentType type */
readonly contentType: Maybe<GQLContentNodeToContentTypeConnectionEdge>; readonly contentType: Maybe<GQLContentNodeToContentTypeConnectionEdge>;
/** The name of the Content Type the node belongs to */
readonly contentTypeName: Scalars['String'];
/** The unique identifier stored in the database */ /** The unique identifier stored in the database */
readonly databaseId: Scalars['Int']; readonly databaseId: Scalars['Int'];
/** Post publishing date. */ /** Post publishing date. */
@ -3014,6 +3032,8 @@ export type GQLPage = GQLContentNode & GQLDatabaseIdentifier & GQLHierarchicalCo
readonly content: Maybe<Scalars['String']>; readonly content: Maybe<Scalars['String']>;
/** Connection between the ContentNode type and the ContentType type */ /** Connection between the ContentNode type and the ContentType type */
readonly contentType: Maybe<GQLContentNodeToContentTypeConnectionEdge>; readonly contentType: Maybe<GQLContentNodeToContentTypeConnectionEdge>;
/** The name of the Content Type the node belongs to */
readonly contentTypeName: Scalars['String'];
/** The unique resource identifier path */ /** The unique resource identifier path */
readonly databaseId: Scalars['Int']; readonly databaseId: Scalars['Int'];
/** Post publishing date. */ /** Post publishing date. */
@ -3378,6 +3398,8 @@ export type GQLPost = GQLContentNode & GQLDatabaseIdentifier & GQLMenuItemLinkab
readonly content: Maybe<Scalars['String']>; readonly content: Maybe<Scalars['String']>;
/** Connection between the ContentNode type and the ContentType type */ /** Connection between the ContentNode type and the ContentType type */
readonly contentType: Maybe<GQLContentNodeToContentTypeConnectionEdge>; readonly contentType: Maybe<GQLContentNodeToContentTypeConnectionEdge>;
/** The name of the Content Type the node belongs to */
readonly contentTypeName: Scalars['String'];
/** The unique resource identifier path */ /** The unique resource identifier path */
readonly databaseId: Scalars['Int']; readonly databaseId: Scalars['Int'];
/** Post publishing date. */ /** Post publishing date. */
@ -4469,6 +4491,8 @@ export type GQLProject = GQLContentNode & GQLDatabaseIdentifier & GQLMenuItemLin
readonly content: Maybe<Scalars['String']>; readonly content: Maybe<Scalars['String']>;
/** Connection between the ContentNode type and the ContentType type */ /** Connection between the ContentNode type and the ContentType type */
readonly contentType: Maybe<GQLContentNodeToContentTypeConnectionEdge>; readonly contentType: Maybe<GQLContentNodeToContentTypeConnectionEdge>;
/** The name of the Content Type the node belongs to */
readonly contentTypeName: Scalars['String'];
/** The unique resource identifier path */ /** The unique resource identifier path */
readonly databaseId: Scalars['Int']; readonly databaseId: Scalars['Int'];
/** Post publishing date. */ /** Post publishing date. */
@ -8013,13 +8037,13 @@ export type GQLUpdateSettingsPayload = {
readonly allSettings: Maybe<GQLSettings>; readonly allSettings: Maybe<GQLSettings>;
/** If a &#039;clientMutationId&#039; input is provided to the mutation, it will be returned as output on the mutation. This ID can be used by the client to track the progress of mutations and catch possible duplicate mutation submissions. */ /** If a &#039;clientMutationId&#039; input is provided to the mutation, it will be returned as output on the mutation. This ID can be used by the client to track the progress of mutations and catch possible duplicate mutation submissions. */
readonly clientMutationId: Maybe<Scalars['String']>; readonly clientMutationId: Maybe<Scalars['String']>;
/** Update the discussion setting. */ /** Update the DiscussionSettings setting. */
readonly discussionSettings: Maybe<GQLDiscussionSettings>; readonly discussionSettings: Maybe<GQLDiscussionSettings>;
/** Update the general setting. */ /** Update the GeneralSettings setting. */
readonly generalSettings: Maybe<GQLGeneralSettings>; readonly generalSettings: Maybe<GQLGeneralSettings>;
/** Update the reading setting. */ /** Update the ReadingSettings setting. */
readonly readingSettings: Maybe<GQLReadingSettings>; readonly readingSettings: Maybe<GQLReadingSettings>;
/** Update the writing setting. */ /** Update the WritingSettings setting. */
readonly writingSettings: Maybe<GQLWritingSettings>; readonly writingSettings: Maybe<GQLWritingSettings>;
}; };
@ -8837,6 +8861,8 @@ export type GQLWork = GQLContentNode & GQLDatabaseIdentifier & GQLMenuItemLinkab
readonly content: Maybe<Scalars['String']>; readonly content: Maybe<Scalars['String']>;
/** Connection between the ContentNode type and the ContentType type */ /** Connection between the ContentNode type and the ContentType type */
readonly contentType: Maybe<GQLContentNodeToContentTypeConnectionEdge>; readonly contentType: Maybe<GQLContentNodeToContentTypeConnectionEdge>;
/** The name of the Content Type the node belongs to */
readonly contentTypeName: Scalars['String'];
/** The unique resource identifier path */ /** The unique resource identifier path */
readonly databaseId: Scalars['Int']; readonly databaseId: Scalars['Int'];
/** Post publishing date. */ /** Post publishing date. */
@ -9435,51 +9461,51 @@ export const TagsManyDocument = gql`
} }
${BaseTagFragmentDoc}`; ${BaseTagFragmentDoc}`;
export type SdkFunctionWrapper = <T>(action: (requestHeaders?:Record<string, string>) => Promise<T>, operationName: string) => Promise<T>; export type SdkFunctionWrapper = <T>(action: (requestHeaders?:Record<string, string>) => Promise<T>, operationName: string, operationType?: string) => Promise<T>;
const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action(); const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action();
export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {
return { return {
MediaItemsMany(variables?: GQLMediaItemsManyQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLMediaItemsManyQuery> { MediaItemsMany(variables?: GQLMediaItemsManyQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLMediaItemsManyQuery> {
return withWrapper((wrappedRequestHeaders) => client.request<GQLMediaItemsManyQuery>(MediaItemsManyDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'MediaItemsMany'); return withWrapper((wrappedRequestHeaders) => client.request<GQLMediaItemsManyQuery>(MediaItemsManyDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'MediaItemsMany', 'query');
}, },
MediaItemsOne(variables: GQLMediaItemsOneQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLMediaItemsOneQuery> { MediaItemsOne(variables: GQLMediaItemsOneQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLMediaItemsOneQuery> {
return withWrapper((wrappedRequestHeaders) => client.request<GQLMediaItemsOneQuery>(MediaItemsOneDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'MediaItemsOne'); return withWrapper((wrappedRequestHeaders) => client.request<GQLMediaItemsOneQuery>(MediaItemsOneDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'MediaItemsOne', 'query');
}, },
PagesMany(variables?: GQLPagesManyQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLPagesManyQuery> { PagesMany(variables?: GQLPagesManyQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLPagesManyQuery> {
return withWrapper((wrappedRequestHeaders) => client.request<GQLPagesManyQuery>(PagesManyDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'PagesMany'); return withWrapper((wrappedRequestHeaders) => client.request<GQLPagesManyQuery>(PagesManyDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'PagesMany', 'query');
}, },
PagesOne(variables: GQLPagesOneQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLPagesOneQuery> { PagesOne(variables: GQLPagesOneQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLPagesOneQuery> {
return withWrapper((wrappedRequestHeaders) => client.request<GQLPagesOneQuery>(PagesOneDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'PagesOne'); return withWrapper((wrappedRequestHeaders) => client.request<GQLPagesOneQuery>(PagesOneDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'PagesOne', 'query');
}, },
WorksMany(variables?: GQLWorksManyQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLWorksManyQuery> { WorksMany(variables?: GQLWorksManyQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLWorksManyQuery> {
return withWrapper((wrappedRequestHeaders) => client.request<GQLWorksManyQuery>(WorksManyDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'WorksMany'); return withWrapper((wrappedRequestHeaders) => client.request<GQLWorksManyQuery>(WorksManyDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'WorksMany', 'query');
}, },
WorksOne(variables: GQLWorksOneQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLWorksOneQuery> { WorksOne(variables: GQLWorksOneQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLWorksOneQuery> {
return withWrapper((wrappedRequestHeaders) => client.request<GQLWorksOneQuery>(WorksOneDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'WorksOne'); return withWrapper((wrappedRequestHeaders) => client.request<GQLWorksOneQuery>(WorksOneDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'WorksOne', 'query');
}, },
ProjectsMany(variables?: GQLProjectsManyQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLProjectsManyQuery> { ProjectsMany(variables?: GQLProjectsManyQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLProjectsManyQuery> {
return withWrapper((wrappedRequestHeaders) => client.request<GQLProjectsManyQuery>(ProjectsManyDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ProjectsMany'); return withWrapper((wrappedRequestHeaders) => client.request<GQLProjectsManyQuery>(ProjectsManyDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ProjectsMany', 'query');
}, },
ProjectsOne(variables: GQLProjectsOneQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLProjectsOneQuery> { ProjectsOne(variables: GQLProjectsOneQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLProjectsOneQuery> {
return withWrapper((wrappedRequestHeaders) => client.request<GQLProjectsOneQuery>(ProjectsOneDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ProjectsOne'); return withWrapper((wrappedRequestHeaders) => client.request<GQLProjectsOneQuery>(ProjectsOneDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ProjectsOne', 'query');
}, },
PostsMany(variables?: GQLPostsManyQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLPostsManyQuery> { PostsMany(variables?: GQLPostsManyQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLPostsManyQuery> {
return withWrapper((wrappedRequestHeaders) => client.request<GQLPostsManyQuery>(PostsManyDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'PostsMany'); return withWrapper((wrappedRequestHeaders) => client.request<GQLPostsManyQuery>(PostsManyDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'PostsMany', 'query');
}, },
PostsOne(variables: GQLPostsOneQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLPostsOneQuery> { PostsOne(variables: GQLPostsOneQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLPostsOneQuery> {
return withWrapper((wrappedRequestHeaders) => client.request<GQLPostsOneQuery>(PostsOneDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'PostsOne'); return withWrapper((wrappedRequestHeaders) => client.request<GQLPostsOneQuery>(PostsOneDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'PostsOne', 'query');
}, },
PostsManyByTag(variables: GQLPostsManyByTagQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLPostsManyByTagQuery> { PostsManyByTag(variables: GQLPostsManyByTagQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLPostsManyByTagQuery> {
return withWrapper((wrappedRequestHeaders) => client.request<GQLPostsManyByTagQuery>(PostsManyByTagDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'PostsManyByTag'); return withWrapper((wrappedRequestHeaders) => client.request<GQLPostsManyByTagQuery>(PostsManyByTagDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'PostsManyByTag', 'query');
}, },
Search(variables?: GQLSearchQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLSearchQuery> { Search(variables?: GQLSearchQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLSearchQuery> {
return withWrapper((wrappedRequestHeaders) => client.request<GQLSearchQuery>(SearchDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'Search'); return withWrapper((wrappedRequestHeaders) => client.request<GQLSearchQuery>(SearchDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'Search', 'query');
}, },
TagsMany(variables?: GQLTagsManyQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLTagsManyQuery> { TagsMany(variables?: GQLTagsManyQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GQLTagsManyQuery> {
return withWrapper((wrappedRequestHeaders) => client.request<GQLTagsManyQuery>(TagsManyDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'TagsMany'); return withWrapper((wrappedRequestHeaders) => client.request<GQLTagsManyQuery>(TagsManyDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'TagsMany', 'query');
} }
}; };
} }

View File

@ -1,7 +1,7 @@
import { SDK } from '$lib/gql' import { SDK } from '$lib/gql'
import type { RequestHandler } from '@sveltejs/kit' import type { RequestHandler } from '@sveltejs/kit'
export const get: RequestHandler<any> = async (args) => { export const get: RequestHandler<{ type: string; slug: string }, any> = async (args) => {
const { type, slug } = args.params const { type, slug } = args.params
const all = slug === '*' const all = slug === '*'

View File

@ -1,7 +1,6 @@
<script lang="ts" context="module"> <script lang="ts" context="module">
import type { Load } from '@sveltejs/kit' import type { Load } from '@sveltejs/kit'
export const prerender = true
export const load: Load = async ({ fetch }) => { export const load: Load = async ({ fetch }) => {
return { return {
props: { props: {

View File

@ -5,6 +5,7 @@ import adapter from '@sveltejs/adapter-static'
const config = { const config = {
preprocess: preprocess(), preprocess: preprocess(),
kit: { kit: {
prerender: { default: true },
adapter: adapter(), adapter: adapter(),
}, },
} }