You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2015/09/28 15:15:12 UTC

[40/69] [abbrv] stratos git commit: Removed tenantId from queries and refactore jaggery files

http://git-wip-us.apache.org/repos/asf/stratos/blob/9c1fdc75/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Count/Member_Count/css/d3.geomap.css
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Count/Member_Count/css/d3.geomap.css b/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Count/Member_Count/css/d3.geomap.css
new file mode 100644
index 0000000..016a739
--- /dev/null
+++ b/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Count/Member_Count/css/d3.geomap.css
@@ -0,0 +1,34 @@
+/*!
+ * d3.geomap
+ * https://github.com/yaph/d3-geomap/blob/master/LICENSE
+ * MIT licensed
+ * Copyright (C) 2015 by Ramiro Gómez (http://ramiro.org/)
+ */
+text {
+    fill: #333;
+    font-size: 12px;
+}
+
+.background {
+    fill: none;
+    pointer-events: all;
+}
+
+.unit {
+    cursor: pointer;
+    fill: #ccc;
+    stroke: #000;
+    stroke-width: 0.4px;
+}
+
+.legend-bg {
+    fill: #fff;
+    fill-opacity: 0.8;
+}
+
+.legend-bar {
+    stroke: #333;
+    stroke-width: 1px;
+}
+
+/*# sourceMappingURL=geomap.css.map */

http://git-wip-us.apache.org/repos/asf/stratos/blob/9c1fdc75/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Count/Member_Count/css/igviz.css
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Count/Member_Count/css/igviz.css b/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Count/Member_Count/css/igviz.css
new file mode 100644
index 0000000..627f176
--- /dev/null
+++ b/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Count/Member_Count/css/igviz.css
@@ -0,0 +1,86 @@
+/*
+ *
+ * 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.
+ *
+ */
+#rect {
+    fill: none;
+    stroke: rgb(0, 0, 0);
+    stroke-width: 2;
+}
+
+#rectCurve {
+    fill: none;
+    stroke: rgb(0, 0, 0);
+    stroke-width: 0.5;
+}
+
+.axis path,
+.axis line {
+    fill: none;
+    shape-rendering: crispEdges;
+    stroke: grey;
+    stroke-width: 2;
+}
+
+.line {
+    fill: none;
+    stroke: steelblue;
+    stroke-width: 1.5px;
+}
+
+.label {
+    font-size: 16.844px !important;
+}
+
+/* arc tween shit*/
+.background {
+    fill: #FFFFFF;
+    fill-opacity: 0.01;
+}
+
+.component {
+    fill: #e1e1e1;
+}
+
+.component .label {
+    font-family: Myriad, "Helvetic Neue", Helvetica, Arial;
+    text-anchor: middle;
+    fill: #0000FF;
+}
+
+.arc {
+    stroke-weight: 0.1;
+    fill: #4e8fff;
+}
+
+.arc2 {
+    stroke-weight: 0.1;
+    fill: #3660b0;
+}
+
+.label {
+    font-family: Myriad, "Helvetic Neue", Helvetica, Arial;
+    text-anchor: middle;
+}
+
+.labelArc {
+    font-family: Myriad, "Helvetic Neue", Helvetica, Arial;
+    text-anchor: middle;
+    fill: #0000FF;
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/9c1fdc75/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Count/Member_Count/gadget.json
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Count/Member_Count/gadget.json b/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Count/Member_Count/gadget.json
new file mode 100644
index 0000000..0960c82
--- /dev/null
+++ b/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Count/Member_Count/gadget.json
@@ -0,0 +1,19 @@
+{
+  "id": "Member_Count",
+  "title": "Member Count",
+  "type": "gadget",
+  "thumbnail": "local://store/carbon.super/gadget/usa-business-revenue/index.png",
+  "data": {
+    "url": "local://store/carbon.super/gadget/Member_Count/index.xml"
+  },
+  "listen": {
+    "member-status-filter": {
+      "type": "address",
+      "description": "Used to filter based on state"
+    },
+    "auto-update": {
+      "type": "boolean",
+      "description": "Used to filter based on state"
+    }
+  }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/9c1fdc75/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Count/Member_Count/index.xml
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Count/Member_Count/index.xml b/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Count/Member_Count/index.xml
new file mode 100644
index 0000000..915ad9a
--- /dev/null
+++ b/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Count/Member_Count/index.xml
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+
+ 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.
+
+-->
+<Module>
+    <ModulePrefs title="Bar Chart"
+                 author="WSO2 Gadget Server"
+                 height="230"
+                 scrolling="true"
+                 tags="charts,bar,visualization,data"
+                 description="A generic Bar Chart gadget, that takes a json datasource as an input. It can be configured to fetch data in defined intervals. This gadget can be used to create dashboards with statistical data. This gadget can be reused as an iframe in any web page as it is self contained.">
+        <!-- This is used to import the pubsub-2 feature -->
+        <Require feature="pubsub-2">
+            <Param name="topics">
+                <!-- subscribe="true" needs to be set to define the gadget as a subscriber gadget.-->
+                <![CDATA[
+                    <Topic title="member-status-filter" name="member-status-filter"
+                    description="Subscribes to member-status-filter channel" type="object"
+                    subscribe="true"/>
+                ]]>
+            </Param>
+        </Require>
+    </ModulePrefs>
+    <UserPref name="dataSource"
+              display_name="Data Source"
+              default_value="/portal/gadgets/bar-chart/datasource/dataFile4.jag">
+    </UserPref>
+
+    <UserPref name="updateGraph"
+              display_name="Update Interval (s)"
+              default_value="No">
+    </UserPref>
+    <Content type="html">
+        <![CDATA[
+             <html>
+             <head>
+                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+                <title>Bar Chart</title>
+                <link href="css/flot-graph.css" rel="stylesheet" type="text/css">
+                <link href="css/igviz.css" rel="stylesheet" type="text/css">
+                <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
+                <link href="css/d3.geomap.css" rel="stylesheet" type="text/css">
+                <script language="javascript" type="text/javascript" src="js/excanvas.min.js"></script>
+                <script language="javascript" type="text/javascript" src="js/jquery.js"></script>
+                <script language="javascript" type="text/javascript" src="js/d3.min.js"></script>
+                <script language="javascript" type="text/javascript" src="js/vega.js"></script>
+                <script language="javascript" type="text/javascript" src="js/igviz.js"></script>
+                <script language="javascript" type="text/javascript" src="js/gadgetconf.js"></script>
+                <script language="javascript" type="text/javascript" src="js/outputAdapterUiLibrary.js"></script>
+                <script language="javascript" type="text/javascript" src="js/main.js"></script>
+                <script language="javascript" type="text/javascript" src="js/d3.geomap.dependencies.min.js"></script>
+                <script language="javascript" type="text/javascript" src="js/d3.geomap.min.js"></script>
+            </head>
+
+            <body>
+                <div id="placeholder" class="demo-placeholder" style="height:90%"></div>
+                <script language="javascript" type="text/javascript">
+                  if(jQuery("#placeholder").html() == ""){
+                    jQuery("#placeholder").append('<div id="noChart"><table><tr><td style="padding:30px 20px 0px 20px"><img src="../../portal/images/noEvents.png" align="left" style="width:24;height:24"/></td><td><br/><b><p><br/> Data is not available for plotting</p></b></td></tr><tr><td></td><td><p>The chart will be loaded once the dashboard receives events</p><td/></tr></table></div>');
+                  }
+                </script>
+            </body>
+            </html>
+    ]]>
+    </Content>
+</Module>
+
+