eoss-ui 0.5.43 → 0.5.45
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/CHANGELOG.md +929 -0
- package/README.md +18 -0
- package/lib/button-group.js +136 -69
- package/lib/button.js +146 -72
- package/lib/checkbox-group.js +132 -67
- package/lib/data-table-form.js +142 -74
- package/lib/data-table.js +225 -104
- package/lib/date-picker.js +132 -67
- package/lib/dialog.js +145 -71
- package/lib/eoss-ui.common.js +717 -414
- package/lib/flow-group.js +157 -74
- package/lib/flow-list.js +136 -69
- package/lib/flow.js +185 -99
- package/lib/form.js +141 -69
- package/lib/handle-user.js +142 -70
- package/lib/handler.js +165 -93
- package/lib/index.js +1 -1
- package/lib/input-number.js +132 -67
- package/lib/input.js +132 -67
- package/lib/login.js +165 -97
- package/lib/main.js +258 -153
- package/lib/nav.js +132 -67
- package/lib/page.js +132 -67
- package/lib/player.js +132 -67
- package/lib/qr-code.js +132 -67
- package/lib/radio-group.js +132 -67
- package/lib/retrial-auth.js +144 -71
- package/lib/select-ganged.js +132 -67
- package/lib/select.js +132 -67
- package/lib/selector-panel.js +147 -74
- package/lib/selector.js +132 -67
- package/lib/sizer.js +132 -67
- package/lib/steps.js +132 -67
- package/lib/switch.js +132 -67
- package/lib/table-form.js +139 -72
- package/lib/tabs.js +135 -69
- package/lib/theme-chalk/data-table.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/toolbar.css +1 -1
- package/lib/tips.js +132 -67
- package/lib/toolbar.js +7 -1
- package/lib/tree-group.js +167 -71
- package/lib/tree.js +132 -67
- package/lib/upload.js +143 -78
- package/lib/utils/util.js +132 -67
- package/lib/wujie.js +132 -67
- package/lib/wxlogin.js +132 -67
- package/package.json +2 -2
- package/packages/button/src/main.vue +14 -5
- package/packages/button-group/src/main.vue +2 -0
- package/packages/data-table/src/column.vue +4 -0
- package/packages/data-table/src/main.vue +65 -26
- package/packages/data-table-form/src/tbody.vue +3 -0
- package/packages/dialog/src/main.vue +11 -2
- package/packages/flow/src/component/CustomPreset.vue +14 -7
- package/packages/flow/src/component/FileList.vue +4 -2
- package/packages/flow/src/component/Preset.vue +11 -13
- package/packages/flow/src/form.vue +5 -4
- package/packages/flow/src/main.vue +7 -7
- package/packages/flow/src/table.vue +8 -1
- package/packages/flow-group/src/main.vue +23 -5
- package/packages/form/src/main.vue +12 -0
- package/packages/form/src/table.vue +2 -0
- package/packages/handle-user/src/main.vue +8 -1
- package/packages/handler/src/main.vue +35 -28
- package/packages/login/src/main.vue +35 -31
- package/packages/main/src/async-component/index.vue +4 -2
- package/packages/main/src/main.vue +70 -31
- package/packages/main/src/userinfo.vue +29 -25
- package/packages/retrial-auth/src/main.vue +10 -2
- package/packages/selector-panel/src/selection.vue +6 -0
- package/packages/tabs/src/main.vue +1 -0
- package/packages/theme-chalk/lib/base.css +1 -0
- package/packages/theme-chalk/lib/button-group.css +1 -0
- package/packages/theme-chalk/lib/button.css +1 -0
- package/packages/theme-chalk/lib/card.css +1 -0
- package/packages/theme-chalk/lib/cascader.css +0 -0
- package/packages/theme-chalk/lib/checkbox-group.css +1 -0
- package/packages/theme-chalk/lib/clients.css +1 -0
- package/packages/theme-chalk/lib/data-table-form.css +1 -0
- package/packages/theme-chalk/lib/data-table.css +1 -0
- package/packages/theme-chalk/lib/date-picker.css +1 -0
- package/packages/theme-chalk/lib/dialog.css +1 -0
- package/packages/theme-chalk/lib/enterprise.css +1 -0
- package/packages/theme-chalk/lib/error-page.css +1 -0
- package/packages/theme-chalk/lib/flow-chart.css +0 -0
- package/packages/theme-chalk/lib/flow-group.css +1 -0
- package/packages/theme-chalk/lib/flow-list.css +1 -0
- package/packages/theme-chalk/lib/flow.css +1 -0
- package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/lib/form.css +1 -0
- package/packages/theme-chalk/lib/handle-user.css +1 -0
- package/packages/theme-chalk/lib/handler.css +1 -0
- package/packages/theme-chalk/lib/icon.css +1 -0
- package/packages/theme-chalk/lib/icons.css +1 -0
- package/packages/theme-chalk/lib/index.css +1 -0
- package/packages/theme-chalk/lib/input-number.css +0 -0
- package/packages/theme-chalk/lib/input.css +1 -0
- package/packages/theme-chalk/lib/label.css +1 -0
- package/packages/theme-chalk/lib/layout.css +1 -0
- package/packages/theme-chalk/lib/login.css +1 -0
- package/packages/theme-chalk/lib/main.css +1 -0
- package/packages/theme-chalk/lib/mainComp.css +0 -0
- package/packages/theme-chalk/lib/menu.css +1 -0
- package/packages/theme-chalk/lib/nav.css +1 -0
- package/packages/theme-chalk/lib/notify.css +0 -0
- package/packages/theme-chalk/lib/page.css +1 -0
- package/packages/theme-chalk/lib/pagination.css +1 -0
- package/packages/theme-chalk/lib/player.css +1 -0
- package/packages/theme-chalk/lib/qr-code.css +1 -0
- package/packages/theme-chalk/lib/radio-group.css +1 -0
- package/packages/theme-chalk/lib/retrial-auth.css +1 -0
- package/packages/theme-chalk/lib/select-ganged.css +1 -0
- package/packages/theme-chalk/lib/select.css +1 -0
- package/packages/theme-chalk/lib/selector-panel.css +1 -0
- package/packages/theme-chalk/lib/selector.css +1 -0
- package/packages/theme-chalk/lib/sizer.css +1 -0
- package/packages/theme-chalk/lib/steps.css +1 -0
- package/packages/theme-chalk/lib/switch.css +1 -0
- package/packages/theme-chalk/lib/table-form.css +0 -0
- package/packages/theme-chalk/lib/tabs-panel.css +0 -0
- package/packages/theme-chalk/lib/tabs.css +1 -0
- package/packages/theme-chalk/lib/tips.css +1 -0
- package/packages/theme-chalk/lib/toolbar.css +1 -0
- package/packages/theme-chalk/lib/tree-group.css +1 -0
- package/packages/theme-chalk/lib/tree.css +1 -0
- package/packages/theme-chalk/lib/upload.css +1 -0
- package/packages/theme-chalk/lib/wujie.css +0 -0
- package/packages/theme-chalk/lib/wxlogin.css +1 -0
- package/packages/theme-chalk/src/data-table.scss +6 -0
- package/packages/theme-chalk/src/toolbar.scss +3 -0
- package/packages/toolbar/src/main.vue +10 -1
- package/packages/tree-group/src/main.vue +36 -2
- package/packages/upload/src/main.vue +6 -6
- package/src/index.js +1 -1
- package/src/utils/util.js +148 -80
- package/packages/theme-chalk/gulpfile.js +0 -25
|
@@ -802,7 +802,7 @@ export default {
|
|
|
802
802
|
this.$refs.upload.submit();
|
|
803
803
|
},
|
|
804
804
|
openKkfileview(file) {
|
|
805
|
-
let host = util.win.
|
|
805
|
+
let host = util.win.location.origin;
|
|
806
806
|
if (this.host) {
|
|
807
807
|
if (util.startWith(this.host, 'http')) {
|
|
808
808
|
host = this.host;
|
|
@@ -821,7 +821,7 @@ export default {
|
|
|
821
821
|
}&fullfilename=${file.originalName}`
|
|
822
822
|
)
|
|
823
823
|
);
|
|
824
|
-
util.win.
|
|
824
|
+
util.win.open(`${this.kkfileview}?url=${url}`);
|
|
825
825
|
},
|
|
826
826
|
handlePreview(res) {
|
|
827
827
|
if (this.preview) {
|
|
@@ -848,7 +848,7 @@ export default {
|
|
|
848
848
|
if (this.kkfileview) {
|
|
849
849
|
this.openKkfileview(file);
|
|
850
850
|
} else {
|
|
851
|
-
util.win.
|
|
851
|
+
util.win.open(
|
|
852
852
|
this.host +
|
|
853
853
|
(url ? url : previewAdjunctOffice) +
|
|
854
854
|
'?cmd=view&bucketName=' +
|
|
@@ -863,7 +863,7 @@ export default {
|
|
|
863
863
|
if (this.kkfileview) {
|
|
864
864
|
this.openKkfileview(file);
|
|
865
865
|
} else {
|
|
866
|
-
util.win.
|
|
866
|
+
util.win.open(
|
|
867
867
|
this.host +
|
|
868
868
|
(url ? url : previewAdjunct2) +
|
|
869
869
|
'/' +
|
|
@@ -904,7 +904,7 @@ export default {
|
|
|
904
904
|
if (this.kkfileview) {
|
|
905
905
|
this.openKkfileview(file);
|
|
906
906
|
} else {
|
|
907
|
-
util.win.
|
|
907
|
+
util.win.open(
|
|
908
908
|
this.host +
|
|
909
909
|
(url ? url : this.previewAdjunct) +
|
|
910
910
|
'?adjunctId=' +
|
|
@@ -913,7 +913,7 @@ export default {
|
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
915
|
} else {
|
|
916
|
-
util.win.
|
|
916
|
+
util.win.open(URL.createObjectURL(file.raw));
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
919
|
}
|
package/src/index.js
CHANGED
package/src/utils/util.js
CHANGED
|
@@ -185,9 +185,15 @@ const ajax = function ({
|
|
|
185
185
|
'mainConfig',
|
|
186
186
|
'jump'
|
|
187
187
|
]);
|
|
188
|
+
let href = '';
|
|
189
|
+
try {
|
|
190
|
+
href = win.top.location.href;
|
|
191
|
+
} catch (error) {
|
|
192
|
+
href = win.location.href;
|
|
193
|
+
}
|
|
188
194
|
if (
|
|
189
|
-
|
|
190
|
-
|
|
195
|
+
href.indexOf('#/login') === -1 &&
|
|
196
|
+
href.indexOf('/login.html') === -1
|
|
191
197
|
) {
|
|
192
198
|
let remind = sessionStorage.getItem('remind');
|
|
193
199
|
if (!remind) {
|
|
@@ -213,36 +219,40 @@ const ajax = function ({
|
|
|
213
219
|
}
|
|
214
220
|
)
|
|
215
221
|
.then(() => {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
pathname
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
222
|
+
try {
|
|
223
|
+
const loginPage = getStorage('login') || getStorage('loginPage');
|
|
224
|
+
if (loginPage) {
|
|
225
|
+
let src;
|
|
226
|
+
if (!startWith(loginPage, ['http', '/'], true)) {
|
|
227
|
+
let pathname = win.top.location.pathname;
|
|
228
|
+
if (pathname !== '/') {
|
|
229
|
+
pathname = pathname.split('/');
|
|
230
|
+
pathname.splice(pathname.length - 1);
|
|
231
|
+
pathname = pathname.join('/');
|
|
232
|
+
src = pathname + '/' + loginPage.replace('./', '');
|
|
233
|
+
} else {
|
|
234
|
+
src = pathname + loginPage.replace('./', '');
|
|
235
|
+
}
|
|
226
236
|
} else {
|
|
227
|
-
src =
|
|
237
|
+
src = loginPage;
|
|
228
238
|
}
|
|
239
|
+
win.top.location.href = src;
|
|
240
|
+
} else if (
|
|
241
|
+
win.top.location.href.indexOf('main.html') > -1
|
|
242
|
+
) {
|
|
243
|
+
win.top.location.href = './login.html';
|
|
229
244
|
} else {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
const hash = win.top.location.hash;
|
|
239
|
-
if (hash) {
|
|
240
|
-
const len = win.top.location.href.indexOf(hash);
|
|
241
|
-
win.top.location.href =
|
|
242
|
-
win.location.href.slice(0, len) + '#/login';
|
|
243
|
-
} else {
|
|
244
|
-
win.top.location.href = '/login.html';
|
|
245
|
+
const hash = win.top.location.hash;
|
|
246
|
+
if (hash) {
|
|
247
|
+
const len = win.top.location.href.indexOf(hash);
|
|
248
|
+
win.top.location.href =
|
|
249
|
+
win.location.href.slice(0, len) + '#/login';
|
|
250
|
+
} else {
|
|
251
|
+
win.top.location.href = '/login.html';
|
|
252
|
+
}
|
|
245
253
|
}
|
|
254
|
+
} catch (error) {
|
|
255
|
+
win.postMessage({ type: 1 }, '*');
|
|
246
256
|
}
|
|
247
257
|
})
|
|
248
258
|
.catch(e => {
|
|
@@ -663,7 +673,13 @@ const debounce = function (callback, delay) {
|
|
|
663
673
|
* @param {String,Array} [key] - 参数名
|
|
664
674
|
**/
|
|
665
675
|
const delUrlParam = function ({ url, key }) {
|
|
666
|
-
let
|
|
676
|
+
let pUrl = '';
|
|
677
|
+
try {
|
|
678
|
+
pUrl = win.top.location.href;
|
|
679
|
+
} catch (error) {
|
|
680
|
+
pUrl = win.location.href;
|
|
681
|
+
}
|
|
682
|
+
let src = url ? decodeURI(url) : decodeURI(pUrl);
|
|
667
683
|
let param = getParams({ url: src });
|
|
668
684
|
if (param && key.length) {
|
|
669
685
|
if (Array.isArray(key)) {
|
|
@@ -1147,6 +1163,21 @@ const getHour = function (datetime) {
|
|
|
1147
1163
|
return datetimeObj.getHours();
|
|
1148
1164
|
};
|
|
1149
1165
|
|
|
1166
|
+
/**
|
|
1167
|
+
* getMyWinTop
|
|
1168
|
+
* @desc 获取同域的top窗口
|
|
1169
|
+
* @param {object} wind - window对象
|
|
1170
|
+
**/
|
|
1171
|
+
const getMyWinTop = function (wind) {
|
|
1172
|
+
wind = wind ? wind : win;
|
|
1173
|
+
try {
|
|
1174
|
+
wind.parent.document;
|
|
1175
|
+
return getMyWinTop(wind.parent);
|
|
1176
|
+
} catch (error) {
|
|
1177
|
+
return wind;
|
|
1178
|
+
}
|
|
1179
|
+
};
|
|
1180
|
+
|
|
1150
1181
|
/**
|
|
1151
1182
|
* getWeekNumber
|
|
1152
1183
|
* @desc 当年第几周
|
|
@@ -1923,15 +1954,20 @@ const isLogined = function ({
|
|
|
1923
1954
|
let quit = getParams('quit') || getParams('logout');
|
|
1924
1955
|
if (quit) {
|
|
1925
1956
|
ajax({ method: 'post', url: logout })
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1957
|
+
.then((res) => {
|
|
1958
|
+
if (res.rCode === 0) {
|
|
1959
|
+
removeStorage();
|
|
1960
|
+
}
|
|
1961
|
+
})
|
|
1962
|
+
.catch(() => { });
|
|
1932
1963
|
return;
|
|
1933
1964
|
}
|
|
1934
|
-
let pathname =
|
|
1965
|
+
let pathname = '';
|
|
1966
|
+
try {
|
|
1967
|
+
pathname = win.top.location.pathname;
|
|
1968
|
+
} catch (error) {
|
|
1969
|
+
pathname = win.location.pathname;
|
|
1970
|
+
}
|
|
1935
1971
|
if (loginPage) {
|
|
1936
1972
|
sessionStorage.setItem('loginPage', loginPage);
|
|
1937
1973
|
if (!startWith(loginPage, ['http', '/'], true)) {
|
|
@@ -1974,25 +2010,44 @@ const isLogined = function ({
|
|
|
1974
2010
|
deviceUnique: results.deviceUnique
|
|
1975
2011
|
}
|
|
1976
2012
|
});
|
|
1977
|
-
|
|
1978
|
-
url
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
2013
|
+
try {
|
|
2014
|
+
let url = delUrlParam({
|
|
2015
|
+
url: win.top.location.href,
|
|
2016
|
+
key: ['serverId', 'authType', 'code', 'sessionId']
|
|
2017
|
+
});
|
|
2018
|
+
win.top.location.href = url;
|
|
2019
|
+
setTimeout(() => {
|
|
2020
|
+
win.top.location.reload();
|
|
2021
|
+
}, 200);
|
|
2022
|
+
} catch (error) {
|
|
2023
|
+
let url = delUrlParam({
|
|
2024
|
+
url: win.location.href,
|
|
2025
|
+
key: ['serverId', 'authType', 'code', 'sessionId']
|
|
2026
|
+
});
|
|
2027
|
+
win.location.href = url;
|
|
2028
|
+
setTimeout(() => {
|
|
2029
|
+
win.location.reload();
|
|
2030
|
+
}, 200);
|
|
2031
|
+
}
|
|
1985
2032
|
break;
|
|
1986
2033
|
case 1:
|
|
1987
2034
|
break;
|
|
1988
2035
|
case 2:
|
|
1989
2036
|
break;
|
|
1990
2037
|
case 3:
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
2038
|
+
try {
|
|
2039
|
+
const href = results.authorizeUrl.replace(
|
|
2040
|
+
'{redirectUri}',
|
|
2041
|
+
encodeURIComponent(win.top.location.href)
|
|
2042
|
+
);
|
|
2043
|
+
win.top.location.href = href;
|
|
2044
|
+
} catch (error) {
|
|
2045
|
+
const href = results.authorizeUrl.replace(
|
|
2046
|
+
'{redirectUri}',
|
|
2047
|
+
encodeURIComponent(win.location.href)
|
|
2048
|
+
);
|
|
2049
|
+
win.location.href = href;
|
|
2050
|
+
}
|
|
1996
2051
|
break;
|
|
1997
2052
|
case 4:
|
|
1998
2053
|
MessageBox.alert(
|
|
@@ -2006,14 +2061,18 @@ const isLogined = function ({
|
|
|
2006
2061
|
'extUserBindHandleId',
|
|
2007
2062
|
results.extUserBindHandleId
|
|
2008
2063
|
);
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
win.top.location.href
|
|
2015
|
-
|
|
2016
|
-
|
|
2064
|
+
try {
|
|
2065
|
+
if (loginPage) {
|
|
2066
|
+
win.top.location.replace(loginPage);
|
|
2067
|
+
} else if (document.referrer) {
|
|
2068
|
+
win.top.location.replace(document.referrer);
|
|
2069
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
2070
|
+
win.top.location.href = './login.html';
|
|
2071
|
+
} else {
|
|
2072
|
+
next('/login');
|
|
2073
|
+
}
|
|
2074
|
+
} catch (error) {
|
|
2075
|
+
win.postMessage({ type: 1 }, '*');
|
|
2017
2076
|
}
|
|
2018
2077
|
}
|
|
2019
2078
|
}
|
|
@@ -2028,14 +2087,18 @@ const isLogined = function ({
|
|
|
2028
2087
|
confirmButtonText: '确定',
|
|
2029
2088
|
type: 'error',
|
|
2030
2089
|
callback: () => {
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
win.top.location.href
|
|
2037
|
-
|
|
2038
|
-
|
|
2090
|
+
try {
|
|
2091
|
+
if (loginPage) {
|
|
2092
|
+
win.top.location.replace(loginPage);
|
|
2093
|
+
} else if (document.referrer) {
|
|
2094
|
+
win.top.location.replace(document.referrer);
|
|
2095
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
2096
|
+
win.top.location.href = './login.html';
|
|
2097
|
+
} else {
|
|
2098
|
+
next('/login');
|
|
2099
|
+
}
|
|
2100
|
+
} catch (error) {
|
|
2101
|
+
win.postMessage({ type: 1 }, '*');
|
|
2039
2102
|
}
|
|
2040
2103
|
}
|
|
2041
2104
|
}
|
|
@@ -2057,14 +2120,18 @@ const isLogined = function ({
|
|
|
2057
2120
|
next();
|
|
2058
2121
|
}
|
|
2059
2122
|
} else {
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
win.top.location.href
|
|
2066
|
-
|
|
2067
|
-
|
|
2123
|
+
try {
|
|
2124
|
+
if (loginPage) {
|
|
2125
|
+
win.top.location.replace(loginPage);
|
|
2126
|
+
} else if (document.referrer) {
|
|
2127
|
+
win.top.location.replace(document.referrer);
|
|
2128
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
2129
|
+
win.top.location.href = './login.html';
|
|
2130
|
+
} else {
|
|
2131
|
+
next('/login');
|
|
2132
|
+
}
|
|
2133
|
+
} catch (error) {
|
|
2134
|
+
win.postMessage({ type: 1 }, '*');
|
|
2068
2135
|
}
|
|
2069
2136
|
}
|
|
2070
2137
|
}
|
|
@@ -2484,30 +2551,30 @@ const setStorage = function ({ type, key, value }) {
|
|
|
2484
2551
|
if (value && typeof value === 'object') {
|
|
2485
2552
|
value = JSON.stringify(value);
|
|
2486
2553
|
}
|
|
2487
|
-
if (type ===
|
|
2554
|
+
if (type === 'localStorage') {
|
|
2488
2555
|
if (typeof key === 'string') {
|
|
2489
|
-
|
|
2556
|
+
localStorage.setItem(key, value);
|
|
2490
2557
|
} else if (Array.isArray(key)) {
|
|
2491
2558
|
for (let i in key) {
|
|
2492
|
-
|
|
2559
|
+
localStorage.setItem(key[i], value);
|
|
2493
2560
|
}
|
|
2494
2561
|
} else {
|
|
2495
2562
|
for (let i in key) {
|
|
2496
2563
|
let val = typeof key[i] === 'object' ? JSON.stringify(key[i]) : key[i];
|
|
2497
|
-
|
|
2564
|
+
localStorage.setItem(i, val);
|
|
2498
2565
|
}
|
|
2499
2566
|
}
|
|
2500
2567
|
} else {
|
|
2501
2568
|
if (typeof key === 'string') {
|
|
2502
|
-
|
|
2569
|
+
sessionStorage.setItem(key, value);
|
|
2503
2570
|
} else if (Array.isArray(key)) {
|
|
2504
2571
|
for (let i in key) {
|
|
2505
|
-
|
|
2572
|
+
sessionStorage.setItem(key[i], value);
|
|
2506
2573
|
}
|
|
2507
2574
|
} else {
|
|
2508
2575
|
for (let i in key) {
|
|
2509
2576
|
let val = typeof key[i] === 'object' ? JSON.stringify(key[i]) : key[i];
|
|
2510
|
-
|
|
2577
|
+
sessionStorage.setItem(i, val);
|
|
2511
2578
|
}
|
|
2512
2579
|
}
|
|
2513
2580
|
}
|
|
@@ -2895,6 +2962,7 @@ export default {
|
|
|
2895
2962
|
getCurrentDate,
|
|
2896
2963
|
getCurrentDateTime,
|
|
2897
2964
|
getHour,
|
|
2965
|
+
getMyWinTop,
|
|
2898
2966
|
getWeekNumber,
|
|
2899
2967
|
getLength,
|
|
2900
2968
|
getMainConfig,
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const { series, src, dest } = require('gulp');
|
|
4
|
-
const sass = require('gulp-sass');
|
|
5
|
-
const autoprefixer = require('gulp-autoprefixer');
|
|
6
|
-
const cssmin = require('gulp-cssmin');
|
|
7
|
-
|
|
8
|
-
function compile() {
|
|
9
|
-
return src('./src/*.scss')
|
|
10
|
-
.pipe(sass.sync())
|
|
11
|
-
.pipe(autoprefixer({
|
|
12
|
-
overrideBrowserslist: ['ie > 9', 'last 2 versions'],
|
|
13
|
-
cascade: false
|
|
14
|
-
}))
|
|
15
|
-
.pipe(cssmin())
|
|
16
|
-
.pipe(dest('./lib'));
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function copyfont() {
|
|
20
|
-
return src('./src/fonts/**')
|
|
21
|
-
.pipe(cssmin())
|
|
22
|
-
.pipe(dest('./lib/fonts'));
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
exports.build = series(compile, copyfont);
|