Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HellLo #1121

Closed
wants to merge 7 commits into from
Closed

HellLo #1121

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ docker run -p 80:8080 swaggerapi/swagger-editor

#### Running Locally

[**Download the latest release (v2.10.3)**](https://github.com/swagger-api/swagger-editor/releases/download/v2.10.3/swagger-editor.zip) and serve the static files via your HTTP server. If you don't have an HTTP server, you can use [`http-server`](https://www.npmjs.com/package/http-server) Node.js module.
[**Download the latest release (v2.10.4)**](https://github.com/swagger-api/swagger-editor/releases/download/v2.10.4/swagger-editor.zip) and serve the static files via your HTTP server. If you don't have an HTTP server, you can use [`http-server`](https://www.npmjs.com/package/http-server) Node.js module.

###### Using `http-server` module:
```shell
npm install -g http-server
wget https://github.com/swagger-api/swagger-editor/releases/download/v2.10.3/swagger-editor.zip
wget https://github.com/swagger-api/swagger-editor/releases/download/v2.10.4/swagger-editor.zip
unzip swagger-editor.zip
http-server swagger-editor
```
Expand Down
8 changes: 4 additions & 4 deletions config/defaults.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"codegen": {
"servers": "http://generator.swagger.io/api/gen/servers",
"clients": "http://generator.swagger.io/api/gen/clients",
"server": "http://generator.swagger.io/api/gen/servers/{language}",
"client": "http://generator.swagger.io/api/gen/clients/{language}"
"servers": "//generator.swagger.io/api/gen/servers",
"clients": "//generator.swagger.io/api/gen/clients",
"server": "//generator.swagger.io/api/gen/servers/{language}",
"client": "//generator.swagger.io/api/gen/clients/{language}"
},
"analytics": {
"google": {
Expand Down
8 changes: 4 additions & 4 deletions config/defaults.json.guide.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ var defaults = {
* Menu items are generated based on result of GET request to these
* endpoint
*/
servers: 'http://generator.swagger.io/online/api/gen/servers',
clients: 'http://generator.swagger.io/online/api/gen/clients',
servers: '//generator.swagger.io/online/api/gen/servers',
clients: '//generator.swagger.io/online/api/gen/clients',

/*
* For each item in menu item, Swagger Editor will make calls to these
* endpoint to download the generated code accordingly
*/
server: 'http://generator.swagger.io/online/api/gen/servers/{language}',
client: 'http://generator.swagger.io/online/api/gen/clients/{language}'
server: '//generator.swagger.io/online/api/gen/servers/{language}',
client: '//generator.swagger.io/online/api/gen/clients/{language}'
},

/*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swagger-editor",
"version": "2.10.3",
"version": "2.10.4",
"homepage": "https://github.com/swagger-api/swagger-editor",
"description": "Swagger Editor",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/services/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ SwaggerEditor.service('Builder', function Builder(SwayWorker, Preferences) {
var json;

return new Promise(function(resolve, reject) {
// If stringVlue is empty, return emptyDocsError
// If stringValue is empty, return emptyDocsError
if (!stringValue) {
reject({
specs: null,
Expand Down
2 changes: 1 addition & 1 deletion templates/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ <h3 class="modal-title">About Swagger Editor</h3>
</div>
<div class="modal-body">
<p>Swagger Editor</p>
<p>Version <span class="version-number">2.10.3</span></p>
<p>Version <span class="version-number">2.10.4</span></p>
<p><a href="https://github.com/swagger-api/swagger-editor" target="_blank">GitHub Project Page</a></p>
<iframe src="https://ghbtns.com/github-btn.html?user=swagger-api&repo=swagger-editor&type=star&count=true" frameborder="0" scrolling="0" width="170px" height="20px"></iframe>
<div class="monospace">
Expand Down