Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codelab UI - initial setup #1807

Merged
merged 23 commits into from
Apr 6, 2021
Merged

Codelab UI - initial setup #1807

merged 23 commits into from
Apr 6, 2021

Conversation

johnpryan
Copy link
Contributor

This adds the bare-bones codelab UI with step features and compilation. (#1763)

Screen Shot 2021-04-02 at 11 16 11 AM

Testing

Check out this branch and serve:

grind serve

Open a codelab web/example/codelabs:

open http://localhost:8000/codelabs.html?webserver=/example/codelabs/flutter

@google-cla google-cla bot added the cla: yes label Apr 2, 2021
@johnpryan johnpryan mentioned this pull request Apr 2, 2021
18 tasks
import 'package:meta/meta.dart';

import 'codelab.dart';

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: less whitespace?

@johnpryan johnpryan merged commit 89a4c47 into dart-lang:codelabs Apr 6, 2021
johnpryan added a commit that referenced this pull request Apr 20, 2021
* Codelab UI - initial setup (#1807)

* initial setup

* setup YAML parsing

* format

* load codelab files

* move logic into CodelabUi class, start stubbing out code

* Set up right panels

* Add CodeMirror editor

* Add CodelabState

* fix HTML

* Add step buttons

* remove print

* Load code and update when the step changes

* Add run button and console panel

* add flutter_codelab

* Ignore /example/codelabs directory in analysis and builders

* Add tabs to console panel

* Get flutter compilation working

* add TODO

* exclude codelabs in dart_source_cleanup build step

* remove whitespace

* Add Github codelab fetcher (#1811)

* Add GithubCodelabFetcher

* make gh_ref and gh_path optional query parameters

* Add show solution button to Codelab UI (#1819)

* add codelabs.html to allowed files in main.py

* Add show solution button

* Run 'dart format --fix .'

* remove unused top-level variable

* remove lib/codelabs/src/meta.g.dart

* Revert "remove lib/codelabs/src/meta.g.dart"

This reverts commit 3353d19.

* add --delete-conflicting-outputs to grind build task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants