Skip to content

Commit 56b5c1e

Browse files
committed
Add spherical viewer
1 parent 8cb8e67 commit 56b5c1e

27 files changed

Lines changed: 1368 additions & 27 deletions

.github/workflows/pre-commit.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: "22"
17+
cache: npm
18+
- run: npm ci
1419
- uses: actions/setup-python@v3
1520
- uses: pre-commit/action@v3.0.0

.pre-commit-config.yaml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,27 @@ repos:
1313
- id: check-github-actions
1414
- id: check-github-workflows
1515

16-
- repo: https://github.com/pre-commit/mirrors-prettier
17-
rev: v4.0.0-alpha.8
16+
# Uses repo-root Prettier (prettier-plugin-astro, tailwind) + ESLint + Astro.
17+
# Requires `npm ci` first — see .github/workflows/pre-commit.yml.
18+
- repo: local
1819
hooks:
19-
- id: prettier
20-
types_or: [css, scss, json, javascript, html]
21-
exclude: (?i)(.*main.*scss)$
20+
- id: prettier
21+
name: prettier
22+
language: system
23+
entry: npm exec -- prettier --write --
24+
files: (^prettier\.config\.ts$)|(.*\.(astro|css|scss|json|[jt]sx?|mjs|cjs|mdx|html))$
25+
exclude: (?i)^(dist/.*|\.astro/.*|.*main.*scss)$
26+
- id: eslint
27+
name: eslint
28+
language: system
29+
entry: npm exec -- eslint --max-warnings 0 --
30+
files: (^eslint\.config\.ts$)|(.*\.(astro|tsx?|jsx?|mjs|cjs|json|md|mts|cts))$
31+
exclude: (?i)^(dist/.*|\.astro/.*|package-lock\.json)$
32+
- id: astro-check
33+
name: astro check
34+
language: system
35+
entry: npm run check
36+
pass_filenames: false
2237

2338
- repo: https://github.com/google/yamlfmt
2439
rev: v0.21.0

astro.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ import astroExpressiveCode from "astro-expressive-code";
1515
export default defineConfig({
1616
vite: {
1717
plugins: [tailwindcss()],
18+
server: {
19+
watch: {
20+
usePolling: true,
21+
interval: 1000,
22+
},
23+
},
1824
},
1925
markdown: {
2026
remarkPlugins: [remarkMath],

eslint.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export default defineConfig([
5252
},
5353
{
5454
files: ["**/*.css"],
55+
ignores: ["src/styles/global.css"],
5556
plugins: { css },
5657
language: "css/css",
5758
languageOptions: { customSyntax: tailwind4 },
5.43 MB
Binary file not shown.
5.43 MB
Binary file not shown.
5.43 MB
Binary file not shown.
387 KB
Binary file not shown.
396 KB
Binary file not shown.

public/spherical-image/fisheye.bin

7.91 MB
Binary file not shown.

0 commit comments

Comments
 (0)