Skip to content

Commit d1df12a

Browse files
committed
first commit
0 parents  commit d1df12a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+3577
-0
lines changed

.github/workflows/gh-pages.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
cache-and-install:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
15+
- name: Install Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 20
19+
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v2
22+
id: pnpm-install
23+
with:
24+
version: 8
25+
run_install: false
26+
27+
- name: Get pnpm store directory
28+
id: pnpm-cache
29+
shell: bash
30+
run: |
31+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
32+
33+
- name: Setup pnpm cache
34+
uses: actions/cache@v3
35+
with:
36+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
37+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
38+
restore-keys: |
39+
${{ runner.os }}-pnpm-store-
40+
41+
- name: Install dependencies
42+
run: pnpm install
43+
44+
- name: Build
45+
run: pnpm build
46+
47+
- name: Deploy to GitHub Pages
48+
uses: JamesIves/github-pages-deploy-action@4.1.5
49+
with:
50+
branch: gh-pages
51+
folder: ./dist

.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
3+
}

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Vue 3 + TypeScript + Vite
2+
3+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4+
5+
## Recommended IDE Setup
6+
7+
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
8+
9+
## Type Support For `.vue` Imports in TS
10+
11+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
12+
13+
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
14+
15+
1. Disable the built-in TypeScript Extension
16+
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
17+
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
18+
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.

components.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://shadcn-vue.com/schema.json",
3+
"style": "new-york",
4+
"typescript": true,
5+
"tailwind": {
6+
"config": "tailwind.config.js",
7+
"css": "src/assets/index.css",
8+
"baseColor": "zinc",
9+
"cssVariables": true
10+
},
11+
"framework": "vite",
12+
"aliases": {
13+
"components": "@/components",
14+
"utils": "@/lib/utils"
15+
}
16+
}

genscript.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const apiScopes = [...document.querySelectorAll('body > div.main > section > table:nth-child(7) > tbody > tr > td > code')].map(n => n.innerText)
2+
const apiScopesDescriptions = [...document.querySelectorAll('body > div.main > section > table:nth-child(7) > tbody > tr > td:nth-child(2)')].map(n => n.innerText.split('\n')[0])
3+
const api = {}
4+
for (const scope of apiScopes) {
5+
const index = apiScopes.indexOf(scope)
6+
api[scope] = apiScopesDescriptions[index]
7+
}
8+
9+
const chatScopes = [...document.querySelectorAll('body > div.main > section > table:nth-child(9) > tbody > tr > td:nth-child(1) > code')].map(n => n.innerText)
10+
const chatScopesDescriptions = [...document.querySelectorAll('body > div.main > section > table:nth-child(9) > tbody > tr > td:nth-child(2)')].map(n => n.innerText)
11+
const chat = {}
12+
for (const scope of chatScopes) {
13+
const index = chatScopes.indexOf(scope)
14+
chat[scope] = chatScopesDescriptions[index]
15+
}

index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue + TS</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

package.json

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "@twirapp/tokens-generator",
3+
"private": true,
4+
"type": "module",
5+
"engines": {
6+
"node": ">=20"
7+
},
8+
"scripts": {
9+
"dev": "vite",
10+
"build": "vue-tsc && vite build",
11+
"preview": "vite preview"
12+
},
13+
"dependencies": {
14+
"@radix-icons/vue": "1.0.0",
15+
"@vee-validate/zod": "4.12.6",
16+
"@vueuse/core": "10.9.0",
17+
"class-variance-authority": "0.7.0",
18+
"clsx": "2.1.0",
19+
"lucide-vue-next": "0.354.0",
20+
"radix-vue": "1.5.1",
21+
"tailwind-merge": "2.2.1",
22+
"tailwindcss-animate": "1.0.7",
23+
"universal-cookie": "^6",
24+
"vee-validate": "4.12.6",
25+
"vue": "^3.4.19",
26+
"zod": "3.22.4"
27+
},
28+
"devDependencies": {
29+
"@types/node": "20.11.25",
30+
"@vitejs/plugin-vue": "^5.0.4",
31+
"autoprefixer": "10.4.18",
32+
"tailwindcss": "3.4.1",
33+
"typescript": "^5.2.2",
34+
"vite": "^5.1.4",
35+
"vue-tsc": "^1.8.27"
36+
}
37+
}

0 commit comments

Comments
 (0)