Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ module.exports = {
'rules': {
// allow paren-less arrow functions
'arrow-parens': 0,
'comma-dangle': 0,
// allow async-await
'generator-star-spacing': 0,
'space-before-function-paren': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
}
Expand Down
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@
"html",
"vue"
],
"eslint.autoFixOnSave": true
"eslint.autoFixOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
10 changes: 10 additions & 0 deletions build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var CopyWebpackPlugin = require('copy-webpack-plugin')
var HtmlWebpackPlugin = require('html-webpack-plugin')
var ExtractTextPlugin = require('extract-text-webpack-plugin')
var OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
var PrerenderSpaPlugin = require('prerender-spa-plugin')
// var ImageminPlugin = require('imagemin-webpack-plugin').default

var env = process.env.NODE_ENV === 'testing'
Expand Down Expand Up @@ -123,4 +124,13 @@ if (config.build.bundleAnalyzerReport) {
webpackConfig.plugins.push(new BundleAnalyzerPlugin())
}

// webpackConfig.plugins.push(

// // Absolute path to compiled SPA
// staticDir: path.join(config.build.assetsRoot),
// // List of routes to prerender
// routes: ['/about', '/contact']
// })
// )

module.exports = webpackConfig
20 changes: 17 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
<html>

<head>
<meta name="google-site-verification" content="qmnTLLlmu3n_BSyOoBpljK1K4DqbBoy5AxSzNUJPjCo" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Here is the portfolio of Sun.">
<meta name="author" content="Here is the portfolio of Sun.">
<meta name="author" content="DubheZhang@zht.dubhe@gmail.com">
<link rel="apple-touch-icon" sizes="60x60" href="/static/images/logo.jpg">
<link rel="icon" type="image/jpg" sizes="60x60" href="/static/images/logo.jpg">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<title>Sun Creative Solution</title>
<title>innovative intervention</title>
<!-- <link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.51.0/mapbox-gl.css' rel='stylesheet' /> -->
</head>

Expand Down Expand Up @@ -44,8 +45,21 @@
-->

<body class="app header-fixed sidebar-fixed aside-menu-fixed aside-menu-hidden">
<div id="app"></div>
<div id="app">
<div class="construction-loading" style="display: flex;">
<img style="width: 80vw; height:70vh; object-fit: contain; margin: 9vh auto;" src="/static/images/construction02.gif">
</div>
</div>
<!-- built files will be auto injected -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-116459618-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

gtag('config', 'UA-116459618-2');
</script>
<script>var _hmt = _hmt || []; (function () { var hm = document.createElement('script'); hm.src = 'https://hm.baidu.com/hm.js?eb7a2e7cbec9e875775fd3ff0b583080'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(hm, s) })()
</script>
</body>
Expand Down
Loading