Commit 937b36ce authored by Johannes Zellner's avatar Johannes Zellner

Ensure we have at least EN locale set

parent aa42fda5
......@@ -10,5 +10,6 @@ frontend/css/lib/display.css
frontend/css/lib/fonts/
frontend/css/lib/theme-chalk.css
frontend/js/lib/element-ui.js
frontend/js/lib/en.js
frontend/js/lib/superagent.min.js
frontend/js/lib/vue.min.js
\ No newline at end of file
......@@ -13,6 +13,7 @@
<script src="/js/lib/vue.min.js"></script>
<script src="/js/lib/superagent.min.js"></script>
<script src="/js/lib/element-ui.js"></script>
<script src="/js/lib/en.js"></script>
</head>
<body>
......
/* global superagent, $, Vue */
/* global superagent, Vue, ELEMENT */
(function () {
'use strict'
ELEMENT.locale(ELEMENT.lang.en)
const VIEWS = {
LOGIN: 'login',
DEVICES: 'devices',
......
......@@ -6,7 +6,7 @@
"scripts": {
"lint": "standard",
"test": "npm run lint && mocha --bail test/test.js",
"copy_js": "mkdir -p frontend/js/lib && cp node_modules/element-ui/lib/index.js frontend/js/lib/element-ui.js && cp node_modules/superagent/dist/superagent.min.js node_modules/vue/dist/vue.min.js frontend/js/lib",
"copy_js": "mkdir -p frontend/js/lib && cp node_modules/element-ui/lib/index.js frontend/js/lib/element-ui.js && cp node_modules/element-ui/lib/umd/locale/en.js node_modules/superagent/dist/superagent.min.js node_modules/vue/dist/vue.min.js frontend/js/lib",
"copy_css": "mkdir -p frontend/css/lib && cp node_modules/element-ui/lib/theme-chalk/index.css frontend/css/lib/theme-chalk.css && cp node_modules/element-ui/lib/theme-chalk/display.css frontend/css/lib/",
"copy_fonts": "cp -rf node_modules/element-ui/lib/theme-chalk/fonts/ frontend/css/lib/",
"postinstall": "npm run copy_js && npm run copy_css && npm run copy_fonts"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment