This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var __extends = require('dotmvc/lib/util/extends'); | |
var __mixin = require('dotmvc/lib/util/mixin'); | |
var KendoChart = require('./KendoChart.js'); | |
var KendoXYSparkline = require('./KendoXYSparkline.js'); | |
// Configs | |
var SeriesDefaults = require('./config/SeriesDefaults.js'); | |
var AxisDefaults = require('./config/AxisDefaults.js'); | |
var Series = require('./config/Series.js'); | |
var CategoryAxis = require('./config/CategoryAxis.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import angular from 'angular'; | |
import widgetEvents from './widget-events'; | |
/** | |
* Handle the creation workflow of a new content capsule | |
*/ | |
export default class CapsuleEdit { | |
constructor($scope, widgetManager, $upload, $stateParams, ContentCapsuleAdmin) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import TextWidget from '../text-widget/model'; | |
import ImageWidget from '../image-widget/model'; | |
const WidgetT = { | |
text: TextWidget, | |
image: ImageWidget | |
}; | |
export default class WidgetManager | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var acorn = require('./node_modules/babel/node_modules/babel-core/lib/acorn'); | |
require('./node_modules/babel/node_modules/babel-core/lib/acorn/plugins/flow.js'); | |
var T = fs.readFileSync('./T.js'); | |
var ast = acorn.parse(T, { | |
ecmaVersion: 7, | |
sourceType: 'module', | |
plugins: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Authenticate a user | |
*/ | |
export default class Auth | |
{ | |
constructor($http, envSettings) | |
{ | |
this.$http = $http; | |
this.envSettings = envSettings; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// --------------------------------------------- | |
// CreateCapsule Controller | |
import angular from 'angular'; | |
import uiRouter from 'angular-ui-router'; | |
import CreateCapsule from './CreateCapsule.js'; | |
import htmlCreateCapsule from './create-capsule.html'; | |
// Services | |
import envSettingsService from '../env-settings'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import angular from 'angular'; | |
import Table from 'table'; | |
import sampleData from './sample-data/data.json'; | |
let App = angular.module('ExampleApp', []); | |
App.directive('sbpTable', () => { | |
return { | |
link: (scope, element, attrs) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import angular from 'angular'; | |
import htmlChoosePageTemplate from './choose-page-template.html'; | |
const TEMPLATES = [ | |
{ id: '1-column-simple', name: '1-Column Simple', icon: 'icon-grid' }, | |
{ id: '2-column-simple', name: '2-Column Simple', icon: 'icon-grid' }, | |
{ id: '3-column-simple', name: '3-Column Simple', icon: 'icon-grid' }, | |
{ id: '1-column-staggered', name: '1-Column Staggered', icon: 'icon-grid' }, | |
{ id: '2-column-staggered', name: '2-Column Staggered', icon: 'icon-grid' }, | |
{ id: '3-column-staggered', name: '3-Column Staggered', icon: 'icon-grid' }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import angular from 'angular'; | |
import angularMocks from 'angular-mocks'; | |
import choosePageTemplate from './index.js'; | |
describe('choose page template directive', function () { | |
var $scope, element; | |
beforeEach(angular.mock.module('w2o.nextworks.choosePageTemplate')); | |
beforeEach(angular.mock.inject(function($compile, $rootScope) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.loadNpmTasks('sbp-frontend'); | |
grunt.initConfig({ | |
sbp: { | |
client: { | |
options: { | |
vendorLibs: [ | |
'angular', |