Skip to content

Commit

Permalink
updated dependencies stuck on vue router
Browse files Browse the repository at this point in the history
  • Loading branch information
athi committed Jan 16, 2024
1 parent f11d222 commit 6446c80
Show file tree
Hide file tree
Showing 11 changed files with 9,779 additions and 10,473 deletions.
19 changes: 19 additions & 0 deletions assets/vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
chainWebpack: config => {
config.resolve.alias.set('vue', '@vue/compat')

config.module
.rule('vue')
.use('vue-loader')
.tap(options => {
return {
...options,
compilerOptions: {
compatConfig: {
MODE: 2
}
}
}
})
}
}
1 change: 1 addition & 0 deletions components/Content.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import
<template>
<article class="article px-10 py-10">
<div class="text-center text-h2 pb-10 font-weight-bold">
Expand Down
1 change: 1 addition & 0 deletions components/GlobalFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export default {
};
</script>
<style lang="scss" scoped>
@import 'assets/variables.scss';
hr {
margin: auto;
margin-top: 1em;
Expand Down
1 change: 1 addition & 0 deletions components/GlobalHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default {
};
</script>
<style lang="scss" scoped>
@import 'assets/variables.scss';
hr {
margin: auto;
margin-top: 1em;
Expand Down
161 changes: 84 additions & 77 deletions nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import fs from "fs";
import colors from "vuetify/es5/util/colors";
import colors from "vuetify/lib/util/colors";
import { messages } from "./utils/translations.js";
import { VitePWA } from 'vite-plugin-pwa';


// eslint-disable-next-line no-undef
const local = process.env.NUXT_ENV_LOCAL !== undefined;
Expand Down Expand Up @@ -46,41 +48,46 @@ export default {
{ rel: "apple-touch-icon", href: "/favicon.ico" },
],
},
pwa: {
manifest: {
name: "WhatsAnalyze - The WhatsApp Chat Analyzer",
short_name: "WhatsAnalyze",
start_url: "/",
display: "standalone",
background_color: "#21a68d",
theme_color: "#000000",
lang: "en",
useWebmanifestExtension: true,
share_target: {
action: "/pwa-results?share-target=1",
method: "POST",
enctype: "multipart/form-data",
params: {
title: "name",
text: "description",
url: "link",
files: [
{
name: "file",
accept: ["*/*"],
vite: {
plugins: [
VitePWA({
registerType: 'autoUpdate',
includeAssets: ['favicon.svg', '/favicon.ico', 'robots.txt', 'apple-touch-icon.png'],
manifest: {
name: 'WhatsAnalyze - The WhatsApp Chat Analyzer',
short_name: 'WhatsAnalyze',
start_url: '/',
display: 'standalone',
background_color: '#21a68d',
theme_color: '#000000',
share_target: {
action: "/pwa-results?share-target=1",
method: "POST",
enctype: "multipart/form-data",
params: {
title: "name",
text: "description",
url: "link",
files: [
{
name: "file",
accept: ["*/*"],
},
],
},
],
},
workbox: {
importScripts: ["custom-sw.js"],
dev: local,
},
icon: {
src: "/assets/whatsanalyze-logo-black-PWA.png",
sizes: "192x192",
type: "image/png",
},
},
},
},
workbox: {
importScripts: ["custom-sw.js"],
dev: local,
},
icon: {
source: "/assets",
fileName: "whatsanalyze-logo-black-PWA.png",
},
}),
],
},

// Global CSS: https://go.nuxtjs.dev/config-css
Expand Down Expand Up @@ -117,13 +124,11 @@ export default {

// Modules: https://go.nuxtjs.dev/config-modules
modules: [
"@nuxt/content",
"@nuxtjs/pwa",
"@nuxtjs/gtm",
"nuxt-i18n",
"@nuxtjs/firebase",
'@nuxt/content',
'nuxt-vuefire',
'@zadigetvoltaire/nuxt-gtm'
],
firebase: {
vuefire: {
config: {
apiKey: "AIzaSyBWNP0Ckw94E7tyoZZozAOZ6JSQRH2lzFU",
authDomain: "whatsanalyze-80665.firebaseapp.com",
Expand All @@ -137,46 +142,46 @@ export default {
firestore: true, // Just as example. Can be any other service.
},
},
i18n: {
seo: true,
locales: [
{
code: "en",
iso: "en-US",
},
{
code: "de",
iso: "de-DE",
},
{
code: "es",
iso: "es-ES",
},
{
code: "fr",
iso: "fr-FR",
},
{
code: "pt",
iso: "pt-PT",
},
],
defaultLocale: "en",
detectBrowserLanguage: {
alwaysRedirect: false,
fallbackLocale: "en",
onlyOnRoot: true,
useCookie: true,
cookieCrossOrigin: false,
cookieKey: "i18n_redirected",
cookieSecure: false,
i18n: {
seo: true,
locales: [
{
code: "en",
iso: "en-US",
},
vueI18n: {
fallbackLocale: "en",
messages,
{
code: "de",
iso: "de-DE",
},
{
code: "es",
iso: "es-ES",
},
vueI18nLoader: true,
{
code: "fr",
iso: "fr-FR",
},
{
code: "pt",
iso: "pt-PT",
},
],
defaultLocale: "en",
detectBrowserLanguage: {
alwaysRedirect: false,
fallbackLocale: "en",
onlyOnRoot: true,
useCookie: true,
cookieCrossOrigin: false,
cookieKey: "i18n_redirected",
cookieSecure: false,
},
vueI18n: {
fallbackLocale: "en",
messages,
},
vueI18nLoader: true,
},

// Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
vuetify: {
Expand Down Expand Up @@ -256,3 +261,5 @@ export default {
: {},
},
};


84 changes: 46 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "NUXT_ENV_LOCAL=1 nuxt",
"local": "NUXT_ENV_LOCAL=1 nuxt generate && NUXT_ENV_LOCAL=1 nuxt start",
"ci-dev-build": "NUXT_ENV_LOCAL=1 nuxt generate",
"deploy": "nuxt generate && push-dir --dir=dist --branch=gh-pages --cleanup",
"deploy-sebi": "nuxt generate && rm dist/CNAME && push-dir --remote=https://github.com/fellnerse/fellnerse.github.io.git --dir=dist --branch=gh-pages --cleanup"
"dev": "NUXT_ENV_LOCAL=1 nuxi dev",
"local": "NUXT_ENV_LOCAL=1 nuxi generate && NUXT_ENV_LOCAL=1 nuxi start",
"ci-dev-build": "NUXT_ENV_LOCAL=1 nuxi generate",
"deploy": "nuxi generate && push-dir --dir=dist --branch=gh-pages --cleanup",
"deploy-sebi": "nuxi generate && rm dist/CNAME && push-dir --remote=https://github.com/fellnerse/fellnerse.github.io.git --dir=dist --branch=gh-pages --cleanup"
},
"husky": {
"hooks": {
Expand All @@ -20,59 +20,67 @@
"*.{js,css,md,vue}": "prettier --write"
},
"dependencies": {
"@amcharts/amcharts4": "^4.10.15",
"@mdi/js": "^5.9.55",
"@nuxt/content": "^1.13.1",
"@nuxtjs/firebase": "^7.6.1",
"@nuxtjs/gtm": "^2.4.0",
"@nuxtjs/sentry": "7.1.13",
"@amcharts/amcharts5": "^5.7.6",
"@mdi/js": "^7.4.47",
"@nuxt/babel-preset-app": "^2.17.3",
"@nuxt/content": "^2.10.0",
"@nuxtjs/firebase": "^8.2.2",
"@nuxtjs/sentry": "8.0.6",
"@sentry/tracing": "^7.46.0",
"@sentry/vue": "7.47.0",
"@sentry/webpack-plugin": "^1.20.0",
"canvg": "^3.0.7",
"chart.js": "^2.9.4",
"@sentry/vue": "7.93.0",
"@sentry/webpack-plugin": "^2.10.2",
"@vue/compiler-sfc": "^3.1.0",
"@vuetify/nightly": "3.3.4-master.2023-06-19",
"canvg": "^4.0.1",
"chart.js": "^4.4.1",
"core-js": "^3.9.1",
"country-currency-map": "^2.1.7",
"dompurify": "^2.2.6",
"dataframe-js": "^1.4.4",
"dompurify": "^3.0.8",
"emoji-aware": "^3.0.5",
"file-saver": "^2.0.5",
"firebase": "^8.8.0",
"firebase-tools": "^9.5.0",
"firebase": "^10.7.1",
"firebase-tools": "^13.0.3",
"html2canvas": "^1.0.0-rc.7",
"is-buffer": "^2.0.5",
"jspdf": "^2.3.0",
"jspdf-autotable": "^3.5.14",
"jszip": "^3.6.0",
"moment": "^2.29.1",
"npm": "^7.5.4",
"nuxt": "2.16.3",
"nuxt-compress": "^4.1.0",
"nuxt-i18n": "^6.21.1",
"npm": "^10.3.0",
"nuxt": "^3.9.1",
"nuxt-compress": "^5.0.0",
"nuxt-vuefire": "^1.0.1",
"pako": "^2.1.0",
"push-dir": "^0.4.1",
"stopwords-de": "^0.3.0",
"stopwords-en": "^0.3.0",
"vue-chartjs": "^3.5.1",
"vue-gtag": "^1.11.0",
"whatsapp-chat-parser": "^3.1.0",
"vue-chartjs": "^5.3.0",
"vue-gtag": "^2.0.1",
"vue-router": "4",
"vuefire": "^3.1.22",
"vuetify": "^3.4.10",
"whatsapp-chat-parser": "^4.0.0",
"worker-loader": "^3.0.8"
},
"devDependencies": {
"@babel/core": "^7.23.7",
"@nuxt/types": "^2.15.7",
"@nuxt/typescript-build": "^2.1.0",
"@nuxtjs/eslint-config-typescript": "^6.0.1",
"@nuxtjs/pwa": "^3.3.5",
"@nuxt/typescript-build": "^3.0.2",
"@nuxtjs/eslint-config-typescript": "^12.1.0",
"@nuxtjs/vuetify": "^1.11.3",
"@types/pako": "^2.0.0",
"@vue/test-utils": "^1.1.2",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "^26.6.3",
"eslint": "^7.20.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-vue": "^7.6.0",
"husky": "4.2.3",
"jest": "^26.6.3",
"lint-staged": "^10.5.4",
"prettier": "2.2.1",
"@vue/test-utils": "^2.4.3",
"@zadigetvoltaire/nuxt-gtm": "^0.0.13",
"babel-jest": "^29.7.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-vue": "^9.20.1",
"husky": "8.0.3",
"jest": "^29.7.0",
"lint-staged": "^15.2.0",
"prettier": "3.2.2",
"vite-plugin-pwa": "^0.17.4",
"vue-jest": "^3.0.4"
}
}
22 changes: 12 additions & 10 deletions plugins/amcharts.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import * as am4core from "@amcharts/amcharts4/core";
import am4themes_animated from "@amcharts/amcharts4/themes/animated";
import * as am4plugins_wordCloud from "@amcharts/amcharts4/plugins/wordCloud";
import { defineNuxtPlugin } from '#app';

import Vue from "vue";
import * as am5core from "@amcharts/amcharts5";
import am5themes_animated from "@amcharts/amcharts5/themes/Animated";
import * as am5plugins_wordCloud from "@amcharts/amcharts5/wc";

Vue.prototype.$am4core = () => {
return {
am4core,
am4themes_animated,
am4plugins_wordCloud,
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.config.globalProperties.$am5core = () => {
return {
am5core,
am5themes_animated,
am5plugins_wordCloud,
};
};
};
});
8 changes: 5 additions & 3 deletions plugins/dataframe.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import Vue from "vue";
import DataFrame from "dataframe-js";
import { defineNuxtPlugin } from '#app';
import DataFrame from 'dataframe-js';

Vue.use(DataFrame);
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(DataFrame);
});
Loading

0 comments on commit 6446c80

Please sign in to comment.