-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'discovery' of https://github.com/unarxiv/CVPM
- Loading branch information
Showing
10 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export { default as system } from './system'; | ||
export { default as package } from './package'; |
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,12 @@ | ||
import { BaseContext } from 'koa'; | ||
import { Package } from '../dynamo/model' | ||
|
||
export default class PackageController { | ||
public static async importPackage (ctx: BaseContext) { | ||
const toImportPackage : Package = new Package(); | ||
console.log(ctx.body) | ||
toImportPackage.isSymbol = true; | ||
toImportPackage.linkedTo = ctx.body.linkedTo; | ||
console.log(toImportPackage) | ||
} | ||
} |
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,3 +1,16 @@ | ||
import mapper from './dynamo' | ||
import { Package } from './model' | ||
import { Guid } from 'guid-typescript'; | ||
/** | ||
* Following will be object manipulations | ||
*/ | ||
*/ | ||
function putPackage (isSymbol: boolean, linkedTo: string) { | ||
const toPutPackage = Object.assign(new Package, { | ||
id: Guid.create(), | ||
isSymbol: isSymbol, | ||
linkedTo: linkedTo | ||
}) | ||
mapper.put(toPutPackage).then(objectSaved => { | ||
console.log(objectSaved) | ||
}) | ||
} |
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 |
---|---|---|
|
@@ -22,3 +22,7 @@ class Package { | |
@attribute() | ||
linkedTo: string; | ||
} | ||
|
||
export { | ||
Package | ||
} |
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