Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
linhntaim committed Aug 25, 2022
1 parent 8addb3e commit 8d68b10
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
5 changes: 2 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= VUE_APP_NAME %></title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= VUE_APP_NAME %> doesn't work properly without JavaScript enabled. Please enable it to
continue.</strong>
<strong>We're sorry but <%= VUE_APP_NAME %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
Expand Down
10 changes: 9 additions & 1 deletion scripts/setup.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
const fs = require('fs')

if (!fs.existsSync('./.env')) {
fs.copyFileSync('./.env.example', './.env')
}

const publicVendorPath = './public/vendors'
const vendors = {
// './node_modules/bootstrap/dist': './public/vendors/bootstrap/dist',
'./node_modules/bootstrap/dist': `${publicVendorPath}/bootstrap/dist`,
}
Object.keys(vendors).forEach(source => {
if (!fs.existsSync(source)) {
return
}
const destination = vendors[source]
if (!fs.existsSync(destination)) {
fs.mkdirSync(destination, {recursive: true})
Expand Down
6 changes: 4 additions & 2 deletions src/config/localization.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import {env} from './env'

export const localization = {
locale: {
default: 'en',
fallback: 'en',
default: env.VUE_APP_LOCALE || 'en',
fallback: env.VUE_APP_FALLBACK_LOCALE || 'en',

supported: ['en', 'vi'],
},
Expand Down
4 changes: 2 additions & 2 deletions src/resources/views/master/BaseBlank.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<router-view/>
<template lang="pug">
router-view
</template>

<script>
Expand Down

0 comments on commit 8d68b10

Please sign in to comment.