FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Userscript-Plus/src/main.js at master · SecurityAnalysts/Userscript-Plus · GitHub
SecurityAnalysts
/
Userscript-Plus
Public
forked from
jae-jae/Userscript-Plus
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
5
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Userscript-Plus
/
src
/
main.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (26 loc) · 682 Bytes
Breadcrumbs
Userscript-Plus
/
src
/
main.js
Copy path
File metadata and controls
34 lines (26 loc) · 682 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import
Vue
from
'vue'
import
App
from
'./App.vue'
import
iView
from
'iview'
import
'iview/dist/styles/iview.css'
// 使用 CSS
import
'animate.css'
import
VueI18n
from
'vue-i18n'
import
localeMessage
from
'./common/js/locale'
Vue
.
locale
=
(
locale
)
=>
{
}
Vue
.
use
(
VueI18n
)
Vue
.
use
(
iView
)
let
nlang
=
navigator
.
language
.
toLowerCase
(
)
if
(
nlang
===
'zh'
)
{
nlang
=
'zh-cn'
}
let
lang
=
localeMessage
[
nlang
]
?
nlang
:
'en-us'
const
i18n
=
new
VueI18n
(
{
locale
:
lang
,
messages
:
localeMessage
}
)
let
appEl
=
window
.
document
.
getElementById
(
'app'
)
new
Vue
(
{
// eslint-disable-line no-new
i18n
,
el
:
appEl
,
render
:
h
=>
h
(
App
)
}
)
Back
|
FazBrowse Home
|
New Git URL