From d313aad6717ea8c13ef505fe90859cfc592d0ac7 Mon Sep 17 00:00:00 2001 From: Jesus Rodriguez Date: Thu, 20 Apr 2017 13:08:11 +0200 Subject: [PATCH] docs(aio): remove js examples --- .../examples/forms/js/example-config.json | 3 - aio/content/examples/forms/js/plnkr.json | 5 - .../forms/js/src/app/hero-form.component.html | 196 ------------------ aio/content/examples/forms/js/src/forms.css | 9 - aio/content/examples/forms/js/src/index.html | 47 ----- .../examples/quickstart/js/bs-config.1.json | 8 - .../quickstart/js/example-config.json | 3 - .../examples/quickstart/js/package.1.json | 29 --- aio/content/examples/quickstart/js/plnkr.json | 8 - .../examples/quickstart/js/src/index.html | 42 ---- .../examples/quickstart/js/src/styles.1.css | 14 -- aio/content/examples/styleguide/e2e-spec.ts | 16 -- .../examples/styleguide/example-config.json | 0 aio/content/examples/styleguide/foo.dart | 17 -- aio/content/examples/styleguide/foo.yaml | 21 -- .../styleguide/js/example-config.json | 3 - .../examples/styleguide/js/src/index.html | 27 --- .../examples/styleguide/jsonly.zipconfig.json | 3 - .../examples/styleguide/package.1.json | 23 -- .../styleguide/src/app/app.component.ts | 7 - .../examples/styleguide/src/app/app.module.ts | 11 - .../examples/styleguide/src/index.html | 25 --- aio/content/examples/styleguide/src/main.ts | 5 - .../examples/styleguide/zipconfig.json | 4 - 24 files changed, 526 deletions(-) delete mode 100644 aio/content/examples/forms/js/example-config.json delete mode 100644 aio/content/examples/forms/js/plnkr.json delete mode 100644 aio/content/examples/forms/js/src/app/hero-form.component.html delete mode 100644 aio/content/examples/forms/js/src/forms.css delete mode 100644 aio/content/examples/forms/js/src/index.html delete mode 100644 aio/content/examples/quickstart/js/bs-config.1.json delete mode 100644 aio/content/examples/quickstart/js/example-config.json delete mode 100644 aio/content/examples/quickstart/js/package.1.json delete mode 100644 aio/content/examples/quickstart/js/plnkr.json delete mode 100644 aio/content/examples/quickstart/js/src/index.html delete mode 100644 aio/content/examples/quickstart/js/src/styles.1.css delete mode 100644 aio/content/examples/styleguide/e2e-spec.ts delete mode 100644 aio/content/examples/styleguide/example-config.json delete mode 100644 aio/content/examples/styleguide/foo.dart delete mode 100644 aio/content/examples/styleguide/foo.yaml delete mode 100644 aio/content/examples/styleguide/js/example-config.json delete mode 100644 aio/content/examples/styleguide/js/src/index.html delete mode 100644 aio/content/examples/styleguide/jsonly.zipconfig.json delete mode 100644 aio/content/examples/styleguide/package.1.json delete mode 100644 aio/content/examples/styleguide/src/app/app.component.ts delete mode 100644 aio/content/examples/styleguide/src/app/app.module.ts delete mode 100644 aio/content/examples/styleguide/src/index.html delete mode 100644 aio/content/examples/styleguide/src/main.ts delete mode 100644 aio/content/examples/styleguide/zipconfig.json diff --git a/aio/content/examples/forms/js/example-config.json b/aio/content/examples/forms/js/example-config.json deleted file mode 100644 index 81f31aaf0d..0000000000 --- a/aio/content/examples/forms/js/example-config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "build": "build:babel" -} diff --git a/aio/content/examples/forms/js/plnkr.json b/aio/content/examples/forms/js/plnkr.json deleted file mode 100644 index 946cbb88f6..0000000000 --- a/aio/content/examples/forms/js/plnkr.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "description": "Forms", - "basePath": "src/", - "files":["app/**/*.js", "**/*.html", "**/*.css"] -} diff --git a/aio/content/examples/forms/js/src/app/hero-form.component.html b/aio/content/examples/forms/js/src/app/hero-form.component.html deleted file mode 100644 index 279ded0866..0000000000 --- a/aio/content/examples/forms/js/src/app/hero-form.component.html +++ /dev/null @@ -1,196 +0,0 @@ - - -
- -
-

