Skip to content

Commit

Permalink
feat: rust-based rpc connections and updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lmaosoggypancakes committed Jun 18, 2023
1 parent 847fb72 commit f5b8a68
Show file tree
Hide file tree
Showing 10 changed files with 225 additions and 211 deletions.
6 changes: 0 additions & 6 deletions layouts/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,3 @@
<slot />
</div>
</template>

<script setup lang="ts">
try {
await useFetch("/discord/mainMenu");
} catch (err) {}
</script>
6 changes: 0 additions & 6 deletions layouts/learn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,3 @@
</article>
</App>
</template>
<script setup lang="ts">
import App from "~/layouts/app.vue";
try {
await useFetch("/discord/docs");
} catch (err) {}
</script>
173 changes: 8 additions & 165 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"devDependencies": {
"@nuxt/image": "^1.0.0-rc.1",
"@tailwindcss/typography": "^0.5.9",
"@tauri-apps/cli": "^1.2.3",
"@types/discord-rpc": "^4.0.4",
"@types/three": "^0.149.0",
"daisyui": "^3.0.3",
Expand All @@ -28,6 +27,7 @@
"@nuxtjs/tailwindcss": "^6.6.0",
"@pinia-plugin-persistedstate/nuxt": "^1.1.1",
"@pinia/nuxt": "^0.4.9",
"@tauri-apps/api": "^1.4.0",
"@vueuse/motion": "^2.0.0-beta.25",
"axios": "^1.3.4",
"discord-rpc": "^4.0.1",
Expand Down
4 changes: 0 additions & 4 deletions pages/app/account.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ definePageMeta({
middleware: ["auth"],
layout: "app",
});
try {
await useFetch("/discord/account");
} catch (err) {}
const config = useRuntimeConfig();
const auth = useAuth();
const user = useUser();
Expand Down
3 changes: 0 additions & 3 deletions pages/app/play/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ const status = reactive({
});
const disabled = computed(() => Object.values(status).some((a) => !!a));
const matchmake = async (difficulty: Difficulty) => {
try {
await useFetch("/discord/matchmaking");
} catch (err) {}
status.connecting = true;
const socket = io(`${config.public.apiUrl}/matchmake`, {
auth: {
Expand Down
Loading

1 comment on commit f5b8a68

@vercel
Copy link

@vercel vercel bot commented on f5b8a68 Jun 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.