forked from hyperledger-archives/composer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add prompts to direct new users to the playground tutorial (hyperledg…
…er-archives#2039) from the playground splash, wallet and deploy new network screens Also fixes wording of splash screen now that there is no default network deployed Contributes to #2009 Signed-off-by: James Taylor <[email protected]>
- Loading branch information
Showing
16 changed files
with
162 additions
and
24 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
2 changes: 2 additions & 0 deletions
2
packages/composer-playground/src/app/common/tutorial-link/index.ts
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,2 @@ | ||
export * from './tutorial-link.component'; | ||
export * from './tutorial-link.module'; |
7 changes: 7 additions & 0 deletions
7
packages/composer-playground/src/app/common/tutorial-link/tutorial-link.component.html
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,7 @@ | ||
<p class="secondary"> | ||
<svg class="large-icon" aria-hidden="true"> | ||
<use xlink:href="#icon-question"></use> | ||
</svg> | ||
Not sure where to start? | ||
<a href="https://hyperledger.github.io/composer/tutorials/playground-guide.html" target="_blank">View our Playground tutorial</a>. | ||
</p> |
24 changes: 24 additions & 0 deletions
24
packages/composer-playground/src/app/common/tutorial-link/tutorial-link.component.scss
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,24 @@ | ||
@import '../../../assets/styles/base/_colors.scss'; | ||
@import '../../../assets/styles/base/_variables.scss'; | ||
|
||
tutorial-link { | ||
p.secondary { | ||
color: $secondary-text; | ||
margin: 0; | ||
|
||
a { | ||
text-decoration: none; | ||
color: $secondary-text; | ||
|
||
&:hover, &:focus { | ||
text-decoration: underline; | ||
outline: none; | ||
} | ||
} | ||
|
||
svg.large-icon { | ||
margin-right: 0.25rem; | ||
vertical-align: middle; | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
packages/composer-playground/src/app/common/tutorial-link/tutorial-link.component.spec.ts
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,35 @@ | ||
/* tslint:disable:no-unused-variable */ | ||
/* tslint:disable:no-unused-expression */ | ||
/* tslint:disable:no-var-requires */ | ||
/* tslint:disable:max-classes-per-file */ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { By } from '@angular/platform-browser'; | ||
import { DebugElement } from '@angular/core'; | ||
|
||
import { TutorialLinkComponent } from './tutorial-link.component'; | ||
import * as sinon from 'sinon'; | ||
|
||
describe('TutorialLinkComponent', () => { | ||
let component: TutorialLinkComponent; | ||
let fixture: ComponentFixture<TutorialLinkComponent>; | ||
let debug: DebugElement; | ||
let element: HTMLElement; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [TutorialLinkComponent] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(TutorialLinkComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create component', () => { | ||
component.should.be.ok; | ||
}); | ||
|
||
}); |
10 changes: 10 additions & 0 deletions
10
packages/composer-playground/src/app/common/tutorial-link/tutorial-link.component.ts
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,10 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'tutorial-link', | ||
templateUrl: './tutorial-link.component.html', | ||
styleUrls: ['./tutorial-link.component.scss'.toString()] | ||
}) | ||
|
||
export class TutorialLinkComponent { | ||
} |
14 changes: 14 additions & 0 deletions
14
packages/composer-playground/src/app/common/tutorial-link/tutorial-link.module.ts
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,14 @@ | ||
import { NgModule } from '@angular/core'; | ||
|
||
import { TutorialLinkComponent } from './tutorial-link.component'; | ||
|
||
@NgModule({ | ||
imports: [], | ||
entryComponents: [], | ||
declarations: [TutorialLinkComponent], | ||
providers: [], | ||
exports: [TutorialLinkComponent] | ||
}) | ||
|
||
export class TutorialLinkModule { | ||
} |
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
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
14 changes: 14 additions & 0 deletions
14
packages/composer-playground/src/assets/svg/other/question.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.