Skip to content

Commit

Permalink
chore: setup playground
Browse files Browse the repository at this point in the history
  • Loading branch information
Yizack committed May 21, 2023
1 parent a569e74 commit b11d1b7
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 0 deletions.
67 changes: 67 additions & 0 deletions playground/app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<template>
<!-- Using Emojis -->
<table>
<thead>
<tr>
<th style="width: 200px">Emoji</th>
<th>Twemoji</th>
</tr>
</thead>
<tbody>
<tr v-for="(emoji, i) in emojis" :key="i">
<td>{{ emoji }}</td>
<td><Twemoji :emoji="emoji" /></td>
</tr>
</tbody>
</table>

<!-- Using Code Points-->
<table>
<thead>
<tr>
<th style="width: 200px">Code Point</th>
<th>Twemoji</th>
</tr>
</thead>
<tbody>
<tr v-for="(codePoint, i) in codePoints" :key="i">
<td>{{ codePoint }}</td>
<td><Twemoji :emoji="codePoint" /></td>
</tr>
</tbody>
</table>
</template>

<script>
export default {
data() {
return {
emojis: ['❤️', '👍', '😂', '😍', '😭', '😊'],
codePoints: ['1F60D', 'U+1F602', '1F62D', '1F60A', '1F618', '1F60E']
}
}
};
</script>

<style scoped>
* {
font-family: Arial;
}
table {
border-collapse: collapse;
border-spacing: 0;
border: 1px solid #ccc;
width: 100%;
max-width: 100%;
margin-bottom: 1rem;
background-color: transparent;
}
table th, table td {
text-align: left;
padding: .75rem;
vertical-align: top;
border: 1px solid #ccc;
}
</style>
4 changes: 4 additions & 0 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default defineNuxtConfig({
modules: ['../src/module'],
myModule: {}
})
4 changes: 4 additions & 0 deletions playground/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"private": true,
"name": "my-module-playground"
}
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "./playground/.nuxt/tsconfig.json"
}

0 comments on commit b11d1b7

Please sign in to comment.