Skip to content

Commit

Permalink
Merge pull request #5163 from systeminit/rip-confetti
Browse files Browse the repository at this point in the history
rip: confetti
  • Loading branch information
stack72 authored Dec 19, 2024
2 parents 500cfb7 + 1575740 commit 8aff0d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
6 changes: 0 additions & 6 deletions app/web/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
<template v-else>
<CachedAppNotification />
<RouterView :key="selectedWorkspace?.pk" />
<Teleport to="body">
<canvas
id="confetti"
class="fixed w-full h-full top-0 left-0 pointer-events-none z-100"
></canvas>
</Teleport>
</template>
</div>
</template>
Expand Down
23 changes: 0 additions & 23 deletions app/web/src/store/actions.store.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineStore } from "pinia";
import * as _ from "lodash-es";
import { addStoreHooks, ApiRequest } from "@si/vue-lib/pinia";
import JSConfetti from "js-confetti";
import { Resource } from "@/api/sdf/dal/resource";
import { useWorkspacesStore } from "@/store/workspaces.store";
import { DefaultMap } from "@/utils/defaultmap";
Expand Down Expand Up @@ -101,16 +100,6 @@ export type FuncRunId = string;

// END STUFF

let jsConfetti: JSConfetti;
const confettis = [
{ emojis: ["πŸŽ‰"] },
{ emojis: ["🍿"] },
{ emojis: ["🀘", "🀘🏻", "🀘🏼", "🀘🏽", "🀘🏾", "🀘🏿"] },
{ emojis: ["❀️", "🧑", "πŸ’›", "πŸ’š", "πŸ’™", "πŸ’œ"] },
{ emojis: ["🍾", "🍷", "🍸", "🍹", "🍺", "πŸ₯‚", "🍻"] },
{ emojis: ["πŸ³οΈβ€πŸŒˆ", "πŸ³οΈβ€βš§οΈ", "⚑️", "🌈", "✨", "πŸ”₯", "πŸ‡§πŸ‡·"] },
];

export const useActionsStore = () => {
const workspacesStore = useWorkspacesStore();
const workspaceId = workspacesStore.selectedWorkspacePk;
Expand Down Expand Up @@ -280,13 +269,6 @@ export const useActionsStore = () => {
visibility_change_set_pk: changeSetId,
},
onSuccess: (response) => {
if (
this.actions.length > 0 &&
response.length === 0 &&
changeSetsStore.headSelected
)
jsConfetti.addConfetti(_.sample(confettis));

this.actions = response;
},
});
Expand Down Expand Up @@ -379,11 +361,6 @@ export const useActionsStore = () => {
},
},
onActivated() {
jsConfetti = new JSConfetti({
canvas:
(document.getElementById("confetti") as HTMLCanvasElement) ||
undefined,
});
if (!changeSetId) return;

this.LOAD_ACTIONS();
Expand Down

0 comments on commit 8aff0d2

Please sign in to comment.