Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
4aff6382
Commit
4aff6382
authored
Oct 26, 2017
by
Leopoldthecoder
Committed by
杨奕
Oct 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc updates
parent
e2932fd7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
31 deletions
+28
-31
build/deploy-faas.sh
build/deploy-faas.sh
+18
-0
examples/app.vue
examples/app.vue
+0
-29
examples/components/side-nav.vue
examples/components/side-nav.vue
+5
-1
package.json
package.json
+5
-1
No files found.
build/deploy-faas.sh
0 → 100644
View file @
4aff6382
#! /bin/sh
mkdir
temp_web
npm run deploy:build
cd
temp_web
git clone
-b
gh-pages https://github.com/ElemeFE/element.git
&&
cd
element
# build sub folder
SUB_FOLDER
=
'1.4'
mkdir
$SUB_FOLDER
rm
-rf
*
.js
*
.css
*
.map static
rm
-rf
$SUB_FOLDER
/
**
cp
-rf
../../examples/element-ui/
**
.
cp
-rf
../../examples/element-ui/
**
$SUB_FOLDER
/
cd
../..
# deploy domestic site
faas deploy alpha
\ No newline at end of file
examples/app.vue
View file @
4aff6382
...
...
@@ -199,35 +199,6 @@
this
.
localize
();
this
.
renderAnchorHref
();
this
.
goAnchor
();
setTimeout
(()
=>
{
const
notified
=
localStorage
.
getItem
(
'
BETA_NOTIFIED
'
);
if
(
!
notified
)
{
const
h
=
this
.
$createElement
;
const
title
=
this
.
lang
===
'
zh-CN
'
?
'
2.0.0 Beta 发布
'
:
'
2.0.0 Beta released
'
;
const
messages
=
this
.
lang
===
'
zh-CN
'
?
[
'
点击
'
,
'
这里
'
,
'
查看详情
'
]
:
[
'
Click
'
,
'
here
'
,
'
to learn more
'
];
this
.
$notify
.
success
({
title
,
duration
:
0
,
message
:
h
(
'
span
'
,
[
messages
[
0
],
h
(
'
a
'
,
{
attrs
:
{
target
:
'
_blank
'
,
href
:
`https://github.com/ElemeFE/element/issues/
${
this
.
lang
===
'
zh-CN
'
?
'
7612
'
:
'
7613
'
}
`
}
},
messages
[
1
]),
messages
[
2
]
]),
onClose
()
{
localStorage
.
setItem
(
'
BETA_NOTIFIED
'
,
1
);
}
});
}
},
3500
);
},
created
()
{
...
...
examples/components/side-nav.vue
View file @
4aff6382
...
...
@@ -259,7 +259,11 @@
const
xhr
=
new
XMLHttpRequest
();
xhr
.
onreadystatechange
=
_
=>
{
if
(
xhr
.
readyState
===
4
&&
xhr
.
status
===
200
)
{
this
.
versions
=
JSON
.
parse
(
xhr
.
responseText
);
const
versions
=
JSON
.
parse
(
xhr
.
responseText
);
this
.
versions
=
Object
.
keys
(
versions
).
slice
(
-
2
).
reduce
((
prev
,
next
)
=>
{
prev
[
next
]
=
versions
[
next
];
return
prev
;
},
{});
}
};
xhr
.
open
(
'
GET
'
,
'
/versions.json
'
);
...
...
package.json
View file @
4aff6382
...
...
@@ -23,11 +23,15 @@
"dist:all"
:
"node build/bin/build-all.js && npm run build:theme"
,
"i18n"
:
"node build/bin/i18n.js"
,
"lint"
:
"eslint src/**/* test/**/* packages/**/*.{js,vue} build/**/* --quiet"
,
"pub"
:
"npm run bootstrap && sh build/git-release.sh && sh build/release.sh"
,
"pub"
:
"npm run bootstrap && sh build/git-release.sh && sh build/release.sh
&& sh build/deploy-faas.sh
"
,
"pub:all"
:
"npm run dist:all && lerna publish --skip-git && git commit -am 'publish independent packages' && git push eleme dev"
,
"test"
:
"npm run lint && cross-env CI_ENV=/dev/ karma start test/unit/karma.conf.js --single-run"
,
"test:watch"
:
"karma start test/unit/karma.conf.js"
},
"faas"
:
{
"domain"
:
"element"
,
"public"
:
"temp_web/element"
},
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git@github.com:ElemeFE/element.git"
...
...
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