2 Commits
3 changed files with 36 additions and 30 deletions
+8 -2
View File
@@ -120,7 +120,7 @@ export default {
let activeEntites = this.getActiveEntites(this.entites); let activeEntites = this.getActiveEntites(this.entites);
// this.getSalientPoints() // this.getSalientPoints()
console.log('this concernement id', this.cid); // console.log('this concernement id', this.cid);
this.sailentEntites = this.concernement.sailentEntites = this.getJarvisEnvelopeConvexeEntites(activeEntites) this.sailentEntites = this.concernement.sailentEntites = this.getJarvisEnvelopeConvexeEntites(activeEntites)
// define init position of the item // define init position of the item
@@ -495,14 +495,20 @@ export default {
}, },
getActiveEntites(entites){ getActiveEntites(entites){
// console.log('getActiveEntites', entites); console.log('getActiveEntites', entites);
let activeEntites = []; let activeEntites = [];
for (let i = 0; i < entites.length; i++) { for (let i = 0; i < entites.length; i++) {
if (entites[i].active) { // && (entities[i].actuelfuture != 0 && entities[i].menacemaintien != 0 && entities[i].prise != 100) if (entites[i].active) { // && (entities[i].actuelfuture != 0 && entities[i].menacemaintien != 0 && entities[i].prise != 100)
// console.log(entites[i]);
let x = (entites[i].display.ray) * Math.cos(entites[i].display.alpha * (Math.PI/180));
let y = (entites[i].display.ray) * Math.sin(entites[i].display.alpha * (Math.PI/180));
console.log(`x=${x}, y=${y}`);
if(x != 0 && y != 0){
activeEntites.push(entites[i]) activeEntites.push(entites[i])
} }
} }
}
return activeEntites; return activeEntites;
}, },
getSalientPoints_OLD() { getSalientPoints_OLD() {
+14 -14
View File
@@ -23,27 +23,27 @@ import 'vue-plyr/dist/vue-plyr.css'
// integrations: [new Integrations.Vue()], // integrations: [new Integrations.Vue()],
// }); // });
import * as Sentry from "@sentry/vue"; import * as Sentry from "@sentry/vue";
// import { createSentryPiniaPlugin } from "@sentry/vue"; import { createSentryPiniaPlugin } from "@sentry/vue";
const app = createApp(App) const app = createApp(App)
// Sentry.init({ Sentry.init({
// app, app,
// dsn: "https://d1780f9da2fc4dd28c9c17cb344a088f@frontlog.figli.io/2", dsn: "https://d1780f9da2fc4dd28c9c17cb344a088f@frontlog.figli.io/2",
// integrations: [ integrations: [
// Sentry.browserTracingIntegration({ router }), Sentry.browserTracingIntegration({ router }),
// ], ],
// tracesSampleRate: 0.01, tracesSampleRate: 0.01,
// normalizeDepth: 10, // Or however deep you want your state context to be. normalizeDepth: 10, // Or however deep you want your state context to be.
// environment: "prod", environment: "prod",
// // release : '1' // release : '1'
// release: __SENTRY_RELEASE__ release: __SENTRY_RELEASE__
// }); });
const pinia = createPinia() const pinia = createPinia()
pinia.use( ({store}) => { store.router = router } ) pinia.use( ({store}) => { store.router = router } )
// pinia.use(createSentryPiniaPlugin()); pinia.use(createSentryPiniaPlugin());
app.use(pinia) app.use(pinia)
app.use(router) app.use(router)
+13 -13
View File
@@ -5,7 +5,7 @@ import vue from '@vitejs/plugin-vue'
import graphql from '@rollup/plugin-graphql'; import graphql from '@rollup/plugin-graphql';
import { viteRequire } from 'vite-require' import { viteRequire } from 'vite-require'
import svgLoader from 'vite-svg-loader' import svgLoader from 'vite-svg-loader'
// import { sentryVitePlugin } from "@sentry/vite-plugin"; import { sentryVitePlugin } from "@sentry/vite-plugin";
import { execSync } from 'child_process' import { execSync } from 'child_process'
require('dotenv').config(); require('dotenv').config();
@@ -30,16 +30,16 @@ export default defineConfig({
} }
} }
}), graphql(), viteRequire(), svgLoader({defaultImport: 'raw'}), }), graphql(), viteRequire(), svgLoader({defaultImport: 'raw'}),
// sentryVitePlugin({ sentryVitePlugin({
// org: "figures-libres", org: "figures-libres",
// project: "atlas-atterrissage.com", project: "atlas-atterrissage.com",
// authToken: process.env.AUTH_TOKEN, authToken: process.env.AUTH_TOKEN,
// release: { release: {
// // name: "ouatterrir", // name: "ouatterrir",
// name: release name: release
// }, },
// url: "https://frontlog.figli.io", url: "https://frontlog.figli.io",
// }) })
], ],
resolve: { resolve: {
alias: { alias: {
@@ -69,9 +69,9 @@ export default defineConfig({
}, },
// https://github.com/vitejs/vite/discussions/7920 // https://github.com/vitejs/vite/discussions/7920
esbuild: { esbuild: {
// drop: ['console', 'debugger'], drop: ['console', 'debugger'],
}, },
define: { define: {
// __SENTRY_RELEASE__: JSON.stringify(release), __SENTRY_RELEASE__: JSON.stringify(release),
} }
}) })