This file contains hidden or 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
| const Packages = require('./package.json'); | |
| const execPromise = (cmd) => new Promise((resolve) => { | |
| require('child_process').exec(cmd, (error, stdout, stderr) => { | |
| if (error) { | |
| console.warn(error); | |
| } | |
| resolve(error ? `${cmd} failed with error: \n${stderr}\n` : `${cmd} completed.`); | |
| }); | |
| }); |
This file contains hidden or 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
| $scope.openEditFeatureDialog = function (feature) { | |
| ngDialog.openConfirm({ | |
| template: '/js/angular/Templates/Admin/addSubscriptionFeature.html', | |
| controller: function($scope) { | |
| $scope.description = feature.description; | |
| $scope.emphasize = feature.emphasize; | |
| $scope.add = function () { | |
| if (!$scope.description) { | |
| return $scope.descriptionHasError = true; | |
| } |
This file contains hidden or 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 express = require('express'), | |
| UserService = require('../../services/UserService'), | |
| SubscriptionService = require('../../services/SubscriptionService'), | |
| Joi = require('joi'), | |
| joiful = require('../../lib/joiful'), | |
| router = express.Router(); | |
| var SignupDoctorPostSchema = Joi.object().keys({ | |
| username: Joi.string().required(), | |
| email: Joi.string().email().required(), |