Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit a51a0bd

Browse files
Merge pull request #447 from chakra-ui/develop
chore: release candidate @chakra-ui/vue@0.9.1 🎉 (patch)
2 parents 7026eaa + ae1d19e commit a51a0bd

File tree

13 files changed

+88
-9
lines changed

13 files changed

+88
-9
lines changed

.all-contributorsrc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@
214214
"contributions": [
215215
"code",
216216
"bug",
217-
"ideas"
217+
"ideas",
218+
"test",
219+
"doc"
218220
]
219221
},
220222
{
@@ -236,6 +238,15 @@
236238
"doc"
237239
]
238240
},
241+
{
242+
"login": "MaySoMusician",
243+
"name": "MaySoMusician",
244+
"avatar_url": "https://avatars.githubusercontent.com/u/34566290?v=4",
245+
"profile": "https://github.com/MaySoMusician",
246+
"contributions": [
247+
"code"
248+
]
249+
},
239250
{
240251
"login": "MWFIAE",
241252
"name": "Martin",

.changeset/curvy-squids-doubt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@chakra-ui/vue': patch
3+
---
4+
5+
Fixes CImage src attribute bug

.codesandbox/ci.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"installCommand": "csb:install",
3+
"buildCommand": "build",
4+
"packages": [
5+
"packages/chakra-ui-core",
6+
"packages/chakra-ui-nuxt"
7+
],
8+
"sandboxes": ["chakra-ui-vue-0x-starter-template-2sy0g", "chakra-ui-nuxt-demo-f8tq4"],
9+
"node": "14"
10+
}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ config/.env
3737
packages/chakra-ui-nuxt/.github
3838
packages/chakra-ui-docs/static/sw.js
3939
website/static/sw.js
40-
.npmrc
40+
.npmrc
41+
**/static/sw.js

.storybook/assets/chakra.png

96.9 KB
Loading

.storybook/webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ module.exports = async ({ config, mode }) => {
1515
'sass-loader'
1616
],
1717
});
18+
config.resolve.alias = {
19+
...config.resolve.alias,
20+
"@/": path.resolve(__dirname, "./"),
21+
};
1822

1923
// Return the altered config
2024
return config;

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
218218
<td align="center"><a href="https://github.com/odanado"><img src="https://avatars.githubusercontent.com/u/6040962?v=4?s=50" width="50px;" alt=""/><br /><sub><b>odanado</b></sub></a><br /><a href="https://github.com/chakra-ui/chakra-ui-vue/commits?author=odanado" title="Code">💻</a> <a href="#tool-odanado" title="Tools">🔧</a></td>
219219
</tr>
220220
<tr>
221-
<td align="center"><a href="https://github.com/IHIutch"><img src="https://avatars.githubusercontent.com/u/20825047?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Jonathan Hutchison</b></sub></a><br /><a href="https://github.com/chakra-ui/chakra-ui-vue/commits?author=IHIutch" title="Code">💻</a> <a href="https://github.com/chakra-ui/chakra-ui-vue/issues?q=author%3AIHIutch" title="Bug reports">🐛</a> <a href="#ideas-IHIutch" title="Ideas, Planning, & Feedback">🤔</a></td>
222221
<td align="center"><a href="https://jt.houk.space/"><img src="https://avatars.githubusercontent.com/u/23695312?v=4?s=50" width="50px;" alt=""/><br /><sub><b>JT Houk</b></sub></a><br /><a href="https://github.com/chakra-ui/chakra-ui-vue/commits?author=HoukasaurusRex" title="Documentation">📖</a> <a href="#platform-HoukasaurusRex" title="Packaging/porting to new platform">📦</a></td>
223222
<td align="center"><a href="https://github.com/vincentpalma"><img src="https://avatars.githubusercontent.com/u/10133632?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Vincent Palma</b></sub></a><br /><a href="https://github.com/chakra-ui/chakra-ui-vue/commits?author=vincentpalma" title="Documentation">📖</a></td>
223+
<td align="center"><a href="https://github.com/MaySoMusician"><img src="https://avatars.githubusercontent.com/u/34566290?v=4?s=50" width="50px;" alt=""/><br /><sub><b>MaySoMusician</b></sub></a><br /><a href="https://github.com/chakra-ui/chakra-ui-vue/commits?author=MaySoMusician" title="Code">💻</a></td>
224224
<td align="center"><a href="https://github.com/MWFIAE"><img src="https://avatars.githubusercontent.com/u/6072971?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Martin</b></sub></a><br /><a href="https://github.com/chakra-ui/chakra-ui-vue/commits?author=MWFIAE" title="Code">💻</a> <a href="https://github.com/chakra-ui/chakra-ui-vue/commits?author=MWFIAE" title="Tests">⚠️</a></td>
225225
</tr>
226226
</table>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
},
2222
"scripts": {
2323
"postinstall": "lerna link",
24+
"csb:install": "yarn && yarn bootstrap",
2425
"bootstrap": "lerna bootstrap --use-workspaces",
2526
"build:dev": "yarn workspace @chakra-ui/vue run rollup --config rollup.dev.config.js",
2627
"build": "yarn workspace @chakra-ui/vue build",

packages/chakra-ui-core/src/CImage/CImage.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,12 @@ const CImage = {
5555
methods: {
5656
loadImage (src, srcset) {
5757
const image = new window.Image()
58-
image.srcset = srcset
59-
image.src = src
58+
if (srcset) {
59+
image.srcset = srcset
60+
}
61+
if (src) {
62+
image.src = src
63+
}
6064

6165
image.onload = (event) => {
6266
this.hasLoaded = true

packages/chakra-ui-core/src/CImage/CImage.stories.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,18 @@ storiesOf('UI | Image', module)
88
<CImage
99
shadow="sm"
1010
htmlWidth="100px"
11-
src="https://bit.ly/chakra-jonathan-bakebwa"
11+
src="https://bit.ly/chakra-jonathan-bakebw3a"
12+
srcset="https://bit.ly/chakra-jonathan-bakebwa"
13+
/>
14+
`
15+
}))
16+
.add('Webpack required image', () => ({
17+
components: { CImage },
18+
template: `
19+
<CImage
20+
shadow="sm"
21+
htmlWidth="100px"
22+
:src="require('@/assets/chakra.png')"
1223
/>
1324
`
1425
}))

0 commit comments

Comments
 (0)