Skip to content

Commit

Permalink
chore: add bridge example
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Nov 24, 2021
1 parent 0e4bd5a commit 9c6148a
Show file tree
Hide file tree
Showing 24 changed files with 15,750 additions and 1 deletion.
File renamed without changes
File renamed without changes
14 changes: 14 additions & 0 deletions examples/bridge/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { defineNuxtConfig } from '@nuxt/bridge'

export default defineNuxtConfig({
head: {
title: 'Nuxt.js SVG Sprite Module',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
]
},
modules: [
'../../src'
]
})
File renamed without changes.
35 changes: 35 additions & 0 deletions examples/bridge/pages/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<template>
<div>
<div>
<svg-icon name="nuxtjs" title="Nuxt.js" :desc="aboutNuxt" width="150px" height="150px" />
</div>
<div>
<svg-icon name="dreams/zantagle-moon" title="Zantagle Moon" width="150px" height="150px" />
<svg-icon name="dreams/Nursery_Unicorn_7946" title="Nursery Unicorn" width="150px" height="150px" />
<svg-icon name="dreams/Beautiful_Little_Girl_7881" title="Beautiful Little Girl" width="150px" height="150px" />
</div>
<div>
<svg-icon name="love/Bee Mine" title="Bee Mine" width="150px" height="150px" />
<svg-icon name="love/Hugs And Kisses" title="Hugs And Kisses" width="150px" height="150px" />
<svg-icon name="love/Love" title="Love" width="150px" height="150px" />
</div>
<div class="copyright">
photos by <a href="https://lovesvg.com" rel="noopener" target="_blank">
lovesvg
</a>
</div>
</div>
</template>

<script setup lang="ts">
const aboutNuxt = 'Nuxt.js presets all the configuration needed to make your development of a Vue.js application enjoyable.'
</script>

<style>
body {
text-align: center;
}
.copyright {
margin-top: 25px;
}
</style>
34 changes: 34 additions & 0 deletions examples/bridge/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"compilerOptions": {
"target": "ES2018",
"module": "ESNext",
"moduleResolution": "Node",
"lib": [
"ESNext",
"ESNext.AsyncIterable",
"DOM"
],
"esModuleInterop": true,
"allowJs": true,
"sourceMap": true,
"strict": true,
"noEmit": true,
"baseUrl": ".",
"paths": {
"~/*": [
"./*"
],
"@/*": [
"./*"
]
},
"types": [
"@types/node",
"@nuxt/types",
"../../src/types/global"
]
},
"exclude": [
"node_modules"
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15,107 changes: 15,107 additions & 0 deletions examples/v2/assets/sprite/svg/dreams/Nursery_Unicorn_7946.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9c6148a

Please sign in to comment.