Skip to content

Commit

Permalink
add sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiritin committed Aug 29, 2023
1 parent 90d4520 commit 83041a7
Show file tree
Hide file tree
Showing 7 changed files with 290 additions and 105 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ yarn-error.log
/.fleet
/.idea
/.vscode

# Sentry Auth Token
.env.sentry-build-plugin
271 changes: 223 additions & 48 deletions package-lock.json
100755 → 100644

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@fortawesome/fontawesome-svg-core": "^6.4.2",
"@fortawesome/vue-fontawesome": "^3.0.3",
"@inertiajs/vue3": "^1.0.0",
"@sentry/vue": "^7.65.0",
"@tailwindcss/forms": "^0.5.3",
"@vitejs/plugin-vue": "^4.0.0",
"animejs": "^3.2.1",
Expand Down
36 changes: 18 additions & 18 deletions resources/js/Projects/EF27/Layouts/PrimaryLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@ const usableAttributes = computed(() => {
</script>

<template>

<!-- animated background -->
<div class="absolute left-0 top-0 z-0 w-screen h-screen flex items-center justify-center text-center">
<TransmutationCircle/>

<MaskSVG style="z-index: 3; width: 700px; height: 700px;" class="absolute bottom-5 flex"/>
<MagicMist color="purple" />
<LogoSVG style="z-index: 5; width: 700px; height: 700px; opacity: 0.75" class="absolute flex bottom-5"/>
</div>

<!-- <Time hourglass="true"/>-->

<div class="h-screen overflow-auto bg-primary flex flex-col flex-grow">
<!-- Main Content -->
<Transition mode="out-in">
<component :is="page.resolvedComponent" v-bind="usableAttributes"></component>
</Transition>
<div>
<!-- animated background -->
<div class="absolute left-0 top-0 z-0 w-screen h-screen flex items-center justify-center text-center">
<TransmutationCircle/>

<MaskSVG style="z-index: 3; width: 700px; height: 700px;" class="absolute bottom-5 flex"/>
<MagicMist color="purple"/>
<LogoSVG style="z-index: 5; width: 700px; height: 700px; opacity: 0.75" class="absolute flex bottom-5"/>
</div>

<!-- <Time hourglass="true"/>-->

<div class="h-screen overflow-auto bg-primary flex flex-col flex-grow">
<!-- Main Content -->
<Transition mode="out-in">
<component :is="page.resolvedComponent" v-bind="usableAttributes"></component>
</Transition>
</div>
</div>

</template>

<style>
Expand Down
36 changes: 18 additions & 18 deletions resources/js/Projects/EF27/Layouts/PrimaryLayoutClock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@ const usableAttributes = computed(() => {
</script>

<template>

<!-- animated background -->
<div class="absolute left-0 top-0 z-0 w-screen h-screen flex items-center justify-center text-center">
<TransmutationCircle/>

<MaskSVG style="z-index: 3; width: 700px; height: 700px;" class="absolute bottom-5 flex"/>
<MagicMist color="purple" />
<LogoSVG style="z-index: 5; width: 700px; height: 700px; opacity: 0.75" class="absolute flex bottom-5"/>
</div>

<Time hourglass="false"/>

<div class="h-screen overflow-auto bg-primary flex flex-col flex-grow">
<!-- Main Content -->
<Transition mode="out-in">
<component :is="page.resolvedComponent" v-bind="usableAttributes"></component>
</Transition>
<div>
<!-- animated background -->
<div class="absolute left-0 top-0 z-0 w-screen h-screen flex items-center justify-center text-center">
<TransmutationCircle/>

<MaskSVG style="z-index: 3; width: 700px; height: 700px;" class="absolute bottom-5 flex"/>
<MagicMist color="purple"/>
<LogoSVG style="z-index: 5; width: 700px; height: 700px; opacity: 0.75" class="absolute flex bottom-5"/>
</div>

<Time hourglass="false"/>

<div class="h-screen overflow-auto bg-primary flex flex-col flex-grow">
<!-- Main Content -->
<Transition mode="out-in">
<component :is="page.resolvedComponent" v-bind="usableAttributes"></component>
</Transition>
</div>
</div>

</template>

<style>
Expand Down
36 changes: 18 additions & 18 deletions resources/js/Projects/EF27/Layouts/PrimaryLayoutClockHourglas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@ const usableAttributes = computed(() => {
</script>

<template>

<!-- animated background -->
<div class="absolute left-0 top-0 z-0 w-screen h-screen flex items-center justify-center text-center">
<TransmutationCircle/>

<MaskSVG style="z-index: 3; width: 700px; height: 700px;" class="absolute bottom-5 flex"/>
<MagicMist color="purple" />
<LogoSVG style="z-index: 5; width: 700px; height: 700px; opacity: 0.75" class="absolute flex bottom-5"/>
</div>

<Time hourglass="true"/>

<div class="h-screen overflow-auto bg-primary flex flex-col flex-grow">
<!-- Main Content -->
<Transition mode="out-in">
<component :is="page.resolvedComponent" v-bind="usableAttributes"></component>
</Transition>
<div>
<!-- animated background -->
<div class="absolute left-0 top-0 z-0 w-screen h-screen flex items-center justify-center text-center">
<TransmutationCircle/>

<MaskSVG style="z-index: 3; width: 700px; height: 700px;" class="absolute bottom-5 flex"/>
<MagicMist color="purple"/>
<LogoSVG style="z-index: 5; width: 700px; height: 700px; opacity: 0.75" class="absolute flex bottom-5"/>
</div>

<Time hourglass="true"/>

<div class="h-screen overflow-auto bg-primary flex flex-col flex-grow">
<!-- Main Content -->
<Transition mode="out-in">
<component :is="page.resolvedComponent" v-bind="usableAttributes"></component>
</Transition>
</div>
</div>

</template>

<style>
Expand Down
12 changes: 9 additions & 3 deletions resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { createApp, h } from 'vue';
import { createInertiaApp } from '@inertiajs/vue3';
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';
import { ZiggyVue } from '../../vendor/tightenco/ziggy/dist/vue.m';
import * as Sentry from "@sentry/vue";

const appName = 'Open Signage';
const appPath = import.meta.env.VITE_PROJECT_PATH;
Expand All @@ -17,9 +18,14 @@ createInertiaApp({
title: (title) => `${appName}`,
resolve: (name) => resolvePageComponent(`./${name}.vue`, import.meta.glob('./*.vue')),
setup({ el, App, props, plugin }) {
return createApp({ render: () => h(App, props) })
const app = createApp({ render: () => h(App, props) })
.use(plugin)
.use(ZiggyVue, Ziggy)
.mount(el);
.use(ZiggyVue, Ziggy);
Sentry.init({
app,
dsn: "https://[email protected]/4505788620341248"
});
app.mount(el);
return app;
},
});

0 comments on commit 83041a7

Please sign in to comment.