Skip to content

Commit

Permalink
🎨 Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Du Pont committed Oct 14, 2022
1 parent 65bbc3b commit 64bb2fb
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ yarn-error.log*
.env.production
.env.development

# Bark
bark.yml

# IDEs
/.idea
/.vscode
Expand Down
7 changes: 4 additions & 3 deletions src/app/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import Grid from '@/components/partials/Grid.vue'
// Utils
import { DEV } from '@/utils/constants'
import { setLocaleCookies, setLocaleAttributes } from '@/utils/helpers/language'
export default {
Expand All @@ -22,11 +23,11 @@ export default {
Grid,
},
computed: {
mode: function () {
mode() {
return import.meta.env.VUE_APP_MODE || 'app'
},
debug: function () {
return import.meta.env.DEV && this.$route.query.debug === 'grid'
debug() {
return DEV && this.$route.query.debug === 'grid'
},
},
watch: {
Expand Down
1 change: 0 additions & 1 deletion src/store/index.js

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions src/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import UAParser from 'ua-parser-js'

// Environment Constants
export const DEV = import.meta.env.DEV
export const PROD = import.meta.env.PROD

// Responsive Constants
Expand Down
6 changes: 6 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ export default defineConfig(({ mode }) => {
server: {
port: process.env.VITE_SERVER_PORT || 3000,
},
// See: https://stackoverflow.com/a/71252262
define: {
__VUE_I18N_LEGACY_API__: false,
__VUE_I18N_FULL_INSTALL__: true,
__INTLIFY_PROD_DEVTOOLS__: false,
},
plugins: [vue(), glsl()],
resolve: {
alias: {
Expand Down

0 comments on commit 64bb2fb

Please sign in to comment.