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
15 changes: 11 additions & 4 deletions docs/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Your theme package must be a valid npm package with:
"files": ["public", "src", "astro.config.ts", "tsconfig.json"],
"dependencies": {
"astro": "^5.11.0",
"@simple-photo-gallery/common": "^2.1.2"
"@simple-photo-gallery/common": "^2.1.3"
}
}
```
Expand All @@ -127,7 +127,9 @@ if (!sourceGalleryPath) {
throw new Error("GALLERY_JSON_PATH environment variable is not set");
}

const outputDir = process.env.GALLERY_OUTPUT_DIR || sourceGalleryPath.replace("gallery.json", "");
const outputDir =
process.env.GALLERY_OUTPUT_DIR ||
sourceGalleryPath.replace("gallery.json", "");

export default defineConfig({
output: "static",
Expand Down Expand Up @@ -401,7 +403,9 @@ const gallery = loadGalleryData("./gallery.json", { validate: true });
```typescript
import { resolveGalleryData } from "@simple-photo-gallery/common/theme";

const resolved = await resolveGalleryData(gallery, { galleryJsonPath: "./gallery.json" });
const resolved = await resolveGalleryData(gallery, {
galleryJsonPath: "./gallery.json",
});

// Access pre-computed data
resolved.hero.src; // Computed hero image path
Expand Down Expand Up @@ -454,7 +458,10 @@ initHeroImageFallback();
**CSS Utilities:**

```typescript
import { setCSSVar, deriveOpacityColor } from "@simple-photo-gallery/common/client";
import {
setCSSVar,
deriveOpacityColor,
} from "@simple-photo-gallery/common/client";

// Set CSS custom properties dynamically
setCSSVar("--primary-color", "#007bff");
Expand Down
6 changes: 3 additions & 3 deletions gallery/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-photo-gallery",
"version": "2.1.2",
"version": "2.1.3",
"description": "Simple Photo Gallery CLI",
"license": "MIT",
"author": "Vladimir Haltakov, Tomasz Rusin",
Expand Down Expand Up @@ -47,8 +47,8 @@
"prepublish": "yarn build"
},
"dependencies": {
"@simple-photo-gallery/common": "2.1.2",
"@simple-photo-gallery/theme-modern": "2.1.2",
"@simple-photo-gallery/common": "2.1.3",
"@simple-photo-gallery/theme-modern": "2.1.3",
"axios": "^1.12.2",
"blurhash": "^2.0.5",
"commander": "^12.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"photoswipe": "^5.4.4"
},
"peerDependencies": {
"@simple-photo-gallery/common": "^2.1.2"
"@simple-photo-gallery/common": "^2.1.3"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
Expand Down
4 changes: 2 additions & 2 deletions themes/modern/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@simple-photo-gallery/theme-modern",
"version": "2.1.2",
"version": "2.1.3",
"description": "Modern theme for Simple Photo Gallery",
"license": "MIT",
"author": "Vladimir Haltakov, Tomasz Rusin",
Expand Down Expand Up @@ -36,7 +36,7 @@
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.30.1",
"@simple-photo-gallery/common": "2.1.2",
"@simple-photo-gallery/common": "2.1.3",
"@types/photoswipe": "^4.1.6",
"@typescript-eslint/eslint-plugin": "^8.35.1",
"@typescript-eslint/parser": "^8.35.1",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1652,7 +1652,7 @@ __metadata:
languageName: node
linkType: hard

"@simple-photo-gallery/common@npm:2.1.2, @simple-photo-gallery/common@workspace:common":
"@simple-photo-gallery/common@npm:2.1.3, @simple-photo-gallery/common@workspace:common":
version: 0.0.0-use.local
resolution: "@simple-photo-gallery/common@workspace:common"
dependencies:
Expand Down Expand Up @@ -1687,13 +1687,13 @@ __metadata:
languageName: unknown
linkType: soft

"@simple-photo-gallery/theme-modern@npm:2.1.2, @simple-photo-gallery/theme-modern@workspace:themes/modern":
"@simple-photo-gallery/theme-modern@npm:2.1.3, @simple-photo-gallery/theme-modern@workspace:themes/modern":
version: 0.0.0-use.local
resolution: "@simple-photo-gallery/theme-modern@workspace:themes/modern"
dependencies:
"@eslint/eslintrc": "npm:^3.3.1"
"@eslint/js": "npm:^9.30.1"
"@simple-photo-gallery/common": "npm:2.1.2"
"@simple-photo-gallery/common": "npm:2.1.3"
"@types/photoswipe": "npm:^4.1.6"
"@typescript-eslint/eslint-plugin": "npm:^8.35.1"
"@typescript-eslint/parser": "npm:^8.35.1"
Expand Down Expand Up @@ -8570,8 +8570,8 @@ __metadata:
dependencies:
"@eslint/eslintrc": "npm:^3.3.1"
"@eslint/js": "npm:^9.30.1"
"@simple-photo-gallery/common": "npm:2.1.2"
"@simple-photo-gallery/theme-modern": "npm:2.1.2"
"@simple-photo-gallery/common": "npm:2.1.3"
"@simple-photo-gallery/theme-modern": "npm:2.1.3"
"@types/fs-extra": "npm:^11.0.4"
"@types/jest": "npm:^30.0.0"
"@types/node": "npm:^24.0.10"
Expand Down