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
2 changes: 1 addition & 1 deletion mise.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[tools]
node = "25.8.1"
node = "25.9.0"
1,152 changes: 434 additions & 718 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "erost-framed",
"version": "2.0.1",
"version": "2.0.2",
"description": "Canvas-based picture framing application",
"type": "module",
"scripts": {
Expand Down
10 changes: 3 additions & 7 deletions src/composables/useCanvasRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function useCanvasRenderer(options = {}) {
* @param {string} value - New mime type value
*/
const updateFormat = (value) => {
const validFormats = IMAGE_FORMATS.map(f => f.mimeType);
const validFormats = IMAGE_FORMATS.map((f) => f.mimeType);
if (!validFormats.includes(value)) {
throw new Error('Not a valid image format');
}
Expand Down Expand Up @@ -202,12 +202,8 @@ export function useCanvasRenderer(options = {}) {
const image2 = imageState.images.value[1];

// Extract valid characters from filenames (1-10 chars)
const image1Part = image1?.fileName
? extractValidFilenameChars(image1.fileName)
: '';
const image2Part = image2?.fileName
? extractValidFilenameChars(image2.fileName)
: '';
const image1Part = image1?.fileName ? extractValidFilenameChars(image1.fileName) : '';
const image2Part = image2?.fileName ? extractValidFilenameChars(image2.fileName) : '';

// Use UUID if no valid characters found
const part1 = image1Part || generateUuidV1Short();
Expand Down
5 changes: 2 additions & 3 deletions src/composables/useFrameConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ export function useFrameConfig() {
* Toggle orientation between portrait and landscape
*/
const toggleOrientation = () => {
orientation.value = orientation.value === ORIENTATIONS.PORTRAIT
? ORIENTATIONS.LANDSCAPE
: ORIENTATIONS.PORTRAIT;
orientation.value =
orientation.value === ORIENTATIONS.PORTRAIT ? ORIENTATIONS.LANDSCAPE : ORIENTATIONS.PORTRAIT;
};

/**
Expand Down
8 changes: 3 additions & 5 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ app.mount('#app');
*/
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker
.register('/sw.js')
.catch((error) => {
logError('Service Worker registration failed:', error);
});
navigator.serviceWorker.register('/sw.js').catch((error) => {
logError('Service Worker registration failed:', error);
});
});
}
2 changes: 1 addition & 1 deletion src/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const IMAGE_CONSTRAINTS = {
export const FRAME_SIZE_OPTIONS = [
{ label: '1024px', value: 1024 },
{ label: '2048px', value: 2048 },
{ label: '4096px', value: 4096 }
{ label: '4096px', value: 4096 },
];

/**
Expand Down
2 changes: 1 addition & 1 deletion src/utils/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ export function generateUuidV1Short() {
const uuid = `${timeHex.slice(-6)}${counter}${random}`;

return uuid.slice(0, 8);
}
}
Loading