This repository has been archived by the owner on Jul 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
1,160 additions
and
27 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -41,4 +41,3 @@ nbproject | |
*.sublime-* | ||
*.atom-* | ||
.tern-* | ||
jsconfig.json |
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,18 @@ | ||
{ | ||
"compilerOptions": { | ||
"charset": "utf8", | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"target": "esnext", | ||
"noEmit": true, | ||
"checkJs": false, | ||
"noImplicitAny": true | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"**/node_modules/*" | ||
], | ||
"typeAcquisition": { | ||
"enable": true | ||
} | ||
} |
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,25 @@ | ||
declare module '@atlas.js/action' { | ||
import Component from '@atlas.js/component' | ||
|
||
/** | ||
* Use this class to implement custom high-level "actions" or "operations" in your code | ||
* | ||
* An action could be thought of as a controller of sorts in the MVC architecture. The general | ||
* idea of actions is that each class represents a group of releated operations which yield a | ||
* specific end result. They should be callable from anywhere and should not be tied to a | ||
* particular interface (ie. an HTTP server or a REPL session) - in other words, the idea is to | ||
* make them as reusable as possible. | ||
* | ||
* Actions can be completely standalone or they might call other, lower-level actions or interact | ||
* with services to manipulate external resources. Generally actions are called from some kind of | ||
* externally available entry point, like an HTTP interface, a REPL session, a custom socket etc. | ||
* | ||
* Actions are intended to encapsulate "business-specific" or re-usable code/behaviour. | ||
* | ||
* @abstract | ||
*/ | ||
export default abstract class Action extends Component { | ||
/** @private */ | ||
static type: 'action' | ||
} | ||
} |
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
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
Oops, something went wrong.