-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proof of concept : Test overwriting by Sprinkle
The component in `app/assets/components` will be overwritten by `sprinkle/assets/components`
- Loading branch information
Showing
4 changed files
with
73 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<script setup> | ||
const resources = [ | ||
{ | ||
url: 'https://getbootstrap.com/docs/5.3/getting-started/introduction/', | ||
title: 'Bootstrap quick start guide' | ||
}, | ||
{ | ||
url: 'https://getbootstrap.com/docs/5.3/getting-started/webpack/', | ||
title: 'Bootstrap Webpack guide' | ||
}, | ||
{ | ||
url: 'https://getbootstrap.com/docs/5.3/getting-started/parcel/', | ||
title: 'Bootstrap Parcel guide' | ||
}, | ||
{ | ||
url: 'https://getbootstrap.com/docs/5.3/getting-started/vite/', | ||
title: 'Bootstrap Vite guide' | ||
}, | ||
{ | ||
url: 'https://getbootstrap.com/docs/5.3/getting-started/contribute/', | ||
title: 'Contributing to Bootstrap' | ||
}, | ||
] | ||
</script> | ||
|
||
<template> | ||
<ul class="uk-list"> | ||
<li v-for="item in resources"> | ||
<a class="uk-button uk-button-default" :href="item.url">{{ item.title }}</a> | ||
</li> | ||
</ul> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<script setup> | ||
import axios from 'axios' | ||
import { ref } from 'vue' | ||
// Variables | ||
const resources = ref([]) | ||
const loading = ref(false) | ||
// Methods | ||
function getList() { | ||
loading.value = true | ||
axios.get('/api').then((response) => { | ||
resources.value = response.data | ||
loading.value = false | ||
}) | ||
} | ||
// Initial load | ||
getList() | ||
</script> | ||
|
||
<template> | ||
<ul class="uk-list"> | ||
<li v-for="item in resources"> | ||
<a class="uk-button uk-button-default" :href="item.url">#{{ item.number }} - {{ item.title }}</a> | ||
</li> | ||
</ul> | ||
<button class="uk-button uk-button-primary" @click="getList()" :disabled='loading'>Reload Resources</button> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters