Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f9f51a9

Browse files
committed
more fixes
1 parent 8b730d2 commit f9f51a9

File tree

11 files changed

+85
-36
lines changed

11 files changed

+85
-36
lines changed

public/_includes/_code-box.jade

Whitespace-only changes.

public/_includes/_head-include.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ meta(itemprop="description" content="#{description}")
3434
meta(itemprop="image" content="https://angular.io/resources/images/logos/standard/shield-large.png")
3535

3636
link(rel="icon" type="image/x-icon" href="/resources/images/icons/favicon.ico")
37-
link(rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/0.7.1/angular-material.min.css")
37+
link(rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/0.8.3/angular-material.min.css")
3838
link(href='https://fonts.googleapis.com/css?family=Roboto:400,300,500,400italic,700' rel='stylesheet' type='text/css')
3939
link(rel="stylesheet" href="/resources/css/vendor/icomoon/style.css")
4040
link(rel="stylesheet" href="/resources/css/main.css")

public/_includes/_scripts-include.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ script(src="/resources/js/vendor/jquery.js")
99
script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.js")
1010
script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular-animate.js")
1111
script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular-aria.js")
12-
script(src="https://ajax.googleapis.com/ajax/libs/angular_material/0.8.2/angular-material.min.js")
12+
script(src="https://ajax.googleapis.com/ajax/libs/angular_material/0.8.3/angular-material.min.js")
1313

1414

1515

public/docs/js/latest/api.jade

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.l-main-section
2+
3+
.callout.is-helpful
4+
header Developer Preview
5+
p.
6+
The Angular 2.0 API is currently in active development and not production ready.
7+
This page will showcase a preview of proposed methods to help further the discussion
8+
in the development community. If you're building a production app today, please
9+
<a href="https://docs.angularjs.org/api">use Angular 1.X</a>.
10+
11+
number = 1;
12+
ul
13+
for page, slug in public.docs[current.path[1]][current.path[2]].api._data
14+
url = "/docs/" + current.path[1] + "/" + current.path[2] + "/" + current.path[3] + "/" + slug + ".html"
15+
num = number++
16+
17+
li.c8
18+
!= partial("../../../_includes/_hover-card", { number: num, name: page.title, url: url })

public/docs/js/latest/guide/setup.jade

Lines changed: 38 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -90,39 +90,44 @@
9090
<code>&lt;my-app&gt;</code> element in <code>index.html</code>, and call Angular's <code>bootstrap()</code> to kick
9191
it all off like this:
9292

93-
pre.prettyprint.lang-javascript
94-
code.
95-
//ES5
96-
function AppComponent() {}
97-
98-
AppComponent.annotations = [
99-
new angular.Component({
100-
selector: 'my-app'
101-
}),
102-
new angular.View({
103-
template: '&lt;h1&gt;My first Angular 2 App&lt;/h1&gt;'
104-
})
105-
];
106-
107-
document.addEventListener('DOMContentLoaded', function() {
108-
angular.bootstrap(AppComponent);
109-
});
110-
111-
pre.prettyprint.lang-typescript
112-
code.
113-
//TypeScript
114-
import {Component, View, bootstrap} from 'angular2/angular2';
115-
116-
@Component({
117-
selector: 'my-app'
118-
})
119-
@View({
120-
template: '&lt;h1&gt;My first Angular 2 App&lt;/h1&gt;'
121-
})
122-
class AppComponent {
123-
}
124-
125-
bootstrap(AppComponent);
93+
.code-box
94+
nav.code-box-nav
95+
a(href="#")
96+
97+
pre.prettyprint.lang-javascript
98+
code.
99+
//ES5
100+
function AppComponent() {}
101+
102+
AppComponent.annotations = [
103+
new angular.Component({
104+
selector: 'my-app'
105+
}),
106+
new angular.View({
107+
template: '&lt;h1&gt;My first Angular 2 App&lt;/h1&gt;'
108+
})
109+
];
110+
111+
document.addEventListener('DOMContentLoaded', function() {
112+
angular.bootstrap(AppComponent);
113+
});
114+
115+
pre.prettyprint.lang-typescript
116+
code.
117+
//TypeScript
118+
import {Component, View, bootstrap} from 'angular2/angular2';
119+
120+
@Component({
121+
selector: 'my-app'
122+
})
123+
@View({
124+
template: '&lt;h1&gt;My first Angular 2 App&lt;/h1&gt;'
125+
})
126+
class AppComponent {
127+
}
128+
129+
bootstrap(AppComponent);
130+
126131

127132
.l-main-section
128133
h2#section-run-it Run it!

public/resources/css/base/_type.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ code {
1919
border-radius: 2px;
2020
font-family: $mono-font;
2121
color: $metal;
22-
padding: 0px 2px;
22+
padding: 0px 4px;
23+
font-size: 90%;
2324
}
2425

2526
.text-center {

public/resources/css/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
@import 'module/buttons';
2828
@import 'module/table';
2929
@import 'module/code';
30+
@import 'module/code-box';
3031
@import 'module/sticker';
3132
@import 'module/bio-card';
3233
@import 'module/overlay';
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.code-box {
2+
header {
3+
4+
}
5+
6+
nav {
7+
a {
8+
9+
}
10+
}
11+
}

public/resources/css/module/_dropdown.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
text-align: left;
5757
font-weight: 400;
5858
text-transform: uppercase;
59+
color: $metal;
5960
}
6061
}
6162
}

public/resources/css/module/_side-nav.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
position: relative;
115115
text-decoration: none;
116116
display: block;
117+
text-transform: uppercase;
117118
}
118119

119120
.side-nav-icon {

public/resources/js/site.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@ angularIO.controller('AppCtrl', ['$scope', '$mdDialog', function($scope, $mdDial
8585
}
8686
};
8787

88+
/*
89+
* Code Formatting
90+
*
91+
*/
92+
93+
$scope.language = 'es5';
94+
95+
// TOGGLE CODE LANGUAGE
96+
$scope.toggleCodeLanguage = function(event) {
97+
$scope.showMenu = !$scope.showMenu;
98+
};
8899

89100
var $codeBoxes = $('pre');
90101
if($codeBoxes.length) {

0 commit comments

Comments
 (0)