From 3ebdce373e134b70b129154d8033c1c628847a6c Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Mon, 25 Jan 2016 14:37:32 +0100 Subject: First version --- afm-client/app/Frontend/pages/Sample/Sample.html | 35 ++++++++++++++++++ .../app/Frontend/pages/Sample/SampleModule.js | 18 ++++++++++ .../app/Frontend/pages/Sample/SampleModule.scss | 41 ++++++++++++++++++++++ 3 files changed, 94 insertions(+) create mode 100644 afm-client/app/Frontend/pages/Sample/Sample.html create mode 100644 afm-client/app/Frontend/pages/Sample/SampleModule.js create mode 100644 afm-client/app/Frontend/pages/Sample/SampleModule.scss (limited to 'afm-client/app/Frontend/pages/Sample') diff --git a/afm-client/app/Frontend/pages/Sample/Sample.html b/afm-client/app/Frontend/pages/Sample/Sample.html new file mode 100644 index 0000000..03a4558 --- /dev/null +++ b/afm-client/app/Frontend/pages/Sample/Sample.html @@ -0,0 +1,35 @@ + +--- +name: mysample +url: /sample +controller: SampleController as ctrl +animationIn: slideInRight +--- + +

+ Post File Upload +

+ +
+ + + + + + + + + + + +
+ + diff --git a/afm-client/app/Frontend/pages/Sample/SampleModule.js b/afm-client/app/Frontend/pages/Sample/SampleModule.js new file mode 100644 index 0000000..8ae82ea --- /dev/null +++ b/afm-client/app/Frontend/pages/Sample/SampleModule.js @@ -0,0 +1,18 @@ +(function() { +'use strict'; + +// list all rependencies within the page + controler if needed +angular.module('SampleModule', ['SubmitButton','UploadFiles']) + + .controller('SampleController', function ($http) { + var scope = this; // I hate JavaScript + + console.log ("sample Init"); + + scope.FileUploaded = function (response) { + console.log ("FileUploaded response=%s", JSON.stringify(response)); + }; + }); + +console.log ("SampleControler Loaded"); +})(); \ No newline at end of file diff --git a/afm-client/app/Frontend/pages/Sample/SampleModule.scss b/afm-client/app/Frontend/pages/Sample/SampleModule.scss new file mode 100644 index 0000000..7654424 --- /dev/null +++ b/afm-client/app/Frontend/pages/Sample/SampleModule.scss @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2015 "IoT.bzh" + * Author "Fulup Ar Foll" + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +@import "app/ibz-mixins"; + + +.sample-box { + display: block; + height : 4.5rem; + + .sample-button { + float: right; + width: 5rem; + }; + + .muted-on-on,.muted-off-off{ + background: blueviolet; + }; + + .muted-error{ + background: red; + }; +}; + + + -- cgit 1.2.3-korg