Skip to content

Commit

Permalink
Plug some reason chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
OCTO-FRAH committed Jun 26, 2020
1 parent 43e9c38 commit d004908
Show file tree
Hide file tree
Showing 13 changed files with 50 additions and 34 deletions.
49 changes: 31 additions & 18 deletions src/frontend/src/pages/Chapter/Chapter.data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ import { data as camelDataBuiltIns } from "../Chapters/Camel/ChapterBuiltIns";
import { data as camelDataConditionals } from "../Chapters/Camel/ChapterConditionals";
import { data as camelDataDeployContract } from "../Chapters/Camel/ChapterDeployContract";
import { data as camelDataFA12 } from "../Chapters/Camel/ChapterFA12";
import { data as camelFA20 } from "../Chapters/Camel/ChapterFA20";
import { data as camelFA20Operator } from "../Chapters/Camel/ChapterFA20Operator";
import { data as camelFA20Hook } from "../Chapters/Camel/ChapterFA20Hook";
import { data as camelDataFA20 } from "../Chapters/Camel/ChapterFA20";
import { data as camelDataFA20Operator } from "../Chapters/Camel/ChapterFA20Operator";
import { data as camelDataFA20Hook } from "../Chapters/Camel/ChapterFA20Hook";
import { data as camelDataFunctions } from "../Chapters/Camel/ChapterFunctions";
import { data as camelDataInteractions } from "../Chapters/Camel/ChapterInteractions";
import { data as camelDataInterop } from "../Chapters/Camel/ChapterInterop";
Expand Down Expand Up @@ -63,6 +63,8 @@ import { data as reasonDataBuiltIns } from "../Chapters/Reason/ChapterBuiltIns";
import { data as reasonDataConditionals } from "../Chapters/Reason/ChapterConditionals";
import { data as reasonDataDeployContract } from "../Chapters/Reason/ChapterDeployContract";
import { data as reasonDataFA12 } from "../Chapters/Reason/ChapterFA12";
import { data as reasonDataFA20 } from "../Chapters/Reason/ChapterFA20";
import { data as reasonDataFA20Operator } from "../Chapters/Reason/ChapterFA20Operator";
import { data as reasonDataFunctions } from "../Chapters/Reason/ChapterFunctions";
import { data as reasonDataInteractions } from "../Chapters/Reason/ChapterInteractions";
import { data as reasonDataInterop } from "../Chapters/Reason/ChapterInterop";
Expand Down Expand Up @@ -315,28 +317,28 @@ export const chapterData = [
data: camelDataInterop,
},
{
pathname: "/camel/chapter-fa2",
pathname: "/camel/chapter-preprocessor",
language: "CameLIGO",
name: "26 - Camel - FA2",
data: camelFA20,
name: "27 - Camel - Preprocessor",
data: camelDataPreprocessor,
},
{
pathname: "/camel/chapter-fa2-operator",
pathname: "/camel/chapter-fa2",
language: "CameLIGO",
name: "27 - Camel - FA2 Operator",
data: camelFA20Operator,
name: "28 - Camel - FA2",
data: camelDataFA20,
},
{
pathname: "/camel/chapter-fa2-hook",
pathname: "/camel/chapter-fa2-operator",
language: "CameLIGO",
name: "28 - Camel - FA2 Hook",
data: camelFA20Hook,
name: "29 - Camel - FA2 Operator",
data: camelDataFA20Operator,
},
{
pathname: "/camel/chapter-preprocessor",
pathname: "/camel/chapter-fa2-hook",
language: "CameLIGO",
name: "30 - Camel - Preprocessor",
data: camelDataPreprocessor,
name: "30 - Camel - FA2 Hook",
data: camelDataFA20Hook,
},


