Skip to content

Commit 3e31bb3

Browse files
committed
duckguessr: Fix some errors, disable build
1 parent 5c3dae3 commit 3e31bb3

17 files changed

+791
-66
lines changed

apps/duckguessr/.eslintrc-auto-import.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -106,26 +106,19 @@
106106
"defineAsyncComponent": true,
107107
"defineComponent": true,
108108
"defineStore": true,
109-
"duckguessrSocketInjectionKey": true,
110109
"eagerComputed": true,
111110
"effectScope": true,
112111
"extendRef": true,
113112
"getActivePinia": true,
114113
"getCurrentInstance": true,
115114
"getCurrentLocaleShortKey": true,
116115
"getCurrentScope": true,
117-
"getDuckguessrId": true,
118-
"getDuckguessrUsername": true,
119-
"getShownUsername": true,
120-
"getUrl": true,
121116
"h": true,
122117
"ignorableWatch": true,
123118
"images": true,
124119
"inject": true,
125120
"injectLocal": true,
126-
"isBot": true,
127121
"isDefined": true,
128-
"isPotentialBot": true,
129122
"isProxy": true,
130123
"isReactive": true,
131124
"isReadonly": true,
@@ -178,14 +171,11 @@
178171
"refDefault": true,
179172
"refThrottled": true,
180173
"refWithControl": true,
181-
"removeCookie": true,
182174
"resolveComponent": true,
183175
"resolveRef": true,
184176
"resolveUnref": true,
185177
"setActivePinia": true,
186-
"setDuckguessrUserData": true,
187178
"setMapStoreSuffix": true,
188-
"setUserCookieIfNotExists": true,
189179
"shallowReactive": true,
190180
"shallowReadonly": true,
191181
"shallowRef": true,
@@ -263,7 +253,6 @@
263253
"useDocumentVisibility": true,
264254
"useDraggable": true,
265255
"useDropZone": true,
266-
"useDuckguessrSocket": true,
267256
"useElementBounding": true,
268257
"useElementByPoint": true,
269258
"useElementHover": true,
@@ -336,7 +325,6 @@
336325
"useRoute": true,
337326
"useRouter": true,
338327
"useSSRWidth": true,
339-
"useScoreToVariant": true,
340328
"useScreenOrientation": true,
341329
"useScreenSafeArea": true,
342330
"useScriptTag": true,
@@ -387,7 +375,6 @@
387375
"useWindowFocus": true,
388376
"useWindowScroll": true,
389377
"useWindowSize": true,
390-
"user": true,
391378
"users": true,
392379
"watch": true,
393380
"watchArray": true,

apps/duckguessr/README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,14 @@
22

33
## Build Setup
44

5-
```bash
5+
```shell
66
# install dependencies
7-
$ npm install
7+
$ pnpm install
88

99
# serve with hot reload at localhost:3000
10-
$ npm run dev
10+
$ pnpm dev
1111

1212
# build for production and launch server
13-
$ npm run build
14-
$ npm run start
15-
16-
# generate static project
17-
$ npm run generate
13+
$ pnpm build
14+
$ pnpm start
1815
```
19-
20-
For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).

apps/duckguessr/app/components/DuckguessrMenu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</div>
1717
</template>
1818
<script lang="ts" setup>
19-
import { userStore } from "~/app/stores/user";
19+
import { userStore } from "~/stores/user";
2020
2121
const isAnonymous = computed(() => userStore().isAnonymous);
2222

apps/duckguessr/app/components/GameScores.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
<script lang="ts" setup>
103103
import { getDuckguessrId, getShownUsername } from "~/composables/user";
104104
105-
import { userStore } from "~/app/stores/user";
105+
import { userStore } from "~/stores/user";
106106
import type { GameFull } from "~duckguessr-types/game";
107107
import type { ColorVariant } from "bootstrap-vue-next";
108108
import type { player, roundScore } from "~duckguessr-prisma-client";

apps/duckguessr/app/components/Matchmaking.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<script lang="ts" setup>
1515
import type { MatchDetails } from "~duckguessr-types/matchDetails";
16-
import { userStore } from "~/app/stores/user";
16+
import { userStore } from "~/stores/user";
1717
import type { player, userMedalPoints } from "~duckguessr-prisma-client";
1818
1919
const players = ref([] as player[]);

apps/duckguessr/app/components/Medal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</template>
3737

3838
<script setup lang="ts">
39-
import { MEDAL_LEVELS } from "~/app/stores/user";
39+
import { MEDAL_LEVELS } from "~/stores/user";
4040
import type { MedalLevelAndProgress } from "~duckguessr-types/playerStats";
4141
4242
const { t } = useI18n();

apps/duckguessr/app/components/MedalList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</template>
4646

4747
<script setup lang="ts">
48-
import { MEDAL_LEVELS, userStore } from "~/app/stores/user";
48+
import { MEDAL_LEVELS, userStore } from "~/stores/user";
4949
import type { MedalLevelAndProgress } from "~duckguessr-types/playerStats";
5050
import { getDuckguessrId } from "~/composables/user";
5151
import type { dataset, userMedalPoints } from "~duckguessr-prisma-client";

apps/duckguessr/app/components/MedalsAndLogin.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
</div>
6060
</template>
6161
<script setup lang="ts">
62-
import { userStore } from "~/app/stores/user";
62+
import { userStore } from "~/stores/user";
6363
6464
const user = computed(() => userStore().user);
6565
const isAnonymous = computed(() => userStore().isAnonymous);

apps/duckguessr/app/components/WaitingForPlayers.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<script lang="ts" setup>
7070
import { useSeoMeta } from "@unhead/vue";
7171
import { getDuckguessrUsername } from "~/composables/user";
72-
import { userStore } from "~/app/stores/user";
72+
import { userStore } from "~/stores/user";
7373
import type { player, userMedalPoints } from "~duckguessr-prisma-client";
7474
7575
const { players, gameId, gamePlayersStats } = defineProps<{

apps/duckguessr/app/pages/admin/clean.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
</template>
146146

147147
<script lang="ts" setup>
148-
import { userStore } from "~/app/stores/user";
148+
import { userStore } from "~/stores/user";
149149
import { getUrl } from "~/composables/url";
150150
import type { entryurlDetailsDecision } from "~duckguessr-prisma-client";
151151
import { duckguessrSocketInjectionKey } from "~/composables/useDuckguessrSocket";

0 commit comments

Comments
 (0)