Skip to content

Commit

Permalink
fix: correct path to be on live or local
Browse files Browse the repository at this point in the history
  • Loading branch information
basilgood committed Aug 16, 2024
1 parent 2a0fbf6 commit 5a46636
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const config = {

return config;
},
staticDirs: ['../stories/images'],
};

export default config;
9 changes: 3 additions & 6 deletions stories/cosmoz-image-viewer.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const Basic = ({
?loop=${loop}
?show-zoom=${showZoom}
?detached-show-zoom=${detachedShowZoom}
.images=${['stories/images/cosmos1.jpg', 'stories/images/cosmos2.jpg']}
.images=${['cosmos1.jpg', 'cosmos2.jpg']}
></cosmoz-image-viewer>
`;

Expand All @@ -51,11 +51,8 @@ Basic.args = {
};

export const Issue21 = () => {
const images1 = [
'stories/images/stockholm.jpg',
'stories/images/strasbourg.jpg',
],
images2 = ['stories/images/cosmos1.jpg', 'stories/images/cosmos2.jpg'];
const images1 = ['stockholm.jpg', 'strasbourg.jpg'],
images2 = ['cosmos1.jpg', 'cosmos2.jpg'];
return html`
<cosmoz-image-viewer
show-detach
Expand Down
6 changes: 3 additions & 3 deletions stories/data.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export const images = [
'stories/images/stockholm.jpg',
'stockholm.jpg',
'this-is-a-loading-error.jpg',
() => 'stories/images/a_size.png',
() => 'a_size.png',
() =>
new Promise((resolve) =>
setTimeout(() => resolve('stories/images/strasbourg.jpg'), 500),
setTimeout(() => resolve('strasbourg.jpg'), 500),
),
];
2 changes: 1 addition & 1 deletion stories/haunted-pan-zoom.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
};
const Template = ({ disabled, height, zoomStiffness, panStiffness }) => html`
<haunted-pan-zoom
src="stories/images/a_size.png"
src="a_size.png"
style="height: ${height}px;"
?disabled=${disabled}
.zoomStiffness=${zoomStiffness}
Expand Down

0 comments on commit 5a46636

Please sign in to comment.