Expand Down Expand Up @@ -458,15 +460,26 @@ export const chapterData = [
{
pathname: '/reason/chapter-interop',
language: 'ReasonLIGO',
name: '25 - Reason - Interoperability',
name: '26 - Reason - Interoperability',
data: reasonDataInterop,
},
{
pathname: '/reason/chapter-preprocessor',
language: 'ReasonLIGO',
name: '25 - Reason - Preprocessor',
name: '27 - Reason - Preprocessor',
data: reasonDataPreprocessor,
},

{
pathname: "/reason/chapter-fa2",
language: "ReasonLIGO",
name: "28 - Reason - FA2",
data: reasonDataFA20,
},
{
pathname: "/reason/chapter-fa2-operator",
language: "ReasonLIGO",
name: "29 - Reason - FA2 Operator",
data: reasonDataFA20Operator,
},

]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Chapter 23 : Financial Asset 2.0
# Chapter 28 : Financial Asset 2.0

<dialog character="mechanics">Captain, Let's create a ship token.</dialog>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Chapter 25 : Financial Asset 2.0 - Tranfer Hook
# Chapter 30 : Financial Asset 2.0 - Tranfer Hook

<dialog character="mechanics">Captain, all space pirate should have a hook like in old times.</dialog>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Chapter 24 : Financial Asset 2.0 - Operators and Permissions
# Chapter 29 : Financial Asset 2.0 - Operators and Permissions

<dialog character="mechanics">Captain, why are you trying to change the part yourself? Just write a function on the terminal and send it to a droid.</dialog>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Chapter 29 : Interoperability with Michelson
# Chapter 26 : Interoperability with Michelson

<dialog character="alien">We need to hack aliens, decompile their code to understand how their informatic works </dialog>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Chapter 20 : Preprocessor
# Chapter 27 : Preprocessor

<dialog character="mechanics"></dialog>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Chapter 29 : Interoperability with Michelson
# Chapter 26 : Interoperability with Michelson

<dialog character="alien">We need to hack aliens, decompile their code to understand how their informatic works </dialog>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Chapter 20 : Preprocessor
# Chapter 27 : Preprocessor

<dialog character="mechanics"></dialog>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Chapter 23 : Financial Asset 2.0
# Chapter 28 : Financial Asset 2.0

<dialog character="mechanics">Captain, Let's create a ship token.</dialog>

Expand Down
13 changes: 8 additions & 5 deletions src/frontend/src/pages/Chapters/Reason/ChapterFA20/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@
import course from "!raw-loader!./course.md";
/* eslint import/no-webpack-loader-syntax: off */
// @ts-ignore
import exercise from "!raw-loader!./exercise.mligo";
import exercise from "!raw-loader!./exercise.religo";
/* eslint import/no-webpack-loader-syntax: off */
// @ts-ignore
import solution from "!raw-loader!./solution.mligo";
import solution from "!raw-loader!./solution.religo";
/* eslint import/no-webpack-loader-syntax: off */
// @ts-ignore
import support1 from "!raw-loader!./fungible_token.mligo";
import support1 from "!raw-loader!./caller.religo";
/* eslint import/no-webpack-loader-syntax: off */
// @ts-ignore
import support2 from "!raw-loader!./caller.mligo";
import support2 from "!raw-loader!./tzip-12/fa2_interface.religo";
/* eslint import/no-webpack-loader-syntax: off */
// @ts-ignore
import support3 from "!raw-loader!./tzip-12/errors.religo";

export const data = { course, exercise, solution, support1, support2 };
export const data = { course, exercise, solution, support1, support2 , support3 };
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Chapter 24 : Financial Asset 2.0 - Operators and Permissions
# Chapter 29 : Financial Asset 2.0 - Operators and Permissions

<dialog character="mechanics">Captain, why are you trying to change the part yourself? Just write a function on the terminal and send it to a droid.</dialog>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Chapter 29 : Interoperability with Michelson
# Chapter 26 : Interoperability with Michelson

<dialog character="alien">We need to hack aliens, decompile their code to understand how their informatic works </dialog>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Chapter 20 : Preprocessor
# Chapter 27 : Preprocessor

<dialog character="mechanics"></dialog>

Expand Down

0 comments on commit d004908

Please sign in to comment.