This file contains hidden or 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
| name: Merge Assist | |
| defaults: | |
| run: | |
| working-directory: api | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: |
This file contains hidden or 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
| conn.SetReadDeadline(time.Now().Add(2000 * time.Millisecond)) | |
| edgeData, err := bufio.NewReader(conn).ReadString('\n') // Wait for next piece of data | |
| if err == io.EOF { | |
| return | |
| } | |
| // if err == ??? { // This is a timeout } | |
| if err != nil { | |
| log.Println(err) | |
| break | |
| } |
This file contains hidden or 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
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "defaultProfile": "{09dc5eef-6840-4050-ae69-21e55e6a2e62}", | |
| "initialRows": 30, | |
| "initialCols": 120, | |
| "alwaysShowTabs": true, | |
| "showTerminalTitleInTitlebar": true, | |
| "experimental_showTabsInTitlebar": true, | |
| "profiles": [ | |
| { |
This file contains hidden or 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
| // Mixins.styl | |
| has($name) | |
| /&__{$name} | |
| {block} | |
| variant($name) | |
| /&--{$name} | |
| {block} | |
This file contains hidden or 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
| call: (view, funcName, args...) -> | |
| if @views[view].ready then @views[view]['model'][funcName].apply(null, args) | |
| else @views[view].funcs.push({name: funcName, args: args}) |
This file contains hidden or 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
| // app.js call method. | |
| call: function(view, name, args = []) { | |
| if(this.viewData[view].ready == true) { | |
| this.viewData[view].model[name](args); | |
| } else { | |
| this.viewData[view].funcs_to_call.push({name: name, args: args}); | |
| } | |
| } | |
| // updated for loop inside each view |
This file contains hidden or 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
| ... | |
| <body id="mainApp"> | |
| <component is="@{{ currentView }}" app="@{{@ app }}" keep-alive></component> | |
| </body> | |
| ... |
This file contains hidden or 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
| var Vue = require('vue'); | |
| var app = new Vue({ | |
| el: 'body#mainApp', | |
| data: { | |
| currentView: 'loading-view', | |
| app: {}, | |
| viewData: { | |
| 'edit-view': { |
This file contains hidden or 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
| module.exports = { | |
| data: function() { | |
| return { | |
| external: {} | |
| }; | |
| }, | |
| props: [ | |
| 'app' | |
| ], |
This file contains hidden or 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
| var methods = this.app.viewData[view].funcs_to_call; | |
| for(var i in methods) | |
| { | |
| this[methods[i]](); | |
| } |
NewerOlder