-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into addprofile
- Loading branch information
Showing
251 changed files
with
11,839 additions
and
13,826 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: deploy docs on gnolang/docs.gno.land repository | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "docs/**" | ||
|
||
jobs: | ||
trigger-netlify-docs-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.DOCS_DEPLOY_PAT }} | ||
script: | | ||
await github.rest.actions.createworkflowDispatch({ | ||
owner: 'gnolang', | ||
repo: 'docs.gno.land', | ||
workflow_id: 'netlify.yml', | ||
ref: 'main' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package emitter | ||
|
||
import ( | ||
"sync" | ||
|
||
"github.com/gnolang/gno/contribs/gnodev/pkg/emitter" | ||
"github.com/gnolang/gno/contribs/gnodev/pkg/events" | ||
) | ||
|
||
// ServerEmitter is an `emitter.Emitter` | ||
var _ emitter.Emitter = (*ServerEmitter)(nil) | ||
|
||
type ServerEmitter struct { | ||
events []events.Event | ||
muEvents sync.Mutex | ||
} | ||
|
||
func (m *ServerEmitter) Emit(evt events.Event) { | ||
m.muEvents.Lock() | ||
defer m.muEvents.Unlock() | ||
|
||
m.events = append(m.events, evt) | ||
} | ||
|
||
func (m *ServerEmitter) NextEvent() (evt events.Event) { | ||
m.muEvents.Lock() | ||
defer m.muEvents.Unlock() | ||
|
||
if len(m.events) > 0 { | ||
// pull next event from the list | ||
evt, m.events = m.events[0], m.events[1:] | ||
} | ||
|
||
return evt | ||
} |
Oops, something went wrong.