30 |
31 |
32 |
--------------------------------------------------------------------------------
/ionic/plugins/org.apache.cordova.device/src/ubuntu/device.js:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Licensed to the Apache Software Foundation (ASF) under one
4 | * or more contributor license agreements. See the NOTICE file
5 | * distributed with this work for additional information
6 | * regarding copyright ownership. The ASF licenses this file
7 | * to you under the Apache License, Version 2.0 (the
8 | * "License"); you may not use this file except in compliance
9 | * with the License. You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing,
14 | * software distributed under the License is distributed on an
15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | * KIND, either express or implied. See the License for the
17 | * specific language governing permissions and limitations
18 | * under the License.
19 | *
20 | */
21 |
22 | var cordova = require('cordova');
23 | var exec = require('cordova/exec');
24 |
25 | module.exports = {
26 | getInfo:function(win,fail,args) {
27 | Cordova.exec(function (model, cordova, platform, uuid, version) {
28 | win({name: name, model: model, cordova: cordova,
29 | platform: platform, uuid: uuid, version: version});
30 | }, null, "com.cordova.Device", "getInfo", []);
31 | }
32 | };
33 |
34 | require("cordova/exec/proxy").add("Device", module.exports);
35 |
--------------------------------------------------------------------------------
/ionic/www/README.md:
--------------------------------------------------------------------------------
1 | This is an addon starter template for the [Ionic Framework](http://ionicframework.com/).
2 |
3 | ## How to use this template
4 |
5 | *This template does not work on its own*. It is missing the Ionic library, and AngularJS.
6 |
7 | To use this, either create a new ionic project using the ionic node.js utility, or copy and paste this into an existing Cordova project and download a release of Ionic separately.
8 |
9 | ### With the Ionic tool:
10 |
11 | Take the name after `ionic-starter-`, and that is the name of the template to be used when using the `ionic start` command below:
12 |
13 | ```bash
14 | $ sudo npm install -g ionic cordova
15 | $ ionic start myApp tabs
16 | ```
17 |
18 | Then, to run it, cd into `myApp` and run:
19 |
20 | ```bash
21 | $ ionic platform add ios
22 | $ ionic build ios
23 | $ ionic emulate ios
24 | ```
25 |
26 | Substitute ios for android if not on a Mac, but if you can, the ios development toolchain is a lot easier to work with until you need to do anything custom to Android.
27 |
28 | ## Demo
29 | http://plnkr.co/edit/qYMCrt?p=preview
30 |
31 | ## Issues
32 | Issues have been disabled on this repo, if you do find an issue or have a question consider posting it on the [Ionic Forum](http://forum.ionicframework.com/). Or else if there is truly an error, follow our guidelines for [submitting an issue](http://ionicframework.com/contribute/#issues) to the main Ionic repository. On the other hand, pull requests are welcome here!
33 |
--------------------------------------------------------------------------------
/ionic/www/lib/ionic/scss/_radio.scss:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Radio Button Inputs
4 | * --------------------------------------------------
5 | */
6 |
7 | .item-radio {
8 | padding: 0;
9 |
10 | &:hover {
11 | cursor: pointer;
12 | }
13 | }
14 |
15 | .item-radio .item-content {
16 | /* give some room to the right for the checkmark icon */
17 | padding-right: $item-padding * 4;
18 | }
19 |
20 | .item-radio .radio-icon {
21 | /* checkmark icon will be hidden by default */
22 | position: absolute;
23 | top: 0;
24 | right: 0;
25 | z-index: $z-index-item-radio;
26 | visibility: hidden;
27 | padding: $item-padding - 2;
28 | height: 100%;
29 | font-size: 24px;
30 | }
31 |
32 | .item-radio input {
33 | /* hide any radio button inputs elements (the ugly circles) */
34 | position: absolute;
35 | left: -9999px;
36 |
37 | &:checked ~ .item-content {
38 | /* style the item content when its checked */
39 | background: #f7f7f7;
40 | }
41 |
42 | &:checked ~ .radio-icon {
43 | /* show the checkmark icon when its checked */
44 | visibility: visible;
45 | }
46 | }
47 |
48 | // Hack for Android to correctly display the checked item
49 | // http://timpietrusky.com/advanced-checkbox-hack
50 | .platform-android.grade-b .item-radio,
51 | .platform-android.grade-c .item-radio {
52 | -webkit-animation: androidCheckedbugfix infinite 1s;
53 | }
54 | @-webkit-keyframes androidCheckedbugfix {
55 | from { padding: 0; }
56 | to { padding: 0; }
57 | }
58 |
--------------------------------------------------------------------------------
/ionic/www/templates/tab-dash.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/ionic/plugins/org.apache.cordova.device/src/tizen/DeviceProxy.js:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Licensed to the Apache Software Foundation (ASF) under one
4 | * or more contributor license agreements. See the NOTICE file
5 | * distributed with this work for additional information
6 | * regarding copyright ownership. The ASF licenses this file
7 | * to you under the Apache License, Version 2.0 (the
8 | * "License"); you may not use this file except in compliance
9 | * with the License. You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing,
14 | * software distributed under the License is distributed on an
15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | * KIND, either express or implied. See the License for the
17 | * specific language governing permissions and limitations
18 | * under the License.
19 | *
20 | */
21 |
22 | var tizen = require('cordova/platform');
23 | var cordova = require('cordova');
24 |
25 | module.exports = {
26 | getDeviceInfo: function(success, error) {
27 | setTimeout(function () {
28 | success({
29 | cordova: tizen.cordovaVersion,
30 | platform: 'tizen',
31 | model: null,
32 | version: null,
33 | uuid: null
34 | });
35 | }, 0);
36 | }
37 | };
38 |
39 | require("cordova/tizen/commandProxy").add("Device", module.exports);
40 |
--------------------------------------------------------------------------------
/ionic/plugins/org.apache.cordova.device/src/firefoxos/DeviceProxy.js:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Licensed to the Apache Software Foundation (ASF) under one
4 | * or more contributor license agreements. See the NOTICE file
5 | * distributed with this work for additional information
6 | * regarding copyright ownership. The ASF licenses this file
7 | * to you under the Apache License, Version 2.0 (the
8 | * "License"); you may not use this file except in compliance
9 | * with the License. You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing,
14 | * software distributed under the License is distributed on an
15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | * KIND, either express or implied. See the License for the
17 | * specific language governing permissions and limitations
18 | * under the License.
19 | *
20 | */
21 |
22 | var firefoxos = require('cordova/platform');
23 | var cordova = require('cordova');
24 |
25 | module.exports = {
26 | getDeviceInfo: function(success, error) {
27 | setTimeout(function () {
28 | success({
29 | cordova: firefoxos.cordovaVersion,
30 | platform: 'firefoxos',
31 | model: null,
32 | version: null,
33 | uuid: null
34 | });
35 | }, 0);
36 | }
37 | };
38 |
39 | require("cordova/firefoxos/commandProxy").add("Device", module.exports);
40 |
--------------------------------------------------------------------------------
/ionic/plugins/org.apache.cordova.console/src/wp/DebugConsole.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Licensed under the Apache License, Version 2.0 (the "License");
3 | you may not use this file except in compliance with the License.
4 | You may obtain a copy of the License at
5 |
6 | http://www.apache.org/licenses/LICENSE-2.0
7 |
8 | Unless required by applicable law or agreed to in writing, software
9 | distributed under the License is distributed on an "AS IS" BASIS,
10 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | See the License for the specific language governing permissions and
12 | limitations under the License.
13 | */
14 |
15 | using System;
16 | using System.Net;
17 | using System.Windows;
18 | using System.Windows.Controls;
19 | using System.Windows.Documents;
20 | using System.Windows.Ink;
21 | using System.Windows.Input;
22 | using System.Windows.Media;
23 | using System.Windows.Media.Animation;
24 | using System.Windows.Shapes;
25 | using System.Diagnostics;
26 |
27 | namespace WPCordovaClassLib.Cordova.Commands
28 | {
29 | public class DebugConsole : BaseCommand
30 | {
31 | public void logLevel(string options)
32 | {
33 | string[] args = JSON.JsonHelper.Deserialize(options);
34 | string level = args[0];
35 | string msg = args[1];
36 |
37 | if (level.Equals("LOG"))
38 | {
39 | Debug.WriteLine(msg);
40 | }
41 | else
42 | {
43 | Debug.WriteLine(level + ": " + msg);
44 | }
45 | }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/ionic/www/templates/tab-settings.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Loading...
6 |
7 |
8 |
9 |
14 |
19 |
24 |
25 | Play sounds
26 |
32 |
33 |
34 |
35 |
36 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/server/cms/middleware.py:
--------------------------------------------------------------------------------
1 | import json
2 | from django.http.request import QueryDict
3 |
4 |
5 | class JSONMiddleware(object):
6 | """
7 | Process application/json requests data from GET and POST requests.
8 | """
9 | def process_request(self, request):
10 | if 'application/json' in request.META['CONTENT_TYPE']:
11 | # load the json data
12 | data = json.loads(request.body)
13 | # for consistency sake, we want to return
14 | # a Django QueryDict and not a plain Dict.
15 | # The primary difference is that the QueryDict stores
16 | # every value in a list and is, by default, immutable.
17 | # The primary issue is making sure that list values are
18 | # properly inserted into the QueryDict. If we simply
19 | # do a q_data.update(data), any list values will be wrapped
20 | # in another list. By iterating through the list and updating
21 | # for each value, we get the expected result of a single list.
22 | q_data = QueryDict('', mutable=True)
23 | for key, value in data.iteritems():
24 | if isinstance(value, list):
25 | # need to iterate through the list and upate
26 | # so that the list does not get wrapped in an
27 | # additional list.
28 | for x in value:
29 | q_data.update({key: x})
30 | else:
31 | q_data.update({key: value})
32 |
33 | if request.method == 'GET':
34 | request.GET = q_data
35 |
36 | if request.method == 'POST':
37 | request.POST = q_data
38 |
39 | return None
40 |
--------------------------------------------------------------------------------
/ionic/plugins/org.apache.cordova.console/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.8",
3 | "name": "org.apache.cordova.console",
4 | "cordova_name": "Console",
5 | "description": "Cordova Console Plugin",
6 | "license": "Apache 2.0",
7 | "repo": "https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git",
8 | "issue": "https://issues.apache.org/jira/browse/CB/component/12320644",
9 | "keywords": [
10 | "cordova",
11 | "console"
12 | ],
13 | "platforms": [
14 | "ios",
15 | "ubuntu",
16 | "wp7",
17 | "wp8",
18 | "windows8"
19 | ],
20 | "engines": [],
21 | "englishdoc": "\n\n# org.apache.cordova.console\n\nThis plugin is meant to ensure that console.log() is as useful as it can be. If\nyou are not unhappy with how console.log() works for you, then you probably\ndon't need this plugin.\n\n## Installation\n\n cordova plugin add org.apache.cordova.console\n\n"
22 | }
--------------------------------------------------------------------------------
/ionic/www/lib/ionic/scss/_badge.scss:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Badges
4 | * --------------------------------------------------
5 | */
6 |
7 | .badge {
8 | @include badge-style($badge-default-bg, $badge-default-text);
9 | z-index: $z-index-badge;
10 | display: inline-block;
11 | padding: 3px 8px;
12 | min-width: 10px;
13 | border-radius: $badge-border-radius;
14 | vertical-align: baseline;
15 | text-align: center;
16 | white-space: nowrap;
17 | font-weight: $badge-font-weight;
18 | font-size: $badge-font-size;
19 | line-height: $badge-line-height;
20 |
21 | &:empty {
22 | display: none;
23 | }
24 | }
25 |
26 | //Be sure to override specificity of rule that 'badge color matches tab color by default'
27 | .tabs .tab-item .badge,
28 | .badge {
29 | &.badge-light {
30 | @include badge-style($badge-light-bg, $badge-light-text);
31 | }
32 | &.badge-stable {
33 | @include badge-style($badge-stable-bg, $badge-stable-text);
34 | }
35 | &.badge-positive {
36 | @include badge-style($badge-positive-bg, $badge-positive-text);
37 | }
38 | &.badge-calm {
39 | @include badge-style($badge-calm-bg, $badge-calm-text);
40 | }
41 | &.badge-assertive {
42 | @include badge-style($badge-assertive-bg, $badge-assertive-text);
43 | }
44 | &.badge-balanced {
45 | @include badge-style($badge-balanced-bg, $badge-balanced-text);
46 | }
47 | &.badge-energized {
48 | @include badge-style($badge-energized-bg, $badge-energized-text);
49 | }
50 | &.badge-royal {
51 | @include badge-style($badge-royal-bg, $badge-royal-text);
52 | }
53 | &.badge-dark {
54 | @include badge-style($badge-dark-bg, $badge-dark-text);
55 | }
56 | }
57 |
58 | // Quick fix for labels/badges in buttons
59 | .button .badge {
60 | position: relative;
61 | top: -1px;
62 | }
63 |
--------------------------------------------------------------------------------
/ionic/www/lib/ionic/scss/_platform.scss:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Platform
4 | * --------------------------------------------------
5 | * Platform specific tweaks
6 | */
7 |
8 | .platform-ios.platform-cordova {
9 | // iOS has a status bar which sits on top of the header.
10 | // Bump down everything to make room for it. However, if
11 | // if its in Cordova, and set to fullscreen, then disregard the bump.
12 | &:not(.fullscreen) {
13 | .bar-header:not(.bar-subheader) {
14 | height: $bar-height + $ios-statusbar-height;
15 |
16 | &.item-input-inset .item-input-wrapper {
17 | margin-top: 19px !important;
18 | }
19 |
20 | > * {
21 | margin-top: $ios-statusbar-height;
22 | }
23 | }
24 | .tabs-top > .tabs,
25 | .tabs.tabs-top {
26 | top: $bar-height + $ios-statusbar-height;
27 | }
28 |
29 | .has-header,
30 | .bar-subheader {
31 | top: $bar-height + $ios-statusbar-height;
32 | }
33 | .has-subheader {
34 | top: $bar-height + $bar-subheader-height + $ios-statusbar-height;
35 | }
36 | .has-header.has-tabs-top {
37 | top: $bar-height + $tabs-height + $ios-statusbar-height;
38 | }
39 | .has-header.has-subheader.has-tabs-top {
40 | top: $bar-height + $bar-subheader-height + $tabs-height + $ios-statusbar-height;
41 | }
42 | }
43 | &.status-bar-hide {
44 | // Cordova doesn't adjust the body height correctly, this makes up for it
45 | margin-bottom: 20px;
46 | }
47 | }
48 |
49 | @media (orientation:landscape) {
50 | .platform-ios.platform-browser.platform-ipad {
51 | position: fixed; // required for iPad 7 Safari
52 | }
53 | }
54 |
55 | .platform-c:not(.enable-transitions) * {
56 | // disable transitions on grade-c devices (Android 2)
57 | -webkit-transition: none !important;
58 | transition: none !important;
59 | }
60 |
--------------------------------------------------------------------------------
/ionic/plugins/org.apache.cordova.device/src/windows8/DeviceProxy.js:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Licensed to the Apache Software Foundation (ASF) under one
4 | * or more contributor license agreements. See the NOTICE file
5 | * distributed with this work for additional information
6 | * regarding copyright ownership. The ASF licenses this file
7 | * to you under the Apache License, Version 2.0 (the
8 | * "License"); you may not use this file except in compliance
9 | * with the License. You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing,
14 | * software distributed under the License is distributed on an
15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | * KIND, either express or implied. See the License for the
17 | * specific language governing permissions and limitations
18 | * under the License.
19 | *
20 | */
21 |
22 |
23 | var cordova = require('cordova');
24 | var utils = require('cordova/utils');
25 |
26 | module.exports = {
27 |
28 | getDeviceInfo:function(win,fail,args) {
29 |
30 | // deviceId aka uuid, stored in Windows.Storage.ApplicationData.current.localSettings.values.deviceId
31 | var deviceId;
32 |
33 | var localSettings = Windows.Storage.ApplicationData.current.localSettings;
34 |
35 | if (localSettings.values.deviceId) {
36 | deviceId = localSettings.values.deviceId;
37 | }
38 | else {
39 | deviceId = localSettings.values.deviceId = utils.createUUID();
40 | }
41 |
42 | setTimeout(function () {
43 | win({ platform: "windows8", version: "8", uuid: deviceId, model: window.clientInformation.platform });
44 | }, 0);
45 | }
46 |
47 | };
48 |
49 | require("cordova/exec/proxy").add("Device", module.exports);
50 |
51 |
--------------------------------------------------------------------------------
/ionic/plugins/org.apache.cordova.console/RELEASENOTES.md:
--------------------------------------------------------------------------------
1 |
21 | # Release Notes
22 |
23 | ### 0.2.3 (Sept 25, 2013)
24 | * CB-4889 bumping&resetting version
25 | * CB-4889 renaming org.apache.cordova.core.console to org.apache.cordova.console
26 | * Rename CHANGELOG.md -> RELEASENOTES.md
27 | * [CB-4752] Incremented plugin version on dev branch.
28 |
29 | ### 0.2.4 (Oct 28, 2013)
30 | * CB-5154 log formatting incorrectly to native
31 | * CB-5128: added repo + issue tag to plugin.xml for console plugin
32 | * [CB-4915] Incremented plugin version on dev branch.
33 |
34 | ### 0.2.5 (Dec 4, 2013)
35 | * add ubuntu platform
36 |
37 | ### 0.2.6 (Jan 02, 2014)
38 | * CB-5658 Add doc/index.md for Console plugin
39 |
40 | ### 0.2.7 (Feb 05, 2014)
41 | * Native console needs to be called DebugConsole to avoid ambiguous reference. This commit requires the 3.4.0 version of the native class factory
42 | * CB-4718 fixed Console plugin not working on wp
43 |
44 | ### 0.2.8 (Apr 17, 2014)
45 | * CB-6460: Update license headers
46 | * Add NOTICE file
47 |
--------------------------------------------------------------------------------
/server/cms/static/cms/controllers/question_controller.js:
--------------------------------------------------------------------------------
1 | angular.module('cms').controller('QuestionController',
2 | ['$scope', '$http', '$modalInstance', 'question', 'questions',
3 | function($scope, $http, $modalInstance, question, questions) {
4 | $scope.loading = false;
5 | $scope.new_word = '';
6 | $scope.new_word_explanation = '';
7 |
8 | $scope.question = question;
9 |
10 | $scope.removed_word = null;
11 |
12 | $scope.removeWord = function(word) {
13 | var data = {
14 | 'remove': word.word,
15 | };
16 | $http.post('/cms/questions/' + $scope.question.id, data)
17 | .success(function(response) {
18 | $scope.removed_word = word;
19 | $scope.question.words.splice(
20 | $scope.question.words.indexOf(word),
21 | 1
22 | );
23 |
24 | })
25 | .error(function() {
26 | console.error(arguments);
27 | });
28 | };
29 |
30 | $scope.addNewWord = function() {
31 | return _addWord($scope.new_word, $scope.new_word_explanation);
32 | };
33 |
34 | $scope.undoRemovedWord = function() {
35 | _addWord($scope.removed_word.word, $scope.removed_word.explanation);
36 | $scope.removed_word = null;
37 | };
38 |
39 | var _addWord = function(word, explanation) {
40 | var data = {
41 | word: word,
42 | explanation: explanation,
43 | };
44 | $http.post('/cms/questions/' + $scope.question.id, data)
45 | .success(function(response) {
46 | $scope.question.words.push(response.word);
47 | $scope.new_word = '';
48 | $scope.new_word_explanation = '';
49 | })
50 | .error(function() {
51 | console.error(arguments);
52 | });
53 | };
54 |
55 | $scope.playAudio = function(index) {
56 | document.getElementById('audio-' + index).play();
57 | };
58 |
59 | $scope.cancel = function () {
60 | $modalInstance.dismiss('cancel');
61 | };
62 | }]);
63 |
--------------------------------------------------------------------------------
/ionic/plugins/org.apache.cordova.device/src/ubuntu/device.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2011 Wolfgang Koller - http://www.gofg.at/
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #include
18 | #include
19 |
20 | #include"device.h"
21 |
22 | #define CORDOVA "3.0.0"
23 |
24 | Device::Device(Cordova *cordova) : CPlugin(cordova) {
25 | }
26 |
27 | static QString getOSName() {
28 | #ifdef Q_OS_SYMBIAN
29 | QString platform = "Symbian";
30 | #endif
31 | #ifdef Q_OS_WIN
32 | QString platform = "Windows";
33 | #endif
34 | #ifdef Q_OS_WINCE
35 | QString platform = "Windows CE";
36 | #endif
37 | #ifdef Q_OS_LINUX
38 | QString platform = "Linux";
39 | #endif
40 | return platform;
41 | }
42 |
43 | void Device::getInfo(int scId, int ecId) {
44 | Q_UNUSED(ecId)
45 |
46 | QDeviceInfo systemDeviceInfo;
47 | QDeviceInfo systemInfo;
48 |
49 | QString platform = getOSName();
50 |
51 | QString uuid = systemDeviceInfo.uniqueDeviceID();
52 | if (uuid.isEmpty()) {
53 | QString deviceDescription = systemInfo.imei(0) + ";" + systemInfo.manufacturer() + ";" + systemInfo.model() + ";" + systemInfo.productName() + ";" + platform;
54 | QString user = qgetenv("USER");
55 | if (user.isEmpty()) {
56 | user = qgetenv("USERNAME");
57 | if (user.isEmpty())
58 | user = QDir::homePath();
59 | }
60 | uuid = QString(QCryptographicHash::hash((deviceDescription + ";" + user).toUtf8(), QCryptographicHash::Md5).toHex());
61 | }
62 |
63 | this->cb(scId, systemDeviceInfo.model(), CORDOVA, platform, uuid, systemInfo.version(QDeviceInfo::Os));
64 | }
65 |
--------------------------------------------------------------------------------
/ionic/README.md:
--------------------------------------------------------------------------------
1 | Ionic App Base
2 | =====================
3 |
4 | A starting project for Ionic that optionally supports
5 | using custom SCSS.
6 |
7 | ## Using this project
8 |
9 | We recommend using the `ionic` utility to create new Ionic projects that are based on this project but use a ready-made starter template.
10 |
11 | For example, to start a new Ionic project with the default tabs interface, make sure the `ionic` utility is installed:
12 |
13 | ```bash
14 | $ sudo npm install -g ionic
15 | ```
16 |
17 | Then run:
18 |
19 | ```bash
20 | $ sudo npm install -g ionic
21 | $ ionic start myProject tabs
22 | ```
23 |
24 | More info on this can be found on the Ionic [Getting Started](http://ionicframework.com/getting-started) page.
25 |
26 | ## Installation
27 |
28 | While we recommend using the `ionic` utility to create new Ionic projects, you can use this repo as a barebones starting point to your next Ionic app.
29 |
30 | To use this project as is, first clone the repo from GitHub, then run:
31 |
32 | ```bash
33 | $ cd ionic-app-base
34 | $ sudo npm install -g cordova ionic gulp
35 | $ npm install
36 | $ gulp init
37 | ```
38 |
39 | ## Using Sass (optional)
40 |
41 | This project makes it easy to use Sass (the SCSS syntax) in your projects. This enables you to override styles from Ionic, and benefit from
42 | Sass's great features.
43 |
44 | Just update the `./scss/ionic.app.scss` file, and run `gulp` or `gulp watch` to rebuild the CSS files for Ionic.
45 |
46 | Note: if you choose to use the Sass method, make sure to remove the included `ionic.css` file in `index.html`, and then uncomment
47 | the include to your `ionic.app.css` file which now contains all your Sass code and Ionic itself:
48 |
49 | ```html
50 |
53 | ```
54 | ## Issues
55 | Issues have been disabled on this repo, if you do find an issue or have a question consider posting it on the [Ionic Forum](http://forum.ionicframework.com/). Or else if there is truly an error, follow our guidelines for [submitting an issue](http://ionicframework.com/contribute/#issues) to the main Ionic repository. On the other hand, pull requests are welcome here!
56 |
57 |
--------------------------------------------------------------------------------
/server/cms/static/cms/angular/angular-cookies.min.js.map:
--------------------------------------------------------------------------------
1 | {
2 | "version":3,
3 | "file":"angular-cookies.min.js",
4 | "lineCount":7,
5 | "mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAA6B,CAmBtCD,CAAAE,OAAA,CAAe,WAAf,CAA4B,CAAC,IAAD,CAA5B,CAAAC,QAAA,CA0BW,UA1BX,CA0BuB,CAAC,YAAD,CAAe,UAAf,CAA2B,QAAS,CAACC,CAAD,CAAaC,CAAb,CAAuB,CAAA,IACxEC,EAAU,EAD8D,CAExEC,EAAc,EAF0D,CAGxEC,CAHwE,CAIxEC,EAAU,CAAA,CAJ8D,CAKxEC,EAAOV,CAAAU,KALiE,CAMxEC,EAAcX,CAAAW,YAGlBN,EAAAO,UAAA,CAAmB,QAAQ,EAAG,CAC5B,IAAIC,EAAiBR,CAAAC,QAAA,EACjBE,EAAJ,EAA0BK,CAA1B,GACEL,CAGA,CAHqBK,CAGrB,CAFAH,CAAA,CAAKG,CAAL,CAAqBN,CAArB,CAEA,CADAG,CAAA,CAAKG,CAAL,CAAqBP,CAArB,CACA,CAAIG,CAAJ,EAAaL,CAAAU,OAAA,EAJf,CAF4B,CAA9B,CAAA,EAUAL,EAAA,CAAU,CAAA,CAKVL,EAAAW,OAAA,CASAC,QAAa,EAAG,CAAA,IACVC,CADU,CAEVC,CAFU,CAIVC,CAGJ,KAAKF,CAAL,GAAaV,EAAb,CACMI,CAAA,CAAYL,CAAA,CAAQW,CAAR,CAAZ,CAAJ,EACEZ,CAAAC,QAAA,CAAiBW,CAAjB,CAAuBhB,CAAvB,CAKJ,KAAIgB,CAAJ,GAAYX,EAAZ,CACEY,CAKA,CALQZ,CAAA,CAAQW,CAAR,CAKR,CAJKjB,CAAAoB,SAAA,CAAiBF,CAAjB,CAIL,GAHEA,CACA,CADQ,EACR,CADaA,CACb,CAAAZ,CAAA,CAAQW,CAAR,CAAA,CAAgBC,CAElB,EAAIA,CAAJ,GAAcX,CAAA,CAAYU,CAAZ,CAAd,GACEZ,CAAAC,QAAA,CAAiBW,CAAjB,CAAuBC,CAAvB,CACA,CAAAC,CAAA,CAAU,CAAA,CAFZ,CAOF,IAAIA,CAAJ,CAIE,IAAKF,CAAL,GAFAI,EAEaf,CAFID,CAAAC,QAAA,EAEJA,CAAAA,CAAb,CACMA,CAAA,CAAQW,CAAR,CAAJ,GAAsBI,CAAA,CAAeJ,CAAf,CAAtB,GAEMN,CAAA,CAAYU,CAAA,CAAeJ,CAAf,CAAZ,CAAJ,CACE,OAAOX,CAAA,CAAQW,CAAR,CADT,CAGEX,CAAA,CAAQW,CAAR,CAHF,CAGkBI,CAAA,CAAeJ,CAAf,CALpB,CAhCU,CAThB,CAEA,OAAOX,EA1BqE,CAA3D,CA1BvB,CAAAH,QAAA,CAoIW,cApIX;AAoI2B,CAAC,UAAD,CAAa,QAAQ,CAACmB,CAAD,CAAW,CAErD,MAAO,KAWAC,QAAQ,CAACC,CAAD,CAAM,CAEjB,MAAO,CADHN,CACG,CADKI,CAAA,CAASE,CAAT,CACL,EAAQxB,CAAAyB,SAAA,CAAiBP,CAAjB,CAAR,CAAkCA,CAFxB,CAXd,KA0BAQ,QAAQ,CAACF,CAAD,CAAMN,CAAN,CAAa,CACxBI,CAAA,CAASE,CAAT,CAAA,CAAgBxB,CAAA2B,OAAA,CAAeT,CAAf,CADQ,CA1BrB,QAuCGU,QAAQ,CAACJ,CAAD,CAAM,CACpB,OAAOF,CAAA,CAASE,CAAT,CADa,CAvCjB,CAF8C,CAAhC,CApI3B,CAnBsC,CAArC,CAAA,CAwMEzB,MAxMF,CAwMUA,MAAAC,QAxMV;",
6 | "sources":["angular-cookies.js"],
7 | "names":["window","angular","undefined","module","factory","$rootScope","$browser","cookies","lastCookies","lastBrowserCookies","runEval","copy","isUndefined","addPollFn","currentCookies","$apply","$watch","push","name","value","updated","isString","browserCookies","$cookies","get","key","fromJson","put","toJson","remove"]
8 | }
9 |
--------------------------------------------------------------------------------
/ionic/www/lib/ionic/scss/ionicons/_ionicons-animation.scss:
--------------------------------------------------------------------------------
1 | // Animation Icons
2 | // --------------------------
3 |
4 | .#{$ionicons-prefix}spin {
5 | -webkit-animation: spin 1s infinite linear;
6 | -moz-animation: spin 1s infinite linear;
7 | -o-animation: spin 1s infinite linear;
8 | animation: spin 1s infinite linear;
9 | }
10 |
11 | @-moz-keyframes spin {
12 | 0% { -moz-transform: rotate(0deg); }
13 | 100% { -moz-transform: rotate(359deg); }
14 | }
15 | @-webkit-keyframes spin {
16 | 0% { -webkit-transform: rotate(0deg); }
17 | 100% { -webkit-transform: rotate(359deg); }
18 | }
19 | @-o-keyframes spin {
20 | 0% { -o-transform: rotate(0deg); }
21 | 100% { -o-transform: rotate(359deg); }
22 | }
23 | @-ms-keyframes spin {
24 | 0% { -ms-transform: rotate(0deg); }
25 | 100% { -ms-transform: rotate(359deg); }
26 | }
27 | @keyframes spin {
28 | 0% { transform: rotate(0deg); }
29 | 100% { transform: rotate(359deg); }
30 | }
31 |
32 |
33 | .#{$ionicons-prefix}loading-a,
34 | .#{$ionicons-prefix}loading-b,
35 | .#{$ionicons-prefix}loading-c,
36 | .#{$ionicons-prefix}loading-d,
37 | .#{$ionicons-prefix}looping,
38 | .#{$ionicons-prefix}refreshing,
39 | .#{$ionicons-prefix}ios7-reloading {
40 | @extend .ion;
41 | // must spin entire element for android 4.3 and below
42 | @extend .#{$ionicons-prefix}spin;
43 | }
44 |
45 | .#{$ionicons-prefix}loading-a {
46 | -webkit-animation-timing-function: steps(8, start);
47 | -moz-animation-timing-function: steps(8, start);
48 | animation-timing-function: steps(8, start);
49 | }
50 |
51 | .#{$ionicons-prefix}loading-a:before {
52 | @extend .#{$ionicons-prefix}load-a:before;
53 | }
54 |
55 | .#{$ionicons-prefix}loading-b:before {
56 | @extend .#{$ionicons-prefix}load-b:before;
57 | }
58 |
59 | .#{$ionicons-prefix}loading-c:before {
60 | @extend .#{$ionicons-prefix}load-c:before;
61 | }
62 |
63 | .#{$ionicons-prefix}loading-d:before {
64 | @extend .#{$ionicons-prefix}load-d:before;
65 | }
66 |
67 | .#{$ionicons-prefix}looping:before {
68 | @extend .#{$ionicons-prefix}loop:before;
69 | }
70 |
71 | .#{$ionicons-prefix}refreshing:before {
72 | @extend .#{$ionicons-prefix}refresh:before;
73 | }
74 |
75 | .#{$ionicons-prefix}ios7-reloading:before {
76 | @extend .#{$ionicons-prefix}ios7-reload:before;
77 | }
78 |
--------------------------------------------------------------------------------
/server/cms/templates/cms/partials/group.html:
--------------------------------------------------------------------------------
1 | {% verbatim %}
2 |
3 |