This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +27
-13
lines changed Expand file tree Collapse file tree 6 files changed +27
-13
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ before_script:
27
27
script :
28
28
# - codecov
29
29
- rm -rf .next
30
- - nvm exec 12.4 .0 npm run build.ci
31
- - nvm exec 12.4 .0 npm run test:ci
30
+ - nvm exec 10.12 .0 npm run build.ci
31
+ - nvm exec 10.12 .0 npm run test:ci
32
32
33
33
cache :
34
34
directories :
Original file line number Diff line number Diff line change @@ -24,8 +24,13 @@ const sr71$ = new SR71({
24
24
let store = null
25
25
let sub$ = null
26
26
27
- export const inAnchor = ( ) => store . setHeaderFix ( false )
28
- export const outAnchor = ( ) => store . setHeaderFix ( true )
27
+ export const inAnchor = ( ) => {
28
+ if ( store ) store . setHeaderFix ( false )
29
+ }
30
+
31
+ export const outAnchor = ( ) => {
32
+ if ( store ) store . setHeaderFix ( true )
33
+ }
29
34
30
35
export const loadJobs = ( page = 1 ) => {
31
36
const { curCommunity } = store
Original file line number Diff line number Diff line change @@ -38,8 +38,13 @@ const sr71$ = new SR71({
38
38
let store = null
39
39
let sub$ = null
40
40
41
- export const inAnchor = ( ) => store . setHeaderFix ( false )
42
- export const outAnchor = ( ) => store . setHeaderFix ( true )
41
+ export const inAnchor = ( ) => {
42
+ if ( store ) store . setHeaderFix ( false )
43
+ }
44
+
45
+ export const outAnchor = ( ) => {
46
+ if ( store ) store . setHeaderFix ( true )
47
+ }
43
48
44
49
export const loadPosts = ( page = 1 ) => {
45
50
const { curCommunity } = store
@@ -247,7 +252,6 @@ export const useInit = _store =>
247
252
store = _store
248
253
// log('effect init')
249
254
sub$ = sr71$ . data ( ) . subscribe ( $solver ( DataSolver , ErrSolver ) )
250
-
251
255
/*
252
256
NOTE: city communities list is not supported by SSR
253
257
need load manully
Original file line number Diff line number Diff line change @@ -23,8 +23,13 @@ const sr71$ = new SR71({
23
23
let sub$ = null
24
24
let store = null
25
25
26
- export const inAnchor = ( ) => store . setHeaderFix ( false )
27
- export const outAnchor = ( ) => store . setHeaderFix ( true )
26
+ export const inAnchor = ( ) => {
27
+ if ( store ) store . setHeaderFix ( false )
28
+ }
29
+
30
+ export const outAnchor = ( ) => {
31
+ if ( store ) store . setHeaderFix ( true )
32
+ }
28
33
29
34
export const loadRepos = ( page = 1 ) => {
30
35
const { curCommunity } = store
Original file line number Diff line number Diff line change 1
1
{
2
2
"baseUrl" : " http://localhost:3000" ,
3
3
"projectId" : " w5dkjg" ,
4
- "pageLoadTimeout" : 1000000
4
+ "pageLoadTimeout" : 6000000
5
5
}
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh |
5
5
[[ -s $HOME /.nvm/nvm.sh ]] && . $HOME /.nvm/nvm.sh
6
6
echo " > check nvm"
7
7
nvm --version
8
- echo " > use node 12.4 .0"
9
- nvm install 12.4 .0
10
- nvm alias default 12.4 .0
8
+ echo " > use node 10.12 .0"
9
+ nvm install 10.12 .0
10
+ nvm alias default 10.12 .0
11
11
echo " > install node done"
12
12
node --version
13
13
pwd
You can’t perform that action at this time.
0 commit comments