yoyoyo 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/assets/ts/app.ts CHANGED
@@ -1,23 +1,21 @@
1
- class Student {
2
- fullName: string;
3
- constructor(
4
- public firstName: string,
5
- public middleInitial: string,
6
- public lastName: string
7
- ) {
8
- this.fullName = firstName + " " + middleInitial + " " + lastName;
9
- }
10
- }
1
+ import { Observable } from "rxjs";
11
2
 
12
- interface Person {
13
- firstName: string;
14
- lastName: string;
15
- }
3
+ var observable = Observable.create((observer: any) => {
4
+ observer.next("Hello World!");
5
+ observer.next("Hello Again!");
6
+ observer.complete();
7
+ observer.next("Bye");
8
+ });
16
9
 
17
- function greeter(person: Person) {
18
- return "Hello, " + person.firstName + " " + person.lastName;
19
- }
10
+ observable.subscribe(
11
+ (x: any) => logItem(x),
12
+ (error: any) => logItem("Error: " + error),
13
+ () => logItem("Completed")
14
+ );
20
15
 
21
- let user = new Student("xixihaha", "M.", "User");
22
-
23
- document.body.append(greeter(user));
16
+ function logItem(val: any) {
17
+ var node = document.createElement("li");
18
+ var textnode = document.createTextNode(val);
19
+ node.appendChild(textnode);
20
+ document.body.appendChild(node);
21
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yoyoyo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hertz Zhang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-22 00:00:00.000000000 Z
11
+ date: 2019-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -141,6 +141,7 @@ files:
141
141
  - _sass/bootstrap-grid.scss
142
142
  - _sass/bootstrap-reboot.scss
143
143
  - _sass/bootstrap.scss
144
+ - _sass/header.scss
144
145
  - _sass/main.scss
145
146
  - _sass/mixins/_alert.scss
146
147
  - _sass/mixins/_background-variant.scss
@@ -217,5 +218,5 @@ rubyforge_project:
217
218
  rubygems_version: 2.5.2.3
218
219
  signing_key:
219
220
  specification_version: 4
220
- summary: A beautiful, yoyoyo theme for Jekyll.
221
+ summary: 一个漂亮的、自适应的、适合程序员的 Jekyll 主题。
221
222
  test_files: []