Skip to content

Commit

Permalink
chore: add example partial path api component
Browse files Browse the repository at this point in the history
  • Loading branch information
luqven committed Mar 10, 2022
1 parent 0df05b2 commit bb23770
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<div id="app">
<h1>Simple Usage</h1>
<simple />
<h1>Static Usage</h1>
<partial />

<h1>Advanced Usage</h1>
<advanced-api />
Expand All @@ -20,6 +22,7 @@ import advancedBuildUrl from './components/advanced/buildUrl';
import advancedBuildSrcSet from './components/advanced/buildSrcSet';
import advancedApi from './components/advanced/advanced';
import simple from './components/simple/simple';
import partial from './components/simple/static-api';
export default {
name: 'App',
Expand All @@ -30,6 +33,7 @@ export default {
advancedBuildSrcSet,
advancedApi,
simple,
partial,
},
computed: {},
Expand Down
26 changes: 26 additions & 0 deletions src/components/simple/static-api.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<template>
<div>
<h2>2-step URL API Example</h2>
<ix-img
src="/examples/pione.jpg"
width="100"
data-testid="2-step-api"
/>
<ix-img
src="https://assets.imgix.net/examples/pione.jpg"
width="100"
data-testid="2-step-api"
/>
<ix-img
src="https://sdk-test.imgix.net/amsterdam.jpg"
width="100"
data-testid="2-step-api"
/>
</div>
</template>

<script>
export default {
name: '2-step-api',
};
</script>

0 comments on commit bb23770

Please sign in to comment.