-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: visual updates * chore: cert generation for local dev * feat!: telegram game as separate app * chore: tailwind, runtime config, docker * chore: tailwind fixes * chore: config removed
- Loading branch information
1 parent
c817201
commit 54c2202
Showing
146 changed files
with
3,154 additions
and
960 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 |
---|---|---|
|
@@ -54,3 +54,4 @@ testem.log | |
.nuxt | ||
.nitro | ||
.cache | ||
.cert |
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,2 +1,3 @@ | ||
auto-install-peers=true | ||
strict-peer-dependencies=false | ||
strict-peer-dependencies=false | ||
shamefully-hoist=true |
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,80 @@ | ||
/* eslint-disable */ | ||
/* prettier-ignore */ | ||
// @ts-nocheck | ||
// noinspection JSUnusedGlobalSymbols | ||
// Generated by unplugin-auto-import | ||
// biome-ignore lint: disable | ||
export {} | ||
declare global { | ||
const EffectScope: typeof import('vue')['EffectScope'] | ||
const Icon: typeof import('@iconify/vue')['Icon'] | ||
const computed: typeof import('vue')['computed'] | ||
const createApp: typeof import('vue')['createApp'] | ||
const customRef: typeof import('vue')['customRef'] | ||
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] | ||
const defineComponent: typeof import('vue')['defineComponent'] | ||
const effectScope: typeof import('vue')['effectScope'] | ||
const eslintConfig: typeof import('./eslint.config.mjs')['default'] | ||
const getCurrentInstance: typeof import('vue')['getCurrentInstance'] | ||
const getCurrentScope: typeof import('vue')['getCurrentScope'] | ||
const getEnv: typeof import('./src/utils/env')['getEnv'] | ||
const h: typeof import('vue')['h'] | ||
const inject: typeof import('vue')['inject'] | ||
const isProxy: typeof import('vue')['isProxy'] | ||
const isReactive: typeof import('vue')['isReactive'] | ||
const isReadonly: typeof import('vue')['isReadonly'] | ||
const isRef: typeof import('vue')['isRef'] | ||
const markRaw: typeof import('vue')['markRaw'] | ||
const nextTick: typeof import('vue')['nextTick'] | ||
const onActivated: typeof import('vue')['onActivated'] | ||
const onBeforeMount: typeof import('vue')['onBeforeMount'] | ||
const onBeforeRouteLeave: typeof import('vue-router')['onBeforeRouteLeave'] | ||
const onBeforeRouteUpdate: typeof import('vue-router')['onBeforeRouteUpdate'] | ||
const onBeforeUnmount: typeof import('vue')['onBeforeUnmount'] | ||
const onBeforeUpdate: typeof import('vue')['onBeforeUpdate'] | ||
const onDeactivated: typeof import('vue')['onDeactivated'] | ||
const onErrorCaptured: typeof import('vue')['onErrorCaptured'] | ||
const onMounted: typeof import('vue')['onMounted'] | ||
const onRenderTracked: typeof import('vue')['onRenderTracked'] | ||
const onRenderTriggered: typeof import('vue')['onRenderTriggered'] | ||
const onScopeDispose: typeof import('vue')['onScopeDispose'] | ||
const onServerPrefetch: typeof import('vue')['onServerPrefetch'] | ||
const onUnmounted: typeof import('vue')['onUnmounted'] | ||
const onUpdated: typeof import('vue')['onUpdated'] | ||
const onWatcherCleanup: typeof import('vue')['onWatcherCleanup'] | ||
const provide: typeof import('vue')['provide'] | ||
const reactive: typeof import('vue')['reactive'] | ||
const readonly: typeof import('vue')['readonly'] | ||
const ref: typeof import('vue')['ref'] | ||
const resolveComponent: typeof import('vue')['resolveComponent'] | ||
const shallowReactive: typeof import('vue')['shallowReactive'] | ||
const shallowReadonly: typeof import('vue')['shallowReadonly'] | ||
const shallowRef: typeof import('vue')['shallowRef'] | ||
const toRaw: typeof import('vue')['toRaw'] | ||
const toRef: typeof import('vue')['toRef'] | ||
const toRefs: typeof import('vue')['toRefs'] | ||
const toValue: typeof import('vue')['toValue'] | ||
const triggerRef: typeof import('vue')['triggerRef'] | ||
const unref: typeof import('vue')['unref'] | ||
const useAttrs: typeof import('vue')['useAttrs'] | ||
const useCssModule: typeof import('vue')['useCssModule'] | ||
const useCssVars: typeof import('vue')['useCssVars'] | ||
const useId: typeof import('vue')['useId'] | ||
const useLink: typeof import('vue-router')['useLink'] | ||
const useModel: typeof import('vue')['useModel'] | ||
const useRoute: typeof import('vue-router')['useRoute'] | ||
const useRouter: typeof import('vue-router')['useRouter'] | ||
const useSlots: typeof import('vue')['useSlots'] | ||
const useTemplateRef: typeof import('vue')['useTemplateRef'] | ||
const viteConfig: typeof import('./vite.config')['default'] | ||
const watch: typeof import('vue')['watch'] | ||
const watchEffect: typeof import('vue')['watchEffect'] | ||
const watchPostEffect: typeof import('vue')['watchPostEffect'] | ||
const watchSyncEffect: typeof import('vue')['watchSyncEffect'] | ||
} | ||
// for type re-export | ||
declare global { | ||
// @ts-ignore | ||
export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' | ||
import('vue') | ||
} |
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,14 @@ | ||
/* eslint-disable */ | ||
// @ts-nocheck | ||
// Generated by unplugin-vue-components | ||
// Read more: https://github.com/vuejs/core/pull/3399 | ||
export {} | ||
|
||
/* prettier-ignore */ | ||
declare module 'vue' { | ||
export interface GlobalComponents { | ||
Game: typeof import('./src/components/Game.vue')['default'] | ||
RouterLink: typeof import('vue-router')['RouterLink'] | ||
RouterView: typeof import('vue-router')['RouterView'] | ||
} | ||
} |
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 @@ | ||
/// <reference types="vite/client" /> |
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 @@ | ||
import config from '@chat-game/eslint/nuxt.mjs' | ||
|
||
export default config |
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,14 @@ | ||
<!DOCTYPE html> | ||
<html lang=""> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<link rel="icon" href="/favicon.ico"> | ||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | ||
<title>ChatGame</title> | ||
<!-- config-script --> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></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,40 @@ | ||
{ | ||
"name": "@chat-game/telegram-game", | ||
"type": "module", | ||
"private": true, | ||
"scripts": { | ||
"dev": "vite", | ||
"preview": "vite preview", | ||
"build": "vite build", | ||
"clean": "rm -rf dist", | ||
"clean:modules": "rm -rf .turbo node_modules", | ||
"lint": "eslint .", | ||
"lint:fix": "eslint --fix .", | ||
"typecheck": "vue-tsc --build" | ||
}, | ||
"dependencies": { | ||
"@chat-game/game": "workspace:*", | ||
"@chat-game/types": "workspace:*", | ||
"@telegram-apps/sdk-vue": "^1.0.4", | ||
"vue": "^3.5.13", | ||
"vue-router": "^4.5.0" | ||
}, | ||
"devDependencies": { | ||
"@chat-game/eslint": "workspace:*", | ||
"@iconify-json/lucide": "^1.2.17", | ||
"@iconify/vue": "^4.1.2", | ||
"@tailwindcss/vite": "4.0.0-beta.4", | ||
"@tsconfig/node22": "^22.0.0", | ||
"@types/node": "*", | ||
"@vitejs/plugin-vue": "^5.2.1", | ||
"@vue/tsconfig": "^0.7.0", | ||
"tailwindcss": "4.0.0-beta.4", | ||
"typescript": "*", | ||
"unplugin-auto-import": "^0.18.6", | ||
"unplugin-icons": "^0.20.2", | ||
"unplugin-vue-components": "^0.27.5", | ||
"vite": "^6.0.1", | ||
"vite-plugin-vue-devtools": "^7.6.7", | ||
"vue-tsc": "^2.1.10" | ||
} | ||
} |
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,22 @@ | ||
import type { Plugin } from 'vite' | ||
import fs from 'node:fs/promises' | ||
|
||
export function createConfig(): Plugin { | ||
return { | ||
name: 'create-config', | ||
apply: 'build', | ||
configResolved: (config) => { | ||
if (!config.isProduction) { | ||
return | ||
} | ||
|
||
const filePath = `${config.publicDir}/config.js` | ||
const fileBody = `window.config = ${JSON.stringify(config.env)}` | ||
|
||
return fs.writeFile(filePath, fileBody) | ||
}, | ||
transformIndexHtml(html) { | ||
return html.replace(/<!-- config-script -->/, '<script src="/config.js"></script>') | ||
}, | ||
} | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,53 @@ | ||
{ | ||
"frames": { | ||
"0": { | ||
"frame": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"sourceSize": { "w": 32, "h": 32 }, | ||
"duration": 100 | ||
}, | ||
"1": { | ||
"frame": { "x": 32, "y": 0, "w": 32, "h": 32 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"sourceSize": { "w": 32, "h": 32 }, | ||
"duration": 100 | ||
}, | ||
"2": { | ||
"frame": { "x": 64, "y": 0, "w": 32, "h": 32 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"sourceSize": { "w": 32, "h": 32 }, | ||
"duration": 100 | ||
}, | ||
"3": { | ||
"frame": { "x": 96, "y": 0, "w": 32, "h": 32 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"sourceSize": { "w": 32, "h": 32 }, | ||
"duration": 100 | ||
}, | ||
"4": { | ||
"frame": { "x": 128, "y": 0, "w": 32, "h": 32 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"sourceSize": { "w": 32, "h": 32 }, | ||
"duration": 100 | ||
} | ||
}, | ||
"meta": { | ||
"image": "idle.png", | ||
"format": "RGBA8888", | ||
"size": { "w": 160, "h": 32 }, | ||
"scale": "1" | ||
}, | ||
"animations": { | ||
"main": [0, 1, 2, 3, 4] | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,77 @@ | ||
{ | ||
"frames": { | ||
"0": { | ||
"frame": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"sourceSize": { "w": 32, "h": 32 }, | ||
"duration": 100 | ||
}, | ||
"1": { | ||
"frame": { "x": 32, "y": 0, "w": 32, "h": 32 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"sourceSize": { "w": 32, "h": 32 }, | ||
"duration": 100 | ||
}, | ||
"2": { | ||
"frame": { "x": 64, "y": 0, "w": 32, "h": 32 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"sourceSize": { "w": 32, "h": 32 }, | ||
"duration": 100 | ||
}, | ||
"3": { | ||
"frame": { "x": 96, "y": 0, "w": 32, "h": 32 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"sourceSize": { "w": 32, "h": 32 }, | ||
"duration": 100 | ||
}, | ||
"4": { | ||
"frame": { "x": 128, "y": 0, "w": 32, "h": 32 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"sourceSize": { "w": 32, "h": 32 }, | ||
"duration": 100 | ||
}, | ||
"5": { | ||
"frame": { "x": 160, "y": 0, "w": 32, "h": 32 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"sourceSize": { "w": 32, "h": 32 }, | ||
"duration": 100 | ||
}, | ||
"6": { | ||
"frame": { "x": 192, "y": 0, "w": 32, "h": 32 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"sourceSize": { "w": 32, "h": 32 }, | ||
"duration": 100 | ||
}, | ||
"7": { | ||
"frame": { "x": 224, "y": 0, "w": 32, "h": 32 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"sourceSize": { "w": 32, "h": 32 }, | ||
"duration": 100 | ||
} | ||
}, | ||
"meta": { | ||
"image": "moving.png", | ||
"format": "RGBA8888", | ||
"size": { "w": 256, "h": 32 }, | ||
"scale": "1" | ||
}, | ||
"animations": { | ||
"main": [0, 1, 2, 3, 4, 5, 6, 7] | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,45 @@ | ||
{ | ||
"frames": { | ||
"0": { | ||
"frame": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"sourceSize": { "w": 32, "h": 32 }, | ||
"duration": 100 | ||
}, | ||
"1": { | ||
"frame": { "x": 32, "y": 0, "w": 32, "h": 32 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"sourceSize": { "w": 32, "h": 32 }, | ||
"duration": 100 | ||
}, | ||
"2": { | ||
"frame": { "x": 64, "y": 0, "w": 32, "h": 32 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"sourceSize": { "w": 32, "h": 32 }, | ||
"duration": 100 | ||
}, | ||
"3": { | ||
"frame": { "x": 96, "y": 0, "w": 32, "h": 32 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | ||
"sourceSize": { "w": 32, "h": 32 }, | ||
"duration": 100 | ||
} | ||
}, | ||
"meta": { | ||
"image": "idle.png", | ||
"format": "RGBA8888", | ||
"size": { "w": 128, "h": 32 }, | ||
"scale": "1" | ||
}, | ||
"animations": { | ||
"main": [0, 1, 2, 3] | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.