efront 4.28.3 → 4.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/#/345/233/275/351/231/205/345/214/226.yml +12 -3
- package/apps/pivot/home/welcome.html +3 -1
- package/apps/pivot/home/welcome.js +4 -1
- package/apps/pivot/home/welcome.less +1 -1
- package/apps/pivot/main.js +7 -43
- package/apps/pivot/wow/root.js +10 -8
- package/apps//346/226/207/344/273/266/347/263/273/347/273/237/main.js +55 -0
- package/apps//346/226/207/344/273/266/347/263/273/347/273/237//344/270/273/351/241/265.jsp +42 -0
- package/apps//346/226/207/344/273/266/347/263/273/347/273/237//350/265/204/346/272/220/347/256/241/347/220/206/345/231/250.js +1 -0
- package/coms/basic/color.js +1 -1
- package/coms/basic/extend.js +2 -1
- package/coms/basic/extendIfNeeded.js +2 -1
- package/coms/basic/extendIfOccurs.js +1 -1
- package/coms/basic/mark.js +3 -3
- package/coms/basic/sum.js +7 -0
- package/coms/basic_/&Array.js +0 -4
- package/coms/basic_/&rest.js +3 -4
- package/coms/compile//347/264/240/351/246/250.js +47 -6
- package/coms/compile//347/264/240/351/246/250_test.js +19 -0
- package/coms/docs/helps.js +1 -0
- package/coms/explorer/Explorer.js +1 -0
- package/coms/explorer/context.js +18 -0
- package/coms/frame/login.xht +95 -0
- package/coms/zimoli/alert.js +1 -1
- package/coms/zimoli/button.less +12 -26
- package/coms/zimoli/cless.js +1 -1
- package/coms/zimoli/marker.js +4 -3
- package/coms/zimoli/pending.less +12 -0
- package/coms/zimoli/progbar.xht +85 -15
- package/coms/zimoli/relogin.js +43 -0
- package/coms/zimoli/script.js +5 -5
- package/coms/zimoli/table.less +3 -0
- package/coms/zimoli/zimoli.js +15 -7
- package/package.json +1 -1
- package/public/efront.js +1 -1
- package/apps/pivot/auth/login.html +0 -13
- package/apps/pivot/auth/login.js +0 -49
- package/apps/pivot/auth/login.less +0 -28
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<div head>
|
|
2
|
-
${i18n`请输入服务器密码`}
|
|
3
|
-
</div>
|
|
4
|
-
<div body>
|
|
5
|
-
<field ng-repeat="f in fields" ng-src="[f,data]"></field>
|
|
6
|
-
</div>
|
|
7
|
-
<div foot>
|
|
8
|
-
<button pending.="pending" type="submit">${i18n`登录`}</button>
|
|
9
|
-
</div>
|
|
10
|
-
<div message>
|
|
11
|
-
${i18n`${i18n`登录`}之前需要使用${` <b>efront password</b> `}命令在${i18n`服务器`}上设置${i18n`密码`}`}
|
|
12
|
-
</div>
|
|
13
|
-
<i18n-chooser></i18n-chooser>
|
package/apps/pivot/auth/login.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
var hosts = data.getItem("hosts");
|
|
2
|
-
if (!hosts.length) hosts.push({ key: location.host, name: location.host });
|
|
3
|
-
function main(host) {
|
|
4
|
-
var fields = refilm`
|
|
5
|
-
服务器地址/host* select?a ${hosts}
|
|
6
|
-
密码/password* password
|
|
7
|
-
`;
|
|
8
|
-
var page = view();
|
|
9
|
-
page.innerHTML = login;
|
|
10
|
-
drag.on(page);
|
|
11
|
-
fields[0].readonly = !!host;
|
|
12
|
-
on("mounted")(page, function () {
|
|
13
|
-
move.bindPosition(page, [.5, .5]);
|
|
14
|
-
});
|
|
15
|
-
renderWithDefaults(page, {
|
|
16
|
-
i18nChooser,
|
|
17
|
-
fields, data: {
|
|
18
|
-
host: host ? parseURL(host).host : data.getInstance("base").host || location.host,
|
|
19
|
-
}, pending: false
|
|
20
|
-
});
|
|
21
|
-
on("submit")(page, async function () {
|
|
22
|
-
data.setInstance("hosts", hosts, true);
|
|
23
|
-
var { password } = submit(fields, $scoped.get(this).data);
|
|
24
|
-
$scoped.get(this).pending = true;
|
|
25
|
-
page.disabled = true;
|
|
26
|
-
try {
|
|
27
|
-
var base = location.protocol + "//" + parseURL($scoped.get(this).data.host).host + "/";
|
|
28
|
-
if (!host) data.setInstance("base", { base, host: parseURL(base).host });
|
|
29
|
-
var api = Object.assign({}, await data.getApi("login"));
|
|
30
|
-
api.base = base;
|
|
31
|
-
var info = await data.from(api, {
|
|
32
|
-
a: encode62.packencode(encode62.geta(password))
|
|
33
|
-
}).loading_promise;
|
|
34
|
-
info = encode62.packupdate(info);
|
|
35
|
-
data.setSource(base, info);
|
|
36
|
-
if (host) {
|
|
37
|
-
cast(page, 'login', info);
|
|
38
|
-
remove(page);
|
|
39
|
-
} else {
|
|
40
|
-
user.login({});
|
|
41
|
-
go('/main');
|
|
42
|
-
}
|
|
43
|
-
} catch (e) {
|
|
44
|
-
console.log(e);
|
|
45
|
-
}
|
|
46
|
-
$scoped.get(this).pending = false;
|
|
47
|
-
})
|
|
48
|
-
return page;
|
|
49
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
& {
|
|
2
|
-
position: absolute;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
[foot],
|
|
6
|
-
[head] {
|
|
7
|
-
&::before {
|
|
8
|
-
display: none;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
text-align: center;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
[message] {
|
|
15
|
-
padding: 2px 4px;
|
|
16
|
-
line-height: 1.2;
|
|
17
|
-
text-align: center;
|
|
18
|
-
color: #29c;
|
|
19
|
-
border-top: 1px solid #29c;
|
|
20
|
-
background: #29c1;
|
|
21
|
-
margin: 0 auto;
|
|
22
|
-
font-size: 12px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
.button {
|
|
27
|
-
padding: 0px 40px;
|
|
28
|
-
}
|