-
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: expose online links for examples in StackBlitz (#315)
- Loading branch information
Showing
36 changed files
with
492 additions
and
121 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Examples | ||
|
||
| Example | Source | Playground | | ||
|-------------------------|---------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------| | ||
| `Astro` | [GitHub](https://github.com/unplugin/unplugin-icons/tree/main/examples/astro) | [Play Online](https://stackblitz.com/fork/github/unplugin/unplugin-icons/tree/main/examples/astro) | | ||
| `Next` | [GitHub](https://github.com/unplugin/unplugin-icons/tree/main/examples/next) | [Play Online](https://stackblitz.com/fork/github/unplugin/unplugin-icons/tree/main/examples/next) | | ||
| `Nuxt 3` | [GitHub](https://github.com/unplugin/unplugin-icons/tree/main/examples/nuxt3) | [Play Online](https://stackblitz.com/fork/github/unplugin/unplugin-icons/tree/main/examples/nuxt3) | | ||
| `SvelteKit` | [GitHub](https://github.com/unplugin/unplugin-icons/tree/main/examples/sveltekit) | [Play Online](https://stackblitz.com/fork/github/unplugin/unplugin-icons/tree/main/examples/sveltekit) | | ||
| `Preact (Vite)` | [GitHub](https://github.com/unplugin/unplugin-icons/tree/main/examples/vite-preact) | [Play Online](https://stackblitz.com/fork/github/unplugin/unplugin-icons/tree/main/examples/vite-preact) | | ||
| `Qwik (Vite)` | [GitHub](https://github.com/unplugin/unplugin-icons/tree/main/examples/vite-qwik) | [Play Online](https://stackblitz.com/fork/github/unplugin/unplugin-icons/tree/main/examples/vite-qwik) | | ||
| `React (Vite)` | [GitHub](https://github.com/unplugin/unplugin-icons/tree/main/examples/vite-react) | [Play Online](https://stackblitz.com/fork/github/unplugin/unplugin-icons/tree/main/examples/vite-react) | | ||
| `Solid (Vite)` | [GitHub](https://github.com/unplugin/unplugin-icons/tree/main/examples/vite-solid) | [Play Online](https://stackblitz.com/fork/github/unplugin/unplugin-icons/tree/main/examples/vite-solid) | | ||
| `Svelte (Vite)` | [GitHub](https://github.com/unplugin/unplugin-icons/tree/main/examples/vite-svelte) | [Play Online](https://stackblitz.com/fork/github/unplugin/unplugin-icons/tree/main/examples/vite-svelte) | | ||
| `VanillaJS (Vite)` | [GitHub](https://github.com/unplugin/unplugin-icons/tree/main/examples/vite-vanilla) | [Play Online](https://stackblitz.com/fork/github/unplugin/unplugin-icons/tree/main/examples/vite-vanilla) | | ||
| `Vue2 (Vite)` | [GitHub](https://github.com/unplugin/unplugin-icons/tree/main/examples/vite-vue2) | [Play Online](https://stackblitz.com/fork/github/unplugin/unplugin-icons/tree/main/examples/vite-vue2) | | ||
| `Vue3 (Vite)` | [GitHub](https://github.com/unplugin/unplugin-icons/tree/main/examples/vite-vue3) | [Play Online](https://stackblitz.com/fork/github/unplugin/unplugin-icons/tree/main/examples/vite-vue3) | | ||
| `Vue3 legacy (Vite)` | [GitHub](https://github.com/unplugin/unplugin-icons/tree/main/examples/vite-vue3-legacy) | [Play Online](https://stackblitz.com/fork/github/unplugin/unplugin-icons/tree/main/examples/vite-vue3-legacy) | | ||
| `Web Components (Vite)` | [GitHub](https://github.com/unplugin/unplugin-icons/tree/main/examples/vite-web-components) | [Play Online](https://stackblitz.com/fork/github/unplugin/unplugin-icons/tree/main/examples/vite-web-components) | | ||
| `Vue2 (Vue CLI)` | [GitHub](https://github.com/unplugin/unplugin-icons/tree/main/examples/vue-cli-vue2) | [Play Online](https://stackblitz.com/fork/github/unplugin/unplugin-icons/tree/main/examples/vue-cli-vue2) | |
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 @@ | ||
import { promises as fsPromises } from 'node:fs' | ||
|
||
updatePackageJson() | ||
|
||
async function updatePackageJson() { | ||
const filename = './package.json' | ||
try { | ||
const contents = await fsPromises.readFile(filename, 'utf-8') | ||
const updatedContent = contents.replace('workspace:*', 'latest') | ||
await fsPromises.writeFile(filename, updatedContent) | ||
} | ||
catch (err) { | ||
console.error(err) | ||
} | ||
} |
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 @@ | ||
const { promises } = require('node:fs') | ||
|
||
updatePackageJson() | ||
|
||
async function updatePackageJson() { | ||
const filename = './package.json' | ||
try { | ||
const contents = await promises.readFile(filename, 'utf-8') | ||
const updatedContent = contents.replace('workspace:*', 'latest') | ||
await promises.writeFile(filename, updatedContent) | ||
} | ||
catch (err) { | ||
console.error(err) | ||
} | ||
} |
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 @@ | ||
import { promises as fsPromises } from 'node:fs' | ||
|
||
updatePackageJson() | ||
|
||
async function updatePackageJson() { | ||
const filename = './package.json' | ||
try { | ||
const contents = await fsPromises.readFile(filename, 'utf-8') | ||
const updatedContent = contents.replace('link:../..', 'latest') | ||
await fsPromises.writeFile(filename, updatedContent) | ||
} | ||
catch (err) { | ||
console.error(err) | ||
} | ||
} |
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 @@ | ||
import { promises as fsPromises } from 'node:fs' | ||
|
||
updatePackageJson() | ||
|
||
async function updatePackageJson() { | ||
const filename = './package.json' | ||
try { | ||
const contents = await fsPromises.readFile(filename, 'utf-8') | ||
const updatedContent = contents.replace('workspace:*', 'latest') | ||
await fsPromises.writeFile(filename, updatedContent) | ||
} | ||
catch (err) { | ||
console.error(err) | ||
} | ||
} |
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 @@ | ||
import { promises as fsPromises } from 'node:fs' | ||
|
||
updatePackageJson() | ||
|
||
async function updatePackageJson() { | ||
const filename = './package.json' | ||
try { | ||
const contents = await fsPromises.readFile(filename, 'utf-8') | ||
const updatedContent = contents.replace('workspace:*', 'latest') | ||
await fsPromises.writeFile(filename, updatedContent) | ||
} | ||
catch (err) { | ||
console.error(err) | ||
} | ||
} |
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,18 @@ | ||
import { promises as fsPromises } from 'node:fs' | ||
|
||
updatePackageJson() | ||
|
||
async function updatePackageJson() { | ||
const filename = './package.json' | ||
try { | ||
const contents = await fsPromises.readFile(filename, 'utf-8') | ||
const updatedContent = contents | ||
.replace('workspace:*', 'latest') | ||
.replace('"eslint": "8.48.0",', '"eslint": "8.45.0",') | ||
.replace('"eslint-plugin-qwik": "1.2.10",', '"eslint-plugin-qwik": "1.2.11",') | ||
await fsPromises.writeFile(filename, updatedContent) | ||
} | ||
catch (err) { | ||
console.error(err) | ||
} | ||
} |
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 @@ | ||
import { promises as fsPromises } from 'node:fs' | ||
|
||
updatePackageJson() | ||
|
||
async function updatePackageJson() { | ||
const filename = './package.json' | ||
try { | ||
const contents = await fsPromises.readFile(filename, 'utf-8') | ||
const updatedContent = contents.replace('workspace:*', 'latest') | ||
await fsPromises.writeFile(filename, updatedContent) | ||
} | ||
catch (err) { | ||
console.error(err) | ||
} | ||
} |
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 @@ | ||
import { promises as fsPromises } from 'node:fs' | ||
|
||
updatePackageJson() | ||
|
||
async function updatePackageJson() { | ||
const filename = './package.json' | ||
try { | ||
const contents = await fsPromises.readFile(filename, 'utf-8') | ||
const updatedContent = contents.replace('workspace:*', 'latest') | ||
await fsPromises.writeFile(filename, updatedContent) | ||
} | ||
catch (err) { | ||
console.error(err) | ||
} | ||
} |
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 @@ | ||
import { promises as fsPromises } from 'node:fs' | ||
|
||
updatePackageJson() | ||
|
||
async function updatePackageJson() { | ||
const filename = './package.json' | ||
try { | ||
const contents = await fsPromises.readFile(filename, 'utf-8') | ||
const updatedContent = contents.replace('workspace:*', 'latest') | ||
await fsPromises.writeFile(filename, updatedContent) | ||
} | ||
catch (err) { | ||
console.error(err) | ||
} | ||
} |
Oops, something went wrong.