Merge branch 'webide/update-example-names' into 'dev'

webide/update webide example names for consistency

See merge request ligolang/ligo!659
This commit is contained in:
Jev Björsell 2020-06-03 16:14:48 +00:00
commit ac124b0c4d
6 changed files with 15 additions and 11 deletions

View File

@ -1,5 +1,5 @@
(*_* (*_*
name: CameLIGO Contract name: Increment Contract (CameLIGO)
language: cameligo language: cameligo
compile: compile:
entrypoint: main entrypoint: main

View File

@ -1,5 +1,5 @@
(*_* (*_*
name: PascaLIGO Contract name: Increment Contract (PascaLIGO)
language: pascaligo language: pascaligo
compile: compile:
entrypoint: main entrypoint: main

View File

@ -1,5 +1,5 @@
(*_* (*_*
name: ReasonLIGO Contract name: Increment Contract (ReasonLIGO)
language: reasonligo language: reasonligo
compile: compile:
entrypoint: main entrypoint: main

View File

@ -56,7 +56,7 @@ export const Examples = () => {
return ( return (
<Container> <Container>
<Header>Examples</Header> <Header>Contract Examples</Header>
<MenuContainer> <MenuContainer>
{examples.map(example => { {examples.map(example => {
return ( return (

View File

@ -31,14 +31,18 @@ export const DEFAULT_STATE: ExamplesState = {
list: [] list: []
}; };
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
// The name value configured in this list will only be for the development environment.
// For other environments, the name value will be taken directly from your contract's yaml configuration.
DEFAULT_STATE.list = [ DEFAULT_STATE.list = [
{ id: 'MzkMQ1oiVHJqbcfUuVFKTw', name: 'Increment Example CameLIGO ' }, { id: 'FEb62HL7onjg1424eUsGSg', name: 'Increment (PascaLIGO)' },
{ id: 'FEb62HL7onjg1424eUsGSg', name: 'Increment Example PascaLIGO' }, { id: 'MzkMQ1oiVHJqbcfUuVFKTw', name: 'Increment (CameLIGO)' },
{ id: 'JPhSOehj_2MFwRIlml0ymQ', name: 'Increment Example ReasonLIGO' }, { id: 'JPhSOehj_2MFwRIlml0ymQ', name: 'Increment (ReasonLIGO)' },
{ id: 'ehDv-Xaf70mQoiPhQDTAUQ', name: 'ID Example CameLIGO' }, { id: 'yP-THvmURsaqHxpwCravWg', name: 'ID (PascaLIGO)' },
{ id: 'CpnK7TFuUjJiQTT8KiiGyQ', name: 'ID Example ReasonLIGO' }, { id: 'ehDv-Xaf70mQoiPhQDTAUQ', name: 'ID (CameLIGO)' },
{ id: 'yP-THvmURsaqHxpwCravWg', name: 'ID Example PascaLIGO' }, { id: 'CpnK7TFuUjJiQTT8KiiGyQ', name: 'ID (ReasonLIGO)' }
]; ];
} }

View File

@ -24,7 +24,7 @@ describe('Share', () => {
await responseCallback; await responseCallback;
const actualShareLink = await page.evaluate(getInputValue, 'share-link'); const actualShareLink = await page.evaluate(getInputValue, 'share-link');
const expectedShareLink = `${API_HOST}/p/2GnQR0cUYeO7feAw71SJYQ` const expectedShareLink = `${API_HOST}/p/Q6NsW75ot2Tym5I4JU8AgQ`
expect(actualShareLink).toEqual(expectedShareLink); expect(actualShareLink).toEqual(expectedShareLink);
done(); done();