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:
2727script :
2828 # - codecov
2929 - 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
3232
3333cache :
3434 directories :
Original file line number Diff line number Diff line change @@ -24,8 +24,13 @@ const sr71$ = new SR71({
2424let store = null
2525let sub$ = null
2626
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+ }
2934
3035export const loadJobs = ( page = 1 ) => {
3136 const { curCommunity } = store
Original file line number Diff line number Diff line change @@ -38,8 +38,13 @@ const sr71$ = new SR71({
3838let store = null
3939let sub$ = null
4040
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+ }
4348
4449export const loadPosts = ( page = 1 ) => {
4550 const { curCommunity } = store
@@ -247,7 +252,6 @@ export const useInit = _store =>
247252 store = _store
248253 // log('effect init')
249254 sub$ = sr71$ . data ( ) . subscribe ( $solver ( DataSolver , ErrSolver ) )
250-
251255 /*
252256 NOTE: city communities list is not supported by SSR
253257 need load manully
Original file line number Diff line number Diff line change @@ -23,8 +23,13 @@ const sr71$ = new SR71({
2323let sub$ = null
2424let store = null
2525
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+ }
2833
2934export const loadRepos = ( page = 1 ) => {
3035 const { curCommunity } = store
Original file line number Diff line number Diff line change 11{
22 "baseUrl" : " http://localhost:3000" ,
33 "projectId" : " w5dkjg" ,
4- "pageLoadTimeout" : 1000000
4+ "pageLoadTimeout" : 6000000
55}
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 |
55[[ -s $HOME /.nvm/nvm.sh ]] && . $HOME /.nvm/nvm.sh
66echo " > check nvm"
77nvm --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
1111echo " > install node done"
1212node --version
1313pwd
You can’t perform that action at this time.
0 commit comments