Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
openvpn-app
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cloudron
openvpn-app
Commits
937b36ce
Commit
937b36ce
authored
Sep 07, 2020
by
Johannes Zellner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure we have at least EN locale set
parent
aa42fda5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
2 deletions
+6
-2
.gitignore
.gitignore
+1
-0
frontend/index.html
frontend/index.html
+1
-0
frontend/js/app.js
frontend/js/app.js
+3
-1
package.json
package.json
+1
-1
No files found.
.gitignore
View file @
937b36ce
...
...
@@ -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
frontend/index.html
View file @
937b36ce
...
...
@@ -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>
...
...
frontend/js/app.js
View file @
937b36ce
/* global superagent,
$, Vue
*/
/* global superagent,
Vue, ELEMENT
*/
(
function
()
{
'
use strict
'
ELEMENT
.
locale
(
ELEMENT
.
lang
.
en
)
const
VIEWS
=
{
LOGIN
:
'
login
'
,
DEVICES
:
'
devices
'
,
...
...
package.json
View file @
937b36ce
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment