Skip to content

Commit

Permalink
fix: change protocol from http to https (#304)
Browse files Browse the repository at this point in the history
* fix: change protocol from http to https

* fix: update test snapshot
  • Loading branch information
ziqisia authored Nov 22, 2024
1 parent 49f8f65 commit 0c42f9b
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 33 deletions.
2 changes: 1 addition & 1 deletion packages/arcodesign/components/form/demo/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default function FormDemo() {
<Rate />
</Form.Item>
<Form.Item field="pictures" label="Pictures" initialValue={[
{ url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' }
{ url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' }
]}>
<ImagePicker />
</Form.Item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1728,10 +1728,13 @@ exports[`grid demo test grid demo: index11.md renders correctly 1`] = `
<div
class="grid-demo-rows-item"
>
<img
<div
class="grid-demo-rows-item-icon"
src="[object Object]"
/>
>
<div
class="grid-demo-block"
/>
</div>
<div
class="grid-demo-rows-item-text"
>
Expand All @@ -1745,10 +1748,13 @@ exports[`grid demo test grid demo: index11.md renders correctly 1`] = `
<div
class="grid-demo-rows-item"
>
<img
<div
class="grid-demo-rows-item-icon"
src="[object Object]"
/>
>
<div
class="grid-demo-block"
/>
</div>
<div
class="grid-demo-rows-item-text"
>
Expand All @@ -1762,10 +1768,13 @@ exports[`grid demo test grid demo: index11.md renders correctly 1`] = `
<div
class="grid-demo-rows-item"
>
<img
<div
class="grid-demo-rows-item-icon"
src="[object Object]"
/>
>
<div
class="grid-demo-block"
/>
</div>
<div
class="grid-demo-rows-item-text"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/arcodesign/components/grid/demo/index11.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Grid } from '@arco-design/mobile-react';
const renderGrid = (item) => {
return (
<div className="grid-demo-rows-item">
<img src={item.img} className="grid-demo-rows-item-icon"/>
<div className="grid-demo-rows-item-icon">{item.img}</div>
<div className="grid-demo-rows-item-text">
<span className="grid-demo-rows-item-title">{item.title}</span>
</div>
Expand Down
6 changes: 3 additions & 3 deletions packages/arcodesign/components/image-picker/demo/columns.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { ImagePicker } from '@arco-design/mobile-react';

export default function ImagePickerDemo() {
const [images, setImages] = React.useState([
{ url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' },
{ url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_2.jpg' },
{ url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_3.jpg' },
{ url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' },
{ url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_2.jpg' },
{ url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_3.jpg' },
]);
return (
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const SelectIcon = () => (

export default function ImagePickerDemo() {
const [images, setImages] = React.useState([
{ url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' },
{ url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' },
]);

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const SadEmoji = () => (

export default function ImagePickerDemo1() {
const [images, setImages] = React.useState([
{ url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' },
{ url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg', status: 'error' },
{ url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' },
{ url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg', status: 'error' },
]);
const renderLoading1 = () => <div className="loading1">Loading...</div>;
const renderError1 = () => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { ImagePicker, Toast } from '@arco-design/mobile-react';

export default function ImagePickerDemo() {
const [images, setImages] = React.useState([
{ url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' },
{ url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' },
]);
const selectAdapter = () => {
Toast.toast('Trigger custom select image');
Expand All @@ -20,19 +20,19 @@ export default function ImagePickerDemo() {
name: '11vnpmryrl4.jpeg',
size: 789020,
type: 'image/jpeg',
url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg',
url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg',
},
{
name: '11vnpmryrl2.jpeg',
size: 7820,
type: 'image/jpeg',
url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_2.jpg',
url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_2.jpg',
},
{
name: '11vnpmryrl1.jpeg',
size: 7820,
type: 'image/jpeg',
url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_3.jpg',
url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_3.jpg',
},
];
setTimeout(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ImagePicker } from '@arco-design/mobile-react';

export default function ImagePickerDemo() {
const [images, setImages] = React.useState([
{ url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' }
{ url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' }
]);
return <ImagePicker images={images} onChange={setImages} disabled={true} />;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ImagePicker } from '@arco-design/mobile-react';

export default function ImagePickerDemo() {
const [images, setImages] = React.useState([
{ url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' }
{ url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' }
]);
return <div>
<div className="demo-space" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { ImagePicker, ImagePreview, Dialog } from '@arco-design/mobile-react';

export default function ImagePickerDemo() {
const [images, setImages] = React.useState([
{ url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' },
{ url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_2.jpg' },
{ url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' },
{ url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_2.jpg' },
]);
const onClick = (e, image, index) => {
window.modalInstance = ImagePreview.open({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { ImagePicker } from '@arco-design/mobile-react';

export default function ImagePickerDemo() {
const [images, setImages] = React.useState([
{ url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' },
{ url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_2.jpg' },
{ url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' },
{ url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_2.jpg' },
]);

return (
Expand Down
2 changes: 1 addition & 1 deletion packages/arcodesign/components/image-picker/demo/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ImagePicker } from '@arco-design/mobile-react';

export default function ImagePickerDemo() {
const [images, setImages] = React.useState([
{ url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' }
{ url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' }
]);
return <ImagePicker images={images} onChange={setImages}/>;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { ImagePicker, Toast } from '@arco-design/mobile-react';

export default function ImagePickerDemo() {
const [images, setImages] = React.useState([
{ url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' },
{ url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' },
{ url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' },
{ url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg' },
]);
const maxSize = 500;
const limit = 3;
Expand Down
6 changes: 3 additions & 3 deletions packages/arcodesign/components/image-picker/demo/upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ export async function mockUpload({file}) {
export async function mockUploadFail() {
await sleep(3000);
return {
url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/not_exists.jpg',
url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/not_exists.jpg',
};
}

export default function ImagePickerDemo() {
const [images, setImages] = React.useState([
{
url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg',
url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg',
}
]);
const [images1, setImages1] = React.useState([
{
url: 'http://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg',
url: 'https://sf1-cdn-tos.toutiaostatic.com/obj/arco-mobile/_static_/large_image_1.jpg',
}
]);
return (
Expand Down

0 comments on commit 0c42f9b

Please sign in to comment.