Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 1 addition & 28 deletions .editorconfig-checker.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,5 @@
{
"Exclude": [
"node_modules",
"dist",
"build",
".git",
"package-lock.json",
"src/data/contributor-credits.json",
"docs/node_modules",
"docs/build",
"docs/.docusaurus",
"docs/package-lock.json",
"src/wasm/build",
"src/wasm/modules/image/build",
"\\.ase$",
"\\.min\\.js$",
"\\.min\\.css$",
"\\.lock$",
"CC-BY-SA-4\\.0\\.txt$",
"LICENSE.*",
"\\.md$",
"\\.mdx$",
"\\.py$",
"\\.bat$",
"\\.ps1$",
"^img2num$",
"\\.cpp$",
"\\.h$"
],
"Exclude": ["node_modules", "dist", "build", ".git", "package-lock.json", "src/data/contributor-credits.json", "docs/node_modules", "docs/build", "docs/.docusaurus", "docs/package-lock.json", "src/wasm/build", "src/wasm/modules/image/build", "\\.ase$", "\\.min\\.js$", "\\.min\\.css$", "\\.lock$", "CC-BY-SA-4\\.0\\.txt$", "LICENSE.*", "\\.md$", "\\.mdx$", "\\.py$", "\\.bat$", "\\.ps1$", "^img2num$", "\\.cpp$", "\\.h$"],
"AllowedContentTypes": [],
"PassedFiles": [],
"Disable": {
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Bug Report
description: Report a bug
labels: ['bug']
labels: ["bug"]
body:
- type: markdown
attributes:
Expand Down Expand Up @@ -35,9 +35,9 @@ body:
- type: dropdown
id: assign
attributes:
label: 'Would you like to work on this issue?'
label: "Would you like to work on this issue?"
options:
- 'Yes'
- "Yes"
- type: markdown
attributes:
value: |
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: New feature
description: Suggest or request a new feature
labels: ['enhancement']
labels: ["enhancement"]
body:
- type: markdown
attributes:
Expand All @@ -27,9 +27,9 @@ body:
- type: dropdown
id: assign
attributes:
label: 'Would you like to work on this issue?'
label: "Would you like to work on this issue?"
options:
- 'Yes'
- "Yes"
- type: markdown
attributes:
value: |
Expand Down
36 changes: 18 additions & 18 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
version: 2
updates:
# React (npm)
- package-ecosystem: 'npm'
directory: '/'
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: 'weekly'
day: 'monday'
time: '09:00'
interval: "weekly"
day: "monday"
time: "09:00"
groups:
all-npm:
patterns:
- '*'
- "*"
labels:
- 'dependencies'
- 'npm'
- "dependencies"
- "npm"
open-pull-requests-limit: 5
commit-message:
prefix: 'chore(deps):'
prefix: "chore(deps):"

# GitHub Actions
- package-ecosystem: 'github-actions'
directory: '/'
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: 'weekly'
day: 'monday'
time: '09:00'
interval: "weekly"
day: "monday"
time: "09:00"
groups:
all-github-actions:
patterns:
- '*'
- "*"
labels:
- 'dependencies'
- 'github-actions'
- "dependencies"
- "github-actions"
open-pull-requests-limit: 5
commit-message:
prefix: 'chore(deps):'
prefix: "chore(deps):"
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'npm'
node-version: "22"
cache: "npm"

- name: Install dependencies
run: npm ci
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/commenter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ on:
workflow_call:
inputs:
issue_number:
description: 'The PR or issue number to comment on'
description: "The PR or issue number to comment on"
required: true
type: number
message:
description: 'The comment body text'
description: "The comment body text"
required: true
type: string
is_pr:
description: 'If true, target a PR; if false, target an issue'
description: "If true, target a PR; if false, target an issue"
required: false
default: true
type: boolean
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"
2 changes: 1 addition & 1 deletion .github/workflows/issue-take-untake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
issue_comment:
types: [created]
schedule:
- cron: '0 0 * * 0' # weekly cleanup (UTC)
- cron: "0 0 * * 0" # weekly cleanup (UTC)

permissions:
contents: read
Expand Down
33 changes: 3 additions & 30 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
# Node modules
node_modules/

# Build/dist output
dist/
build/

# Docusaurus build files
docs/.docusaurus/
docs/.docusaurus/**/*.json
docs/.docusaurus/**/*.js

# Ignore binary or assets files
src/assets/
public/
*.ico
*.png
*.jpg
*.jpeg
*.gif
*.webp
*.ase
*.db

# Lock files
package-lock.json
yarn.lock

# Other config or auto-generated files
*.log
# Ignore artifacts:
build
coverage
11 changes: 1 addition & 10 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
{
"tabWidth": 2,
"useTabs": false,
"endOfLine": "lf",
"printWidth": 120,
"trailingComma": "es5",
"semi": true,
"singleQuote": true,
"bracketSameLine": true
}
{}
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ services:
- node_modules:/usr/src/app/node_modules
- docs_node_modules:/usr/src/app/docs/node_modules
environment:
CHOKIDAR_USEPOLLING: 'true'
CHOKIDAR_INTERVAL: '100'
CHOKIDAR_USEPOLLING: "true"
CHOKIDAR_INTERVAL: "100"
ports:
- '5173:5173' # Vite dev
- '4173:4173' # Vite preview
- '3000:3000' # Docusaurus dev
- "5173:5173" # Vite dev
- "4173:4173" # Vite preview
- "3000:3000" # Docusaurus dev
stdin_open: true
tty: true

Expand Down
18 changes: 6 additions & 12 deletions docs/changelogSidebarGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,19 @@
export async function changelogSidebarGenerator({ defaultSidebarItemsGenerator, ...args }) {
const items = await defaultSidebarItemsGenerator(args);

const isReleaseDoc = (item) =>
item &&
item.type === 'doc' &&
typeof item.id === 'string' &&
item.id.startsWith('changelog/') &&
!item.id.endsWith('/index') &&
!item.id.endsWith('/changelog');
const isReleaseDoc = (item) => item && item.type === "doc" && typeof item.id === "string" && item.id.startsWith("changelog/") && !item.id.endsWith("/index") && !item.id.endsWith("/changelog");

const indexItem = items.find((it) => it.type === 'doc' && it.id.endsWith('/index'));
const mainChangelogItem = items.find((it) => it.type === 'doc' && it.id.endsWith('/changelog'));
const indexItem = items.find((it) => it.type === "doc" && it.id.endsWith("/index"));
const mainChangelogItem = items.find((it) => it.type === "doc" && it.id.endsWith("/changelog"));

const releaseItems = items.filter(isReleaseDoc);

const parseMeta = (id) => {
const filename = id.split('/').pop(); // e.g., "2025-12-06_0.0.2.md"
const [dateStr, versionStr] = filename.replace(/\.md$/, '').split('_');
const filename = id.split("/").pop(); // e.g., "2025-12-06_0.0.2.md"
const [dateStr, versionStr] = filename.replace(/\.md$/, "").split("_");
const date = new Date(dateStr).getTime() || 0;

const [major = 0, minor = 0, patch = 0] = (versionStr || '0.0.0').split('.').map((n) => Number(n));
const [major = 0, minor = 0, patch = 0] = (versionStr || "0.0.0").split(".").map((n) => Number(n));

return { date, major, minor, patch };
};
Expand Down
8 changes: 2 additions & 6 deletions docs/docs/reference/react/components/GlassCard/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ By default, `GlassCard` renders a `div`, but this can be customized using the
## 🛠 Basic Usage

```jsx
import { GlassCard } from './components/GlassCard';
import { GlassCard } from "./components/GlassCard";

const MyComponent = () => (
<GlassCard>
Expand Down Expand Up @@ -71,11 +71,7 @@ You can change the underlying HTML element without losing any styling.
All additional props are forwarded to the underlying element.

```jsx
<GlassCard
id="main-card"
aria-label="Main featured card"
onClick={() => alert('Card clicked!')}
className="hover-effect">
<GlassCard id="main-card" aria-label="Main featured card" onClick={() => alert("Card clicked!")} className="hover-effect">
Interactive Card
</GlassCard>
```
Expand Down
Loading