Skip to content

Commit 8d68b10

Browse files
committed
update
1 parent 8addb3e commit 8d68b10

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

public/index.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<meta name="viewport" content="width=device-width,initial-scale=1.0">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
88
<title><%= VUE_APP_NAME %></title>
99
</head>
1010
<body>
1111
<noscript>
12-
<strong>We're sorry but <%= VUE_APP_NAME %> doesn't work properly without JavaScript enabled. Please enable it to
13-
continue.</strong>
12+
<strong>We're sorry but <%= VUE_APP_NAME %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
1413
</noscript>
1514
<div id="app"></div>
1615
<!-- built files will be auto injected -->

scripts/setup.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
const fs = require('fs')
22

3+
if (!fs.existsSync('./.env')) {
4+
fs.copyFileSync('./.env.example', './.env')
5+
}
6+
7+
const publicVendorPath = './public/vendors'
38
const vendors = {
4-
// './node_modules/bootstrap/dist': './public/vendors/bootstrap/dist',
9+
'./node_modules/bootstrap/dist': `${publicVendorPath}/bootstrap/dist`,
510
}
611
Object.keys(vendors).forEach(source => {
12+
if (!fs.existsSync(source)) {
13+
return
14+
}
715
const destination = vendors[source]
816
if (!fs.existsSync(destination)) {
917
fs.mkdirSync(destination, {recursive: true})

src/config/localization.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import {env} from './env'
2+
13
export const localization = {
24
locale: {
3-
default: 'en',
4-
fallback: 'en',
5+
default: env.VUE_APP_LOCALE || 'en',
6+
fallback: env.VUE_APP_FALLBACK_LOCALE || 'en',
57

68
supported: ['en', 'vi'],
79
},

src/resources/views/master/BaseBlank.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<template>
2-
<router-view/>
1+
<template lang="pug">
2+
router-view
33
</template>
44

55
<script>

0 commit comments

Comments
 (0)