Skip to content

Commit

Permalink
Resolve astro check messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mandar1jn committed Aug 31, 2023
1 parent 5f8b6f4 commit 1633cdc
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/pages/posts/[...page].astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import BlogPostCard from '@components/BlogPostCard.astro';
import Section from '@components/Section.astro';
import Layout from '@layouts/Layout.astro';
import { sortPostsByDate } from '../../utils/posts';
import { CollectionEntry, getCollection } from 'astro:content';
import { type CollectionEntry, getCollection } from 'astro:content';
export async function getStaticPaths({ paginate }: GetStaticPathsOptions) {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/projects/[...page].astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import type { GetStaticPathsOptions, Page } from "astro";
import { CollectionEntry, getCollection } from "astro:content";
import { type CollectionEntry, getCollection } from "astro:content";
import ProjectCard from "@components/ProjectCard.astro";
import Section from "@components/Section.astro";
import Layout from "@layouts/Layout.astro";
Expand Down
2 changes: 1 addition & 1 deletion src/pages/sandbox/webgpu/compute-shader.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Layout from "@layouts/Layout.astro";
<script>
import { InitializeWebGPU } from "@scripts/sandbox/webgpu/index";

const {gpu, adapter, device} = await InitializeWebGPU();
const {device} = await InitializeWebGPU();

const BUFFER_SIZE = 1000;

Expand Down
4 changes: 2 additions & 2 deletions src/pages/sandbox/webgpu/spinning-cube-indexed.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import Layout from "@layouts/Layout.astro";
<script>
import { InitializeWebGPU, ConfigureCanvas } from "@scripts/sandbox/webgpu/index";

const { gpu, adapter, device } = await InitializeWebGPU();
const { gpu, device } = await InitializeWebGPU();

const { canvas, context } = ConfigureCanvas(
const { context } = ConfigureCanvas(
gpu,
device,
"spinning-cube-indexed"
Expand Down
4 changes: 2 additions & 2 deletions src/pages/sandbox/webgpu/spinning-cube.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import Layout from "@layouts/Layout.astro";
<script>
import { InitializeWebGPU, ConfigureCanvas } from "@scripts/sandbox/webgpu/index";

const { gpu, adapter, device } = await InitializeWebGPU();
const { gpu, device } = await InitializeWebGPU();

const { canvas, context } = ConfigureCanvas(
const { context } = ConfigureCanvas(
gpu,
device,
"spinning-cube"
Expand Down
4 changes: 2 additions & 2 deletions src/pages/sandbox/webgpu/spinning-textured-cube.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import Layout from "@layouts/Layout.astro";
<script>
import { InitializeWebGPU, ConfigureCanvas, Material } from "@scripts/sandbox/webgpu/index";

const { gpu, adapter, device } = await InitializeWebGPU();
const { gpu, device } = await InitializeWebGPU();

const { canvas, context } = ConfigureCanvas(
const { context } = ConfigureCanvas(
gpu,
device,
"spinning-textured-cube"
Expand Down
4 changes: 2 additions & 2 deletions src/pages/sandbox/webgpu/spinning-triangle.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import Layout from "@layouts/Layout.astro";
<script>
import { InitializeWebGPU, ConfigureCanvas} from "@scripts/sandbox/webgpu/index";

const { gpu, adapter, device } = await InitializeWebGPU();
const { gpu, device } = await InitializeWebGPU();

const { canvas, context } = ConfigureCanvas(
const { context } = ConfigureCanvas(
gpu,
device,
"spinning-triangle"
Expand Down
4 changes: 2 additions & 2 deletions src/pages/sandbox/webgpu/triangle.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import Layout from "@layouts/Layout.astro";
<script>
import { InitializeWebGPU, ConfigureCanvas } from "@scripts/sandbox/webgpu/index";

const { gpu, adapter, device } = await InitializeWebGPU();
const { gpu, device } = await InitializeWebGPU();

const { canvas, context } = ConfigureCanvas(gpu, device, "triangle");
const { context } = ConfigureCanvas(gpu, device, "triangle");

import shader from "@assets/sandbox/webgpu/triangle/shader.wgsl?raw";

Expand Down

0 comments on commit 1633cdc

Please sign in to comment.