forked from swagger-api/swagger-editor
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable local storage && Add prompt when generating code && update gu…
…ide.yaml
- Loading branch information
Showing
6 changed files
with
64 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
var _ = require('lodash'); | ||
var angular = require('angular'); | ||
|
||
SwaggerEditor.controller('CrossOriginPromptCtrl', function FileImportCtrl($scope, | ||
$uibModalInstance, $rootScope) { | ||
|
||
$scope.ok = function() { | ||
|
||
$uibModalInstance.close(); | ||
}; | ||
|
||
$scope.cancel = $uibModalInstance.close; | ||
}); |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="modal-header"> | ||
<h3 class="modal-title">Prompt</h3> | ||
</div> | ||
<div class="modal-body"> | ||
<div class="form-group"> | ||
<label>We will send a document, which includes the data you input, to http://generator.swagger.io to generate codes. <br><br>Do you want to proceed?</label> | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<button class="btn btn-warning" ng-click="cancel()">Cancel</button> | ||
<button class="btn btn-primary" ng-click="ok()">OK</button> | ||
</div> |