2.3.2 • Published 22 days ago

@sdkgen/playground v2.3.2

Weekly downloads
1,770
License
-
Repository
github
Last release
22 days ago

Sdkgen Playground

Getting Started

To run a development server, run the command npm start. The app will be available on http://localhost:4200/ and will automatically reload when changes are made.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Components

The sdkgen Playground is split in a few components:

  • app.component is where the base interface lives. It is the entry point of the application and holds the top bar (tab-nav.component) and the main content (varies per tab).
  • console.component is the component that holds the console, used to show logs and XHR requests from editors.
  • tab-nav.component is the top bar. It is responsible for switching between sdkgen APIs.
  • simple-call.component is the component that holds the editor for what we call "simple calls", the calls where users don't write code, just the arguments and click the Run button.
  • tab-editor.component is the advanced editor component. Here, the user can write code containing function calls to a sdkgen API and run it.
  • type-details.component is the component that holds the details of a type. It receives a type through Material Dialog's DATA interface and shows information about it (e.g. its properties).
  • tab-home.component is the home tab. It is the default tab and shows the list of sdkgen functions and their documentation.

Other files

  • filter.pipe is the pipe that filters the list of sdkgen functions.
  • responsive.service is the service that observes the screen width and lets the app know if it is in mobile or desktop mode.
  • sdkgen.docs holds the documentation for sdkgen's primitive types.
  • sdkgen.service contains code generation methods.
  • utils/code-execution.ts is the runtime code needed by advanced editor component to integrate the code being ran with our interface.

Code style and further help

This code respects Cubos' ESLint rules. You can find the overriden rules in the .eslintrc.json file.

For further help, check out:

2.3.2

4 months ago

2.3.1

7 months ago

2.2.0

2 years ago

2.1.0

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.6.2

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.5

3 years ago

1.5.4

3 years ago

1.5.3

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.4

3 years ago

1.4.3

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.2

3 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.65

4 years ago

1.0.62

4 years ago

1.0.61

4 years ago

1.0.64

4 years ago

1.0.63

4 years ago

0.1.19

4 years ago

0.1.18

4 years ago

0.1.17

4 years ago

0.1.15

4 years ago

0.1.14

4 years ago

0.1.12

4 years ago

0.1.13

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago