This commit is contained in:
Alexander Zaslonov 2021-09-21 10:25:54 -07:00 коммит произвёл GitHub
Родитель 08b37c5fbe
Коммит 7591a1126e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
8 изменённых файлов: 760 добавлений и 11194 удалений

11783
catalog/package-lock.json сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -17,91 +17,83 @@
"build-publisher": "webpack --config webpack.publisher.js",
"build-runtime": "webpack --config webpack.runtime.js",
"build-host": "webpack --config webpack.host.js",
"publish": "webpack --config webpack.publisher.js && node dist/publisher/index.js",
"postinstall": "npx browserslist --update-db"
"publish": "webpack --config webpack.publisher.js && node dist/publisher/index.js"
},
"devDependencies": {
"@azure/storage-blob": "12.4.1",
"@types/chai": "^4.2.14",
"@types/google-maps": "^3.2.2",
"@types/knockout": "^3.4.69",
"@types/knockout.mapping": "^2.0.35",
"@types/knockout.validation": "0.0.37",
"@types/lodash": "^4.14.162",
"@types/chai": "^4.2.21",
"@types/google-maps": "^3.2.3",
"@types/knockout": "^3.4.71",
"@types/knockout.mapping": "^2.0.36",
"@types/knockout.validation": "0.0.38",
"@types/lodash": "^4.14.173",
"@types/mime": "^2.0.3",
"@types/mime-types": "^2.1.0",
"@types/mocha": "8.0.3",
"@types/node": "^14.11.10",
"@types/puppeteer": "^3.0.2",
"autoprefixer": "^10.0.1",
"azure-storage": "^2.10.3",
"chai": "^4.2.0",
"@types/mocha": "9.0.0",
"@types/node": "^16.9.4",
"autoprefixer": "^10.3.4",
"chai": "^4.3.4",
"clean-webpack-plugin": "2.0.2",
"copy-webpack-plugin": "^6.2.1",
"css-loader": "^5.0.0",
"file-loader": "^6.1.1",
"html-loader": "^1.3.2",
"mini-css-extract-plugin": "^1.0.0",
"mocha": "^8.1.3",
"npx": "^10.2.2",
"mocha": "^9.1.1",
"path": "^0.12.7",
"postcss-loader": "^4.0.4",
"puppeteer": "^5.3.1",
"raw-loader": "^4.0.2",
"sass": "^1.34.0",
"sass": "^1.41.1",
"sass-loader": "^10.1.1",
"style-loader": "^2.0.0",
"terser-webpack-plugin": "4.2.3",
"ts-loader": "^8.3.0",
"ts-node": "9.0.0",
"ts-node": "10.2.1",
"tslint": "^6.1.3",
"typescript": "^4.2.4",
"typescript": "^4.4.3",
"url-loader": "^4.1.1",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.2",
"webpack-merge": "^5.2.0"
},
"dependencies": {
"@paperbits/azure": "0.1.429",
"@paperbits/common": "0.1.429",
"@paperbits/core": "0.1.429",
"@paperbits/prosemirror": "0.1.429",
"@paperbits/styles": "0.1.429",
"@types/express": "^4.17.12",
"@webcomponents/custom-elements": "1.4.3",
"@webcomponents/shadydom": "^1.8.0",
"applicationinsights-js": "^1.0.21",
"await-parallel-limit": "^2.1.0",
"body-parser": "^1.19.0",
"class-transformer": "^0.3.2",
"client-oauth2": "4.3.3",
"core-js": "^3.15.2",
"cors": "^2.8.5",
"d3": "^6.2.0",
"express": "^4.17.1",
"google-maps": "^4.3.3",
"js-beautify": "^1.14.0",
"kcors": "^2.2.2",
"knockout": "^3.5.1",
"knockout-mapping": "^2.6.0",
"knockout.validation": "^2.0.4",
"liquidjs": "^9.25.1",
"lodash": "^4.17.21",
"lunr": "^2.3.9",
"mime": "^2.5.2",
"mime-types": "^2.1.31",
"moment": "^2.29.1",
"msal": "^1.4.11",
"prismjs": "^1.24.1",
"reflect-metadata": "^0.1.13",
"remark": "^13.0.0",
"remark-html": "^13.0.1",
"routing-controllers": "0.9.0",
"saxen": "^8.1.2",
"slick": "^1.12.2",
"topojson-client": "^3.1.0",
"truncate-html": "^1.0.3",
"xhr2": "^0.2.1"
}
"dependencies": {
"@paperbits/azure": "0.1.445",
"@paperbits/common": "0.1.445",
"@paperbits/core": "0.1.445",
"@paperbits/prosemirror": "0.1.445",
"@paperbits/styles": "0.1.445",
"@types/express": "^4.17.13",
"@webcomponents/custom-elements": "1.5.0",
"@webcomponents/shadydom": "^1.9.0",
"applicationinsights-js": "^1.0.21",
"await-parallel-limit": "^2.1.0",
"body-parser": "^1.19.0",
"class-transformer": "^0.3.2",
"client-oauth2": "4.3.3",
"core-js": "^3.18.0",
"cors": "^2.8.5",
"d3": "^6.2.0",
"express": "^4.17.1",
"google-maps": "^4.3.3",
"js-beautify": "^1.14.0",
"kcors": "^2.2.2",
"knockout": "^3.5.1",
"knockout-mapping": "^2.6.0",
"knockout.validation": "^2.0.4",
"liquidjs": "^9.25.1",
"lodash": "^4.17.21",
"lunr": "^2.3.9",
"mime": "^2.5.2",
"moment": "^2.29.1",
"msal": "^1.4.13",
"prismjs": "^1.25.0",
"reflect-metadata": "^0.1.13",
"remark": "^13.0.0",
"remark-html": "^13.0.1",
"routing-controllers": "0.9.0",
"saxen": "^8.1.2",
"slick": "^1.12.2",
"topojson-client": "^3.1.0",
"truncate-html": "^1.0.4",
"xhr2": "^0.2.1"
}
}

Просмотреть файл

@ -88,7 +88,7 @@ export class ApiDetails {
// this.versionApis(apis || []);
// }
// else {
this.versionApis([]);
this.versionApis([]);
// }
this.currentApiVersion(api.name);
@ -131,23 +131,17 @@ export class ApiDetails {
private download(data: string, filename: string, type: string): void {
const file = new Blob([data], { type: type });
const a = document.createElement("a"),
url = URL.createObjectURL(file);
a.href = url;
a.download = filename;
document.body.appendChild(a);
a.click();
if (window.navigator.msSaveOrOpenBlob) { // IE10+
window.navigator.msSaveOrOpenBlob(file, filename);
}
else { // Others
const a = document.createElement("a"),
url = URL.createObjectURL(file);
a.href = url;
a.download = filename;
document.body.appendChild(a);
a.click();
setTimeout(() => {
document.body.removeChild(a);
window.URL.revokeObjectURL(url);
}, 0);
}
setTimeout(() => {
document.body.removeChild(a);
window.URL.revokeObjectURL(url);
}, 0);
}
private onVersionChange(selectedApiName: string): void {

Просмотреть файл

@ -1,7 +1,4 @@
export interface NameValuePair {
name: string;
value: string;
}
import { NameValuePair } from "../../../../../contracts/nameValuePair";
export interface ResponsePackage {
statusCode: number;

Просмотреть файл

@ -0,0 +1,4 @@
export interface NameValuePair {
name: string;
value: string;
}

Просмотреть файл

@ -1,5 +1,5 @@
import * as express from "express";
import * as mime from "mime-types";
import * as mime from "mime";
import { Req, Res, ExpressMiddlewareInterface, Middleware, NotFoundError, InternalServerError } from "routing-controllers";
import { Logger } from "@paperbits/common/logging";
import { IBlobStorage } from "@paperbits/common/persistence";
@ -47,7 +47,7 @@ export class StaticContentMiddleware implements ExpressMiddlewareInterface {
if (blob) {
const fileName = path.split("/").pop();
const contentType = mime.lookup(fileName) || "application/octet-stream";
const contentType = mime.getType(fileName) || "application/octet-stream";
response
.header("Content-Type", contentType)

Просмотреть файл

@ -48,7 +48,7 @@ h2 {
&.toolbox-position-left {
left: 20px;
max-width: calc(100%-40px);
max-width: calc(100% - 40px);
}
&.toolbox-position-left-bottom {

Просмотреть файл

@ -1,7 +1,7 @@
import { NameValuePair } from "request";
import { js } from "js-beautify";
import { ArmResource } from "./contracts/armResource";
import { JwtToken } from "./contracts/jwtToken";
import { js } from "js-beautify";
import { NameValuePair } from "./contracts/nameValuePair";
export class Utils {