This repository has been archived by the owner on Jul 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: webapp rename application to program
- Loading branch information
1 parent
457f00e
commit 1e92d21
Showing
38 changed files
with
196 additions
and
196 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
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import _ from 'lodash'; | ||
|
||
import api from '.'; | ||
|
||
const DEFAULT_PAGE_SIZE = 100; | ||
|
||
const PROGRAM_DETAIL_VERSION = '[email protected]'; | ||
|
||
export function apiGetProgramDetail({programId, version}) { | ||
return api( | ||
`/explorer/programs/${encodeURIComponent(programId)}?v=${version || | ||
PROGRAM_DETAIL_VERSION}`, | ||
); | ||
} | ||
|
||
const PROGRAM_INDEX_VERSION = '[email protected]'; | ||
|
||
export function apiGetProgramsTimelinePage({ | ||
start = '', | ||
count = DEFAULT_PAGE_SIZE, | ||
direction = '-', | ||
version, | ||
}) { | ||
const queryString = _.toPairs({ | ||
start, | ||
count, | ||
direction, | ||
v: version || PROGRAM_INDEX_VERSION, | ||
}) | ||
.map(([k, v]) => `${k}=${encodeURIComponent(v)}`) | ||
.join('&'); | ||
|
||
return api(`/explorer/programs/index?${queryString}`); | ||
} |
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
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
File renamed without changes
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
8 changes: 4 additions & 4 deletions
8
...s/Applications/Detail/ApplicationsTab.jsx → ...nents/Programs/Detail/ApplicationsTab.jsx
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,17 +1,17 @@ | ||
// @flow | ||
import React from 'react'; | ||
|
||
import Application from './Application'; | ||
import Program from './Program'; | ||
|
||
const ApplicationsTab = ({applications}) => { | ||
const ProgramsTab = ({programs}) => { | ||
return ( | ||
<div> | ||
<Application | ||
<Program | ||
id="0xAA15A3E6b97d09653b8b8d9c9e1D80daf5ba81e8" | ||
accounts={[]} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ApplicationsTab; | ||
export default ProgramsTab; |
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
File renamed without changes.
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
File renamed without changes.
Oops, something went wrong.