fixed build, dist
This commit is contained in:
2
Cakefile
2
Cakefile
@@ -96,7 +96,7 @@ task 'dist', 'Build a distribution', ->
|
|||||||
reportNcpErrors err
|
reportNcpErrors err
|
||||||
console.log ' : Copied swagger-ui libs'
|
console.log ' : Copied swagger-ui libs'
|
||||||
fs.mkdirSync('dist/lib') if not fs.existsSync('dist/lib')
|
fs.mkdirSync('dist/lib') if not fs.existsSync('dist/lib')
|
||||||
fs.createReadStream('node_modules/swagger-client/lib/swagger.js').pipe(fs.createWriteStream('dist/lib/swagger.js'));
|
fs.createReadStream('node_modules/swagger-client/lib/swagger-client.js');
|
||||||
console.log ' : Copied swagger dependencies'
|
console.log ' : Copied swagger dependencies'
|
||||||
ncp.ncp 'src/main/html', 'dist', (err) ->
|
ncp.ncp 'src/main/html', 'dist', (err) ->
|
||||||
reportNcpErrors err
|
reportNcpErrors err
|
||||||
|
|||||||
26
dist/css/typography.css
vendored
Normal file
26
dist/css/typography.css
vendored
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
/* droid-sans-regular - latin */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Droid Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url('../fonts/droid-sans-v6-latin-regular.eot'); /* IE9 Compat Modes */
|
||||||
|
src: local('Droid Sans'), local('DroidSans'),
|
||||||
|
url('../fonts/droid-sans-v6-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
||||||
|
url('../fonts/droid-sans-v6-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
|
||||||
|
url('../fonts/droid-sans-v6-latin-regular.woff') format('woff'), /* Modern Browsers */
|
||||||
|
url('../fonts/droid-sans-v6-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
|
||||||
|
url('../fonts/droid-sans-v6-latin-regular.svg#DroidSans') format('svg'); /* Legacy iOS */
|
||||||
|
}
|
||||||
|
/* droid-sans-700 - latin */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Droid Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
src: url('../fonts/droid-sans-v6-latin-700.eot'); /* IE9 Compat Modes */
|
||||||
|
src: local('Droid Sans Bold'), local('DroidSans-Bold'),
|
||||||
|
url('../fonts/droid-sans-v6-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
||||||
|
url('../fonts/droid-sans-v6-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
|
||||||
|
url('../fonts/droid-sans-v6-latin-700.woff') format('woff'), /* Modern Browsers */
|
||||||
|
url('../fonts/droid-sans-v6-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
|
||||||
|
url('../fonts/droid-sans-v6-latin-700.svg#DroidSans') format('svg'); /* Legacy iOS */
|
||||||
|
}
|
||||||
7
dist/index.html
vendored
7
dist/index.html
vendored
@@ -2,9 +2,10 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Swagger UI</title>
|
<title>Swagger UI</title>
|
||||||
<link href='//fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'/>
|
<link href='css/typography.css' media='screen' rel='stylesheet' type='text/css'/>
|
||||||
<link href='css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
|
<link href='css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
|
||||||
<link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
|
<link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
|
||||||
|
<link href='css/typography.css' media='print' rel='stylesheet' type='text/css'/>
|
||||||
<link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/>
|
<link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/>
|
||||||
<link href='css/screen.css' media='print' rel='stylesheet' type='text/css'/>
|
<link href='css/screen.css' media='print' rel='stylesheet' type='text/css'/>
|
||||||
<script type="text/javascript" src="lib/shred.bundle.js"></script>
|
<script type="text/javascript" src="lib/shred.bundle.js"></script>
|
||||||
@@ -37,13 +38,13 @@
|
|||||||
onComplete: function(swaggerApi, swaggerUi){
|
onComplete: function(swaggerApi, swaggerUi){
|
||||||
log("Loaded SwaggerUI");
|
log("Loaded SwaggerUI");
|
||||||
if(typeof initOAuth == "function") {
|
if(typeof initOAuth == "function") {
|
||||||
|
/*
|
||||||
initOAuth({
|
initOAuth({
|
||||||
clientId: "your-client-id",
|
clientId: "your-client-id",
|
||||||
realm: "your-realms",
|
realm: "your-realms",
|
||||||
appName: "your-app-name"
|
appName: "your-app-name"
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
$('pre code').each(function(i, e) {
|
$('pre code').each(function(i, e) {
|
||||||
hljs.highlightBlock(e)
|
hljs.highlightBlock(e)
|
||||||
|
|||||||
1725
dist/lib/swagger.js
vendored
1725
dist/lib/swagger.js
vendored
File diff suppressed because it is too large
Load Diff
2
dist/swagger-ui.js
vendored
2
dist/swagger-ui.js
vendored
@@ -1885,7 +1885,7 @@ helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
|
|||||||
_ref9 = this.model.parameters;
|
_ref9 = this.model.parameters;
|
||||||
for (_k = 0, _len2 = _ref9.length; _k < _len2; _k++) {
|
for (_k = 0, _len2 = _ref9.length; _k < _len2; _k++) {
|
||||||
param = _ref9[_k];
|
param = _ref9[_k];
|
||||||
type = param.type || param.dataType;
|
type = param.type || param.dataType || '';
|
||||||
if (typeof type === 'undefined') {
|
if (typeof type === 'undefined') {
|
||||||
schema = param.schema;
|
schema = param.schema;
|
||||||
if (schema && schema['$ref']) {
|
if (schema && schema['$ref']) {
|
||||||
|
|||||||
2
dist/swagger-ui.min.js
vendored
2
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -2,7 +2,7 @@
|
|||||||
{{#if info}}
|
{{#if info}}
|
||||||
<div class="info_title">{{info.title}}</div>
|
<div class="info_title">{{info.title}}</div>
|
||||||
<div class="info_description">{{{info.description}}}</div>
|
<div class="info_description">{{{info.description}}}</div>
|
||||||
{{#if info.termsOfService}}<div class="info_tos"><a href="{{info.termsOfService}}">Terms of service</a></div>{{/if}}
|
{{#if info.termsOfServiceUrl}}<div class="info_tos"><a href="{{info.termsOfServiceUrl}}">Terms of service</a></div>{{/if}}
|
||||||
{{#if info.contact}}<div class='info_contact'><a href="mailto:{{info.contact.name}}">Contact the developer</a></div>{{/if}}
|
{{#if info.contact}}<div class='info_contact'><a href="mailto:{{info.contact.name}}">Contact the developer</a></div>{{/if}}
|
||||||
{{#if info.license}}<div class='info_license'><a href='{{info.license.url}}'>{{info.license.name}}</a></div>{{/if}}
|
{{#if info.license}}<div class='info_license'><a href='{{info.license.url}}'>{{info.license.name}}</a></div>{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|||||||
Reference in New Issue
Block a user