Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8CA37200BA3 for ; Thu, 20 Oct 2016 17:47:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8B482160AF5; Thu, 20 Oct 2016 15:47:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8ABB6160AE0 for ; Thu, 20 Oct 2016 17:47:01 +0200 (CEST) Received: (qmail 67731 invoked by uid 500); 20 Oct 2016 15:46:59 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 66745 invoked by uid 99); 20 Oct 2016 15:46:59 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2016 15:46:59 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 12CA8EF9A2; Thu, 20 Oct 2016 15:46:59 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: carlosrovira@apache.org To: commits@flex.apache.org Date: Thu, 20 Oct 2016 15:47:08 -0000 Message-Id: <9fb3a531ce4a4564b50e90f1d42eae99@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [11/20] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL Example project archived-at: Thu, 20 Oct 2016 15:47:02 -0000 MDL Example project Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/26a822d4 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/26a822d4 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/26a822d4 Branch: refs/heads/feature/mdl Commit: 26a822d46449a5074171be1a63540da7d09de1f3 Parents: 293eec8 Author: Carlos Rovira Authored: Fri Oct 14 23:05:39 2016 +0200 Committer: Carlos Rovira Committed: Thu Oct 20 17:46:39 2016 +0200 ---------------------------------------------------------------------- examples/flexjs/MDLExample/.vscode/launch.json | 21 ++++ examples/flexjs/MDLExample/.vscode/tasks.json | 11 ++ examples/flexjs/MDLExample/asconfig.json | 14 +++ examples/flexjs/MDLExample/pom.xml | 112 +++++++++++++++++++ .../flexjs/MDLExample/src/main/flex/App.mxml | 39 +++++++ .../MDLExample/src/main/resources/Unknown.jpeg | Bin 0 -> 50531 bytes .../main/resources/mdl-js-index-template.html | 32 ++++++ .../src/main/resources/mdl-styles.css | 32 ++++++ examples/flexjs/pom.xml | 1 + 9 files changed, 262 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a822d4/examples/flexjs/MDLExample/.vscode/launch.json ---------------------------------------------------------------------- diff --git a/examples/flexjs/MDLExample/.vscode/launch.json b/examples/flexjs/MDLExample/.vscode/launch.json new file mode 100644 index 0000000..4fec2c2 --- /dev/null +++ b/examples/flexjs/MDLExample/.vscode/launch.json @@ -0,0 +1,21 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Launch Chrome against debug.html, with sourcemaps", + "type": "chrome", + "request": "launch", + "file": "${workspaceRoot}/target/javascript/bin/js-debug/index.html", + "sourceMaps": true, + "preLaunchTask": "" + }, + { + "name": "Launch Firefox against debug.html, with sourcemaps", + "type": "firefox", + "request": "launch", + "file": "${workspaceRoot}/debug.html", + "sourceMaps": true, + "preLaunchTask": "asconfigc" + } + ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a822d4/examples/flexjs/MDLExample/.vscode/tasks.json ---------------------------------------------------------------------- diff --git a/examples/flexjs/MDLExample/.vscode/tasks.json b/examples/flexjs/MDLExample/.vscode/tasks.json new file mode 100644 index 0000000..ac2c02d --- /dev/null +++ b/examples/flexjs/MDLExample/.vscode/tasks.json @@ -0,0 +1,11 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "0.1.0", + "command": "asconfigc", + "isShellCommand": true, + "args": [ + "--flexHome=/Users/carlosrovira/Dev/Flex/sdks/flexjs-0.8.0" + ], + "showOutput": "always" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a822d4/examples/flexjs/MDLExample/asconfig.json ---------------------------------------------------------------------- diff --git a/examples/flexjs/MDLExample/asconfig.json b/examples/flexjs/MDLExample/asconfig.json new file mode 100644 index 0000000..d15de04 --- /dev/null +++ b/examples/flexjs/MDLExample/asconfig.json @@ -0,0 +1,14 @@ +{ + "config": "flex", + "compilerOptions": { + "debug": true, + "source-map": true, + "js-output-type": "flexjs", + "output": "./target/javascript" + }, + "additionalOptions": "-html-template=src/main/resources/mdl-js-index-template.html", + "files": + [ + "src/main/flex/App.mxml" + ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a822d4/examples/flexjs/MDLExample/pom.xml ---------------------------------------------------------------------- diff --git a/examples/flexjs/MDLExample/pom.xml b/examples/flexjs/MDLExample/pom.xml new file mode 100644 index 0000000..207dab5 --- /dev/null +++ b/examples/flexjs/MDLExample/pom.xml @@ -0,0 +1,112 @@ + + + + 4.0.0 + + + org.apache.flex.flexjs.examples + examples-flexjs + 0.8.0-SNAPSHOT + + + MDLExample + 0.8.0-SNAPSHOT + swf + + Apache Flex - FlexJS: Examples: FlexJS: MDLExample + + + src/main/flex + + + org.apache.flex.flexjs.compiler + flexjs-maven-plugin + true + + 20.0 + App.mxml + + + + + compile-javascript + compile + + compile-app + + + true + ${basedir}/src/main/resources/mdl-js-index-template.html + + + + + + org.apache.flex.flexjs.compiler + compiler-jx + 0.8.0-SNAPSHOT + + + + + + + + + org.apache.flex.flexjs.framework + Core + 0.8.0-SNAPSHOT + swc + + + + org.apache.flex.flexjs.framework + MaterialDesignLite + 0.8.0-SNAPSHOT + swc + + + + + com.adobe.flash.framework + playerglobal + 20.0 + swc + provided + + + + + org.apache.flex.flexjs.framework + HTML + 0.8.0-SNAPSHOT + swc + + + org.apache.flex.flexjs.framework + Language + 0.8.0-SNAPSHOT + swc + + + + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a822d4/examples/flexjs/MDLExample/src/main/flex/App.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml b/examples/flexjs/MDLExample/src/main/flex/App.mxml new file mode 100644 index 0000000..4ad2a62 --- /dev/null +++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a822d4/examples/flexjs/MDLExample/src/main/resources/Unknown.jpeg ---------------------------------------------------------------------- diff --git a/examples/flexjs/MDLExample/src/main/resources/Unknown.jpeg b/examples/flexjs/MDLExample/src/main/resources/Unknown.jpeg new file mode 100644 index 0000000..08fb201 Binary files /dev/null and b/examples/flexjs/MDLExample/src/main/resources/Unknown.jpeg differ http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a822d4/examples/flexjs/MDLExample/src/main/resources/mdl-js-index-template.html ---------------------------------------------------------------------- diff --git a/examples/flexjs/MDLExample/src/main/resources/mdl-js-index-template.html b/examples/flexjs/MDLExample/src/main/resources/mdl-js-index-template.html new file mode 100644 index 0000000..9eaf780 --- /dev/null +++ b/examples/flexjs/MDLExample/src/main/resources/mdl-js-index-template.html @@ -0,0 +1,32 @@ + + + + + + + + + + + +${head} + + +${body} + + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a822d4/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css ---------------------------------------------------------------------- diff --git a/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css b/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css new file mode 100644 index 0000000..6a07905 --- /dev/null +++ b/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css @@ -0,0 +1,32 @@ +/* +//////////////////////////////////////////////////////////////////////////////// +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// +*/ + +.demo-card-wide.mdl-card { + width: 512px; +} +.demo-card-wide > .mdl-card__title { + color: #fff; + height: 176px; + background: url('welcome_card.jpg') center / cover; +} +.demo-card-wide > .mdl-card__menu { + color: #fff; +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a822d4/examples/flexjs/pom.xml ---------------------------------------------------------------------- diff --git a/examples/flexjs/pom.xml b/examples/flexjs/pom.xml index cf65ec1..f603abd 100644 --- a/examples/flexjs/pom.xml +++ b/examples/flexjs/pom.xml @@ -48,6 +48,7 @@ FlexWebsiteStatsViewer HelloWorld MapSearch + MDLExample MobileMap MobileStocks MobileTrader