summaryrefslogtreecommitdiffstats
path: root/afm-client/app/Frontend/pages/Sample
diff options
context:
space:
mode:
Diffstat (limited to 'afm-client/app/Frontend/pages/Sample')
-rw-r--r--afm-client/app/Frontend/pages/Sample/Sample.html35
-rw-r--r--afm-client/app/Frontend/pages/Sample/SampleModule.js18
-rw-r--r--afm-client/app/Frontend/pages/Sample/SampleModule.scss41
3 files changed, 0 insertions, 94 deletions
diff --git a/afm-client/app/Frontend/pages/Sample/Sample.html b/afm-client/app/Frontend/pages/Sample/Sample.html
deleted file mode 100644
index 03a4558..0000000
--- a/afm-client/app/Frontend/pages/Sample/Sample.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!-- Foundation Annotations generate tmp/route.js -->
----
-name: mysample
-url: /sample
-controller: SampleController as ctrl
-animationIn: slideInRight
----
-
-<h1><img class="logo" src="images/logo/triskel_iot_bzhx250.png" alt="IoT.bzh Logo" style="height:150px;">
- Post File Upload
-</h1>
-
-<div class="sample-box box-content">
-
- <!-- Usage: upload-xxxxx
- name = [xxxxxx] is use a field label for xform input field. Should match with server side
- category = [avatar] should match to a valid directory of thumbnail within AppConfig.path
- thumbnail= [tux-bzh.png] a valid image within AppConfig.paths.[category]
- istoobig = [istoobig.png] used image from AppConfig.paths.[category] when file is oversized
- maxsize = [xxx] maximum size in KB [default max depend on upload-type]
- accept = [image] acceptable accept for upload
- -->
- <upload-image name="avatar" category="avatar" thumbnail="tux-visitor.png" maxsize="100"
- posturl="/api/post/upload-image" callback="ctrl.FileUploaded" accept="image" title="Change your Avatar">
- </upload-image>
-
- <!-- Warning: name=xxx should match with what server expect [used as xform input name -->
- <upload-audio name="music" posturl="/api/post/upload-music" callback="ctrl.FileUploaded" title="Upload your Music"></upload-audio>
-
- <!-- Warning: name=xxx should match with what server expect [used as xform input name -->
- <upload-appli name="appli" posturl="/api/post/upload-appli" callback="ctrl.FileUploaded" title="Upload AGL App"></upload-appli>
-
-</div>
-
-<link-button href="home" icon="fi-home" label="home"></link-button>
diff --git a/afm-client/app/Frontend/pages/Sample/SampleModule.js b/afm-client/app/Frontend/pages/Sample/SampleModule.js
deleted file mode 100644
index 8ae82ea..0000000
--- a/afm-client/app/Frontend/pages/Sample/SampleModule.js
+++ /dev/null
@@ -1,18 +0,0 @@
-(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
deleted file mode 100644
index 7654424..0000000
--- a/afm-client/app/Frontend/pages/Sample/SampleModule.scss
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-@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;
- };
-};
-
-
-