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
1 parent
cc6078b
commit 4fe1098
Showing
9 changed files
with
19 additions
and
21 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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { Action } from '@stacksjs/actions' | ||
import { Deployment } from '@stacksjs/orm' | ||
// import { Deployment } from '@stacksjs/orm' | ||
|
||
export default new Action({ | ||
name: 'GetDeploymentCount', | ||
description: 'Gets the total number of deployments.', | ||
apiResponse: true, | ||
|
||
async handle() { | ||
return Deployment.count() | ||
// return Deployment.count() | ||
}, | ||
}) |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { Action } from '@stacksjs/actions' | ||
import { Library } from '@stacksjs/orm' | ||
// import { Library } from '@stacksjs/orm' | ||
|
||
export default new Action({ | ||
name: 'GetDownloadCount', | ||
description: 'Gets the total number of downloads.', | ||
apiResponse: true, | ||
|
||
async handle() { | ||
return Library.downloadCount() | ||
// return Library.downloadCount() | ||
}, | ||
}) |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { Action } from '@stacksjs/actions' | ||
import { Commit } from '@stacksjs/orm' | ||
// import { Commit } from '@stacksjs/orm' | ||
|
||
export default new Action({ | ||
name: 'GetRecentCommits', | ||
description: 'Gets recent commits.', | ||
apiResponse: true, | ||
|
||
async handle() { | ||
return Commit.recent(3) | ||
// return Commit.recent(3) | ||
}, | ||
}) |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { Action } from '@stacksjs/actions' | ||
import { Deployment } from '@stacksjs/orm' | ||
// import { Deployment } from '@stacksjs/orm' | ||
|
||
export default new Action({ | ||
name: 'GetRecentDeployments', | ||
description: 'Gets recent deployments.', | ||
apiResponse: true, | ||
|
||
async handle() { | ||
return Deployment.recent(3) | ||
// return Deployment.recent(3) | ||
}, | ||
}) |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { Action } from '@stacksjs/actions' | ||
import { Subscriber } from '@stacksjs/orm' | ||
// import { Subscriber } from '@stacksjs/orm' | ||
|
||
export default new Action({ | ||
name: 'GetSubscriberCount', | ||
description: 'Gets the total number of subscribers.', | ||
apiResponse: true, | ||
|
||
async handle() { | ||
return Subscriber.count() | ||
// return Subscriber.count() | ||
}, | ||
}) |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { Action } from '@stacksjs/actions' | ||
import { User } from '@stacksjs/orm' | ||
// import { User } from '@stacksjs/orm' | ||
|
||
export default new Action({ | ||
name: 'GetTotalUsers', | ||
description: 'Gets the total number of users.', | ||
apiResponse: true, | ||
|
||
async handle() { | ||
return User.count() | ||
// return User.count() | ||
}, | ||
}) |
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