xs-common-plugins 1.4.0 → 1.4.2
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.
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<component name="InspectionProjectProfileManager">
|
|
2
|
+
<profile version="1.0">
|
|
3
|
+
<option name="myName" value="Project Default" />
|
|
4
|
+
<inspection_tool class="CssInvalidPropertyValue" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
5
|
+
<inspection_tool class="HtmlRequiredAltAttribute" enabled="false" level="WARNING" enabled_by_default="false" />
|
|
6
|
+
<inspection_tool class="HtmlUnknownAttribute" enabled="true" level="WARNING" enabled_by_default="true">
|
|
7
|
+
<option name="myValues">
|
|
8
|
+
<value>
|
|
9
|
+
<list size="3">
|
|
10
|
+
<item index="0" class="java.lang.String" itemvalue="src" />
|
|
11
|
+
<item index="1" class="java.lang.String" itemvalue="open-type" />
|
|
12
|
+
<item index="2" class="java.lang.String" itemvalue="class" />
|
|
13
|
+
</list>
|
|
14
|
+
</value>
|
|
15
|
+
</option>
|
|
16
|
+
<option name="myCustomValuesEnabled" value="true" />
|
|
17
|
+
</inspection_tool>
|
|
18
|
+
<inspection_tool class="HtmlUnknownTag" enabled="true" level="WARNING" enabled_by_default="true">
|
|
19
|
+
<option name="myValues">
|
|
20
|
+
<value>
|
|
21
|
+
<list size="13">
|
|
22
|
+
<item index="0" class="java.lang.String" itemvalue="nobr" />
|
|
23
|
+
<item index="1" class="java.lang.String" itemvalue="noembed" />
|
|
24
|
+
<item index="2" class="java.lang.String" itemvalue="comment" />
|
|
25
|
+
<item index="3" class="java.lang.String" itemvalue="noscript" />
|
|
26
|
+
<item index="4" class="java.lang.String" itemvalue="embed" />
|
|
27
|
+
<item index="5" class="java.lang.String" itemvalue="script" />
|
|
28
|
+
<item index="6" class="java.lang.String" itemvalue="page" />
|
|
29
|
+
<item index="7" class="java.lang.String" itemvalue="contact-button" />
|
|
30
|
+
<item index="8" class="java.lang.String" itemvalue="web-view" />
|
|
31
|
+
<item index="9" class="java.lang.String" itemvalue="block" />
|
|
32
|
+
<item index="10" class="java.lang.String" itemvalue="scroll-view" />
|
|
33
|
+
<item index="11" class="java.lang.String" itemvalue="swiper" />
|
|
34
|
+
<item index="12" class="java.lang.String" itemvalue="swiper-item" />
|
|
35
|
+
</list>
|
|
36
|
+
</value>
|
|
37
|
+
</option>
|
|
38
|
+
<option name="myCustomValuesEnabled" value="true" />
|
|
39
|
+
</inspection_tool>
|
|
40
|
+
<inspection_tool class="JSEqualityComparisonWithCoercion" enabled="false" level="WARNING" enabled_by_default="false" />
|
|
41
|
+
</profile>
|
|
42
|
+
</component>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/xs-common-plugins.iml" filepath="$PROJECT_DIR$/.idea/xs-common-plugins.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
package/.idea/vcs.xml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$">
|
|
5
|
+
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
7
|
+
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
+
</content>
|
|
9
|
+
<orderEntry type="inheritedJdk" />
|
|
10
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
+
</component>
|
|
12
|
+
</module>
|
package/package.json
CHANGED
|
@@ -10,9 +10,14 @@ function trackerSendUpdateChecker({ action } = {}) {
|
|
|
10
10
|
})
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
const DURATION = 1000 * 60 * 30
|
|
14
13
|
export default {
|
|
15
14
|
name: 'UpdateChecker',
|
|
15
|
+
props:{
|
|
16
|
+
time: {
|
|
17
|
+
type: Number,
|
|
18
|
+
default: 1000 * 60 * 5
|
|
19
|
+
}
|
|
20
|
+
},
|
|
16
21
|
data() {
|
|
17
22
|
return {
|
|
18
23
|
md5: '',
|
|
@@ -38,7 +43,7 @@ export default {
|
|
|
38
43
|
trackerSendUpdateChecker({ action: '检测到新版本通知用户' })
|
|
39
44
|
}
|
|
40
45
|
})
|
|
41
|
-
},
|
|
46
|
+
}, this.time)
|
|
42
47
|
},
|
|
43
48
|
stop() {
|
|
44
49
|
if (!this.interval) return
|
package/src/store/modules/app.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Cookies from 'js-cookie'
|
|
2
2
|
|
|
3
3
|
const state = {
|
|
4
|
+
requestNum:0,
|
|
4
5
|
sidebar: {
|
|
5
6
|
opened: true, //侧边栏默认关闭
|
|
6
7
|
withoutAnimation: false
|
|
@@ -10,6 +11,13 @@ const state = {
|
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
const mutations = {
|
|
14
|
+
SET_REQUESTNUM: (state, type) => {
|
|
15
|
+
if (type === 'add') {
|
|
16
|
+
state.requestNum++
|
|
17
|
+
} else if (type === 'edd') {
|
|
18
|
+
state.requestNum--
|
|
19
|
+
}
|
|
20
|
+
},
|
|
13
21
|
TOGGLE_SIDEBAR: state => {
|
|
14
22
|
state.sidebar.opened = !state.sidebar.opened
|
|
15
23
|
state.sidebar.withoutAnimation = false
|