-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35ccd0c
commit f786df9
Showing
28 changed files
with
5,893 additions
and
265 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ dist-ssr | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
.turbo |
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 @@ | ||
{ | ||
"recommendations": [ | ||
"Vue.volar", | ||
"Vue.vscode-typescript-vue-plugin", | ||
"dbaeumer.vscode-eslint" | ||
] | ||
} |
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,14 +1,13 @@ | ||
{ | ||
"name": "kappagen", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc && vite build" | ||
"dev": "turbo run dev --filter=./packages/*", | ||
"build": "turbo run build --filter=./packages/*", | ||
"playground": "turbo run dev --filter=./playground" | ||
}, | ||
"devDependencies": { | ||
"typescript": "5.2.2", | ||
"vite": "4.5.0" | ||
"turbo": "^1.10.16" | ||
} | ||
} |
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,71 @@ | ||
export interface Emote { | ||
url: string; | ||
zwe?: Omit<Emote, "zwe">[]; | ||
} | ||
|
||
export type KappagenAnimations = | ||
| { | ||
style: "TheCube"; | ||
prefs: { | ||
/** | ||
* @default 0.2 | ||
*/ | ||
size: number; | ||
/** | ||
* @default false | ||
*/ | ||
center: boolean; | ||
/** | ||
* @default 6 | ||
*/ | ||
rotations: number; | ||
/** | ||
* @default false | ||
*/ | ||
faces: boolean; | ||
}; | ||
} | ||
| { | ||
style: "Text"; | ||
prefs: { | ||
message: string[]; | ||
time: number; | ||
}; | ||
} | ||
| { style: "Confetti"; count: number } | ||
| { style: "Spiral"; count: number } | ||
| { style: "Stampede"; count: number } | ||
| { style: "Burst"; count: number } | ||
| { style: "Fountain"; count: number } | ||
| { style: "Fireworks"; count: number } | ||
| { style: "Conga"; prefs: { avoidMiddle: boolean } } | ||
| { style: "Pyramid" } | ||
| { style: "SmallPyramid" }; | ||
|
||
export type KappagenProps = {}; | ||
|
||
export type KappagenMethods = { | ||
startup: () => void; | ||
kappagen: { | ||
show: (emotes: Emote[], animation: KappagenAnimations) => Promise<void>; | ||
}; | ||
emote: { | ||
addToShowList: (emote: Emote[]) => void; | ||
showEmotes: () => void; | ||
}; | ||
rave: { | ||
isEnabled: boolean; | ||
enable: () => void; | ||
disable: () => void; | ||
}; | ||
} | ||
|
||
declare const _default: import("vue").DefineComponent< | ||
KappagenProps, | ||
{}, | ||
{}, | ||
{}, | ||
KappagenMethods | ||
>; | ||
|
||
export default _default; |
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,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite App</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/main.js"></script> | ||
</body> | ||
</html> |
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 @@ | ||
console.log('Kappagen') |
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,33 @@ | ||
{ | ||
"name": "kappagen", | ||
"version": "0.0.0", | ||
"type": "module", | ||
"files": [ | ||
"dist", | ||
"index.d.ts" | ||
], | ||
"main": "./dist/kappagen.umd.cjs", | ||
"module": "./dist/kappagen.js", | ||
"types": "./index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./index.d.ts", | ||
"import": "./dist/kappagen.js", | ||
"require": "./dist/kappagen.umd.cjs" | ||
}, | ||
"./style": { | ||
"import": "./dist/style.css" | ||
} | ||
}, | ||
"scripts": { | ||
"dev": "vite build --watch", | ||
"build": "vite build" | ||
}, | ||
"devDependencies": { | ||
"@vitejs/plugin-vue": "^4.4.0", | ||
"vite": "^4.4.11" | ||
}, | ||
"dependencies": { | ||
"vue": "^3.3.4" | ||
} | ||
} |
Oops, something went wrong.