Skip to content

Commit

Permalink
chore: update demo images
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Aug 5, 2024
1 parent 7b8edb2 commit c717189
Show file tree
Hide file tree
Showing 21 changed files with 27 additions and 27 deletions.
Binary file added public/pic1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/pic2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/pic3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/pic4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/wallpaper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/carousel/story.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ const def = story(
'position:relative;height:100%;width:100%;background-size:contain;background-repeat:no-repeat;background-position:center;'

carousel.append(
`<div style="${commonStyle};background-image:url(https://res.liriliri.io/luna/pic1.jpg);"></div>`
`<div style="${commonStyle};background-image:url(/pic1.png);"></div>`
)
carousel.append(
`<div style="${commonStyle};background-image:url(https://res.liriliri.io/luna/pic2.jpg);"></div>`
`<div style="${commonStyle};background-image:url(/pic2.png);"></div>`
)
carousel.append(
`<div style="${commonStyle};background-image:url(https://res.liriliri.io/luna/pic3.jpg);"></div>`
`<div style="${commonStyle};background-image:url(/pic3.png);"></div>`
)
carousel.append(
`<div style="${commonStyle};background-image:url(https://res.liriliri.io/luna/pic4.jpg);"></div>`
`<div style="${commonStyle};background-image:url(/pic4.png);"></div>`
)

button('Clear', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/cropper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import LunaCropper from 'luna-cropper'
```javascript
const container = document.getElementById('container')
const cropper = new LunaCropper(container, {
image: 'https://res.liriliri.io/luna/wallpaper.jpg',
image: 'https://luna.liriliri.io/wallpaper.png',
})
console.log(cropper.getData())
```
Expand Down
2 changes: 1 addition & 1 deletion src/cropper/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ interface ICropBoxData {
* @example
* const container = document.getElementById('container')
* const cropper = new LunaCropper(container, {
* image: 'https://res.liriliri.io/luna/wallpaper.jpg',
* image: 'https://luna.liriliri.io/wallpaper.png',
* })
* console.log(cropper.getData())
*/
Expand Down
2 changes: 1 addition & 1 deletion src/cropper/story.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const def = story(
)

function createKnobs() {
const image = text('Image', 'https://res.liriliri.io/luna/wallpaper.jpg')
const image = text('Image', '/wallpaper.png')

return {
image,
Expand Down
2 changes: 1 addition & 1 deletion src/cropper/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import test from '../share/test'

test('cropper', (container) => {
const cropper = new Cropper(container, {
url: 'https://res.liriliri.io/luna/wallpaper.jpg',
url: 'https://luna.liriliri.io/wallpaper.png',
})

it('basic', function () {
Expand Down
2 changes: 1 addition & 1 deletion src/gallery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import LunaGallery from 'luna-gallery'

```javascript
const gallery = new LunaGallery(container)
gallery.append('https://res.liriliri.io/luna/pic1.jpg', 'pic1.jpg')
gallery.append('https://luna.liriliri.io/pic1.png', 'pic1.png')
gallery.show()
```

Expand Down
2 changes: 1 addition & 1 deletion src/gallery/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface IOptions extends IComponentOptions {
*
* @example
* const gallery = new LunaGallery(container)
* gallery.append('https://res.liriliri.io/luna/pic1.jpg', 'pic1.jpg')
* gallery.append('https://luna.liriliri.io/pic1.png', 'pic1.png')
* gallery.show()
*/
export default class Gallery extends Component<IOptions> {
Expand Down
8 changes: 4 additions & 4 deletions src/gallery/story.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ const def = story(
})
gallery.show()

gallery.append('https://res.liriliri.io/luna/pic1.jpg', 'pic1.jpg')
gallery.append('https://res.liriliri.io/luna/pic2.jpg', 'pic2.jpg')
gallery.append('https://res.liriliri.io/luna/pic3.jpg', 'pic3.jpg')
gallery.append('https://res.liriliri.io/luna/pic4.jpg', 'pic4.jpg')
gallery.append('/pic1.png', 'pic1.png')
gallery.append('/pic2.png', 'pic2.png')
gallery.append('/pic3.png', 'pic3.png')
gallery.append('/pic4.png', 'pic4.png')

button('Show', () => {
gallery.show()
Expand Down
8 changes: 4 additions & 4 deletions src/gallery/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ test('gallery', (container) => {
const gallery = new Gallery(container)

it('basic', function () {
gallery.append('https://res.liriliri.io/luna/pic1.jpg', 'pic1.jpg')
gallery.append('https://res.liriliri.io/luna/pic2.jpg', 'pic2.jpg')
gallery.append('https://res.liriliri.io/luna/pic3.jpg', 'pic3.jpg')
gallery.append('https://res.liriliri.io/luna/pic4.jpg', 'pic4.jpg')
gallery.append('https://luna.liriliri.io/pic1.png', 'pic1.png')
gallery.append('https://luna.liriliri.io/pic2.png', 'pic2.png')
gallery.append('https://luna.liriliri.io/pic3.png', 'pic3.png')
gallery.append('https://luna.liriliri.io/pic4.png', 'pic4.png')
gallery.show()
})

Expand Down
2 changes: 1 addition & 1 deletion src/image-viewer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import LunaImageViewer from 'luna-image-viewer'

```javascript
const imageViewer = new LunaImageViewer(container, {
image: 'https://res.liriliri.io/luna/pic1.jpg',
image: 'https://luna.liriliri.io/pic1.png',
})
imageViewer.zoom(0.1)
```
Expand Down
2 changes: 1 addition & 1 deletion src/image-viewer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface IPivot {
*
* @example
* const imageViewer = new LunaImageViewer(container, {
* image: 'https://res.liriliri.io/luna/pic1.jpg',
* image: 'https://luna.liriliri.io/pic1.png',
* })
* imageViewer.zoom(0.1)
*/
Expand Down
2 changes: 1 addition & 1 deletion src/image-viewer/story.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const def = story(
)

function createKnobs() {
const image = text('Image', 'https://res.liriliri.io/luna/pic1.jpg')
const image = text('Image', '/wallpaper.png')
const initialCoverage = number('Initial Coverage', 0.9, {
range: true,
min: 0.1,
Expand Down
2 changes: 1 addition & 1 deletion src/image-viewer/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import test from '../share/test'

test('image-viewer', (container) => {
const imageViewer = new ImageViewer(container, {
image: 'https://res.liriliri.io/luna/pic1.jpg',
image: 'https://luna.liriliri.io/wallpaper.png',
})
it('basic', function () {
imageViewer.zoom(0.1)
Expand Down
4 changes: 2 additions & 2 deletions src/markdown-viewer/DEMO.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,5 @@ Autoconverted link https://luna.liriliri.io/

## Image

![Pic1](https://res.liriliri.io/luna/pic1.jpg)
![Pic2](https://res.liriliri.io/luna/pic2.jpg)
![Pic1](https://luna.liriliri.io/pic1.png)
![Pic2](https://luna.liriliri.io/pic2.png)
2 changes: 1 addition & 1 deletion src/mask-editor/story.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const def = story(
)

function createKnobs() {
const image = text('Image', 'https://res.liriliri.io/luna/pic1.jpg')
const image = text('Image', '/wallpaper.png')
const masks = files('Mask')

return {
Expand Down
4 changes: 2 additions & 2 deletions src/music-visualizer/story.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ const def = story(

const container = h('div')
$(container).css({
aspectRatio: '1280/720',
aspectRatio: '768/512',
})

const image = boolean('Background Image', true)

const musicVisualizer = new MusicVisualizer(container, {
audio: musicPlayer.getAudio(),
image: image ? 'https://res.liriliri.io/luna/wallpaper.jpg' : '',
image: image ? '/wallpaper.png' : '',
fftSize: 512,
})

Expand Down

0 comments on commit c717189

Please sign in to comment.