-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from SpiriitLabs/dev
Version 2.2.1
- Loading branch information
Showing
77 changed files
with
1,967 additions
and
1,258 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
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 |
---|---|---|
|
@@ -3,4 +3,7 @@ dist | |
.DS_Store | ||
.idea | ||
.vscode | ||
coverage | ||
coverage | ||
.svelte-kit | ||
demo/server/public | ||
.nitro |
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
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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 |
---|---|---|
@@ -1,32 +1,32 @@ | ||
<script setup lang="ts"> | ||
import SpiriitView from 'assets/icons/spiriit.svg?view' | ||
import SpiriitUse from 'assets/icons/spiriit.svg?use' | ||
import ViteView from 'assets/icons/vite.svg?view' | ||
import ViteUse from 'assets/icons/vite.svg?use' | ||
import SpiriitView from './../_fixtures/icons/spiriit.svg?view' | ||
import SpiriitUse from './../_fixtures/icons/spiriit.svg?use' | ||
import ViteView from './../_fixtures/icons/vite.svg?view' | ||
import ViteUse from './../_fixtures/icons/vite.svg?use' | ||
</script> | ||
|
||
<template> | ||
<h1>Vite Plugin SVG Spritemap Demo with VueJS</h1> | ||
<h1>Vite Plugin SVG Spritemap Demo with Nuxt</h1> | ||
|
||
<p>This is a demo of the Vite Plugin SVG Spritemap working with VueJS component.</p> | ||
|
||
<div class="example"> | ||
<h2>Spritemap with <use> via Vue component</h2> | ||
|
||
<div class="example__svgs"> | ||
<SpiriitUse> | ||
<SpiriitUse class="icon icon-spiriit"> | ||
<title>My superb logo</title> | ||
</SpiriitUse> | ||
<ViteUse /> | ||
<ViteUse class="icon icon-vite" /> | ||
</div> | ||
</div> | ||
|
||
<div class="example"> | ||
<h2>Spritemap with <img> (fragments) via Vue component</h2> | ||
|
||
<div class="example__svgs"> | ||
<SpiriitView /> | ||
<ViteView /> | ||
<SpiriitView alt="" class="icon icon-spiriit" /> | ||
<ViteView alt="" class="icon icon-vite" /> | ||
</div> | ||
</div> | ||
</template> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,15 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
charset = utf-8 | ||
|
||
[*.js] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[{package.json,*.yml,*.cjson}] | ||
indent_style = space | ||
indent_size = 2 |
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,3 @@ | ||
dist | ||
.output | ||
node-modules |
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,5 @@ | ||
{ | ||
"extends": [ | ||
"@nuxtjs/eslint-config-typescript" | ||
] | ||
} |
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,7 @@ | ||
node_modules | ||
*.log* | ||
.nitro | ||
.cache | ||
.output | ||
.env | ||
dist |
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,2 @@ | ||
shamefully-hoist=true | ||
strict-peer-dependencies=false |
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 |
---|---|---|
@@ -1,18 +1,42 @@ | ||
# Server example | ||
# Nitro Server with ViteJS as backend | ||
|
||
> This is a server example of how to use vite-plugin-svg-spritemap with a different server. This can be useful with Wordpress installation and dev mode. | ||
Look at the [Nitro documentation](https://nitro.unjs.io/) to learn more. | ||
|
||
## Usage | ||
## Setup | ||
|
||
```shell | ||
npm i | ||
npm run dev | ||
Make sure to install the dependencies: | ||
|
||
```bash | ||
# npm | ||
npm install | ||
|
||
# yarn | ||
yarn install | ||
yarn run dev | ||
|
||
# pnpm | ||
pnpm install | ||
pnpm dev | ||
``` | ||
|
||
## Development Server | ||
|
||
Start the development server on <http://localhost:3000> | ||
|
||
```bash | ||
npm run dev | ||
``` | ||
|
||
## Production | ||
|
||
Build the application for production: | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
Locally preview production build: | ||
|
||
```bash | ||
npm run preview | ||
``` | ||
|
||
Check out the [deployment documentation](https://nitro.unjs.io/deploy) for more information. |
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
// https://nitro.unjs.io/config | ||
export default defineNitroConfig({}) |
Oops, something went wrong.