Hero Form

- -
- - -
- - - -
- Name is required -
- -
- -
- - -
- -
- - -
- Power is required -
-
- - - - -
-
- - -
-

You submitted the following:

-
-
Name
-
{{ model.name }}
-
-
-
Alter Ego
-
{{ model.alterEgo }}
-
-
-
Power
-
{{ model.power }}
-
-
- -
- -
- - - -
-
- - - - -
-
- - - -
- - -
- -
-

Hero Form

-
-
- - -
- -
- - -
- - - -
- - -
- - - - -
-
- - - - -
- -
-

Hero Form

-
- - {{diagnostic()}} -
- - -
- -
- - -
- -
- - -
- - - - -
-
- - - -
- - - TODO: remove this: {{model.name}} - -
- - - TODO: remove this: {{model.name}} - -
-
- - - -
- - -
TODO: remove this: {{spy.className}} - -
- -
-
- Name via form.controls = {{showFormControls(heroForm)}} -
- -
diff --git a/aio/content/examples/forms/js/src/forms.css b/aio/content/examples/forms/js/src/forms.css deleted file mode 100644 index d7e11405b1..0000000000 --- a/aio/content/examples/forms/js/src/forms.css +++ /dev/null @@ -1,9 +0,0 @@ -/* #docregion */ -.ng-valid[required] { - border-left: 5px solid #42A948; /* green */ -} - -.ng-invalid { - border-left: 5px solid #a94442; /* red */ -} -/* #enddocregion */ \ No newline at end of file diff --git a/aio/content/examples/forms/js/src/index.html b/aio/content/examples/forms/js/src/index.html deleted file mode 100644 index 3a41d74a3b..0000000000 --- a/aio/content/examples/forms/js/src/index.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - Hero Form - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Loading... - - - diff --git a/aio/content/examples/quickstart/js/bs-config.1.json b/aio/content/examples/quickstart/js/bs-config.1.json deleted file mode 100644 index 4e58595267..0000000000 --- a/aio/content/examples/quickstart/js/bs-config.1.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "server": { - "baseDir": "src", - "routes": { - "/node_modules": "node_modules" - } - } -} diff --git a/aio/content/examples/quickstart/js/example-config.json b/aio/content/examples/quickstart/js/example-config.json deleted file mode 100644 index 81f31aaf0d..0000000000 --- a/aio/content/examples/quickstart/js/example-config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "build": "build:babel" -} diff --git a/aio/content/examples/quickstart/js/package.1.json b/aio/content/examples/quickstart/js/package.1.json deleted file mode 100644 index 28aee2b92e..0000000000 --- a/aio/content/examples/quickstart/js/package.1.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "angular-quickstart", - "version": "1.0.0", - "scripts": { - "start": "npm run lite", - "lite": "lite-server" - }, - "license": "MIT", - "dependencies": { - "@angular/common": "~2.4.0", - "@angular/compiler": "~2.4.0", - "@angular/core": "~2.4.0", - "@angular/forms": "~2.4.0", - "@angular/http": "~2.4.0", - "@angular/platform-browser": "~2.4.0", - "@angular/platform-browser-dynamic": "~2.4.0", - "@angular/router": "~3.4.0", - "@angular/upgrade": "~2.4.0", - - "angular-in-memory-web-api": "~0.3.1", - "core-js": "^2.4.1", - "rxjs": "5.0.1", - "zone.js": "^0.8.4" - }, - "devDependencies": { - "concurrently": "^3.0.0", - "lite-server": "^2.2.2" - } -} diff --git a/aio/content/examples/quickstart/js/plnkr.json b/aio/content/examples/quickstart/js/plnkr.json deleted file mode 100644 index 5e24ad9790..0000000000 --- a/aio/content/examples/quickstart/js/plnkr.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "description": "QuickStart", - "basePath": "src/", - "files": [ - "!**/*.[1].*" - ], - "tags": ["quickstart"] -} diff --git a/aio/content/examples/quickstart/js/src/index.html b/aio/content/examples/quickstart/js/src/index.html deleted file mode 100644 index 43d63e9c83..0000000000 --- a/aio/content/examples/quickstart/js/src/index.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - Angular QuickStart JS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Loading... - - - - diff --git a/aio/content/examples/quickstart/js/src/styles.1.css b/aio/content/examples/quickstart/js/src/styles.1.css deleted file mode 100644 index fbc30e2c9e..0000000000 --- a/aio/content/examples/quickstart/js/src/styles.1.css +++ /dev/null @@ -1,14 +0,0 @@ -/* #docregion */ -h1 { - color: #369; - font-family: Arial, Helvetica, sans-serif; - font-size: 250%; -} -body { - margin: 2em; -} - - /* - * See https://github.com/angular/angular.io/blob/master/public/docs/_examples/styles.css - * for the full set of master styles used by the documentation samples - */ diff --git a/aio/content/examples/styleguide/e2e-spec.ts b/aio/content/examples/styleguide/e2e-spec.ts deleted file mode 100644 index af10d2b71d..0000000000 --- a/aio/content/examples/styleguide/e2e-spec.ts +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; // necessary for es6 output in node - -import { browser, element, by } from 'protractor'; - -describe('Documentation StyleGuide E2E Tests', function() { - - let expectedMsg = 'My First Angular App'; - - beforeEach(function () { - browser.get(''); - }); - - it('should display: ' + expectedMsg, function() { - expect(element(by.id('output')).getText()).toEqual(expectedMsg); - }); -}); diff --git a/aio/content/examples/styleguide/example-config.json b/aio/content/examples/styleguide/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/aio/content/examples/styleguide/foo.dart b/aio/content/examples/styleguide/foo.dart deleted file mode 100644 index aeea7eb657..0000000000 --- a/aio/content/examples/styleguide/foo.dart +++ /dev/null @@ -1,17 +0,0 @@ -library angular2.src.core.application_static; - -// #docregion import -import 'dart:async'; -import 'application_common.dart'; -import 'package:angular2/src/core/linker/dynamic_component_loader.dart' show ComponentRef; -// #enddocregion import -/// Starts an application from a root component. -/// -/// See [commonBootstrap] for detailed documentation. -Future bootstrapStatic(Type appComponentType, - [List componentInjectableBindings, void initReflector()]) { - if (initReflector != null) { - initReflector(); - } - return commonBootstrap(appComponentType, componentInjectableBindings); -} diff --git a/aio/content/examples/styleguide/foo.yaml b/aio/content/examples/styleguide/foo.yaml deleted file mode 100644 index 37f8b7ab22..0000000000 --- a/aio/content/examples/styleguide/foo.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: benchpress -version: <%= packageJson.version %> -authors: -<%= Object.keys(packageJson.contributors).map(function(name) { - return '- '+name+' <'+packageJson.contributors[name]+'>'; -}).join('\n') %> -description: Benchpress - a framework for e2e performance tests -homepage: <%= packageJson.homepage %> -environment: - sdk: '>=1.10.0 <2.0.0' -# #docregion dependencies -dependencies: - angular2: '^<%= packageJson.version %>' - stack_trace: '^1.1.1' - webdriver: '^0.9.0' -dev_dependencies: - guinness: '^0.1.17' -dependency_overrides: - angular2: - path: ../angular2 -# #enddocregion diff --git a/aio/content/examples/styleguide/js/example-config.json b/aio/content/examples/styleguide/js/example-config.json deleted file mode 100644 index 81f31aaf0d..0000000000 --- a/aio/content/examples/styleguide/js/example-config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "build": "build:babel" -} diff --git a/aio/content/examples/styleguide/js/src/index.html b/aio/content/examples/styleguide/js/src/index.html deleted file mode 100644 index ac2d34ba5d..0000000000 --- a/aio/content/examples/styleguide/js/src/index.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - Documentation Style - - - - - - - - - - - - - - - - - - - - foo2 - - - diff --git a/aio/content/examples/styleguide/jsonly.zipconfig.json b/aio/content/examples/styleguide/jsonly.zipconfig.json deleted file mode 100644 index 118c776bdc..0000000000 --- a/aio/content/examples/styleguide/jsonly.zipconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "files": ["**/*.js"] -} \ No newline at end of file diff --git a/aio/content/examples/styleguide/package.1.json b/aio/content/examples/styleguide/package.1.json deleted file mode 100644 index 481f99fb12..0000000000 --- a/aio/content/examples/styleguide/package.1.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "angular2-quickstart", - "version": "1.0.0", - "scripts": { - "tsc": "tsc", - "tsc:w": "tsc -w", - "lite": "lite-server", - "start": "concurrently \"npm run tsc:w\" \"npm run lite\" " - }, - "license": "MIT", - "dependencies": { - "angular2": "2.0.0-beta.0", - "systemjs": "0.19.6", - "core-js": "^2.4.0", - "rxjs": "5.0.0-beta.0", - "zone.js": "0.5.10" - }, - "devDependencies": { - "concurrently": "^1.0.0", - "lite-server": "^1.3.1", - "typescript": "^1.7.3" - } -} diff --git a/aio/content/examples/styleguide/src/app/app.component.ts b/aio/content/examples/styleguide/src/app/app.component.ts deleted file mode 100644 index 8b71f6ddc4..0000000000 --- a/aio/content/examples/styleguide/src/app/app.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; -@Component({ - selector: 'my-app', - template: '

My First Angular App

' -}) -export class AppComponent { } - diff --git a/aio/content/examples/styleguide/src/app/app.module.ts b/aio/content/examples/styleguide/src/app/app.module.ts deleted file mode 100644 index 0a9ee6adf7..0000000000 --- a/aio/content/examples/styleguide/src/app/app.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -// #docregion -import { NgModule } from '@angular/core'; -import { BrowserModule } from '@angular/platform-browser'; -import { AppComponent } from './app.component'; - -@NgModule({ - imports: [ BrowserModule ], - declarations: [ AppComponent ], - bootstrap: [ AppComponent ] -}) -export class AppModule { } diff --git a/aio/content/examples/styleguide/src/index.html b/aio/content/examples/styleguide/src/index.html deleted file mode 100644 index 5cb8919509..0000000000 --- a/aio/content/examples/styleguide/src/index.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - Documentation Style - - - - - - - - - - - - - - - - - - diff --git a/aio/content/examples/styleguide/src/main.ts b/aio/content/examples/styleguide/src/main.ts deleted file mode 100644 index 6b6532d428..0000000000 --- a/aio/content/examples/styleguide/src/main.ts +++ /dev/null @@ -1,5 +0,0 @@ -// #docregion -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app/app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/aio/content/examples/styleguide/zipconfig.json b/aio/content/examples/styleguide/zipconfig.json deleted file mode 100644 index 74ca947f2b..0000000000 --- a/aio/content/examples/styleguide/zipconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "zipRegion": "class", - "files": ["**/*.*", "!**/*zipconfig.json"] -} \ No newline at end of file